Skip to content

Instantly share code, notes, and snippets.

View scmx's full-sized avatar

Albert Arvidsson scmx

View GitHub Profile
@scmx
scmx / README.md
Last active November 29, 2022 13:28 — forked from tessalt/gruntfile.js
Update 0.4.1 gruntfile with additions to support both jade and html. Add separate diff with changes needed after using generator-angular 0.5.1 Create a new app with `yo angular` and then apply this diff
@scmx
scmx / hide-idle-cursor.md
Last active December 17, 2022 05:27 — forked from josephwegner/jquery-hideIdleCursor.js
Hide your cursor on a web page when it is idle. Great if you're using a web page for some sort of TV Display and don't want the cursor messing things up. #javascript #cursor #css #idle #hide

Hide your cursor on a web page when it is idle

Great if you're using a web page for some sort of TV Display and don't want the cursor messing things up

document.addEventListener("DOMContentLoaded", () => {
  let idleMouseTimer;
  let forceMouseHide = false;

 document.body.style.cursor = "none";