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
/* A small script to display lightboxes. No IE6 support. */ | |
/*global jQuery: false*/ | |
(function($, window){ | |
"use strict"; | |
$.miniLightbox = {}; | |
var EVENT_NS = 'minilightbox'; | |
var DEFAULT_SETTINGS = { | |
'class': '', |
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
// javascript:(function(){var%20w%20=%20window,h%20=%20w.location.host,p%20=%20w.location.pathname,r%20=%20p.match(/^(\/[^\/]+\/[^\/]+)/),gh%20=%20%27github.com%27,du%20=%20%27documentup.com%27;if%20(r%20&&%20h%20==%20gh)%20{w.location%20=%20%27http://%27%20+%20du%20+%20r[1];}%20else%20if%20(r%20&&%20h%20==%20du)%20{w.location%20=%20%27https://%27%20+%20gh%20+%20r[1];}})(); | |
(function(){ | |
var w = window, | |
h = w.location.host, | |
p = w.location.pathname, | |
r = p.match(/^(\/[^\/]+\/[^\/]+)/), | |
gh = 'github.com', | |
du = 'documentup.com'; | |
if (r && h == gh) { |
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 obj = { | |
foo: 1, | |
bar: 2 | |
}; | |
Object.prototype.oops = function(){}; | |
// Meh. | |
for (var key in obj) { | |
if (obj.hasOwnProperty(key)) { |
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) { | |
function getSelector(hash) { | |
var matches; | |
hash = hash.slice(1); | |
matches = hash.match(/^anchor-select\((.+)\)$/); | |
if (matches) { | |
return decodeURIComponent(matches[1]); | |
} | |
return false; |
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 lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title>Mini slider</title> | |
<link rel="stylesheet" href="mini-slider.css"> | |
</head> | |
<body> | |
<div id="slider"> | |
<!-- The previous button is inserted here --> |
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
/* | |
ParseURL by James Padolsey: http://james.padolsey.com/javascript/parsing-urls-with-the-dom/ | |
*/ | |
// This function creates a new anchor element and uses location | |
// properties (inherent) to get the desired URL data. Some String | |
// operations are used (to normalize results across browsers). | |
function parseURL(url) { | |
var a = document.createElement('a'); |
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
@BKcore | |
@codylindley | |
@KerbalSpaceP | |
@GilbertWehrle | |
@dlctbl | |
@FREE_FACTS | |
@tabatkins | |
@marijnjh | |
@rocket2guns | |
@stripe |
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 lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title>Clock demo</title> | |
<style> | |
svg { | |
display: block; | |
position: absolute; | |
left: 50%; |
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 lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title>SUPER #7</title> | |
<style> | |
html { display: table; width: 100%; height: 100%; background: #000; } | |
body { display: table-cell; vertical-align:middle; text-align:center; margin: 0; } | |
canvas { margin: 0; } | |
h1 { color: #fff; margin: 0 0 10px; font:24px sans-serif; } |
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
/*jshint browser:true */ | |
(function(name, definition) { | |
if (typeof define == 'function') { | |
define(definition); | |
} else if (typeof module != 'undefined') { | |
module.exports = definition(); | |
} else { | |
this[name] = definition(); | |
} | |
})('kib', function(){ |