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
var fnAppendToBody = (function(){ | |
var domBody = document.body; | |
try { | |
var d = document.createElement('div'); | |
domBody.appendChild( d ); | |
d.parentNode.removeChild( d ); | |
} catch(e) { | |
domBody = document.documentElement.getElementsByTagName('body')[0]; |
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
<div class="label">Heading: <strong id="lblHeading">0</strong></div> | |
<div class="label">Attitude: <strong id="lblAttitude">0</strong></div> | |
<div class="label">Bank: <strong id="lblBank">0</strong></div> | |
<script type="text/javascript"> |
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
//Check if Google API script is installed and | |
//check if Google Earth namespaace is there | |
if(!google || !google.earth){ | |
return false; | |
} | |
//Check if plugin is supported or installed | |
if(!google.earth.isSupported() || !google.earth.isInstalled()){ | |
return false; | |
} | |
//We can use it |
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 AnimatePathString() { | |
this._ = { | |
"animating": false, | |
"tmrID": null | |
}; | |
if (arguments.length >= 3) { | |
this.start.apply(this, arguments); | |
} | |
} |
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
<!DOCTYPE html> | |
<!--[if lt IE 7]> <html class="lt-ie9 lt-ie8 lt-ie7"> <![endif]--> | |
<!--[if IE 7]> <html class="lt-ie9 lt-ie8"> <![endif]--> | |
<!--[if IE 8]> <html class="lt-ie9"> <![endif]--> | |
<!--[if gt IE 8]><!--> <html class=""> <!--<![endif]--> | |
<head> | |
<meta charset="utf-8"> | |
<title></title> | |
<meta name="description" content="" /> | |
<meta name="keywords" content="" /> |
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
var ie = (function(){ | |
var undef, | |
v = 3, | |
div = document.createElement('div'), | |
all = div.getElementsByTagName('i'); | |
while ( | |
div.innerHTML = '<!--[if gt IE ' + (++v) + ']><i></i><![endif]-->', | |
all[0] |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title></title> | |
</head> | |
<body> | |
<h3>Landscape correct proportions</h3> | |
<div class="image__panel"> |
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
/** | |
* I can do this | |
*/ | |
function AwesomeArray(){ | |
Array.call( this ); | |
} | |
AwesomeArray.prototype = Object.create(Array.prototype); | |
var awesomeness = new AwesomeArray(); | |
awesomeness.push("example"); |
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
class ValidatedMap { | |
clear(){ | |
this._.clear(); | |
} | |
constructor( _validationRules, _defaultValues ){ | |
let validationRules = _validationRules || null; | |
let defaultValues = _defaultValues || []; | |
this._ = new Map(); |
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
[ | |
"Oh, cookies! I can't wait to toss them.", | |
"I've seen a lot, but nothing would ever make me cut out my tongue.", | |
"If you yield only to a conqueror, then prepared to be conquered.", | |
"Why don't they just call him Girl George?", | |
"Can you hurry up. My horse is getting tired.", | |
"You've seen those movies where they say \"Make my day.\" or \"I'm your worst nightmare.\", well listen to this one. Rubber Baby Buggy Bumpers!", | |
"What killed the dinosaurs? The Ice Age!", | |
"If you drop your gun now, I promise I won't kill you.", | |
"That's for sleeping with my wife!", |
OlderNewer