i have an html page that puts the worker on pausaa time which will be subsctracted from his/her day job the problem is that if he/she refresh the time the timer starts from the beeggining automatically.i want it to continue in its normal flow .Is there any way to make the page not refreshable or some other kind of solution. TY in advance.
<script>
$(".example").TimeCircles({start: true,circle_bg_color: "#FFFFFF", time: { Days: {show: false}, Hours: {show: false}, Minutes: {show: true}}})
.addListener(
function(unit,value,total) {
if (total == 20) {
document.body.style.backgroundColor = "#FFD150";
} else if (total == 10) {
document.body.style.backgroundColor = "#E84141";
} else if (total == 0) {
document.body.style.backgroundColor = "#000000";
}
}
);
addEventListener("click", function() {
var
el = document.documentElement
, rfs =
el.requestFullScreen
|| el.webkitRequestFullScreen
|| el.mozRequestFullScreen
;
rfs.call(el);
});
</script>
