A check-in is just a weekly opportunity to score some points and ensure that you are keeping up with the course content. The requirements vary from week to week, but may involve responding to a survey, taking a brief online quiz, or participating in a discussion, or making some progress on an assignment. They are due by midnight on the designated day.
curl
command to POST to http://cs120.liucs.net/checkin2
, sending the POST data parameters name
and score
using -d
. The name should be your first and last name, for example Chris+League
. The score must be an integer greater than zero. It worked if it says something like “Thanks Chris League, your score has been recorded.”Accept-Language
header to get the response in a language other than English. Supported languages include Arabic, Chinese, Danish, German, Greek, Japanese, and Spanish.mock-page
and saving it into your cs120
folder, committing, and pushing it to GitLab.assn2-page
in your cs120
folder, using the Project Type “Twitter Bootstrap.” The latest version of Bootstrap (probably 3.3.1) is fine. Commit and push this to GitLab as well.flukeout.png
in your cs120
folder, commit and push.Work on the Codecademy Javascript tutorials, through the section on Functions. To get credit, take a screenshot of your percent-completed on that screen, save it as codecademy-js-1.png
in your cs120
folder, commit and push.
The “getting started” section should go very fast, given your experience with C programming, but function syntax is a little different in Javascript. If you’d like to work further, the sections on for
and while
loops are mostly similar to C (but can’t hurt to review). The next section that’s substantially different is “Arrays and Objects in JS.”
Create a small web project named checkin6
. You may use bootstrap or not, but the page should refer to an external Javascript file that you create. On the index.html
page, create a text input and a drop-down for the user to type their name and select their favorite food. After making changes to these input elements, the page will say something like “Welcome Chris, I also like Hamburgers.” See the example below.
Commit and push your updates, and write “checkin6” in the commit message. Hint: we covered how to use onclick
and onkeypress
handlers in class on Feb 23.