Template:HomePagePolaroids: Difference between revisions

Template page
(Created page with "<html> <head> <div id="rotate-script"> <script> var ul = document.querySelector('#polaroid-gallery ul'); for (var i = ul.children.length; i >= 0; i--) { ul.appendChild(ul.children[Math.random() * i | 0]); } </script> <script> $("div.thumb.tnone").each( function() { var rNum = (Math.random()*6)-3; $(this).css( { '-webkit-transform': 'rotate('+rNum+'6deg)', '-moz-transform': 'rotate('+rNum+'6deg)', 'transform': 'rotate('+rNum+'6deg)', 'position...")
 
No edit summary
Line 9: Line 9:
</script>
</script>
<script>
<script>
$("div.thumb.tnone").each( function() {
$(".thumb").each( function() {
   var rNum = (Math.random()*6)-3;   
   var rNum = (Math.random()*6)-3;   
   $(this).css( {   
   $(this).css( {   

Revision as of 22:27, 15 May 2024