A Blush Of Pink

Wednesday, 04 Jul

Romancing Black and White.


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=ablushofpink&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=ablushofpink&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: "Romancing Black and White.", email: email, instagram: "3852", 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."); } }); 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); } $('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 A Blush Of Pink

Thursday, 19 Jul

Double Affair