Advertisement
Guest User

Untitled

a guest
Aug 21st, 2019
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.17 KB | None | 0 0
  1. for(var row= 0, rowStates=[]; row<rowsCount; ++row){
  2. rowStates = sheetStates[row];
  3. timesheetrowsdata += rowStates+(row==rowsCount?'':',');
  4. }
  5.  
  6. //Remove the commas
  7. timesheetcoldata = timesheetrowsdata.replace(/,/g, '');
  8.  
  9. var tmpstr1 = timesheetcoldata.search(/1/);
  10.  
  11. //code here to replace the first round of characters.
  12. //code here to replace the second round of characters.
  13. //and so on.......
  14.  
  15. // strip any leading 0's
  16. while(timesheetcoldata.charAt(0) === '0'){
  17. timesheetcoldata = timesheetcoldata.substr(1);
  18. }
  19.  
  20. 00010000001000000100000010000001000000100000010000001000000100000010000001000000100000010000001000000100000010001111000111100011110001111000111000011100001110000111000011100001110000000000000000000000000
  21.  
  22. 00010000001000000100000010000001000000100000010000001000000100000010000001000000100000010000001000000100000010000001000000100000010000001000000000000000000000000000000000000000000000000000000000000000000
  23.  
  24. 10000001000000100000010000001000000100000010000001000000100000010000001000000100000010000001000000100000010000001000000100000010000001000000000000000000000000000000000000000000000000000000000000000000
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement