2015-10-21
- jennifer
- martym
if (typeof window.localStorage == 'undefined' || typeof window.sessionStorage == 'undefined') (function () { | |
var Storage = function (type) { | |
function createCookie(name, value, days) { | |
var date, expires; | |
if (days) { | |
date = new Date(); | |
date.setTime(date.getTime()+(days*24*60*60*1000)); | |
expires = "; expires="+date.toGMTString(); |
At the top of the file there should be a short introduction and/ or overview that explains what the project is. This description should match descriptions added for package managers (Gemspec, package.json, etc.)
Show what the library does as concisely as possible, developers should be able to figure out how your project solves their problem by looking at the code example. Make sure the API you are showing off is obvious, and that your code is short and concise.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
Version 2, December 2004 | |
Copyright (C) 2011 YOUR_NAME_HERE <YOUR_URL_HERE> | |
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 |
/* jQuery Tiny Pub/Sub - v0.7 - 10/27/2011 | |
* http://benalman.com/ | |
* Copyright (c) 2011 "Cowboy" Ben Alman; Licensed MIT, GPL */ | |
(function($, o){ | |
o = $({}); | |
$.each({ | |
subscribe: 'on', |
/*! | |
* jQuery Tiny Pub/Sub for jQuery 1.7 - v0.1.1 - 27/10/2011 | |
* Based on @cowboy Ben Alman's REALLY tiny pub/sub. | |
* 1.7 specific updates by @addyosmani. | |
* bytes shaved by @furf | |
* Copyright maintained by @cowboy. | |
* Dual licensed under the MIT and GPL licenses. | |
*/ | |
(function($){ |
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
Version 2, December 2004 | |
Copyright (C) 2011 Dave Furfero <http://furf.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 |
Copyright (c) 2011 Dave Furfero, http://furf.com | |
Permission is hereby granted, free of charge, to any person obtaining | |
a copy of this software and associated documentation files (the | |
"Software"), to deal in the Software without restriction, including | |
without limitation the rights to use, copy, modify, merge, publish, | |
distribute, sublicense, and/or sell copies of the Software, and to | |
permit persons to whom the Software is furnished to do so, subject to | |
the following conditions: | |
(function(j,q,u,e,r,y){if(typeof(jQuery)=='undefined'){(q=j.createElement(q)).type='text/javascript';if(r){q.async=true;}q.src='//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js';u=j.getElementsByTagName(u)[0];q.onload=q.onreadystatechange=(function(){if(!e&&(!this.readyState||this.readyState=='loaded'||this.readyState=='complete')){e=true;y();q.onload=q.onreadystatechange=null;u.removeChild(q);}});u.appendChild(q);}else{y();}})(document,'script','head',false,false,(function(){$(function(){ | |
/* code goes here */ | |
});})); | |
// readable: | |
(function (j, q, u, e, r, y) { | |
if (typeof(jQuery) == 'undefined') { | |
(q = j.createElement(q)).type = 'text/javascript'; | |
if (r) { q.async = true; } |
/** | |
* modified from http://gist.github.com/527683 | |
* only improve slightly to get small | |
*/ | |
var ie = function(v, p, needle, undef) { | |
needle = p.getElementsByTagName('br'); | |
while( | |
p.innerHTML = '<!--[if gt IE ' + (++v) + ']><br><![endif]-->', |