PopUp

/* */


var snp_f = [];





Mau Kemasan Lebih Ekonomis?
Vico Bagoes 500ml ONGKIR Rp1

Tidak perlu khawatir, Anda juga bisa mendapatkan Paket yang lebih ekonomis lho! Dan tetap dapat PROMO ONGKIR !!

  • Harga Lebih Terjangkau
  • Pas untuk di Kantor dan Rumah
  • Harga DISKON Spesial
  • PROMO ONGKIR Rp1
  • Persediaan Terbatas

var snp_timer;
var snp_timer_o;
var snp_ajax_url= ‘https://foodketo.com/wp-admin/admin-ajax.php’;
var snp_ignore_cookies = true;
var snp_is_interal_link;
var snp_enable_analytics_events = false;var snp_enable_mobile = false; jQuery(document).ready(function(){
jQuery(‘[placeholder]’).placeholder(); jQuery(“.snp_nothanks, .snp_closelink, .snp-close-link”).click(function(){
snp_close();
return false;
});
jQuery(“.snp_subscribeform”).submit(function(){
return snp_onsubmit(jQuery(this));
});
var snp_open=jQuery(‘#snppopup-welcome .snp_open’).val();
var snp_open_after=jQuery(‘#snppopup-welcome .snp_open_after’).val();
var snp_open_inactivity=jQuery(‘#snppopup-welcome .snp_open_inactivity’).val();
var snp_open_scroll=jQuery(‘#snppopup-welcome .snp_open_scroll’).val();
var snp_op_welcome = false;
if(snp_open==’inactivity’)
{
var snp_idletime=0;
function snp_timerIncrement()
{
snp_idletime++;
if (snp_idletime > snp_open_inactivity)
{
window.clearTimeout(snp_idleInterval);
snp_open_popup(”,”,’snppopup-welcome’,’welcome’);
}
}
var snp_idleInterval = setInterval(snp_timerIncrement, 1000);
jQuery(this).mousemove(function (e) {
snp_idletime = 0;
});
jQuery(this).keypress(function (e) {
snp_idletime = 0;
});
}
else if(snp_open==’scroll’)
{
jQuery(window).scroll(function() {
var h = jQuery(document).height()-jQuery(window).height();
var sp = jQuery(window).scrollTop();
var p = parseInt(sp/h*100);
if(p>=snp_open_scroll u0026amp;u0026amp; snp_op_welcome == false){
snp_open_popup(”,”,’snppopup-welcome’,’welcome’); snp_op_welcome = true;
}
});
}
else
{
if(snp_open_after)
{
snp_timer_o=setTimeout(“snp_open_popup(”,”,’snppopup-welcome’,’welcome’);”,snp_open_after*1000);
}
else
{
snp_open_popup(”,”,’snppopup-welcome’,’welcome’);
}
}
});