Skip to content

Instantly share code, notes, and snippets.

View bright-spark's full-sized avatar
♥️
Tinkering with stuff!

martin. bright-spark

♥️
Tinkering with stuff!
View GitHub Profile
@bright-spark
bright-spark / Videogular---Creating-an-Audio-Player.markdown
Created March 9, 2015 19:07
Videogular - Creating an Audio Player
<!doctype html>
<!-- http://taylor.fausak.me/2015/01/27/ios-8-web-apps/ -->
<html>
<head>
<title>iOS 8 web app</title>
<!-- CONFIGURATION -->
@bright-spark
bright-spark / index.html
Last active May 21, 2016 10:44
stainless framework : flexi-flux
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>minimal flux</title>
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, minimum-scale=1, initial-scale=1, user-scalable=no”>
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
@bright-spark
bright-spark / example.html
Last active September 16, 2015 23:12 — forked from kylebarrow/example.html
Prevent links in standalone web apps opening Mobile Safari
<!DOCTYPE html>
<head>
<title>Stay Standalone</title>
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
<script src="stay_standalone.js" type="text/javascript"></script>
</head>
<body>
<ul>
<li><a href="http://google.com/">Remote Link (Google)</a></li>
@bright-spark
bright-spark / _Stay_standalone.md
Last active September 16, 2015 23:13 — forked from irae/_Stay_standalone.md
Stay Standalone: Prevent links in standalone web apps opening Mobile Safari

#Stay Standalone

A short script to prevent internal links to a "webapp" added to iPhone home screen to open in Safari instead of navigating internally.

@bright-spark
bright-spark / gist:41330c65a4bec51ec62b
Last active September 16, 2015 23:13 — forked from cjanis/gist:3908053
Prevent internal links in iOS standalone web apps from opening in Mobile Safari
if (window.navigator.standalone) {
var local = document.domain;
$('a').click(function() {
var a = $(this).attr('href');
if ( a.match('http://' + local) || a.match('http://www.' + local) ){
event.preventDefault();
document.location.href = a;
}
});
}
@bright-spark
bright-spark / Gruntfile.js
Created October 11, 2015 02:28 — forked from konsumer/Gruntfile.js
desktop (node-webkit) & mobile (cordova) static app
'use strict';
module.exports = function(grunt) {
var pkg = grunt.file.readJSON('package.json');
grunt.initConfig({
'pkg': pkg,
'connect': {
@bright-spark
bright-spark / .gitignore
Created October 26, 2015 02:30 — forked from coolaj86/.gitignore
Forward SMS from one number to another using Twilio
config.js