Anonymous avatar Anonymous committed ea51dd5

point

Comments (0)

Files changed (1)

ThreeWireMatrix/matrix_solver.html

 		  font-weight:bold;
       background-color: #fff;
     }
-
+    .panel_pin_info_form input {
+      width: 40px;
+    }
+    .panel_pin_info_form label {
+      width: 40px;
+      display: inline-block;
+      text-align: right;
+      padding-right: 5px;
+    }
 		</style>
 		<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
 		<script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.18/jquery-ui.min.js"></script>
  					$( "#var_row_count" ).val( rows );
 					$( "#var_col_count" ).val( cols );
           $( "#var_key_count" ).val( rows * cols );
-          for (int i = 0; i < (rows*cols);i++) {
+          console.log(rows*cols);
+          for (var i = 0; i < (rows*cols);i++) {
+            console.log(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;
-	});
-          }
+          	$('<label for="input_key_text_' + i + '">Key</label><input type="text" name="input_key_text_'+i+'" id="input_key_text_'+i+'">').appendTo(s);
+          	$('<label for="input_key_text_' + i + '">Pin R</label><input type="text" name="input_key_text_'+i+'" id="input_key_text_'+i+'">').appendTo(s);
+          	$('<label for="input_key_text_' + i + '">Pin B</label><input type="text" name="input_key_text_'+i+'" id="input_key_text_'+i+'">').appendTo(s);
+          	s.fadeIn("fast").appendTo('#content_holder_pin_forms'); 
+		      }
 				}
 		</script>
 	</head>
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.