This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var js = document.createElement("script"); | |
js.type = "text/javascript"; | |
js.src = 'http://d1n0x3qji82z53.cloudfront.net/src-min-noconflict/ace.js'; | |
document.body.appendChild(js); | |
var js = document.createElement("script"); | |
js.type = "text/javascript"; | |
js.src = 'http://code.jquery.com/jquery-1.11.0.min.js'; | |
document.body.appendChild(js); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var js = document.createElement("script"); | |
js.type = "text/javascript"; | |
js.src = 'http://d1n0x3qji82z53.cloudfront.net/src-min-noconflict/ace.js'; | |
document.body.appendChild(js); | |
var js = document.createElement("script"); | |
js.type = "text/javascript"; | |
js.src = 'http://code.jquery.com/jquery-1.11.0.min.js'; | |
document.body.appendChild(js); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(document).keydown(function(event) { | |
//19 for Mac Command+S | |
if (!( String.fromCharCode(event.which).toLowerCase() == 's' && event.ctrlKey) && !(event.which == 19)) return true; | |
EditSite_SaveEditingText(); | |
event.preventDefault(); | |
return false; | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var js = document.createElement("script"); js.type = "text/javascript"; js.src = 'http://d1n0x3qji82z53.cloudfront.net/src-min-noconflict/ace.js';document.body.appendChild(js); | |
var js = document.createElement("script"); js.type = "text/javascript"; js.src = 'http://code.jquery.com/jquery-1.11.0.min.js';document.body.appendChild(js); | |
var style = document.createElement("style"); style.innerHTML = '#editor {position: absolute; top: 0; left: 400px; width: 600px; height: 80%;}'; document.body.appendChild(style); | |
var div = document.createElement("div"); div.setAttribute('id', 'editor'); document.body.appendChild(div); | |
setTimeout(function () { | |
window.e = ace.edit("editor");e.setTheme("ace/theme/monokai");e.getSession().setMode("ace/mode/html"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var js = document.createElement("script"); js.type = "text/javascript"; js.src = 'http://d1n0x3qji82z53.cloudfront.net/src-min-noconflict/ace.js';document.body.appendChild(js); | |
var js = document.createElement("script"); js.type = "text/javascript"; js.src = 'http://code.jquery.com/jquery-1.11.0.min.js';document.body.appendChild(js); | |
var style = document.createElement("style"); style.innerHTML = '#editor {position: absolute; top: 0; left: 400px; width: 100%; height: 80%;}'; document.body.appendChild(style); | |
var div = document.createElement("div"); div.setAttribute('id', 'editor'); document.body.appendChild(div); | |
setTimeout(function () { | |
window.e = ace.edit("editor");e.setTheme("ace/theme/monokai");e.getSession().setMode("ace/mode/html"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var js = document.createElement("script"); js.type = "text/javascript"; js.src = 'http://d1n0x3qji82z53.cloudfront.net/src-min-noconflict/ace.js';document.body.appendChild(js); | |
var style = document.createElement("style"); style.innerHTML = '#editor {position: absolute; top: 0; left: 400px; width: 100%; height: 80%;}'; document.body.appendChild(style); | |
var div = document.createElement("div"); div.setAttribute('id', 'editor'); document.body.appendChild(div); | |
setTimeout(function () {window.e = ace.edit("editor");e.setTheme("ace/theme/monokai");e.getSession().setMode("ace/mode/html"); }, 1000); | |
function EditSite_SaveEditingText() | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Test 2</title> | |
<meta charset="utf-8" /> | |
<style> | |
.title { | |
text-align: center; | |
} |
NewerOlder