/BLT Hacks?

BLT Hacks?

BLT Hacks? – Home Cooking – Sub Sandwich – Chowhound























kaleokahu




kaleokahu

|
about 16 hours ago

   
11

Chowhound Recommends

More from Chowhound

This Family Lasagna Is Peak Italian-American Comfort Food


Food News

by Amy Schulman | If there’s anything that’s been our rock during quarantine, it’s comfort food. In times of stress…

These Easy 5-Ingredient Pasta Sauces Mean Dinner Is Solved


Recipe Round-Ups

by David Klein | When you need an easy dinner that everyone will love, look to these 5-ingredient pasta sauce recipes…

6 Great Snack Boxes Full of Treats From Around The World


Shop

by David Watsky | If your quarantine snacks are getting stale (figuratively speaking), try one of our favorite snack…

7 Plastic-Free Storage Options for a Greener Kitchen


Shop

by Sara Weinreb | Having a green kitchen means many things: composting, using food scraps to fight food waste, and eating…

Trending Discussions

1

Updated 1 hour ago
23 comments

2

Updated 3 hours ago
13 comments

3

Updated 14 hours ago
2 comments

4

Updated 3 hours ago
124 comments

5

Updated 37 minutes ago
94 comments

‘)
} else {
$(‘.f_req’).remove();
}
})
}

// $(document).on(‘change’, ‘.Newsletter-checkbox .inp_chk’, function(){
// var checked = $(“input.inp_chk:checked”).length;
// if( checked == 0 ) {
// $(‘.f_req’).remove();
// $(‘.Newsletter-checkbox’).append(‘

Please check the opt-in box to acknowledge that you would like to subscribe.

‘);
// return false;
// } else {
// $(‘.f_req’).remove();
// }
// })

var clickev = is_mobile ? ‘touchend’ : ‘click’;

$(document).on(clickev, ‘.f_req’, function(){
$(‘.f_req’).remove();
})

$(document).on(‘click’, ‘.fr_fw_nl_frm .bt_t:not(.processing)’, function(e){
$(this).addClass(‘processing’);
var emailFilter = /^([+a-zA-Z0-9_.-])+@(([a-zA-Z0-9-])+.)+([a-zA-Z0-9]{2,4})+$/;
if( !emailFilter.test($(‘.inp_t’).val()) ){
$(‘.f_req’).remove();
$(‘.fr_fw_nl_frm’).append(‘

Please enter a valid Email

‘);
$(this).removeClass(‘processing’);
}
if ( emailFilter.test($(‘.inp_t’).val()) && $(‘.inp_t’).val().length > 2 ) {

// var checked = $(“input.inp_chk:checked”).length;
// if( checked === 0 ) {
// $(‘.f_req’).remove();
// $(‘.Newsletter-checkbox’).append(‘

Please check the opt-in box to acknowledge that you would like to subscribe.

‘);
// $(this).removeClass(‘processing’);
// return false;
// } else {
$(‘.Newsletter-checkbox’).remove();
subemail = $(‘.inp_t’).val();
acqsource = $(‘.acqsource’).val();
$(‘.fr_fw_nl_frm’).html(“

Thanks for subscribing!

“).addClass(‘okm’);
$(‘.f_req’).remove();
var newsLetterSubmit = $.ajax({
type: ‘POST’,
url: “/profile/public_subscription/?email=”+subemail+”&acqsource=”+acqsource,
dataType: “text”,
success: function(data) {
//do nothing
}
});

//}
}
nlAfterSubmit();
})

});