diff --git a/assets/img/bbchacha.gif b/assets/img/bbchacha.gif new file mode 100755 index 0000000..504105f Binary files /dev/null and b/assets/img/bbchacha.gif differ diff --git a/css/style.css b/css/style.css index b6f590b..be50e55 100644 --- a/css/style.css +++ b/css/style.css @@ -38,6 +38,7 @@ body { left: 0px; width: 100vw; height: 100vh; + z-index: 1; /*hide baby*/ } #playBegin { @@ -56,7 +57,15 @@ body { .floatleft { position: absolute; left: 2%; - top: 5%; + top: 20%; + width: 20%; + + display: none; +} +.floatright { + position: absolute; + right: 2%; + bottom: 5%; width: 20%; display: none; diff --git a/index.html b/index.html index a0e6d8c..18eafce 100644 --- a/index.html +++ b/index.html @@ -52,6 +52,9 @@ +
+ +
diff --git a/js/main.js b/js/main.js index 5bc9841..b99e667 100644 --- a/js/main.js +++ b/js/main.js @@ -51,7 +51,7 @@ function displayQuestion() { var index = 0; // sends comrad Dwayne to help (or calls him back) - if (total > 4000 ) { + if (total > 4000 ) { // comes when low score $("#rock-approves").hide(); $("#rock-disapproves").hide(); } @@ -60,6 +60,12 @@ function displayQuestion() { $("#rock-approves").show(); } // ************************************** + // sends comrad baby cha-cha to help (or calls him back) + if ( indexesProgress != 0 ) // comes when first question + $("#bbchacha").hide(); + else + $("#bbchacha").show(); + // ************************************** if (indexesProgress < indexeslist.length) { index = indexeslist[indexesProgress];