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
// USE either script 1 or script 2, don't combine! | |
// SCRIPT 1: | |
$(document).ready(function(){ | |
$(".SearchResultsTop .Left span").html(function(index, text) { | |
return text.replace('items matching your criteria', 'Tests matching'); | |
}); | |
}); |
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
overlayBox.setup({ | |
content : content, | |
width : 800, | |
//height : null, | |
//modal : false, | |
//title : "My Title", | |
//padding :"0px", | |
//resize : false, | |
//resizeType : "fixed" or "generated", | |
//CSSBG : 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
var hVehicleSearchVal = $('.hVehicleSearch').val(); | |
if (hVehicleSearchVal.indexOf("carSearch") != -1) { | |
// Not in the String | |
} else { | |
// In the string | |
} |
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 prm = Sys.WebForms.PageRequestManager.getInstance(); | |
prm.add_endRequest(function() { | |
// stuff | |
}); |
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
/* place inside function */ | |
jQuery.event.trigger('OverlayBoxonOpen'); | |
/* call custom event */ | |
$(document).bind('OverlayBoxonOpen', function () { alert('test') }); |
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 ticketcreate() | |
{ | |
var DomainName = $("#YourDomainNameTSUBFooter").val(); | |
var SpecificReq = $("#TopSignUpBoxReqFooter").val(); | |
var AvgOrders = $("#TopSignUpBoxOrdersFooter").val(); | |
var PhoneNumber = $("#TopSignUpBoxPhoneFooter").val(); | |
var Em = $("#YourEmailAddressTSUBFooter").val(); | |
var Fn = $("#TopSignUpBoxFirstNameFooter").val(); |
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 IsEmail(email) { | |
var regex = /^([a-zA-Z0-9_\.\-\+])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/; | |
return regex.test(email); | |
}; | |
if(IsEmail($('#EmailAddress').val())==false){ | |
/* Do Stuff */ | |
} |
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
$(document).bind('DOMSubtreeModified', function () { | |
/* Do Anything */ | |
}); |
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
place in head: | |
<script src="//www.microsoftTranslator.com/ajax/v3/WidgetV3.ashx?siteData=ueOIGRSKkd965FeEGM5JtQ**&ctf=False&ui=true&settings=undefined&from=en" type="text/javascript"></script> | |
<script type="text/javascript" src="/scripts/siteJS/SCETranslate.js"></script> | |
Place as HTML: | |
<div class="TranslateSelect notranslate"> | |
<a href="javascript:void(0)" onclick="BuildLanguageDropDown(this)" class="TranslateButton"><span>Translate</span><i class="desktopicon-down-open-big icon-arrow-down"></i></a> | |
<div class="TranslateDropDown"> | |
<div class="CurrentlyTranslating"> |
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 sliderResizeTimer; | |
clearTimeout(sliderResizeTimer); | |
sliderResizeTimer = setTimeout(function() { | |
// DO something every 100ms | |
}, 100); | |
OlderNewer