mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-27 22:17:32 +01:00
Fix traffic control computer
This commit is contained in:
@@ -90,30 +90,33 @@
|
||||
}
|
||||
</style>
|
||||
|
||||
<form name='code' action='?src=\ref[src]' method='get'>
|
||||
<input type="hidden" name="src" value="\ref[src]">
|
||||
<div class="statusDisplay">
|
||||
<textarea id="fSubmit" name="cMirror">[storedcode]</textarea>
|
||||
</div>
|
||||
|
||||
<textarea id="fSubmit" name="cMirror">
|
||||
[storedcode]
|
||||
</textarea>
|
||||
<script>
|
||||
var editor = CodeMirror.fromTextArea(document.getElementById("fSubmit"),
|
||||
{
|
||||
<script type="text/javascript">
|
||||
var cMirror_fSubmit = CodeMirror.fromTextArea(document.getElementById("fSubmit"),
|
||||
{
|
||||
lineNumbers: true,
|
||||
indentUnit: 4,
|
||||
indentWithTabs: true,
|
||||
mode: "NTSL",
|
||||
theme: "lesser-dark",
|
||||
viewportMargin: Infinity
|
||||
}
|
||||
);
|
||||
</script>
|
||||
}
|
||||
);
|
||||
|
||||
<center>
|
||||
<button type="submit" name="choice">Compile</button>
|
||||
<button type="submit" name="choice">Clear</button>
|
||||
</center>
|
||||
</form>
|
||||
function compileCode() {
|
||||
var codeText = cMirror_fSubmit.getValue();
|
||||
window.location = "byond://?src=\ref[src];choice=Compile;cMirror=" + encodeURIComponent(codeText);
|
||||
}
|
||||
|
||||
function clearCode() {
|
||||
window.location = "byond://?src=\ref[src];choice=Clear;";
|
||||
}
|
||||
</script>
|
||||
<a href="javascript:compileCode()">Compile</a>
|
||||
<a href="javascript:clearCode()">Clear</a>
|
||||
|
||||
<div class="item">
|
||||
[compiling_errors]
|
||||
@@ -220,6 +223,7 @@
|
||||
Server.memory = list() // clear the memory
|
||||
|
||||
compiling_errors = "<font color='#4266DB'>Server Memory Cleared!</font>"
|
||||
storedcode = null
|
||||
updateUsrDialog()
|
||||
|
||||
if(href_list["viewserver"])
|
||||
|
||||
Reference in New Issue
Block a user