This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MOBILE = window.MOBILE || {}; | |
MOBILE.QUERIES = (function() { | |
'use strict'; | |
// declare document and windows in variables for performace | |
var doc = document, | |
win = window; | |
var _private = { | |
set: function(args) { | |
// use the HTML5 API matchMedia to target phones and tablets |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
WEB_WORKER = window.WEB_WORKER || {}; | |
WEB_WORKER = (function($, window) { | |
var _private = { | |
worker: null, | |
file: null, | |
web_worker: function() { | |
return !!window.Worker; | |
}, | |
set_url: function(args) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* See blog post for details: http://www.suburban-glory.com/blog?page=171 */ | |
var ANDY = window.ANDY || {}; | |
ANDY.ANIMATION = (function (window) { | |
'use strict'; | |
var _private, doc = document; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;(function(window){ | |
// for browsers without navite bind support | |
if (!Function.prototype.bind) { | |
Function.prototype.bind = function (oThis) { | |
if (typeof this !== "function") { | |
// closest thing possible to the ECMAScript 5 internal IsCallable function | |
throw new TypeError("Function.prototype.bind - what is trying to be bound is not callable"); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* See blog post for details: http://www.suburban-glory.com/blog?page=173 */ | |
;(function(window, document, undefined) { | |
// for browsers without navite bind support | |
if (!Function.prototype.bind) { | |
Function.prototype.bind = function(oThis) { | |
if (typeof this !== "function") { | |
// closest thing possible to the ECMAScript 5 internal IsCallable function | |
throw new TypeError("Function.prototype.bind - what is trying to be bound is not callable"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php namespace content; | |
/** | |
* See blog post for details: http://www.suburban-glory.com/blog?page=174 | |
* | |
* Content_Type | |
* | |
* @package class for creating dynamic Wordpress metaboxes | |
* @author Andy Walpole | |
* @copyright AWalpole | |
* @version 2013 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php namespace content; | |
/** | |
* Category_Add_Field | |
* | |
* redirect() method is called in the header.php file | |
* if the user specifies an external URL in the category field | |
* | |
* @package class for creating dynamic Wordpress metaboxes | |
* @author Andy Walpole | |
* @copyright A Walpole |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@media only screen and (max-width:1280px) and (-webkit-min-device-pixel-ratio: 1.0), | |
only screen and (max-width:1280px) and (min-resolution: 120dpi) { | |
/* ipad 3 portrait / landscape | |
ipad 2 portrait / landscape | |
ipad 1 portrait / landscape | |
amazon kindle fir hd portrait | |
nexus 7 landscape | |
Samsung Galaxy Note 10.1 landscape | |
Samsung Galaxy Tab 2 10.1 landscape | |
LG Nexus 4 portrait |