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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
<script src="http://code.jquery.com/jquery-2.1.1.min.js" type="text/javascript" charset="utf-8"></script> | |
<script> | |
$(function(){ | |
$('<p>').html('Width').prependTo('body'); | |
$('tr').each(function(){ | |
$(this).children('td').each(function(i){ | |
var $this = $(this); | |
if(!$this.attr('colspan') && !($this.width() == $this.attr("width"))){ |
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
/*! | |
* PubSub.js | |
* --------- | |
* | |
* Extremely basic PubSub functionality. | |
* | |
* To subscribe to the topic `news`: | |
* | |
* PubSub.on("news", function(str){ | |
* alert(str); |
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
.ir{ | |
border:0; | |
font:0/0 a; | |
text-shadow:none; | |
color: transparent; | |
background-color:transparent; | |
} |
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
// If true, start function. If false, listen for INIT. | |
if (Enabler.isInitialized()) { | |
enablerInitHandler(); | |
} else { | |
Enabler.addEventListener(studio.events.StudioEvent.INIT, enablerInitHandler); | |
}; | |
function enablerInitHandler() { | |
// Start ad, initialize animation, | |
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
<style> | |
body.align:before{ | |
content: "Alignment"; | |
} | |
.align td:not([align]), | |
.align td:not([valign]){ | |
border:1px solid red; | |
} | |
body.colspan:before{ |
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
<tr> | |
<td align="left" valign="top" width="20" style="font-family:Arial;font-size:15px;line-height:15px"> </td> | |
<td align="left" valign="top" width="560" style="font-family:Arial;font-size:15px;line-height:15px"> </td> | |
<td align="left" valign="top" width="20" style="font-family:Arial;font-size:15px;line-height:15px"> </td> | |
</tr> | |
<tr> | |
<td align="center" valign="top" bgcolor="#FFFFFF" height="2" width="20" style="line-height:2px;font-size:2px"> </td> | |
<td align="center" valign="top" bgcolor="#f28c9b" height="2" width="560" style="line-height:2px;font-size:2px"> </td> | |
<td align="center" valign="top" bgcolor="#FFFFFF" height="2" width="20" style="line-height:2px;font-size:2px"> </td> | |
</tr> |
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
//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude); | |
//>>description: Normalizes touch/mouse events. | |
//>>label: Virtual Mouse (vmouse) Bindings | |
//>>group: Core | |
//>>excludeEnd("jqmBuildExclude"); | |
(function( $, window, document, undefined ) { | |
var dataPropertyName = "virtualMouseBindings", | |
touchTargetPropertyName = "virtualTouchID", |
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 activeState = function(){ | |
var uriInfo = window.location.pathname.split("/"), | |
pageName = uriInfo[uriInfo.length-1], | |
buttons = $(this).find("li.button"), | |
$button, i; | |
i = buttons.length; | |
while(i--){ | |
$button = $(buttons[i]); | |
if($button.find("a").attr("id") === pageName){ |
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
/* name, duration, timing function, delay, fill mode */ | |
-webkit-animation: fadeIn 700ms ease-in-out 1s both; | |
animation: fadeIn 700ms ease-in-out 1s both; | |
@-webkit-keyframes fadeIn{from{opacity:0}to{opacity:1}} | |
@keyframes fadeIn{from{opacity:0}to{opacity:1}} |
NewerOlder