Skip to content

Commit

Permalink
Add wake-lock to macro-tool
Browse files Browse the repository at this point in the history
  • Loading branch information
asontu committed Dec 11, 2023
1 parent 3ed48b5 commit 51455bf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion macro-tool.html
Original file line number Diff line number Diff line change
Expand Up @@ -616,9 +616,10 @@
<option value="4">4 tabs</option>
<option value="5">5 tabs</option>
</select><input type="text" id="rowTo" value="~" size="40" />
</td><td>
</td><td style="position:relative">
<input type="text" id="sepTo" size="10" /><label><input type="checkbox" checked="checked" id="lnTo" />\n</label>
<button type="button" id="goTo">\/ Go</button>
<a style="position:absolute;right:1em" href="javascript:(async function(){wakeLock = await top.navigator.wakeLock.request('screen');if(top.document.title.indexOf('🟢')<0){top.document.title='🟢'+top.document.title;}wakeLock.onrelease=function(e){if(top.document.title.indexOf('🟢')>-1){top.document.title=top.document.title.replace('🟢','')}}})();">Wake lock</a>
</td></tr>
<tr height="33%">
<td colspan="2"><input type="text" id="countOutFrom" size="10" value="1" readonly /><textarea id="outFrom" wrap="off"></textarea></td>
Expand Down

0 comments on commit 51455bf

Please sign in to comment.