See which postage options are available for all USPS shipping and mailing services.
Expand All
');
console.log(k);
});
$(".vdrawers .expandv").on('touch click',function(e){
e.preventDefault();
if ($(this).parents('.vdrawers').hasClass('active')){
$(this).text('Expand All');
$(this).parents('.vdrawers').removeClass('active');
$(this).parents('.vdrawers').find('.v-tab div').removeClass('active');
console.log('expand active - removing active');
} else {
$(this).text('Hide All');
$(this).parents('.vdrawers').find('.v-tab div').addClass('active');
$(this).parents('.vdrawers').addClass('active');
console.log("expand not active - adding active");
}
});
$('.vdrawers .v-tab div a').not('sup').on('click touch', function(e){
console.log('Clicked on v-tab link');
e.preventDefault();
if($(window).width()>=767){
console.log('desktop:start');
$this = $(this).parents('.vdrawers');
$this.find('.v-tab div.active').removeClass('active');
$this.find('.v-tab-content div.active').removeClass('active');
$(this).parent().addClass('active');
$this.find('.v-tab-content div').eq($this.find('.v-tab div.active').index()).addClass('active');
console.log('desktop:'+$this.html());
console.log('desktop:end');
$('html, body').animate({scrollTop: $(this).parents('.vdrawers').find('.v-tab-content div').eq($('.v-tab div.active').index()).offset().top}, 500);
} else if ($(window).width()<767) {
if ($(this).parent().hasClass('active')){
$(this).parent().removeClass('active');
$('html, body').animate({scrollTop: $(this).parent().offset().top}, 500);
} else {
$(this).parents('.vdrawers').find('.v-tab div.active').removeClass('active');
$(this).parent().addClass('active');
$('html, body').animate({scrollTop: $(this).parent().offset().top}, 500);
}
}
});
$('.lg-crd h3').not('sup').on('click touch', function(e){
console.log('Clicked on faq');
e.preventDefault();
$(this).parent().parent().toggleClass('active');
});
$('span.expand').on('click touch', function(e){
$this = $(this);
$this.toggleClass('active');
if ($this.hasClass('active')){
$this.text('Hide All');
$this.parents('.faq-section, .lg-txt-crd,.visible-expand').find('.lg-crd, .faq-unit,.expand-unit').addClass('active');
}else{
$this.text('Expand All');
$this.parents('.faq-section, .lg-txt-crd,.visible-expand').find('.lg-crd, .faq-unit,.expand-unit').removeClass('active');
}
});
// $('').append('
...less');
/* $('.expand-less, .expand-more').on('click touch', function(e){
e.preventDefault();
$(this).parents('.expand-unit').toggleClass('active');
});
*/
$('.faq-unit>*:first-child,.expand-unit>*:first-child').not('sup').on('click touch', function(e){
console.log('Clicked on faq');
e.preventDefault();
$(this).parent().toggleClass('active');
});
$('.expand-all').on('click touch', function(e){
console.log('Expand all function')
$this = $(this);
$this.toggleClass('active');
if ($this.hasClass('active')){
$this.text('Hide All');
$this.parents('.visible-expand').find('.expand-unit').addClass('active');
}else{
$this.text('Expand All');
$this.parents('.visible-expand').find('.expand-unit').removeClass('active');
}
});
$.each( $('.expand-unit *:nth-child(2)'), function(i){
g = $(this).parent('.expand-unit').find('.expand-unit *:nth-child(2)').text();
console.log(g)
$(this).append(
'
Show More '+g+'');
});
$('.expand-unit .drawer:last-child').append('
Show Less
');
$('.expand-less, .expand-more').on('click touch', function(e){
e.preventDefault();
$(this).parents('.expand-unit').toggleClass('active');
});
});