JSFiddle - React, Tailwind, and code Playground

by frogggeee McFrogggeee

HTML

select your lunch schedules for each day below <br>
monday:

JavaScript

let shed = prompt("enter schedule");
shed = shed.split(":").join("*60+").split("\n");
for (let i = 0; i < shed.length; i++) {
	if (i%2 == 1) {
  	//shed.splice(i, 1);
  }
}
shed = shed.join("-").split("-");
for ( i = 0; i < shed.length; i++) {
	shed[i] = eval(shed[i]);
  if (shed[i] < 300) {
  	shed[i] += 720;
  }
}
prompt("copy this", shed);