00:00:00

picoStoper()

picoAjax - Demo 36



w sekcji: head
<script src="picoAjax.mini.js"></script>

<script>
picoEvent(window,'keydown', function(evt){SS(evt)});

function SS(evt) {
     evt = evt || window.event;
    if (evt.keyCode == 32) {
	 clearTimeout(_pS);
	 picoLock('b1', false);
    }
 };
 
</script>

<style>
h1 {
 font:bold 150px verdana; color:red;
 text-align:center;
}
</style>
w sekcji: body
<button id="b1" onclick="picoLock('b1', true); picoLock('b2', false); picoStoper('czas', -1,-1,-1);">Start</button>
<button title="[Space]" id="b2" onclick="picoLock('b1', false); picoLock('b2', true); clearTimeout(_pS);">Stop</button>
<button title="" onclick="picoRefresh()">Reset</button>
Demo a)
by R. Kurek 2016