diff --git a/Quiz/logo_n2i_color_moon.jpg b/Quiz/logo_n2i_color_moon.jpg new file mode 100644 index 0000000..fa6ba86 --- /dev/null +++ b/Quiz/logo_n2i_color_moon.jpg @@ -0,0 +1,95 @@ + + + + diff --git a/Quiz/logo_n2i_color_moon.png b/Quiz/logo_n2i_color_moon.png new file mode 100644 index 0000000..fa6ba86 --- /dev/null +++ b/Quiz/logo_n2i_color_moon.png @@ -0,0 +1,95 @@ + + + + diff --git a/Quiz/logo_n2i_color_moon.svg b/Quiz/logo_n2i_color_moon.svg new file mode 100644 index 0000000..fa6ba86 --- /dev/null +++ b/Quiz/logo_n2i_color_moon.svg @@ -0,0 +1,95 @@ + + + + diff --git a/Quiz/question.html b/Quiz/question.html new file mode 100644 index 0000000..64c1db9 --- /dev/null +++ b/Quiz/question.html @@ -0,0 +1,10 @@ +{% for q in questions %} +
hello world!
+ + + + + + \ No newline at end of file diff --git a/Quiz/test.js b/Quiz/test.js new file mode 100644 index 0000000..009e425 --- /dev/null +++ b/Quiz/test.js @@ -0,0 +1,36 @@ +function test() +{ + document.getElementById("demo").style.color = "red"; + document.getElementById("demo").style.backgroundColor = "yellow"; + document.getElementById("demo").innerHTML = "Title!"; +} +var nextquestion; +function startQuiz() +{ + nextquestion = 1; + document.getElementById("test1").style.display = "block"; + document.getElementById("strt").disabled = "true"; +} + +function tog() +{ + var chk1 = document.getElementById("tgl1"+nextquestion) + var chk2 = document.getElementById("tgl2"+nextquestion) + if (chk1.checked==true && chk2.checked != true) + { + document.getElementById("answer"+nextquestion).innerHTML = "correct"; + document.getElementById("answer"+nextquestion).style.color = "#00ff00"; + } else + { + document.getElementById("answer"+nextquestion).innerHTML = "incorrect"; + document.getElementById("answer"+nextquestion).style.color = "#ff0000"; + } + document.getElementById("answer"+nextquestion).style.display = "block"; + document.getElementById("tgl1"+nextquestion).disabled = "true"; + document.getElementById("tgl2"+nextquestion).disabled = "true"; + document.getElementById("sub1").disabled = "true"; + nextquestion = nextquestion + 1; + document.getElementById("test"+nextquestion).style.display = "block"; + +} + diff --git a/Quiz/test.php b/Quiz/test.php new file mode 100644 index 0000000..e69de29