Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for(var row= 0, rowStates=[]; row<rowsCount; ++row){
- rowStates = sheetStates[row];
- timesheetrowsdata += rowStates+(row==rowsCount?'':',');
- }
- //Remove the commas
- timesheetcoldata = timesheetrowsdata.replace(/,/g, '');
- var tmpstr1 = timesheetcoldata.search(/1/);
- //code here to replace the first round of characters.
- //code here to replace the second round of characters.
- //and so on.......
- // strip any leading 0's
- while(timesheetcoldata.charAt(0) === '0'){
- timesheetcoldata = timesheetcoldata.substr(1);
- }
- 00010000001000000100000010000001000000100000010000001000000100000010000001000000100000010000001000000100000010001111000111100011110001111000111000011100001110000111000011100001110000000000000000000000000
- 00010000001000000100000010000001000000100000010000001000000100000010000001000000100000010000001000000100000010000001000000100000010000001000000000000000000000000000000000000000000000000000000000000000000
- 10000001000000100000010000001000000100000010000001000000100000010000001000000100000010000001000000100000010000001000000100000010000001000000000000000000000000000000000000000000000000000000000000000000
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement