Skip to content

Instantly share code, notes, and snippets.


Marc Kubischta marckubischta

View GitHub Profile
marckubischta / click-tracker.html
Created Jun 30, 2020
Android Netrunner Click Tracker
View click-tracker.html
style="font-family: KAOMO, Hack, Source Code Pro;
font-size: 500%">
onclick="document.querySelector('#clicks').textContent =
Number(document.querySelector('#clicks').textContent) + 1;">+</div>
<div id="clicks"
View detectanimation.js
function isAnimatedGif(src, cb) {
var request = new XMLHttpRequest();'GET', src, true);
request.responseType = 'arraybuffer';
request.addEventListener('load', function () {
var arr = new Uint8Array(request.response),
i, len, length = arr.length, frames = 0;
// make sure it's a gif (GIF8)
if (arr[0] !== 0x47 || arr[1] !== 0x49 ||
You can’t perform that action at this time.