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.tall = function() { | |
var self = this; | |
var tall = 0; | |
setTimeout(function() { | |
self | |
.each(function() { | |
var height = $(this).height(); | |
tall = height > tall ? height : tall; | |
}) |
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 PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> | |
<title>jQuery.external</title> | |
<link rel="stylesheet" type="text/css" href="http://github.com/jquery/qunit/raw/master/qunit/qunit.css"/> | |
<script type="text/javascript" src="http://github.com/jquery/qunit/raw/master/qunit/qunit.js"></script> | |
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.min.js"></script> | |
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/swfobject/2/swfobject.js"></script> | |
<script type="text/javascript" src="jquery.external.js"></script> |
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 PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> | |
<title>String.prototype.truncate</title> | |
<link rel="stylesheet" type="text/css" href="http://github.com/jquery/qunit/raw/master/qunit/qunit.css"/> | |
<script type="text/javascript" src="http://github.com/jquery/qunit/raw/master/qunit/qunit.js"></script> | |
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.min.js"></script> | |
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/swfobject/2/swfobject.js"></script> | |
<script type="text/javascript" src="String.prototype.truncate.js"></script> |
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
Scroll = function(end) { | |
this.end = end || 0; | |
this.start = this.getStart(); | |
}; | |
Scroll.prototype = { | |
getStart: function() { | |
return $(window).scrollTop(); | |
}, | |
go: function(callback) { |
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
getKeys = function() { | |
var obj = {}, ret = []; | |
$.each($.makeArray(arguments), function(k, v) { | |
typeof v == 'object' ? | |
$.each(v, function() { ret.push(arguments[0]); }) : | |
ret.push(v); | |
}); | |
return ret; | |
}; | |
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
package { | |
import flash.display.Sprite; | |
import flash.external.ExternalInterface; | |
[SWF(frameRate=1, background=0x000000)] | |
public class Hello extends Sprite { | |
public function Hello() { | |
ExternalInterface.marshallExceptions = true; | |
ExternalInterface.addCallback('hello', function():String { |
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
new function() { | |
var callback = function() { | |
// main code | |
}; | |
// util | |
var script = (function() { | |
var s = document.getElementsByTagName('script'); | |
return s[s.length - 1]; |
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>toFormatString</title> | |
<link rel="stylesheet" href="http://github.com/jquery/qunit/raw/master/qunit/qunit.css"/> | |
<script src="http://github.com/jquery/qunit/raw/master/qunit/qunit.js"></script> | |
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script> | |
<script src="Number.prototype.toFormatString.js"></script> | |
</head> |
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($) { | |
var options = { | |
suffix: '_o' | |
}; | |
$.rollSetup = function(o) { | |
$.extend(options, o); | |
}; | |
$.fn.roll = function roll() { |
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
lazyScript = (function() { | |
var write = document.write; | |
return function(src, override) { | |
try { | |
document.write = override || write; | |
$.getScript(src); | |
} | |
catch(e) {} | |
}; | |
})(); |
OlderNewer