share-tools-assets-fd428f9c5a5ca496d037.js 1.9 KB

1
  1. (()=>{var t={89885:()=>{window.shareItOnFacebook=function(){var t="https://www.facebook.com/sharer/sharer.php?u=".concat(encodeURIComponent(location.href));window.open(t,"newwindow","width=750,height=600,scrollbars=yes,resizable=yes")},window.shareItOnTwitter=function(){window.open("https://twitter.com/share?url=".concat(escape(window.location.href)),"newwindow","menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=300,width=600")},window.shareItOnWhatsApp=function(){var t=$(".icon-whatsapp").attr("data-whatsapp-text"),n=window.location.href,e=encodeURIComponent(t)+": "+encodeURIComponent(n),o="https://web.whatsapp.com/send?text=".concat(e);window.open(o,"newwindow","width=750,height=600,scrollbars=yes,resizable=yes")},function(t){t(".report-ad-form").submit((function(n){var e=t(this).serialize(),o=t(".report-ad-form"),i=o.attr("action"),r=o.find(".btn").attr("data-submitting-text")||"Submitting...",a=o.find(".btn").attr("data-submit-text")||"Submit";function d(){o.find(".notification .text-success").hide(),o.find(".notification .text-danger").show(),o.find(".form-control, .btn").prop("disabled",!1),o.find(".btn").html(a)}o.find(".form-control, .btn").prop("disabled",!0),o.find(".btn").html(r),t.ajax({url:i,contentType:"application/x-www-form-urlencoded",data:e,type:"POST",success:function(t){t.reported?(o.find("input, textarea").val(""),o.find(".notification .text-success").show(),o.find(".notification .text-danger").hide(),o.find(".form-control, .btn").prop("disabled",!1),o.find(".btn").html(a),o.find(".form-control, .btn").prop("disabled",!0)):d()},error:function(){d()}}),n.preventDefault()}))}(jQuery)},36850:(t,n,e)=>{"use strict";e.r(n)}},n={};function e(o){var i=n[o];if(void 0!==i)return i.exports;var r=n[o]={exports:{}};return t[o](r,r.exports,e),r.exports}e.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e(89885),e(36850)})();