Skip to content

Commit

Permalink
Slight improvement maybe
Browse files Browse the repository at this point in the history
  • Loading branch information
gyanl committed May 14, 2016
1 parent 8dabaab commit 164496c
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@
document.getElementById('clipboard').style.background = newColour[number];
document.getElementById('generate').style.background = newColour[number];
document.getElementById('c1').style.background = newColour[number];
document.getElementById('c2').style.background = newColour[(number+1)%5];
document.getElementById('c3').style.background = newColour[(number+2)%5];
document.getElementById('c4').style.background = newColour[(number+3)%5];
document.getElementById('c5').style.background = newColour[(number+4)%5];
document.getElementById('c2').style.background = newColour[(number+4)%5];
document.getElementById('c3').style.background = newColour[(number+3)%5];
document.getElementById('c4').style.background = newColour[(number+2)%5];
document.getElementById('c5').style.background = newColour[(number+1)%5];
document.getElementById('clipboard').setAttribute("data-clipboard-text",newColour[n]);


Expand Down Expand Up @@ -82,10 +82,10 @@
<p>

<div id="c1" class="circle"></div>
<div id="c5" class="circle"></div>
<div id="c4" class="circle"></div>
<div id="c3" class="circle"></div>
<div id="c2" class="circle"></div>
<div id="c3" class="circle"></div>
<div id="c4" class="circle"></div>
<div id="c5" class="circle"></div>

</center>
</div>
Expand Down

0 comments on commit 164496c

Please sign in to comment.