Skip to content

Instantly share code, notes, and snippets.

@adamloo85
Forked from dbc-challenges/jquery_quiz.js
Created July 22, 2013 18:17
Show Gist options
  • Save adamloo85/6056178 to your computer and use it in GitHub Desktop.
Save adamloo85/6056178 to your computer and use it in GitHub Desktop.

Revisions

  1. @dbc-challenges dbc-challenges revised this gist May 20, 2013. 1 changed file with 11 additions and 8 deletions.
    19 changes: 11 additions & 8 deletions jquery_quiz.js
    Original file line number Diff line number Diff line change
    @@ -1,24 +1,27 @@
    /* Here is your chance to take over Socrates!
    Spend 10 minutes on each of the following hacks to the socrates website. Enter them in the console to make sure it works and then save
    Spend 10 minutes on each of the following hacks to the socrates website.
    Enter them in the console to make sure it works and then save
    your results here.
    Choose a new pair for each. Add your names to the section you complete.
    */

    /*1. Use basic selectors (id, class, element) to choose an element on the page. Use the .css() method to alter at least
    two CSS properties of this element. */
    /*1. Use basic selectors (id, class, element) to choose an element on the page.
    Use the .css() method to alter at least two CSS properties of this element. */


    /*2. Use basic selectors and the find() method to select an image on the page and change it with another image of your
    choice. */
    /*2. Use basic selectors and the find() method to select an image on the page
    and change it with another image of your choice. */

    /*3. Use traverse methods to select all instances of a repeated word on the page (like code) and use the animate() method to modify it.
    /*3. Use traverse methods to select all instances of a repeated word on the page
    (like code) and use the animate() method to modify it.
    */

    /*4. Try to find an element that requires at least three selectors / traverse methods to define it and then use the
    .on() method to trigger an event on these elements (use and event other than click).*/
    /*4. Try to find an element that requires at least three selectors / traverse
    methods to locate it and then use the .on() method to bind an event handler
    on these elements (use an event other than click).*/

    /*5. Your choice. */

  2. @dbc-challenges dbc-challenges revised this gist May 20, 2013. 1 changed file with 4 additions and 1 deletion.
    5 changes: 4 additions & 1 deletion jquery_quiz.js
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,7 @@
    /* Spend 10 minutes on each of the following hacks. Enter them in the console to make sure it works and then save
    /* Here is your chance to take over Socrates!
    Spend 10 minutes on each of the following hacks to the socrates website. Enter them in the console to make sure it works and then save
    your results here.
    Choose a new pair for each. Add your names to the section you complete.
  3. @dbc-challenges dbc-challenges created this gist May 20, 2013.
    21 changes: 21 additions & 0 deletions jquery_quiz.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,21 @@
    /* Spend 10 minutes on each of the following hacks. Enter them in the console to make sure it works and then save
    your results here.
    Choose a new pair for each. Add your names to the section you complete.
    */

    /*1. Use basic selectors (id, class, element) to choose an element on the page. Use the .css() method to alter at least
    two CSS properties of this element. */


    /*2. Use basic selectors and the find() method to select an image on the page and change it with another image of your
    choice. */

    /*3. Use traverse methods to select all instances of a repeated word on the page (like code) and use the animate() method to modify it.
    */

    /*4. Try to find an element that requires at least three selectors / traverse methods to define it and then use the
    .on() method to trigger an event on these elements (use and event other than click).*/

    /*5. Your choice. */