From f7df55a3e566d2d3d2a2c1bc0c4ab4abc59619c4 Mon Sep 17 00:00:00 2001 From: "Brian P. Gallagher" Date: Sun, 24 Jun 2018 02:28:25 -0400 Subject: [PATCH 1/2] assignment done --- jquery.css | 27 +++++++++++++++++++++++++++ styles.css | 30 +++++++++++++++++++++++++++++- 2 files changed, 56 insertions(+), 1 deletion(-) create mode 100644 jquery.css diff --git a/jquery.css b/jquery.css new file mode 100644 index 0000000..1bf832e --- /dev/null +++ b/jquery.css @@ -0,0 +1,27 @@ +$("h1").append("VAC, is that you? It's me, the people."); + +$(".info-box").append("
  1. Funny functions
  2. Terrible traversals
  3. Massive manipulations
  4. Admirable alterations
"); + +$(document).ready(function(){ + $('.sad').removeClass('sad').addClass('happy'); +}); + +$("a[href='http://www.evilwebsite.com/']").attr('href', 'http://www.cashcats.biz/') + +$("a").attr("href", "http://www.cashcats.biz/") + +$(document).ready(function(){ + $("#annoying-popup").css({ + "position": "absolute", + "top": "40px", + "right": "16px"}); +}); + +$(document).ready(function(){ + $("li").last().prev().replaceWith('
  • Content of your choice
  • '); +}); + +$(document).ready(function(){ + $("input").first().replaceWith(''); + $("input").last().remove(); +}); diff --git a/styles.css b/styles.css index e24bd33..17fd154 100644 --- a/styles.css +++ b/styles.css @@ -41,4 +41,32 @@ form{ } #annoying-popup a{ color: white; -} \ No newline at end of file +} + +$("h1").append("VAC, is that you? It's me, the people."); + +$(".info-box").append("
    1. Funny functions
    2. Terrible traversals
    3. Massive manipulations
    4. Admirable alterations
    "); + +$(document).ready(function(){ + $('.sad').removeClass('sad').addClass('happy'); +}); + +$("a[href='http://www.evilwebsite.com/']").attr('href', 'http://www.cashcats.biz/') + +$("a").attr("href", "http://www.cashcats.biz/") + +$(document).ready(function(){ + $("#annoying-popup").css({ + "position": "absolute", + "top": "40px", + "right": "16px"}); +}); + +$(document).ready(function(){ + $("li").last().prev().replaceWith('
  • Content of your choice
  • '); +}); + +$(document).ready(function(){ + $("input").first().replaceWith(''); + $("input").last().remove(); +}); From 41db68b1aea3d4fd3cd3d9307bdd77cab5b822e8 Mon Sep 17 00:00:00 2001 From: "Brian P. Gallagher" Date: Sun, 24 Jun 2018 02:41:16 -0400 Subject: [PATCH 2/2] fixed jquery ext --- jquery.css => jquery.js | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename jquery.css => jquery.js (100%) diff --git a/jquery.css b/jquery.js similarity index 100% rename from jquery.css rename to jquery.js