Sfoglia il codice sorgente

Изменить 'ace/index.html'

master
KaiSD 5 anni fa
parent
commit
f8963a08e5
1 ha cambiato i file con 5 aggiunte e 8 eliminazioni
  1. +5
    -8
      ace/index.html

+ 5
- 8
ace/index.html Vedi File

@@ -50,7 +50,8 @@
<div class="toolbar">
<!--<button id="btnSave" onClick="save()" class="btn btn_g">save</button>-->
<button id="btnUndo" onClick="editor.undo()" class="btn">↶</button>
<button id="btnRedo" onClick="editor.redo()" class="btn">↷</button>
<button id="btnRedo" onClick="editor.redo()" class="btn_g">↷</button>
<button id="btnFs" onclick="openFullscreen();">◻</button>
</div>
<div class="inner" id="editor"></div>
@@ -98,13 +99,8 @@
}
});

window.editor = editor;
/* Get the element you want displayed in fullscreen mode (a video in this example): */
var elem = document.documentElement;

/* When the openFullscreen() function is executed, open the video in fullscreen.
Note that we must include prefixes for different browsers, as they don't support the requestFullscreen method yet */
function openFullscreen() {
var elem = document.documentElement;
if (elem.requestFullscreen) {
elem.requestFullscreen();
} else if (elem.mozRequestFullScreen) { /* Firefox */
@@ -116,7 +112,8 @@
}
}
openFullScreen();
window.editor = editor;
</script>

</body>

Loading…
Annulla
Salva