Skip to content

Instantly share code, notes, and snippets.

View collingo's full-sized avatar

Nick Collings collingo

View GitHub Profile
@k33g
k33g / make-manifest.js
Created October 23, 2011 14:41
Nodejs script -> create manifest (cache)
var lib = require("./manifest.js");
lib.mkmanifest({
filename : "cache"
,path : "../coffee"
,version : "02"
,exclude : ['/.DS_Store', '/.htaccess', '/cache.manifest']
/*
,network : ['/connect.php','/read.php']
,fallback : ['/offline.html']
@por
por / stay_standalone.js
Created June 23, 2011 09:23 — forked from kylebarrow/example.html
Prevent links in standalone web apps opening Mobile Safari
// Mobile Safari in standalone mode
if(("standalone" in window.navigator) && window.navigator.standalone){
window.addEventListener("load",function() {
links = document.getElementsByTagName('a');
for (var i=0; i < links.length; i++)
{
// Don't do this for javascript: links