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 addCommas(nStr) | |
{ | |
nStr += ''; | |
x = nStr.split('.'); | |
x1 = x[0]; | |
x2 = x.length > 1 ? '.' + x[1] : ''; | |
var rgx = /(\d+)(\d{3})/; | |
while (rgx.test(x1)) { | |
x1 = x1.replace(rgx, '$1' + ',' + '$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
<?php | |
// state options value | |
$statesarr = array( | |
"AL" => "Alabama", | |
"AK" => "Alaska", | |
"AZ" => "Arizona", | |
"AR" => "Arkansas", | |
"CA" => "California", | |
"CO" => "Colorado", | |
"CT" => "Connecticut", |
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
// CalSum Function with One Core Parameter and Three Optional Parameters | |
function calSumR(dR1,dP1,dR2,dP2,dR3,dP3,dR4,dP4) { | |
var count=dR1.length; | |
var t1= new RegExp(dP1); | |
var t2= new RegExp(dP2); | |
var t3= new RegExp(dP3); | |
var t4= new RegExp(dP4); | |
var s=0; | |
for (i=0;i<count;++i){ | |
var v1=dR1[i][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
// CalSum Function with Three Optional Parameters | |
function calSumC(dR1,dP1,dR2,dP2,dR3,dP3) { | |
var count=dR1.length; | |
var t1= new RegExp(dP1); | |
var t2= new RegExp(dP2); | |
var t3= new RegExp(dP3); | |
var s=0; | |
for (i=0;i<count;++i){ | |
var v1=dR1[i][0]; | |
var v2=dR2[i][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
$j(window).scroll(function(){ | |
$navp = $j('#mm-nav'); | |
$nav = $j('#mm-nav li a'); | |
$navp = $j('#mm-nav'); | |
$nav = $j('#mm-nav li a'); | |
for(var i=1; i<8; i++) { | |
var os = i === 7 ? 190 : 90; | |
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 filterPath(string) { | |
return string | |
.replace(/^\//,'') | |
.replace(/(index|default).[a-zA-Z]{3,4}$/,'') | |
.replace(/\/$/,''); | |
} | |
var locationPath = filterPath(location.pathname); | |
var scrollElem = scrollableElement('html', 'body'); | |
$j('body a[href*=#]').each(function() { | |
var thisPath = filterPath(this.pathname) || locationPath; |
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
.fix:after { | |
content: "."; | |
display: block; | |
height: 0; | |
clear: both; | |
visibility: hidden; | |
} | |
.fix | |
{ | |
display: inline-table; |
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
.rightArrow(@color, @alpha, @size) { | |
left: 100%; | |
border: solid transparent; | |
content: " "; | |
height: 0; | |
width: 0; | |
position: absolute; | |
pointer-events: none; | |
border-color: hsla(hue(@color), saturation(@color), lightness(@color), @alpha); | |
border-left-color: @color; |