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
/*! hasflash.js version 1.1 | |
* Flash Detect from MIT/GPL - http://jquery.thewikies.com/swfobject/ | |
* */ | |
/*jslint onevar: true, undef: true, eqeqeq: true, regexp: true, newcap: true, immed: true */ | |
/*globals navigator, window, document */ | |
(function(window, Plugin, footprint){ | |
if(window[footprint]){return;} | |
else {window[footprint]=1;} | |
var getFlashVersion = function() { | |
var flashVersion; |
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
.mouse{ | |
position: absolute; | |
background-image: url('../images/cursor.png'); | |
width: 15px; | |
height: 22px; | |
z-index: 100; | |
} |
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
//Duck Punch jQuery SWFObject into submission and then hook it up on a date with SWFAddress | |
(function($){ | |
var _oldFlash = jQuery.fn.flash; | |
$.fn.flash = function(){ | |
var ret = _oldFlash.apply(this,arguments); | |
this.each(function(){ | |
var $flash = $(this).find('object').andSelf().filter('object'); | |
if (typeof SWFAddress != 'undefined') { | |
SWFAddress.addId($flash.attr('id')) | |
} |
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
// geo-location shim | |
// currentely only serves lat/long | |
// depends on jQuery | |
;(function(geolocation){ | |
if (geolocation) return; | |
var cache; |
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
//For use on the jquery functions that except selectors | |
jQuery.fn.atLeastOne = function(prop, selectorsArr) { | |
var ret = 0, self = this, | |
testSelector = function(value){ | |
return self[prop].apply(self, [value]).size() > 0; | |
}; | |
$.each(selectorsArr, function(i, value){ | |
ret = testSelector(value); | |
// break loop if found | |
if(ret) { 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
#!/usr/bin/perl -w | |
#Create a list of files with ,0 and ,1 issues. | |
open(FILES, 'find . -regextype posix-extended -iregex .*,[0-9]+[\.][a-z]+$ |'); | |
@theFiles=<FILES>; | |
close(FILES); | |
foreach $file (@theFiles) | |
{ | |
# Remove end of line |
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
FWImage | |
FWPage | |
FWArticle |
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:void((function(){ | |
var script=document.createElement('script'); | |
script.src='http://yui.yahooapis.com/2.8.0r4/build/yuiloader/yuiloader-min.js'; | |
script.setAttribute('type', 'text/javascript'); | |
document.getElementsByTagName('HEAD')[0].appendChild(script); | |
var loaderCheck = setInterval(function(){ | |
if(window['YAHOO']) { | |
clearInterval(loaderCheck); | |
doit(); |
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
.mouse, #preview{ | |
position: absolute; | |
background-repeat: no-repeat; | |
height: 22px; | |
min-width: 15px; | |
z-index: 100; | |
} | |
.mouse{ | |
background-image: url('../images/cursor.png'); |
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 rand(min, max) { | |
return Math.floor(Math.random() * (max - min)) + min; | |
} |
OlderNewer