Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
69 changes: 60 additions & 9 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,25 +7,76 @@
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" media="screen" href="main.css" />
</head>
<body>
<div class="quizSelect">
<h1 class= "title">Coding <span>Quiz</span></h1>
<p id = "topics">Please select the topics you are interested in:
<ul class="topicList">
<input id = "functions" type = "checkbox">
<label for = "functions">Functions</label><br>
<input id = "loops" type = "checkbox"/>
<label for = "loops">Loops</label><br>
<input id = "objects" type = "checkbox">
<label for = "objects">Objects</label><br>
<input id = "DOM" type = "checkbox">
<label for = "DOM">DOM</label><br>
<input id = "localStorage" type = "checkbox">
<label for = "localStorage">Local Storage</label><br>
</ul>
<button id="dataSubmit" type='submit'>Submit</button>
</p>
</div>

<span id="quiz"></span>

<p id= "buttonHolder"></p>

<b><span id = 'score'></span></b>

</body>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
<script src="main.js"></script>

</html>





<!-- <!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Page Title</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" media="screen" href="main.css" />
</head>
<body>
<h1 class="title">Coding Quiz</h1>
<p id = "populateQuestions"></p>
<ul></ul>
<ul></ul> -->
<!--- I recall Zach mentioning class attributes acts like an array, so it may make more sense to give the lis a class name instead of multiple ids-->
<!-- <li class="answerChoice"></li>
<li class="answerChoice"></li>
<li class="answerChoice"></li>
<li class="answerChoice"></li>
<li class="answerChoice"></li>
<li class="answerChoice"></li> -->

<p id= "response"></p>
<!-- <p id= "response"></p> -->
<!-- <p id= "incorrect-response"></p> -->

<p id= "buttonHolder"></p>

<!--<button type="button"></button>-->
<!-- <p id= "buttonHolder"></p>

<div>
<p>Correct Answers = <b id = 'correct-answers'></b></p>
<p>Incorrect Answers = <b id = 'incorrect-answers'></b> </p>

</div>

</body>
<button type="button"></button> -->

<!-- </body>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
<script src="main.js"></script>

</html>
</html> -->
88 changes: 83 additions & 5 deletions main.css
Original file line number Diff line number Diff line change
@@ -1,13 +1,91 @@
body {

background-color: peachpuff;
}

body, html {
font-family: sans-serif;
}

/*YES I KNOW...BAD FOR ACCESBILITY BUT I. DONT. CARE. */
textarea, select, input, button { outline: none; }

.quizSelect {
padding: 5vw;
background-color: rgb(238, 215, 113);
margin: 20px 15px 30px 15px;
border-radius: 8px;
-webkit-box-shadow: 0px 4px 38px 1px rgba(0,0,0,0.22);
-moz-box-shadow: 0px 4px 38px 1px rgba(0,0,0,0.22);
box-shadow: 0px 4px 38px 1px rgba(0,0,0,0.22);
}

.title {
letter-spacing: -1px;
}

.title span {
font-weight: 100;
}

#topics{
margin: 2px 0;
color: grey;
}

button {
-webkit-transition-duration: 0.4s; /* Safari */
transition-duration: 0.4s;
width: 60px;
height: 32px;

}

button:hover {
height: 42px;
font-size: .8rem;
font-weight: bold;
text-transform: uppercase;
letter-spacing: 1px;
border-radius: 90px;
min-width: 130px;
padding-left: 20px;
padding-right: 20px;
}

button:hover {
background-color: #4CAF50;
color: white;
}

.correct {
color: #4CAF50
}

.incorrect {
color: red
}

.response {
font-weight: bold;
}

#score {
color: green;
}

.answerChoice {
cursor: pointer;
}

.topicList {
padding-left: 0px;
}

.topicList input {
margin: 8px;
}

input[type=checkbox] {
/* Double-sized Checkboxes */
-ms-transform: scale(1.5); /* IE */
-moz-transform: scale(1.5); /* FF */
-webkit-transform: scale(1.5); /* Safari and Chrome */
-o-transform: scale(1.5); /* Opera */
padding: 15px;
}
Loading