/**
 * Created by Tejas on 17/01/18.
 */

//            var austDay = new Date();
//            austDay = new Date(austDay.getFullYear() + 0, 7 - 1, 8);
//            $('.defaultCountdown').countdown({
//                until: austDay,
//                timezone: +330
//            });
//            $('#year').text(austDay.getFullYear());

var wh = window.innerHeight;

//            $(".slide").each(function () {
//                var img = $(this).attr("data-slide-image");
//                var me = $(this);
//                if (mobile) {
//                    img = "assets/images/mobile/" + img;
//                } else {
//                    img = "assets/images/" + img;
//                }
//                me.css('background', 'url("' + img + '")');
//                me.css('background-repeat', 'no-repeat');
//                me.css('background-position', 'center');
//                me.css('background-size', 'cover');
//            });

$('#myModal').modal({show:true});
//Cookies.remove('offer');
if(Cookies.get('offer')!=1){
    //console.log("no set, setting now");
    Cookies.set('offer', '1');
    //$('#myModal').modal({show:true});
}else{
    //console.log("Cookie set");
}
//        $.magnificPopup.open({
//
//            items: {
//
//                src: '<div class="white-popup" style="text-align:center;"><div class="POS"><h4>Join our guest list for an exclusive store preview</h4><p id="success_msg" class="msg_box" style="display:none;"><i class="fa fa-check"></i> <strong>Thank you!!</strong></p> <form id="pop_form" action="frm_subscribe.php" method="post"><div class="form-group"><input type="text" class="form-control" id="uname" name="uname" placeholder="Name" required></div><div class="form-group"><input type="email" class="form-control" id="uemail" name="uemail" placeholder="Email" required></div><button type="submit" id="btn_sub" name="submit" class="btn btn-default">Send</button></form><p>We promise not to spam you or share your information with any third parties. This is just for the purposes of inviting you to our store preview.</p></div></div>'
//            },
//
//            type: 'inline'
//
//        }, 0);
