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 href="http://google.com">Click me</a> | |
function doSomething(e) { | |
e.preventDefault(); | |
console.log(this); | |
} | |
var obj = { | |
doIt: function(e) { | |
e.preventDefault(); |
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
menuMobilePtr.find("li.nav a").click(function() { | |
menuMobileModalPtr.lightbox_me({centered: true, overlayCSS: {background: "black", opacity: 0.65}, | |
onLoad: function() { | |
$('body').css({ | |
position: 'fixed', | |
width: '100%' | |
}); | |
$('#menu-mobile-modal').css({ | |
top:'10%', | |
height: '30%' |
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 APP; | |
APP = (function(){ | |
var myPrivateVariable = "my private content"; | |
var application = { | |
init: function(){ | |
console.log(myPrivateVariable); | |
}, |
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
//includes/mobile/base.html | |
<link rel="shortcut icon" href="http://www.xojane.com/sites/default/files/janepratt_favicon_1.png" type="image/x-icon" /> | |
{% block head_canonical_url %} | |
<link rel="canonical" href="http://www.xojane.com/" /> | |
{% endblock %} | |
// templates/mobile/article.html | |
{% import "includes/macros.html" as macros %} | |
{% block head_canonical_url %} | |
<link rel="canonical" href="{{macros.articleUrl(current_article, _conf.site_production_domain)}}" /> |
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
############################## | |
# _ | |
# | |_ _ __ ___ _ ___ __ | |
# | __| '_ ` _ \| | | \ \/ / | |
# | |_| | | | | | |_| |> < | |
# \__|_| |_| |_|\__,_/_/\_\ | |
# | |
############################# | |
# | |
# COPY AND PASTE |
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>Canvas Waterfall · CodePen</title> | |
<!-- | |
Copyright (c) 2012 xtobal, http://codepen.io/xtobal | |
Permission is hereby granted, free of charge, to any person obtaining |
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
### | |
Text masked spring particles | |
Author: Kushagra Gour a.k.a. Chin Chang | |
(@chinchang457) | |
### | |
# requestanimationframe polyfill | |
window.requestAnimFrame = (-> | |
return window.requestAnimationFrame || | |
window.webkitRequestAnimationFrame || |
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>Multiphase flow · CodePen</title> | |
<!-- | |
Copyright (c) 2012 Tim Holman, http://codepen.io/tholman | |
Permission is hereby granted, free of charge, to any person obtaining |
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
### | |
Text masked spring particles | |
Author: Kushagra Gour a.k.a. Chin Chang | |
(@chinchang457) | |
### | |
# requestanimationframe polyfill | |
window.requestAnimFrame = (-> | |
return window.requestAnimationFrame || | |
window.webkitRequestAnimationFrame || |
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
### | |
Text masked spring particles | |
Author: Kushagra Gour a.k.a. Chin Chang | |
(@chinchang457) | |
### | |
# requestanimationframe polyfill | |
window.requestAnimFrame = (-> | |
return window.requestAnimationFrame || | |
window.webkitRequestAnimationFrame || |