Skip to content

Instantly share code, notes, and snippets.

View photonstorm's full-sized avatar

Richard Davey photonstorm

View GitHub Profile
@photonstorm
photonstorm / class_test.js
Created November 15, 2011 12:26
JS question
A = function () {
this.title = null;
this.config = new A.Config();
this.test = function () {
console.log( "What scope difference is there between me and A.init() ?" );
@photonstorm
photonstorm / gist:0ba8b8edcae55400b31f
Created October 8, 2014 14:21
iOS7 / iOS8 full-screen madness workaround
<!doctype html>
<html lang="en">
<html><head>
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<meta charset="UTF-8">
<title>iOS7 fullscreen test</title>
<meta name="description" content="a proof of concept workaround for some iOS7 madness.">
function go(){
mycanvas.fill('#000000');
logo.draw(mycanvas,0,0);
mycanvas.line(0,90,640,90,6,'#FFFFFF');
mycanvas.line(0,296,640,296,6,'#FFFFFF');
myscrolltext.draw(296+10);
var front = new Array();
var back = new Array();
var x = 150+100*Math.cos(angleb);