Browse Source

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

master
KaiSD 5 years ago
parent
commit
015f3035a1
1 changed files with 3 additions and 4 deletions
  1. +3
    -4
      ace/index.html

+ 3
- 4
ace/index.html View File

@@ -84,10 +84,8 @@
function updateToolbar() { function updateToolbar() {
document.getElementById("btnUndo").disabled = !editor.session.getUndoManager().hasUndo(); document.getElementById("btnUndo").disabled = !editor.session.getUndoManager().hasUndo();
document.getElementById("btnRedo").disabled = !editor.session.getUndoManager().hasRedo(); document.getElementById("btnRedo").disabled = !editor.session.getUndoManager().hasRedo();
if (window.fullscreen) {
document.getElementById("btnFs").style.display = "none";
} else {
document.getElementById("btnFs").style.display = "block";
if (!window.fullscreen) {
document.getElementById("btnFs").style.display = "block";
} }
} }
editor.on("input", updateToolbar); editor.on("input", updateToolbar);
@@ -126,6 +124,7 @@
} else if (elem.msRequestFullscreen) { /* IE/Edge */ } else if (elem.msRequestFullscreen) { /* IE/Edge */
elem.msRequestFullscreen(); elem.msRequestFullscreen();
} }
document.getElementById("btnFs").style.display = "none";
} }
else { else {
if (document.exitFullscreen) { if (document.exitFullscreen) {


Loading…
Cancel
Save