This file contains hidden or 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
$(':input.promptText').focus(function() { | |
if($(this).val() == $(this).attr('title')) { | |
$(this).val(''); | |
} | |
}); | |
$(':input.promptText').blur(function resetField() { | |
if(!$(this).val()) { | |
$(this).val($(this).attr('title')); | |
} | |
}); |
This file contains hidden or 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($.browser.msie) { | |
if(!Array.indexOf) { | |
Array.prototype.indexOf = function(obj){ | |
for(var i=0; i<this.length; i++){ | |
if(this[i]==obj){ | |
return i; | |
} | |
} | |
return -1; | |
} |
This file contains hidden or 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 inherit(subclass, superclass) { | |
var temp = function() {}; | |
temp.prototype = superclass.prototype; | |
subclass.prototype = new temp(); | |
} |
This file contains hidden or 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 PopupClass(link, launch_now) { | |
if(link !== undefined) { | |
if(typeof link == "string") { | |
var link = $("#"+link); | |
} | |
this.href = link.attr('href'); | |
this.title = link.attr('title'); | |
this.properties = this.setProperties(); | |
if(launch_now !== undefined && launch_now == true) { | |
return this.launch(); |
This file contains hidden or 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 PseudoClass(autotarget) { | |
this.targets = []; | |
if((autotarget != undefined) && (autotarget == true)) { | |
this.attach(true); | |
} | |
} | |
PseudoClass.prototype.addTarget = function(target) { | |
this.targets.push(target); | |
return target; | |
} |
NewerOlder