function updateBinary(obj) {
	var value = obj.val();
	if (value == '') {
		return false;
	}
	var table = obj.parents('.matrix_section').find('.pure-table');
	var data = value.split('\n').join('');
	var numb = data.match(/\d/g);

	numb = numb.join("");
	var binaryCount = 0;
	if (numb.match(/0/g) != null) {
		binaryCount += numb.match(/0/g).length;
	}
	if (numb.match(/1/g) != null) {
		binaryCount += numb.match(/1/g).length;
	}

	if (numb.length != 64 || binaryCount != 64 || binaryCount != numb.length) {
		return false;
	}
	var num_length = numb.length;
	for (var i = 0; i < num_length; i++) {
		var item = table.find('td[data-id=' + (i + 1) + ']');
		item.text(numb[i]);
		if (item.text() == "1") {
			item.addClass("active");
		} else {
			item.removeClass("active");
		}
	};
}
/**
 * Generates a frame from binary data.
 * @param  {object} the binary data
 * @return {boolean} false if the binary date is invalid
 */
Generates a frame from binary data.
@param  {object} the binary data
@return {boolean} false if the binary date is invalid
Generates a frame from binary data . @param { object } the binary data @return { boolean } false if the binary date is invalid
function updateBinary(obj) {
	var value = obj.val();
	if (value == '') {
		return false;
	}
	var table = obj.parents('.matrix_section').find('.pure-table');
	var data = value.split('\n').join('');
	var numb = data.match(/\d/g);
	numb = numb.join("");
	var binaryCount = 0;
	if (numb.match(/0/g) != null) {
		binaryCount += numb.match(/0/g).length;
	}
	if (numb.match(/1/g) != null) {
		binaryCount += numb.match(/1/g).length;
	}
	if (numb.length != 64 || binaryCount != 64 || binaryCount != numb.length) {
		return false;
	}
	var num_length = numb.length;
	for (var i = 0; i < num_length; i++) {
		var item = table.find('td[data-id=' + (i + 1) + ']');
		item.text(numb[i]);
		if (item.text() == "1") {
			item.addClass("active");
		} else {
			item.removeClass("active");
		}
	};
}
function updateBinary ( obj ) { var value = obj . val ( ) ; if ( value == '' ) { return false ; } var table = obj . parents ( '.matrix_section' ) . find ( '.pure-table' ) ; var data = value . split ( '\n' ) . join ( '' ) ; var numb = data . match ( / \d / g ) ; numb = numb . join ( "" ) ; var binaryCount = 0 ; if ( numb . match ( / 0 / g ) != null ) { binaryCount += numb . match ( / 0 / g ) . length ; } if ( numb . match ( / 1 / g ) != null ) { binaryCount += numb . match ( / 1 / g ) . length ; } if ( numb . length != 64 || binaryCount != 64 || binaryCount != numb . length ) { return false ; } var num_length = numb . length ; for ( var i = 0 ; i < num_length ; i ++ ) { var item = table . find ( 'td[data-id=' + ( i + 1 ) + ']' ) ; item . text ( numb [ i ] ) ; if ( item . text ( ) == "1" ) { item . addClass ( "active" ) ; } else { item . removeClass ( "active" ) ; } } ; }
Generates a frame from binary data.
Generates a frame from binary data .