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
String.prototype.ucwords = function() { | |
str = this.toLowerCase(); | |
return str.replace(/(^([a-zA-Z\p{M}]))|([ -][a-zA-Z\p{M}])/g, | |
function(s){ | |
return s.toUpperCase(); | |
}); | |
}; |
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($){ | |
$(function(){ | |
//$('.box-content').hide(); | |
var AppRouter = Backbone.Router.extend({ | |
routes: { | |
//"section/:s": "goToSection", |
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
// copy and paste this code into your page source inside <script></script> tags | |
(function($){ | |
$(document).ready(attachEvent); | |
function attachEvent(){ | |
minimum_amount = 1; //update this | |
$form = $('form#commerce_3'); //update this | |
$overlay = $('#overlay'); | |
$processing = $('#processing'); | |
$custom_radio_button = $('#frmItem_130_347'); //update this | |
$custom_donation_input = $('#donation_value_103_347') //update this |
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 applyFormat(value){ | |
value = typeof value == 'number' ? value.toString() : value; | |
value = value.replace(/\$|\,/g, ''); | |
if( isNaN(value) ){ | |
return '$X,XXX'; | |
} | |
var integer = value.split('.')[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
<html> | |
<head> | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script> | |
<script src="showhide.js"></script> | |
<link rel="stylesheet" href="style.css" /> | |
<title>Show Hide Snippet</title> | |
</head> | |
<body> | |
<div id="showhide_container"> | |
<div class="showhide_element">Element #1</div> |
NewerOlder