From 34fd011563f0fdc122a0a0bc54683d4255842ce7 Mon Sep 17 00:00:00 2001 From: Eunice Date: Thu, 9 Oct 2014 10:38:13 -0400 Subject: [PATCH 1/2] Test Change test --- index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.html b/index.html index f1b9af2..b467b2a 100644 --- a/index.html +++ b/index.html @@ -9,7 +9,7 @@ text-align: center; } .playspace { - width: 600px; + width: 900px; height: 400px; margin: auto; position: relative; From 213060c744b7b8a1a15456ea9f0929fea2ab7fe1 Mon Sep 17 00:00:00 2001 From: Eunice Date: Thu, 23 Oct 2014 01:32:23 -0400 Subject: [PATCH 2/2] Iconomation-Assignment I Love you --- index.html | 10 +++--- scripts/iconomation.js | 73 +++++++++++++++++++++++++++++++----------- 2 files changed, 61 insertions(+), 22 deletions(-) diff --git a/index.html b/index.html index b467b2a..3587218 100644 --- a/index.html +++ b/index.html @@ -9,12 +9,13 @@ text-align: center; } .playspace { - width: 900px; + width: 400px; height: 400px; margin: auto; position: relative; - border: 3px solid green; + border: 5px solid yellow; } + i { position: absolute; } @@ -23,8 +24,9 @@ -

Play Chicken!

-
+

I LOVE YOU

+
+

refresh to see it again

diff --git a/scripts/iconomation.js b/scripts/iconomation.js index 6ac601e..5c75117 100644 --- a/scripts/iconomation.js +++ b/scripts/iconomation.js @@ -1,31 +1,68 @@ // add icons -$('.playspace').append(''); -$('.playspace').append(''); +$('.playspace').append(''); +$('.playspace').append(''); +$('.playspace').append(''); +$('.playspace').append(''); +$('.playspace').append(''); + +$('.playspace').append(''); +$('.playspace').append(''); +$('.playspace').append(''); +$('.playspace').append(''); +$('.playspace').append(''); // set the initial positions -$('.em-rooster').css({ - top: 200, - left: 300 +$('.em-couplekiss').css({ + top: 300, + left: 200 }); -$('.fa-futbol-o').css({ - top: 210, +$('.em-sparkling_heart').css({ + top: 300, left: 100 }); +$('.em-blue_heart').css({ + top: 300, + left: 250 +}); +$('.em-purple_heart').css({ + top: 300, + left: 150 +}); +$('.em-revolving_hearts').css({ + top: 300, + left: 300 +}); +$('.em-clap').css({ + top: 300, + left: 200 +}); -// play! - -$('.em-rooster').animate({ - left: 50 +$('.em-clap').animate({ + top: 200 }, 1000); -// after 660ms... -setTimeout(function() { - // ...move the ball - $('.fa-futbol-o').animate({ - left: 0 - }, 800, 'easeOutQuart'); -}, 660); + +var myArray = []; + +myArray[0]=2000; +myArray[1]=3000; +myArray[2]=3000; +myArray[3]=4000; +myArray[4]=5000; +for(var k=0;k<5;k++){ + + if(k==0){ + setTimeout(function() { + console.log("CODE TO BE EXECUTED"+k); + $('.em-clap, .em-sparkling_heart, .em-blue_heart, .em-revolving_hearts, .em-purple_heart').animate({ + top: 150 + }, 800, 'easeOutQuart'); + },myArray[0]); + } +} + +