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
$.getJSON("http://twitter.com/statuses/user_timeline/username.json?callback=?", function(data) { | |
$("#twitter").html(data[0].text); | |
}); |
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($){ | |
$.yourPluginName = function(el, radius, options){ | |
// To avoid scope issues, use 'base' instead of 'this' | |
// to reference this class from internal events and functions. | |
var base = this; | |
// Access to jQuery and DOM versions of element | |
base.$el = $(el); | |
base.el = el; |
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
var maxHeight = 0; | |
$("div").each(function(){ | |
if ($(this).height() > maxHeight) { maxHeight = $(this).height(); } | |
}); | |
$("div").height(maxHeight); |
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
$("#navigation li:has(ul.sub-navigation)").hover(function () { | |
$(this).children("a").click(function () { | |
return false; | |
}); | |
}); |
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
$(document).ready(function() { | |
var j = 0; | |
var delay = 2000; //millisecond delay between cycles | |
function cycleThru(){ | |
var jmax = $("ul#cyclelist li").length -1; | |
$("ul#cyclelist li:eq(" + j + ")") | |
.animate({"opacity" : "1"} ,400) | |
.animate({"opacity" : "1"}, delay) | |
.animate({"opacity" : "0"}, 400, function(){ |
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
/* Find out if a single checkbox is checked or not, returns true or false:*/ | |
$('#checkBox').attr('checked'); | |
/* Find all checked checkboxes: */ | |
$('input[type=checkbox]:checked'); |
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
$("table#id tr:odd").addClass("odd"); |
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
idleTimer = null; | |
idleState = false; | |
idleWait = 2000; | |
(function ($) { | |
$(document).ready(function () { | |
$('*').bind('mousemove keydown scroll', function () { |
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
var origValue = []; | |
$('input.remember').each ( function (currentIndex) | |
{ | |
origValue.push ( $(this).val () ); | |
$(this).focus ( function () | |
{ | |
$(this).removeClass("unfocused"); | |
var defaultText = $(this).val(); | |
if ( $(this).val () == origValue [ currentIndex ] ) | |
{ |
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 UpdateTableHeaders() { | |
$("div.divTableWithFloatingHeader").each(function() { | |
offset = $(this).offset(); | |
scrollTop = $(window).scrollTop(); | |
if ((scrollTop > offset.top) && (scrollTop < offset.top + $(this).height())) { | |
$(".tableFloatingHeader", this).css("visibility", "visible"); | |
$(".tableFloatingHeader", this).css("top", Math.min(scrollTop - offset.top, $(this).height() - $(".tableFloatingHeader", this).height()) + "px"); | |
} | |
else { | |
$(".tableFloatingHeader", this).css("visibility", "hidden"); |