Wednesday, August 29th, 2018
/* Remove all spaces in tel: href links so click to call works */
$('a[href^="tel:"]').attr('href', function(_,v){
return v.replace(/\(0\)|\s+/g,'')
});
Tags: Click to call, javascript, jQuery, Links, Phone, Tel, Telephone
Posted in jQuery | No Comments »
Friday, June 3rd, 2016
Tags: javascript, jQuery, Repository, scroll, Vanilla
Posted in jQuery | 1 Comment »
Tuesday, February 17th, 2015
$(window).scroll(function() {
var y_scroll_pos = window.pageYOffset;
var scroll_pos_test = 150;
// set to whatever you want it to be
if(y_scroll_pos > scroll_pos_test) {
$("body").css("background-color","#000");
}
else
{
$("body").css("background-color","#FFF");
}
});
Tags: javascript, scroll, vertical
Posted in jQuery | No Comments »