script editor js added fix x2
This commit is contained in:
parent
55418b3f6f
commit
6794c7c4fb
@ -7,7 +7,7 @@ editor.session.setMode("ace/mode/lua");
|
|||||||
|
|
||||||
const snippets = ["player", "players[index]", "genders[index]", "hobbies[index]", "healths[index]", "luggages[index]", "works[index]"];
|
const snippets = ["player", "players[index]", "genders[index]", "hobbies[index]", "healths[index]", "luggages[index]", "works[index]"];
|
||||||
|
|
||||||
urlParam = function(name){
|
$.urlParam = function(name){
|
||||||
var results = new RegExp('[\?&]' + name + '=([^&#]*)').exec(window.location.href);
|
var results = new RegExp('[\?&]' + name + '=([^&#]*)').exec(window.location.href);
|
||||||
if (results==null) {
|
if (results==null) {
|
||||||
return null;
|
return null;
|
||||||
@ -26,6 +26,8 @@ function getActionScript() {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($.urlParam("script_id") != "-1") {
|
$( document ).ready(function() {
|
||||||
|
if ($.urlParam("script_id") != "-1") {
|
||||||
getActionScript();
|
getActionScript();
|
||||||
}
|
}
|
||||||
|
});
|
@ -29,10 +29,10 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!-- th:if="${is_mobile}" -->
|
<!-- th:if="${is_mobile}" -->
|
||||||
|
</main>
|
||||||
|
<div th:replace="~{fragments/footer :: div}"></div>
|
||||||
<script src="/static/javascript/base32.js" type="text/javascript"></script>
|
<script src="/static/javascript/base32.js" type="text/javascript"></script>
|
||||||
<script src="https://www.unpkg.com/ace-builds@latest/src-noconflict/ace.js"></script>
|
<script src="https://www.unpkg.com/ace-builds@latest/src-noconflict/ace.js"></script>
|
||||||
<script src="/static/javascript/script-editor.js"></script>
|
<script src="/static/javascript/script-editor.js"></script>
|
||||||
</main>
|
|
||||||
<div th:replace="~{fragments/footer :: div}"></div>
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
Loading…
x
Reference in New Issue
Block a user