瀏覽代碼

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

master
KaiSD 5 年之前
父節點
當前提交
f8963a08e5
共有 1 個文件被更改,包括 5 次插入8 次删除
  1. +5
    -8
      ace/index.html

+ 5
- 8
ace/index.html 查看文件

@@ -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…
取消
儲存