Skip to content

Instantly share code, notes, and snippets.

#!/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
//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 }
// geo-location shim
// currentely only serves lat/long
// depends on jQuery
;(function(geolocation){
if (geolocation) return;
var cache;
//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'))
}
.mouse{
position: absolute;
background-image: url('../images/cursor.png');
width: 15px;
height: 22px;
z-index: 100;
}
/*! 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;