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:function r(){$("#page_content,#page_wrapper").width($("#page_wrapper").width()+$("#capital").width());$("#application").css("margin-right",0); $("#capital").remove();return false;} r();void(0); |
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(){ | |
//Get all the update panel requests | |
var requests = Sys.WebForms.PageRequestManager.getInstance(); | |
//When an update panel begins to update | |
requests.add_beginRequest(ShowPageLoader); | |
//When an update panel completes loading | |
requests.add_endRequest(HidePageLoader); | |
}; |
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($){ | |
$.fn.equalHeight = function(ignorePadding) { | |
//Matches the height of all the passed in items | |
if(this.length){ | |
var tallest = 0; | |
var tallestPadding = 0; | |
var paddings=[]; | |
//loop through the items, save the paddings for each and get the tallest height | |
this.each(function(i) { |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8" /> | |
<title>Calculating zoom using Javascript</title> | |
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.6/jquery.min.js"></script> | |
<script> | |
function hasPageBeenResized() { | |
var isResized; |
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
$.extend({ | |
includeCss: function(cssLink, isPrint, callbackFn) { | |
var $head = $("head"); | |
//Make sure it's a valid string and not already included in the head | |
if (typeof cssLink === "string" && cssLink.length > 1 && $head.find("link[href='" + cssLink + "']").length <= 0) { | |
//Create a new link element | |
var $newLinkTag; | |
var mediaType = (isPrint) ? 'print' : 'all'; | |
//Needed for IE8 and lower |
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
var scores=[]; | |
jQuery(".scores").each(function(i){ | |
jQuery.each(jQuery(this).text().split("-"), function(key,value){ | |
scores.push(parseInt(value)); | |
}) | |
}); | |
console.log(scores.sort(function(a,b){return a-b;})); |
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
var list = $$("#item-page-wrapper .list-items table tbody .lineItemMainInfo .lineItemPart strong"); | |
var total=0; | |
for(i=0; i<list.length;i++){ | |
total += parseFloat(list[i].innerText.replace("$","")); | |
} | |
alert(list.length+" items for a total of: $"+total.toFixed(2)); |
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 isTouchDevice(){ | |
try{ | |
document.createEvent("TouchEvent"); | |
return true; | |
}catch(e){ | |
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
(function(){ | |
//Numbers | |
var num = 0; | |
var perMinute = 75; | |
var perSecond = perMinute / 60; | |
//Element selection | |
var count = document.getElementById("count"); | |
function update(){ |
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
<nav class="container_12"> | |
<?php | |
//Counter | |
$i=0; | |
//An array that will eventually contain the correct top-level navigation items in it | |
$menu_arr = array(); | |
//Loop though all the nav items in Wordpress | |
foreach ( wp_get_nav_menu_items('Nav') as $key => $item ) { |
OlderNewer