Skip to content

Commit

Permalink
style edits
Browse files Browse the repository at this point in the history
  • Loading branch information
natboehm committed Feb 11, 2017
1 parent 98734ee commit b28e2d3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions scripts/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,29 +28,29 @@ num_clicks = 0;
function countClicks() {
num_clicks++;
getClickTime();
ratio = ((currClickTime / lastClickTime) - 1) * 1000000000;
ratio = ((currClickTime / lastClickTime) - 1) * 1000000000000;
console.log(ratio);

/* excited dog */
if (ratio < 1) {
if (ratio < 500) {
if (document.getElementById("animation").style.backgroundImage!='url(/images/revised_series.png') {
happyDog();
}
}
/* neutral dog */
else if (ratio > 1 && ratio < 30) {
else if (ratio >= 500 && ratio < 10000) {
if (document.getElementById("animation").style.backgroundImage!='url/images/neutral_series.png') {
neutralDog();
}
}
/* sad dog */
else if (ratio > 20 && ratio < 50) {
else if (ratio >= 10000 && ratio < 20000) {
if (document.getElementById("animation").style.backgroundImage!='url/images/sad_series.png') {
sadDog();
}
}
/* ded dog */
else if (ratio > 50) {
else if (ratio >= 20000 && ratio < Infinity) {
if (document.getElementById("animation").style.backgroundImage!='url/images/ded_series.png') {
dedDog();
}
Expand Down
4 changes: 2 additions & 2 deletions styles/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
background-repeat: no-repeat;
height: 514px;
width: 2000px;
margin-left: 10%;
margin-left: 5%;
cursor: -webkit-grab;
}

Expand Down Expand Up @@ -33,6 +33,6 @@ h1 {
#logo {
display: none;
position: absolute;
right: 0px;
right: 40px;
bottom: 40px;
}

0 comments on commit b28e2d3

Please sign in to comment.