Skip to content
This repository
Browse code

Made the button PG in the PG-version too

  • Loading branch information...
commit 69888bc17c35617b95eb9087be629dacb87d7c5c 1 parent 2e45620
Erkie authored October 25, 2010
BIN  button-pg.png
19  index.html
@@ -58,6 +58,16 @@
58 58
 			<p><a id="doit" href="javascript:var%20s%20=%20document.createElement('script');s.type='text/javascript';document.body.appendChild(s);s.src='http://erkie.github.com/asteroids.min.js';void(0);" title="Kick ass">Kick ass</a>
59 59
 			</p>
60 60
 			
  61
+			<script type="text/javascript">
  62
+				// "PG" version
  63
+				if ( document.location.search.indexOf('pg') != -1 ) {
  64
+					var doit = document.getElementById('doit');
  65
+					doit.title = 'Webstroyer';
  66
+					doit.innerHTML = 'Webstroyer';
  67
+					doit.style.backgroundImage = 'url(button-pg.png)';
  68
+				}
  69
+			</script>
  70
+			
61 71
 			<p class="none-ie"><a href="javascript:var%20s%20=%20document.createElement('script');s.type='text/javascript';document.body.appendChild(s);s.src='http://erkie.github.com/asteroids.min.js';void(0);">Drag this bookmarklet to your bookmarks bar or a tab and start having some fun on other pages too!</a></p>
62 72
 			
63 73
 			<!--[if IE]>
@@ -138,15 +148,6 @@
138 148
 					var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
139 149
 				})();
140 150
 			</script>
141  
-			
142  
-			<script type="text/javascript">
143  
-				// "PG" version
144  
-				if ( document.location.search.indexOf('pg') != -1 ) {
145  
-					var doit = document.getElementById('doit');
146  
-					doit.title = 'Webstroyer';
147  
-					doit.innerHTML = 'Webstroyer';
148  
-				}
149  
-			</script>
150 151
 		</div>
151 152
 	</body>
152 153
 </html>

0 notes on commit 69888bc

Please sign in to comment.
Something went wrong with that request. Please try again.