Spices & Seasoning

Showing all 5 products.

Subscribe to our newsletter

Get the latest updates on new products and upcoming sales

No thanks
var code; var newsLetterForm; var CAPTCHA_MODAL_TITLE = "Enter text shown in the image"; function createCaptcha() { document.getElementById('captcha-modal-content').innerHTML = ""; var charsArray = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ@!#$%^&*"; var lengthOtp = 6; var captcha = []; for (var i = 0; i < lengthOtp; i++) { var index = Math.floor(Math.random() * charsArray.length + 1); if (captcha.indexOf(charsArray[index]) == -1){ captcha.push(charsArray[index]); } else i--; } var canv = document.createElement("canvas"); canv.id = "captcha"; canv.width = 100; canv.height = 50; var ctx = canv.getContext("2d"); ctx.font = "25px Georgia"; ctx.strokeText(captcha.join(""), 0, 30); //storing captcha so that can validate you can save it somewhere else according to your specific requirements code = captcha.join(""); document.getElementById("captcha-modal-content").appendChild(canv); // adds the canvas to the body element } function validateCaptcha() { event.preventDefault(); debugger if (document.getElementById("cpatchaTextBox").value == code) { newsLetterForm.submit(); } else { validationError('Invalid Captcha. Try Again'); createCaptcha(); } } function createCaptchaModal() { if ($('#captcha-modal').length) { return; } var container = $('.body'); var modal = $(''); var modalCloseButton = '' modalCloseButton += ''; var modalContent = ''; var loadingOverlay = ''; modal.append(modalCloseButton); modal.append(modalContent); modal.append(loadingOverlay); container.append(modal); } function closeCaptchaModal() { $('#captcha-modal').removeClass('open'); $('#captcha-modal').css({ 'display': 'none', 'opacity': '1', 'visibility': 'hidden', }); $('#validation-error').html(''); $('.modal-background').hide(); } jquery('.button[value="Subscribe"]').on('click', function (e) { e.preventDefault(); createCaptchaModal(); var target = e.target; var form = $(target).closest('form'); var email = form.find('#nl_email'); newsLetterForm = form; createCaptcha(form); $('#captcha-modal').foundation('reveal', 'open'); }); function validationError(text) { var validationErrorHtml = ""; validationErrorHtml += '
'; validationErrorHtml += '
'; validationErrorHtml += ' '; validationErrorHtml += '
'; validationErrorHtml += '

'; validationErrorHtml += ' ' + text + ''; validationErrorHtml += '

'; validationErrorHtml += '
'; $('#validation-error').html(validationErrorHtml); }