Created
June 21, 2018 23:11
-
-
Save swkeever/1d71abbef21c488fa907a82e9aefce4e to your computer and use it in GitHub Desktop.
Survey Form
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script src="https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js"></script> | |
<!-- | |
Hello Camper! | |
For now, the test suite only works in Chrome! Please read the README below in the JS Editor before beginning. Feel free to delete this message once you have read it. Good luck and Happy Coding! | |
- The freeCodeCamp Team | |
--> | |
<html> | |
<h1 id="title">Awesome Form</h1> | |
<form id="survey-form" method="GET" action="https://www.google.com/search?q=awesome"> | |
<p id="description"> | |
Let us know how awesome you are. | |
</p> | |
<label id="name-label" for="name">* Name:</label> | |
<input autofocus type="text" id="name" name="name" required placeholder="Enter your name"><br><br> | |
<label id="email-label" for="email">* Email:</label> | |
<input type="email" id="email" name="email" required placeholder="Enter your Email"> | |
<br><br> | |
<label id="number-label" for="age">* Age:</label> | |
<input type="number" id="number" name="age" min="5" max="110" placeholder="Age"> | |
<br><br> | |
<label>Which of the following describes you best?</label> | |
<select id="dropdown"> | |
<option disabled value>Select an option</option> | |
<option value="pretty">Pretty awesome</option> | |
<option value="very">Very awesome</option> | |
<option value="extremely">Extremely awesome</option> | |
</select> | |
<br><br> | |
<label>* How likely is that you would recommend being awesome to a friend?</label> | |
<br> | |
<label> | |
<input id="very-likely" type="radio" name="rec-prob" value="yes" required>Very likely<br> | |
</label> | |
<label> | |
<input id="10/10" type="radio" name="rec-prob" value="of-course">10 out of 10<br> | |
</label> | |
<label> | |
<input id="absolutely" type="radio" name="rec-prob" value="certainly">Certainly | |
</label> | |
<br><br> | |
<label>Things that are also awesome (Check all that apply):</label> | |
<br> | |
<input type="checkbox" name="other-awesome-things" value="dogs">Dogs<br> | |
<input type="checkbox" name="other-awesome-things" value="cats">Cats<br> | |
<input type="checkbox" name="other-awesome-things" value="coding">Coding<br> | |
<input type="checkbox" name="other-awesome-things" value="exercising">Exercising<br> | |
<input type="checkbox" name="other-awesome-things" value="eating">Eating | |
<br><br> | |
<label>Please tell us how you became so awesome:</label> | |
<textarea rows="4" cols="50" placeholder="Write something awesome about yourself."></textarea> | |
<br> | |
<div style="text-align: center;"> | |
<button type="submit" id="submit">Submit</button> | |
</div> | |
</form> | |
</html> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// !! IMPORTANT README: | |
// You may add additional external JS and CSS as needed to complete the project, however the current external resource MUST remain in place for the tests to work. BABEL must also be left in place. | |
/*********** | |
INSTRUCTIONS: | |
- Select the project you would | |
like to complete from the dropdown | |
menu. | |
- Click the "RUN TESTS" button to | |
run the tests against the blank | |
pen. | |
- Click the "TESTS" button to see | |
the individual test cases. | |
(should all be failing at first) | |
- Start coding! As you fulfill each | |
test case, you will see them go | |
from red to green. | |
- As you start to build out your | |
project, when tests are failing, | |
you should get helpful errors | |
along the way! | |
************/ | |
// PLEASE NOTE: Adding global style rules using the * selector, or by adding rules to body {..} or html {..}, or to all elements within body or html, i.e. h1 {..}, has the potential to pollute the test suite's CSS. Try adding: * { color: red }, for a quick example! | |
// Once you have read the above messages, you can delete all comments. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@import url('https://fonts.googleapis.com/css?family=Monoton'); | |
body { | |
background-image: url("http://1-background.com/images/vellum/vellum-blue-repeating-image.jpg"); | |
background-color: yellow; | |
font-family: calibri; | |
} | |
textarea { | |
display: block; | |
margin-left: auto; | |
margin-right: auto; | |
} | |
#title { | |
text-align: center; | |
font-family: 'Monoton', cursive; color: black; | |
font-size: 3em; | |
margin: 0px 0px -33px 0px; | |
} | |
#description { | |
text-align: center; | |
} | |
#survey-form { | |
background-color: white; | |
opacity: 0.93; | |
} | |
#submit { | |
text-align: center; | |
margin: 0px 0px 5px 0px; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment