{icon name='notification'} TikiTest {$tikitest_filename} {tr}Recording to pause press the pause button{/tr} {icon name='pause' alt="{tr}Pause the recording{/tr}"} {tr}Paused to resume press the play button{/tr} {icon name='play' alt="{tr}Resume the recording{/tr}"} {icon name='stop' alt="{tr}Stop the recording{/tr}"} {icon name='notification'}
{jq} function createCookie(name,value,days) { if (days) { var date = new Date(); date.setTime(date.getTime()+(days*24*60*60*1000)); var expires = "; expires="+date.toGMTString(); } else var expires = ""; //document.cookie = name+"="+value+" "; document.cookie = name+"="+value+" "+expires+"; path=/"; // alert("COOKIE="+ document.cookie); } function tikitest_state(state) { createCookie("tikitest_record","",-1); createCookie("tikitest_record",""+state); if (state == '2') { hide("tikitest_pause"); toggleSpan("tikitest_play"); } else if (state == '1') { toggleSpan("tikitest_pause"); hide("tikitest_play"); } else if (state == '3') { location.href="tiki_tests/tiki-tests_edit.php?filename={{$tikitest_filename}}.xml"; } } {{if $tikitest_state eq 1} hide("tikitest_play"); {elseif $tikitest_state eq 2} hide("tikitest_pause"); {/if}} {/jq}