designs.js
/*
	This function looks for change in grid input, and
  sets the grid input's "value" on input change.
*/
This function looks for change in grid input, and
sets the grid input's "value" on input change.
This function looks for change in grid input and sets the grid input ' s " value " on input change .
function changeGrid() {
	$( "#inputHeight" ).on( "change", function( evt ) {
		GRID.rows = evt.target.value;
		$("#inputHeight").attr("value", GRID.rows);
		console.log( "-- Grid rows changed --" );
		console.log( evt );
		getGrid();
	});
	$( "#inputWeight" ).on( "change", function( evt ) {
		GRID.columns = evt.target.value;
		$("#inputWeight").attr("value", GRID.columns);
		console.log( "-- Grid columns changed --" );
		console.log( evt );
		getGrid();
	});
}
function changeGrid ( ) { $ ( "#inputHeight" ) . on ( "change" , function ( evt ) { GRID . rows = evt . target . value ; $ ( "#inputHeight" ) . attr ( "value" , GRID . rows ) ; console . log ( "-- Grid rows changed --" ) ; console . log ( evt ) ; getGrid ( ) ; } ) ; $ ( "#inputWeight" ) . on ( "change" , function ( evt ) { GRID . columns = evt . target . value ; $ ( "#inputWeight" ) . attr ( "value" , GRID . columns ) ; console . log ( "-- Grid columns changed --" ) ; console . log ( evt ) ; getGrid ( ) ; } ) ; }
This function looks for change in grid input, and
sets the grid input's "value" on input change.
This function looks for change in grid input and sets the grid input ' s " value " on input change .
//console.log( evt.target.value ); //console.log( evt.target.value );