From 47b800430b4ff054cca481d1f6989af72d45c263 Mon Sep 17 00:00:00 2001 From: Austin1780 Date: Tue, 31 Oct 2017 12:21:22 -0700 Subject: [PATCH 1/2] completed jQuery sprint --- index.html | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index 621dcda..97d2712 100644 --- a/index.html +++ b/index.html @@ -1,7 +1,8 @@ - + + @@ -55,4 +56,4 @@

- \ No newline at end of file + From 52e39cf9cf64759e2ca339373f9e96260b9a95e0 Mon Sep 17 00:00:00 2001 From: Austin1780 Date: Tue, 31 Oct 2017 12:23:30 -0700 Subject: [PATCH 2/2] completed jQuery sprint --- script.js | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 script.js diff --git a/script.js b/script.js new file mode 100644 index 0000000..28d04f6 --- /dev/null +++ b/script.js @@ -0,0 +1,33 @@ +$(document).ready(() => { + //Change the

to something cheeky + $('h1').html('something cheeky'); + + //create ordered list and list items +$list = $('
    ') + .append($('
  1. Traversal #1 to parent
  2. ')) + .append($('
  3. Traversal #2 to children
  4. ')) + .append($('
  5. Traversal #3 to siblings
  6. )')); + + //add list to container + $('h4').parent().append($list); + //center list + $('.info-box').css({ + textAlign: 'center', + listStyle: 'inside' + }); + + //sad classes become happy + $('.sad').addClass('happy').removeClass('sad'); + + //annoying popup link and location changed + $('#annoying-popup') + .attr('href', 'http://www.cashcats.biz') + .css({'top': '30px', 'right': '0'}); + + /*Replace the ellipsis ... in one of the suggested topics with the content + of your choice -- but do so by traversing from a different element.*/ + $('ul').children().last().prev().html('Various variables'); + + //Replace the form input with a '); +});