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
jQuery(document).ready(function($) { | |
var form = $('form[name="pledgeform"]'), | |
radio = $('input[name="pledge"]'), | |
choice = ''; | |
radio.change(function(e) { | |
choice = this.value; | |
if (choice === 'yes') { | |
form.attr('action', 'payment.php'); |
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
$rs = mysql_query("select p.participant_id, stu_first_name, stu_last_name, | |
SUM(laps_run) as laps, | |
SUM(TRUNCATE(IFNULL(pledge_amt / maxlaps,0),0)) as pledge, | |
SUM(IFNULL(amt_collected,0)) collected | |
from participants as p | |
left join teachers as t on t.teacher_id = p.teacher_id | |
left outer join pledges as pl on pl.participant_id = p.participant_id | |
where pl.teacher_id=$teacher_id | |
group by p.participant_id | |
limit $offset,$rows"); |
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
/* Make dropdown menus work on hover in Bootstrap */ | |
ul.nav li.dropdown:hover > ul.dropdown-menu { | |
display: block; | |
} |
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
/* Change Placeholder color */ | |
::-webkit-input-placeholder { /* WebKit browsers */ | |
color: #000; | |
} | |
:-moz-placeholder { /* Mozilla Firefox 4 to 18 */ | |
color: #000; | |
} | |
::-moz-placeholder { /* Mozilla Firefox 19+ */ | |
color: #000; | |
} |
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 validateZip (zipval) | |
{ | |
var isValid = /^[0-9]{5}(?:-[0-9]{4})?$/.test(zipval); | |
return isValid; | |
} |
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
<a href="change-underline-color.php" style="text-decoration: none; border-bottom: 1px solid #999999">change underline color</a> |
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
/* Get Rid of scrollbars (not seen in other browsers) */ | |
#popup { overflow: hidden; } | |
/* Get Rid of anchor border (not seen in other browsers) */ | |
.links img { border:none; } |
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
/* | |
IE | |
Engine: Trident | |
CSS-prefix: -msie | |
Firefox | |
Engine: Gecko | |
CSS-prefix: -moz | |
Opera | |
Engine: Presto | |
CSS-prefix: -o |
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 validatePhone(phone) { | |
var reg = /^[(]{0,1}[0-9]{3}[)]{0,1}[-\s\.]{0,1}[0-9]{3}[-\s\.]{0,1}[0-9]{4}$/; | |
return reg.test(phone); | |
} |
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
return value.replace(/\D/g,'').length===10; |
NewerOlder