gkb.com.np
Open in
urlscan Pro
2a02:4780:84:7150:b1f3:dc18:62a4:4f12
Public Scan
Submitted URL: http://gkb.com.np/wp-content/themes/hostinger-blog/build/scripts/main.js?ver=1.4.4
Effective URL: https://gkb.com.np/wp-content/themes/hostinger-blog/build/scripts/main.js?ver=1.4.4
Submission: On November 16 via api from US — Scanned from US
Effective URL: https://gkb.com.np/wp-content/themes/hostinger-blog/build/scripts/main.js?ver=1.4.4
Submission: On November 16 via api from US — Scanned from US
Form analysis
0 forms found in the DOMText Content
(()=>{var e,t={40:()=>{jQuery(document).ready((function(e){e(".hts-contacts form").each((function(){var t=e(this),a=t.find("#contact-email"),n=t.find("#privacy-policy-checkbox");a.on("input",(function(){var e;(e=a.val(),/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(e))?a.removeClass("not-valid"):a.addClass("not-valid")}));var r=t.find(".validate-message");t.on("submit",(function(o){o.preventDefault();var s=e("#contact-name").val(),c=a.val(),i=e("#contact-message").val(),l=!1;n.is(":checked")&&(l="on"),r.text(""),e.ajax({type:"POST",url:hts_ajax_object.ajax_url,data:{action:"submit_contactform",name:s,email:c,message:i,privacy_policy:l,nonce:t.find('input[name="contactform_nonce"]').val()},success:function(e){e.success?r.text(e.data.message).css("color","#00b341"):r.text(e.data.message).css("color","#ff0000")},error:function(){r.text("An error occurred. Please try again later.")}})}))}))}))},459:(e,t,a)=>{"use strict";var n;a(617),a(40);(n=jQuery)("header .hts-menu .close, header .hts-menu .open").click((function(){n("header .hts-menu").toggleClass("opened closed")}))},617:()=>{jQuery(document).ready((function(e){e(".hts-newsletter form").each((function(){var t=e(this),a=t.find("#hts-newsletter-email"),n=t.find("#privacy-policy-checkbox");a.on("input",(function(){var e;(e=a.val(),/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(e))?a.removeClass("not-valid"):a.addClass("not-valid")}));var r=t.find(".validate-message");t.on("submit",(function(o){o.preventDefault();var s=a.val(),c=!1;n.is(":checked")&&(c="on"),r.text(""),e.ajax({type:"POST",url:hts_ajax_object.ajax_url,data:{action:"submit_newsletter",email:s,privacy_policy:c,nonce:t.find('input[name="newsletter_nonce"]').val()},success:function(t){t.success?(r.text(t.data.message).css("color","#00b341"),e("#hts-newsletter-email").val("")):r.text(t.data.message).css("color","#ff0000")},error:function(){r.text("An error occurred. Please try again later.")}})}))}))}))},930:()=>{},454:()=>{},973:()=>{}},a={};function n(e){var r=a[e];if(void 0!==r)return r.exports;var o=a[e]={exports:{}};return t[e](o,o.exports,n),o.exports}n.m=t,e=[],n.O=(t,a,r,o)=>{if(!a){var s=1/0;for(u=0;u<e.length;u++){for(var[a,r,o]=e[u],c=!0,i=0;i<a.length;i++)(!1&o||s>=o)&&Object.keys(n.O).every((e=>n.O[e](a[i])))?a.splice(i--,1):(c=!1,o<s&&(s=o));if(c){e.splice(u--,1);var l=r();void 0!==l&&(t=l)}}return t}o=o||0;for(var u=e.length;u>0&&e[u-1][2]>o;u--)e[u]=e[u-1];e[u]=[a,r,o]},n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var a in t)n.o(t,a)&&!n.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={487:0,263:0,889:0,72:0};n.O.j=t=>0===e[t];var t=(t,a)=>{var r,o,[s,c,i]=a,l=0;if(s.some((t=>0!==e[t]))){for(r in c)n.o(c,r)&&(n.m[r]=c[r]);if(i)var u=i(n)}for(t&&t(a);l<s.length;l++)o=s[l],n.o(e,o)&&e[o]&&e[o][0](),e[o]=0;return n.O(u)},a=self.webpackChunk=self.webpackChunk||[];a.forEach(t.bind(null,0)),a.push=t.bind(null,a.push.bind(a))})(),n.O(void 0,[263,889,72],(()=>n(459))),n.O(void 0,[263,889,72],(()=>n(930))),n.O(void 0,[263,889,72],(()=>n(454)));var r=n.O(void 0,[263,889,72],(()=>n(973)));r=n.O(r)})();