A scavenger hunt to start off a new year of ScriptEd Studio
Students will pair up to complete the challenges below that will test their skills on topics covered in previous years of ScriptEd years.
-
Fork this repo so you have your own repo to save your work.
-
Add your partner as a collaborator to your repo so you can both make commits and work in parallel.
-
Complete the challenges!
-
After completing a challenge or section commit and push your changes to your repo to save your work.
Forget how to do that? No worries! Take a few minutes to go through this tutorial try.github.io Also check out this GitHub cheat sheet.
-
If you want to keep track of your progress change the
[ ]
to[x]
in yourREADME.md
file to check off the checkboxes:- Challenge complete!
-
1pt
Create anindex.html
file in your fork of this repo and add the following html to it: -
1pt
The title of the page should be "ScriptEd Scavengers!" -
1pt
There should be a header on the page that contains the text "Hello Studio!" -
1pt
There should be a smaller header on the page that contains you and your partner's names. -
1pt
Add a paragraph element with a paragraph of text from <lipsum.com>.
-
1pt
Create anindex.css
file. -
1pt
Link the css file from the html file. -
5pt
The headers on the page should be centered, but not the other text on the page. -
1pt
The headers should be in a sans serif font and the rest of the text should be a serif font. -
1pt
The page should have a taupe background. -
10pt
Using CSS animate the header text to slowly change font color.
-
1pt
Create anindex.js
file. -
1pt
Import your js file from your html file. -
1pt
Import a jQuery library from you html file. Note yourindex.js
file will use jQuery so import order matters.
-
1pt
Create a variablenum
set to a random integer between 1 and 100. -
1pt
Create a stringnow
set to the current time and date. -
3pt
Create an arraynames
set to strings of the first names of all of the students in the class. -
5pt
Create an objectteachers
mapping all of the teachers' first names to an array of their last names.
-
1pt
Create a functionlog
that takes a single argument and logs it usingconsole.log
. -
1pt
Create a functionrandInt
that takes two arguments: a min and a max and returns an integer between them. -
10pt
Create a functionnumberWords
that take a number and returns a string of that number represented in english words.
-
1pt
Call the functionlog
on each name in the arraynames
. -
1pt
If the length ofnames
is oddlog
"The students are kind of odd."
Otherwiselog
"The class is very even."
-
1pt
Log random numbers between 1 and 100 until you get one that is a multiple of 7.
-
2pt
Create a<ul>
on the page with<li>
elements containing each name innames
. -
2pt
Create a second<ul>
on the page with<li>
elements containing of the first names inteachers
. -
3pt
When any of the teachers'<li>
elements are clicked onalert
the last names associated with the first name in theteachers
object. -
5pt
Instead of usingalert
for the previous challenge have the last names displayed temporarily alongside the first name. -
7pt
A few seconds after having been clicked remove the last names from the<li>
to reset to only the first name.
-
1pt
Use$.ajax
to callhttps://storage.googleapis.com/studio/hello.json
andlog
the response. -
2pt
Gethttp://ip.jsontest.com/?callback=showMyIP
and show the returned IP address on your page. -
5pt
Use the public Giphy API key to request an image and display anywhere on your page. -
11pt
Add a map to the bottom of your page that shows the user's current location using the Google Maps API.
-
1pt
When finished with all the above challenges, commit and push all of your changes, and send a pull request to the repo that you originally forked.