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
/*! | |
* Geolocation HTML5 API Polyfill/Shim | |
* | |
* This polyfill fixes geolocation for miscellaneous web browsers. | |
* It is tested and supports IE 7+, Chrome 11+ and Firefox 3.6+ | |
* | |
* @Deps: http://geoplugin.net/json.gp | |
* | |
* @author: Yannick Albert | |
* @url: http://www.yckart.com/ |
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
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
Version 2, December 2004 | |
Copyright (C) 2012 Yannick Albert <http://yckart.com> | |
Everyone is permitted to copy and distribute verbatim or modified | |
copies of this license document, and changing it is allowed as long | |
as the name is changed. | |
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE |
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
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
Version 2, December 2004 | |
Copyright (C) 2012 Yannick Albert <http://yckart.com> | |
Everyone is permitted to copy and distribute verbatim or modified | |
copies of this license document, and changing it is allowed as long | |
as the name is changed. | |
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE |
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
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
Version 2, December 2004 | |
Copyright (C) 2012 Yannick Albert <http://yckart.com> | |
Everyone is permitted to copy and distribute verbatim or modified | |
copies of this license document, and changing it is allowed as long | |
as the name is changed. | |
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE |
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
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
Version 2, December 2004 | |
Copyright (C) 2012 Yannick Albert <http://yckart.com> | |
Everyone is permitted to copy and distribute verbatim or modified | |
copies of this license document, and changing it is allowed as long | |
as the name is changed. | |
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE |
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'> | |
<style> | |
ul { | |
float:left; | |
margin: 5px 0 0 5px; |
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
jQuery.konami = function(fn, code) { | |
// ↑ ↑ ↓ ↓ ← → ← → B A | |
code = code || [38, 38, 40, 40, 37, 39, 37, 39, 66, 65]; | |
var i = 0; | |
$(document).keydown(function(e) { | |
var char = typeof code === 'string' ? String.fromCharCode(e.which).toLowerCase() : e.which; | |
i = char === code[i] ? i + 1 : 0; | |
if (i === code.length) { | |
fn(); |
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($) { | |
$.fn.act = function() { | |
var args = arguments; | |
return this.each(function() { | |
for (var i = args.length; i--;) { | |
$(this).on(args[i][0], args[i][1], args[i][2]); | |
} | |
}); | |
}; | |
})(jQuery); |
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 getPrefix = (function(browser) { // Closure for putting result in cache | |
var prefixes = {firefox:'moz', applewebkit:'webkit', webkit:'webkit', opera:'o', msie:'ms'}; | |
for (var p in prefixes) | |
if (browser.indexOf(p) !== -1) return prefixes[p]; | |
return false; | |
})(navigator.userAgent.toLowerCase()); | |
// console.log(getPrefix); |
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
// http://kenany.me/blog/base64-js/ | |
var utf8 = { | |
encode: function(str) { return unescape( encodeURIComponent(str) ); }, | |
decode: function(str) { return decodeURIComponent( escape(str) ); } | |
}; |
OlderNewer