@@ -15,10 +15,17 @@ <h1>Luna</h1>
1515 A sample compiler for WebAssembly Text Format.< br />
1616 Check the < a href ="http://github.com/thomscoder/luna " target ="_blank "> github repository</ a >
1717 </ p >
18+ < small > Try to change the name of the export (e.g. "addNumbers" to "lunaAddition")</ small >
1819 < div class ="container ">
1920 < div class ="inner-container ">
20- < small > Try to change the name of the export (e.g. "addNumbers" to "lunaAddition")</ small >
2121 < div id ="code "> </ div >
22+ < select id ="instruction ">
23+ < option value ="addition "> Addition</ option >
24+ < option value ="subtraction "> Subtraction</ option >
25+ < option value ="division "> Division</ option >
26+ < option value ="multiplication "> Multiplication</ option >
27+ < option value ="const "> Const</ option >
28+ </ select >
2229 < button id ="compile "> Compile</ button >
2330 </ div >
2431 < div class ="inner-container ">
@@ -29,11 +36,11 @@ <h1>Luna</h1>
2936 < div class ="inner-container ">
3037 Calculate (add or subtract):
3138 < div >
32- < label for ="t-input-1 "> Num 1</ label >
39+ < label id =" label-1 " for ="t-input-1 "> Num 1</ label >
3340 < input name ="t-input-1 " id ="input-1 " type ="text " />
3441 </ div >
3542 < div >
36- < label for ="t-input-2 "> Num 2</ label >
43+ < label id =" label-2 " for ="t-input-2 "> Num 2</ label >
3744 < input name ="t-input-2 " id ="input-2 " type ="text " />
3845 </ div >
3946 < div id ="btn-result-container "> < button id ="btn "> Result</ button > </ div >
@@ -46,7 +53,8 @@ <h1>Luna</h1>
4653 as it defines some global objects
4754 -->
4855 < script src ="./js/wasm_exec.js "> </ script >
49- < script src ="./editor/editor.js "> </ script >
5056 < script type ="module " src ="./js/index.js "> </ script >
57+ < script src ="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.65.9/addon/mode/simple.min.js " integrity ="sha512-CGM6DWPHs250F/m90YZ9NEiEUhd9a4+u8wAzeKC6uHzZbYyt9/e2dLC5BGGB6Y0HtEdZQdSDYjDsoTyNGdMrMA== " crossorigin ="anonymous " referrerpolicy ="no-referrer "> </ script >
58+ < script src ="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.65.9/mode/wast/wast.min.js " integrity ="sha512-jROitIYzp4fmQniVqF+eAnO5xKsZbKhI9Mue2XHaUtyC6rFxvcS/utxK+e1tMdlN/JP20A1qPEPPHwts42A4JQ== " crossorigin ="anonymous " referrerpolicy ="no-referrer "> </ script >
5159 </ body >
5260</ html >
0 commit comments