Skip to content

Commit

Permalink
Added the option to use images as flakes
Browse files Browse the repository at this point in the history
  • Loading branch information
loktar00 committed Dec 7, 2012
1 parent fde1d4f commit 9f610cd
Show file tree
Hide file tree
Showing 3 changed files with 331 additions and 320 deletions.
6 changes: 3 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<input type="button" id="round" value="Rounded"/>
<input type="button" id="shadows" value="Shadows"/>
<input type="button" id="roundshadows" value="Rounded Shadows"/>
<input type="button" id="imagebut" value="Images"/>
<input type="button" id="imgbut" value="Images"/>
<input type="button" id="collection" value="Snow Collection"/>
<input type="button" id="deviceorientation" value="Deviceorientation"/>
<div class="collectonme">
Expand All @@ -22,7 +22,6 @@
<div class="collectonme">
<p>Collect on meeeeee!!!</p>
</div>
</body>
<script type='text/javascript'>
$(document).ready(function(){
$('.collectonme').hide();
Expand Down Expand Up @@ -61,7 +60,7 @@
$("#imgbut").click(function(){
$(document).snowfall('clear');
$('body').css({'background' : 'url(images/smashing.jpg)'});
$(document).snowfall({image :"images/flake.png"});
$(document).snowfall({image :"images/flake.png", minSize: 10, maxSize:32});
});

$("#deviceorientation").click(function(){
Expand All @@ -72,4 +71,5 @@

});
</script>
</body>
</html>
Loading

0 comments on commit 9f610cd

Please sign in to comment.