The Banjaara Book

Travel, Fashion & Lifestyle Blog

Thursday, 26 Dec 13

Burst Of Happyness Christmas Giveaway


Like this post?

Show your appreciation to the author by clicking on the heart and subscribing

not upvote Image

Contribute to the discussion

`; $(document).ready(function() { }); $('#facebook-share-link').click(function(e){ e.preventDefault(); $('#facebook-share-link').attr('href',"https://www.facebook.com/sharer/sharer.php?u="+window.location.href); window.open($(this).attr('href'), 'fbShareWindow', 'height=450, width=550, top=' + ($(window).height() / 2 - 275) + ', left=' + ($(window).width() / 2 - 225) + ', toolbar=0, location=0, menubar=0, directories=0, scrollbars=0'); return false; }); $('#tumblr-share-link').click(function(e){ e.preventDefault(); $('#tumblr-share-link').attr('href',"http://www.tumblr.com/share/link?url="+window.location.href); window.open($(this).attr('href'), 'fbShareWindow', 'height=450, width=550, top=' + ($(window).height() / 2 - 275) + ', left=' + ($(window).width() / 2 - 225) + ', toolbar=0, location=0, menubar=0, directories=0, scrollbars=0'); return false; }); $('#facebook-share-link-mobile').click(function(e){ e.preventDefault(); $('#facebook-share-link-mobile').attr('href',"https://www.facebook.com/sharer/sharer.php?u="+window.location.href); window.open($(this).attr('href'), 'fbShareWindow', 'height=450, width=550, top=' + ($(window).height() / 2 - 275) + ', left=' + ($(window).width() / 2 - 225) + ', toolbar=0, location=0, menubar=0, directories=0, scrollbars=0'); return false; }); $('#tumblr-share-link-mobile').click(function(e){ e.preventDefault(); $('#tumblr-share-link-mobile').attr('href',"http://www.tumblr.com/share/link?url="+window.location.href); window.open($(this).attr('href'), 'fbShareWindow', 'height=450, width=550, top=' + ($(window).height() / 2 - 275) + ', left=' + ($(window).width() / 2 - 225) + ', toolbar=0, location=0, menubar=0, directories=0, scrollbars=0'); return false; }); $('.hint-card').remove(); $('.ql-toolbar').remove(); function Utils() { } $('.upvotes').unbind().click(function(e){ var elementid = $(this).parents('.id').attr('id'); var $click = $(this); $.ajax({ type: "GET", dataType: "json", url: "/get_session_user", success: function(data){ if (data!=null){ $.ajax({ type: "POST", data: { id: elementid }, dataType: "json", url: "/upvote_hack", success: function(data){ } }); var $upvote = $click.children('.upvote'); if($upvote.hasClass('upvoted')){ $upvote.removeClass('upvoted'); $upvote.addClass('unupvoted'); $upvote.attr('src','/images/like-onhover.svg'); var upvotenum = +$click.children('.count').text() - 1 ; $click.children('.count').text(upvotenum); } else { $upvote.removeClass('unupvoted'); $upvote.addClass('upvoted'); $upvote.attr('src','/images/like-full.svg'); var upvotenum = +$click.children('.count').text() + 1 ; $click.children('.count').text(upvotenum); } } else { window.location.href = "http://www.winkl.co/login_page?from="+window.location.href+"&blog_subdomain=thebanjaarabook&no_follow=true"; } } }); }); $('.follow').unbind().click(function(e){ var elementid = $(this).parents('.id').attr('id'); var $click = $(this); $.ajax({ type: "GET", dataType: "json", url: "/get_session_user", success: function(data){ if (data!=null){ $.ajax({ type: "POST", data: { id: elementid }, dataType: "json", url: "/follow_hack", success: function(data){ } }); var $follow = $click.children('.follow'); if($follow.hasClass('followed')){ $follow.removeClass('followed'); $follow.addClass('notfollowed'); $follow.attr('src','/images/bookmark-normal.svg'); var follownum = +$click.children('.count').text() - 1 ; $click.children('.count').text(follownum); } else { $follow.removeClass('notfollowed'); $follow.addClass('followed'); $follow.attr('src','/images/bookmark-full.svg'); var follownum = +$click.children('.count').text() + 1 ; $click.children('.count').text(follownum); } } else { window.location.href = "http://www.winkl.co/login_page?from="+window.location.href+"&blog_subdomain=thebanjaarabook&no_follow=true"; } } }); }); $('#email-subscribe').click(function(e){ var email = $('#subscribe-emailid').val(); if(email!=""){ $('#email-subscribe').addClass('hidden'); $('#loading-submit').removeClass('hidden'); $.ajax({ type: "POST", data: { name: "Burst Of Happyness Christmas Giveaway", email: email, instagram: "6763", source: "Blog Post Subscription Form" }, dataType: "json", url: "/add_lead", success: function(data){ if(data['status']==true){ $('#subscribe-form').addClass('hidden'); $('#subscribe-success').removeClass('hidden'); } else { prompt("Looks like something went wrong. Try again."); } } }); } else{ prompt("Please enter an email id."); } }); $('#email-subscribe2').click(function(e){ var email = $('#subscribe-emailid2').val(); if(email!=""){ $('#email-subscribe2').addClass('hidden'); $('#loading-submit2').removeClass('hidden'); $.ajax({ type: "POST", data: { name: "Burst Of Happyness Christmas Giveaway", email: email, instagram: "6763", source: "Blog Post Subscription Form" }, dataType: "json", url: "/add_lead", success: function(data){ if(data['status']==true){ $('#subscribe-form2').addClass('hidden'); $('#subscribe-success2').removeClass('hidden'); } else { prompt("Looks like something went wrong. Try again."); } } }); } else{ prompt("Please enter an email id."); } }); function prompt(text) { var x = document.getElementById("snackbar") x.innerHTML = text // Add the "show" class to DIV x.className = "show"; setTimeout(function(){ x.className = x.className.replace("show", ""); }, 2000); } $.ajax({ type: "POST", data: { blog_id: "335", hack_id: "6763", user_hex: "4b5a6312a2acffbc063411b50eeb807f", referer: "" }, dataType: "json", url: "/add_view", success: function(data){ } }); $('iframe').css('max-width',$('#editor-container').width()); if (typeof ($('.ql-video')[0])!=undefined){ $('.ql-video')[0].width = $('#editor-container').width(); $('.ql-video')[0].height = ($('#editor-container').width()/16)*9; } $(window).resize(function(){ $('iframe').css('max-width',$('#editor-container').width()); if (typeof ($('.ql-video')[0])!=undefined){ $('.ql-video')[0].width = $('#editor-container').width(); $('.ql-video')[0].height = ($('#editor-container').width()/16)*9; } });

More from The Banjaara Book

S

Tuesday, 08 Jan 13

Shave or Crave


S

Saturday, 15 Sep 12

Soaked In Friendship