1
0
mirror of https://github.com/chinchang/web-maker.git synced 2025-07-29 01:30:16 +02:00

Change the function name

This commit is contained in:
mikum
2016-06-08 21:43:33 +08:00
parent db502d0a50
commit ed9bb17d10

View File

@@ -177,13 +177,13 @@
}); });
saveHtmlBtn.addEventListener('click', function (e) { saveHtmlBtn.addEventListener('click', function (e) {
save_file(); saveFile();
}); });
window.addEventListener('keydown',function(event) { window.addEventListener('keydown',function(event) {
if ((event.ctrlKey)&&(event.keyCode==83)){ if ((event.ctrlKey)&&(event.keyCode==83)){
event.preventDefault(); event.preventDefault();
save_file(); saveFile();
} }
}); });
@@ -235,7 +235,7 @@
}); });
} }
function save_file() { function saveFile() {
var html = editur.cm.html.getValue(); var html = editur.cm.html.getValue();
var css = editur.cm.css.getValue(); var css = editur.cm.css.getValue();
var js = editur.cm.js.getValue(); var js = editur.cm.js.getValue();