1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
<! DOCTYPE HTML> < html > < head > < meta charset = "utf-8" > < meta name = "viewport" content = "width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" > < meta http-equiv = "Content-Security-Policy" content = "default-src * data: gap: content: https://ssl.gstatic.com; style-src * 'unsafe-inline'; script-src * 'unsafe-inline' 'unsafe-eval'" > <script src="components/loader.js"> </script> < link rel = "stylesheet" href = "components/loader.css" > < link rel = "stylesheet" href = "css/style.css" > <script> function correct(){ alert( "すごい!正解だよ!" ); location.href = "quiz2.html" ; sessionStorage.score = 1; } function incorrect(){ alert( "残念!はずれ!" ); location.href = "quiz2.html" ; sessionStorage.score = 0; } </script> </ head > < body > < h1 >第1問</ h1 > < p >日本で作られたプログラミング言語は?</ p > < button onclick = "incorrect();" >Scratch</ button > < button onclick = "incorrect();" >Python</ button > < button onclick = "correct();" >Ruby</ button > < button onclick = "incorrect();" >Swift</ button > < button onclick = "incorrect();" >Java</ button > </ body > </ html > |
※コード部分をダブルクリックすると全選択ができます。