Chris Nanney avatar Chris Nanney committed 3175e5f

Fixed comment block, moved counter initialization into jQuery ready, now allow up to 2 seconds for pace.

Comments (0)

Files changed (1)

 	<link rel="stylesheet" type="text/css" href="css/counter.css" />
 	
 
-	<!-- 
-	NOT REQUIRED FOR COUNTER TO FUNCTION, JUST FOR DEMO PURPOSES
-	------------------------------------------------------------>
+	<!-- NOT REQUIRED FOR COUNTER TO FUNCTION, JUST FOR DEMO PURPOSES -->
 	<!-- jQuery from Google CDN, NOT REQUIRED for the counter itself -->
 	<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.5/jquery.min.js"></script>
 	<!-- jQueryUI from Google CDN, used only for the fancy demo controls, NOT REQUIRED for the counter itself -->
 	<script type="text/javascript">
 	//<![CDATA[
 
-	// Initialize a new counter
-	var myCounter = new flipCounter('counter', {value:10000, inc:123, pace:600, auto:true});
-
 	$(function(){
+		
+		// Initialize a new counter
+		var myCounter = new flipCounter('counter', {value:10000, inc:123, pace:600, auto:true});
 
 		/**
 		 * Demo controls
 			range: "max",
 			value: 600,
 			min: 100,
-			max: 1000,
+			max: 2000,
 			step: 100,
 			slide: function( event, ui ) {
 				myCounter.setPace(ui.value);
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.