Anonymous avatar Anonymous committed 7114038

wip

Comments (0)

Files changed (1)

ThreeWireMatrix/matrix_solver.html

 				  }
 				}
 				function keySettingsChanged() {
- 					$( "#var_row_count" ).val( $( "#slider_row_count" ).slider( "value" ) );
-					$( "#var_col_count" ).val( $( "#slider_col_count" ).slider( "value" ) );
-          $( "#var_key_count" ).val( $( "#slider_row_count" ).slider( "value" ) * $( "#slider_col_count" ).slider( "value" ) );
+					var rows =  $( "#slider_row_count" ).slider( "value" );
+					var cols = $( "#slider_col_count" ).slider( "value" );
+ 					$( "#var_row_count" ).val( rows );
+					$( "#var_col_count" ).val( cols );
+          $( "#var_key_count" ).val( rows * cols );
+          for (int i = 0; i < (rows*cols);i++) {
+          	var s = $('<div class="panel_pin_info_form"></div>')
+          	$('<label for="input_key_text_' + i + '">Key Text</label><input type="text" name="key_text[]" id=
+          	$('<p><input type="text" name="key_text[]" id="' + i + '" value="' + i + '" /></p>').fadeIn("fast").appendTo('#content_holder_pin_forms'); 
+		i++;	
+		return false;
+	});
+          }
 				}
 		</script>
 	</head>
               </div>
               <div>
 							  <label for="var_key_count">Total Number of keys:</label>
-							  <input type="text" id="var_key_count" class="var-field" />
+							  <input type="text" id="var_key_count" class="var-field" disabled />
 							</div>
 						</div>
 						<hr/>
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.