Commits

Anonymous committed 7114038

wip

  • Participants
  • Parent commits 0508c07

Comments (0)

Files changed (1)

File 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/>