Skip to content

Commit

Permalink
Update script.js
Browse files Browse the repository at this point in the history
  • Loading branch information
KajizukaTaichi committed Oct 15, 2024
1 parent dd0070e commit 7975a5b
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions script.js
Original file line number Diff line number Diff line change
Expand Up @@ -171,4 +171,20 @@ function reverse(code) {
document.addEventListener("DOMContentLoaded", function() {
document.getElementById("editor").focus();
addTips();

let run_button = document.getElementById("run");
addTipsSub(run_button, "Run this program");
run_button.onclick = run;

let build_button = document.getElementById("build");
addTipsSub(build_button, "Build to show the code");
build_button.onclick = build;

let load_button = document.getElementById("load");
addTipsSub(load_button, "Load program from file");
load_button.onclick = load;

let save_button = document.getElementById("save");
addTipsSub(save_button, "Save this as file");
save_button.onclick = save;
});

0 comments on commit 7975a5b

Please sign in to comment.