Skip to content

Instantly share code, notes, and snippets.

/*! 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;
.mouse{
position: absolute;
background-image: url('../images/cursor.png');
width: 15px;
height: 22px;
z-index: 100;
}
//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'))
}
// geo-location shim
// currentely only serves lat/long
// depends on jQuery
;(function(geolocation){
if (geolocation) return;
var cache;
//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 }
#!/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
FWImage
FWPage
FWArticle
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();
.mouse, #preview{
position: absolute;
background-repeat: no-repeat;
height: 22px;
min-width: 15px;
z-index: 100;
}
.mouse{
background-image: url('../images/cursor.png');
function rand(min, max) {
return Math.floor(Math.random() * (max - min)) + min;
}