Remove useless arg
This commit is contained in:
parent
43f7689a30
commit
c8efd09b45
|
@ -1,7 +1,7 @@
|
||||||
const flask = getEditor("#code", "js")
|
const flask = getEditor("#code", "js")
|
||||||
let consoleElmt = document.getElementById("console")
|
let consoleElmt = document.getElementById("console")
|
||||||
|
|
||||||
function run(elmtID) {
|
function run() {
|
||||||
console = newConsole
|
console = newConsole
|
||||||
console.clear()
|
console.clear()
|
||||||
try {
|
try {
|
||||||
|
|
2
js.html
2
js.html
|
@ -11,7 +11,7 @@
|
||||||
<h1>Javascript Playground</h1>
|
<h1>Javascript Playground</h1>
|
||||||
</header>
|
</header>
|
||||||
<div id="codeContainer"><div id="code"></div></div>
|
<div id="codeContainer"><div id="code"></div></div>
|
||||||
<input type="button" onclick="run('code')" value="Exécuter !" id="runBtn" />
|
<input type="button" onclick="run()" value="Exécuter !" id="runBtn" />
|
||||||
<div id="console">
|
<div id="console">
|
||||||
</div>
|
</div>
|
||||||
<footer>
|
<footer>
|
||||||
|
|
Loading…
Reference in New Issue