123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278 |
- var googlecaptcha = "";
- var isAdditionalScriptLoaded = false;
- function showRandomBanner() {
- var e = [1, 2];
- randNum = e[Math.floor(Math.random() * e.length)], $("#banner-" + randNum).addClass("activeSlide"), $("body").hasClass("page-id-2") && $("#banner-2").hasClass("activeSlide") && $(".topheader").removeClass("style_one").addClass("style_two")
- }
- function resendotp() {
- var e = jQuery("#isd").val(),
- t = jQuery("#number").val();
- jQuery("#otp").val();
- return $("#resendLink").hide(), $("#resendCounter").show(), "" == e || null == e || null == e ? (alert("Invalid Country Code"), !1) : "" == t || null == t || null == t ? (alert("Invalid Mobile Number Code"), !1) : void $.ajax({
- type: "POST",
- url: "https://msg91.com/otp/sendotp_action_layer.php?action=retryOTP",
- data: {
- countryCode: e,
- mobileNumber: t
- },
- dataType: "json",
- error: function(e, t, o) {
- console.log(e), alert("Something bad happens. please reload page.")
- },
- success: function(e) {
- if ("success" === e.status) {
- alert(e.message), jQuery("#resendLink").hide();
- var t = 19,
- o = setInterval(function() {
- $("#resendCounter").html("Retry in " + t + " Second"), t--
- }, 1e3);
- setTimeout(function() {
- jQuery("#resendLink").show(), jQuery("#resendCounter").hide(), clearInterval(o)
- }, 2e4)
- } else alert(e.message)
- }
- })
- }
- jQuery(document).ready(function(r) {
- if (showRandomBanner(), (r = jQuery)(".carousel").carousel({
- interval: !1
- }), r(".built_tab-section").appendTo(".built-tab-widget"), 0 != r(".grid-sizer").length) {
- r(".grid").masonry({
- itemSelector: ".grid-item",
- columnWidth: ".grid-sizer",
- percentPosition: !0
- });
- var e = document.querySelector(".grid"),
- t = new Masonry(e, {
- itemSelector: ".grid-item",
- columnWidth: ".grid-sizer",
- percentPosition: !0
- });
- imagesLoaded(e).on("progress", function() {
- t.layout()
- })
- }
- if (0 != r(".grid-sizer-thum").length) {
- r(".grid-thum").masonry({
- itemSelector: ".grid-item-thum",
- columnWidth: ".grid-sizer-thum",
- percentPosition: !0
- });
- var o = document.querySelector(".grid-thum");
- t = new Masonry(o, {
- itemSelector: ".grid-item-thum",
- columnWidth: ".grid-sizer-thum",
- percentPosition: !0
- });
- imagesLoaded(o).on("progress", function() {
- t.layout()
- })
- }
- r(".cat-filt a").click(function() {
- r(this).text();
- r(".blog-list.grid-thum li.grid-item-thum").hide();
- var e, t = r(this).attr("data-class");
- ".allInclass" == t ? (r(".blog-list.grid-thum li.grid-item-thum").show(), (e = r(".grid-thum").masonry({
- itemSelector: ".grid-item-thum",
- percentPosition: !0,
- columnWidth: ".grid-sizer-thum"
- })).imagesLoaded().progress(function() {
- e.masonry()
- })) : (r(".blog-list.grid-thum").find(t).show(), (e = r(".grid-thum").masonry({
- itemSelector: ".grid-item-thum",
- percentPosition: !0,
- columnWidth: ".grid-sizer-thum"
- })).imagesLoaded().progress(function() {
- e.masonry()
- }));
- return !1
- }), r('.home-tabs li a[data-toggle="tab"]').on("hide.bs.tab", function(e) {
- var t = r(r(e.target).attr("href"));
- r(r(e.relatedTarget).attr("href")).index() < t.index() ? (t.css("position", "relative").css("right", "0").show(), t.animate({
- right: "-100%"
- }, 700, function() {
- t.css("right", 0).removeAttr("style")
- })) : (t.css("position", "relative").css("left", "0").show(), t.animate({
- left: "-100%"
- }, 700, function() {
- t.css("left", 0).removeAttr("style")
- }))
- }), r('.home-tabs li a[data-toggle="tab"]').on("show.bs.tab", function(e) {
- var t = r(r(e.target).attr("href")),
- o = r(r(e.relatedTarget).attr("href"));
- t.index() > o.index() ? (t.css("position", "relative").css("right", "-2500px"), t.animate({
- right: "0"
- }, 700)) : (t.css("position", "relative").css("left", "-2500px"), t.animate({
- left: "0"
- }, 700))
- }), r('.home-tabs li a[data-toggle="tab"]').on("shown.bs.tab", function(e) {}), r(window).scroll(function() {
- 30 <= r(window).scrollTop() ? r(".navbar-custom").addClass("fixedHeader") : r(".navbar-custom").removeClass("fixedHeader")
- }), r(".pageLoopList .col-sm-6.col-md-4:nth-child(2) .thumbnail").addClass("onfocus"), r(".pageLoopList a.thumbnail").hover(function() {
- r(".pageLoopList a.thumbnail").removeClass("onfocus")
- }), r(".pageLoopList a.thumbnail").mouseleave(function() {
- r(".pageLoopList .col-sm-6.col-md-4:nth-child(2) .thumbnail").addClass("onfocus")
- }), r(".per_sms_cost i.fa").click(function() {
- r(".per_sms_cost ul").slideToggle()
- }), r(".topheader .nav.navbar-nav li a").on("click", function(e) {
- "" !== this.hash && e.preventDefault()
- }), r(".anchor-clicked a").on("click", function(e) {
- if ("" !== this.hash) {
- e.preventDefault();
- var t = this.hash;
- r("html, body").animate({
- scrollTop: r(t).offset().top - 100
- }, 800, function() {
- window.location.hash = t
- })
- }
- }), r(".startupagain").css("display", "none"), r("#startupForm input").on("change", function() {
- r(".startupagain").css("display", "block"), r(".productStartup").hide(), r("." + r("input[name=radioName]:checked", "#startupForm").val()).show()
- }), r(".card").hover(function() {
- r(".card").hasClass("onfocus") && r(".card").removeClass("onfocus")
- }), jQuery(".sendotp").click(function() {
- if ("" != googlecaptcha) {
- var e = {};
- e.countryCode = jQuery("#isd").val(), e.mobileNumber = jQuery("#number").val(), e.grecaptcharesponse = googlecaptcha, jQuery.post("https://msg91.com/otp/sendotp_action_layer.php?action=verifyRecaptcha", e, function(e) {
- if ("success" === e.status) {
- jQuery(".otpsend").hide(), jQuery(".otpverify").show(), grecaptcha.reset(), jQuery("#resendLink").hide();
- var t = 19,
- o = setInterval(function() {
- jQuery("#resendCounter").html("Retry in " + t + " Second"), t--
- }, 1e3);
- setTimeout(function() {
- jQuery("#resendCounter").hide(), jQuery("#resendLink").show(), clearInterval(o)
- }, 2e4)
- } else alert(e.message)
- }, "json")
- } else alert("Verifcation not done, please check the checkbox")
- }), jQuery(".verifyotp").click(function() {
- var e = {};
- e.countryCode = jQuery("#isd").val(), e.mobileNumber = jQuery("#number").val(), e.otp = jQuery("#otp").val(), jQuery.post("https://msg91.com/otp/sendotp_action_layer.php?action=verifyOTP", e, function(e) {
- "success" === e.status ? (alert("You are successfully verified"), jQuery(".otpsend").show(), jQuery(".otpverify").hide(), jQuery("#isd").val(""), jQuery("#number").val("")) : alert(data.message)
- }, "json")
- })
- }),
- // function () {
- // }();
- jQuery(document).ready(function() {
- var i = 0;
- function format(option) {
- if (!option.id) {
- return option.text;
- }
- var ob = '<span class="country-select"><span class="flag ' + jQuery(option.element).data('image') + '"></span></span> ' + ' ' + option.text; // replace image source with option.img (available in JSON)
- return ob;
- };
- $("#country3").select2({
- placeholder: "Select something!!",
- width: "50%",
- allowClear: true,
- templateResult: format,
- templateSelection: function(option) {
- if (option.id.length > 0) {
- return '<span class="country-select"><span class="flag ' + jQuery(option.element).data('image') + '"></span></span> ' + option.text;
- } else {
- return option.text;
- }
- },
- escapeMarkup: function(m) {
- return m;
- }
- });
-
- });
- function loadAdditionalScript() {
- $.getScript("https://assets.calendly.com/assets/external/widget.js");
- // $.getScript("https://random-scripts.herokuapp.com/superform/superform.js");
- isAdditionalScriptLoaded = true;
- }
- $('[data-target="#talkToSales_dialog"]').click(function() {
- if (isAdditionalScriptLoaded) {
- return;
- }
- loadAdditionalScript();
- });
- window.onload = function() {
- setTimeout(function() { loadAdditionalScript(); }, 300);
- }
- // function () {
- // var e, t, o = document,
- // r = o.getElementById,
- // a = o.createElement,
- // s = o.getElementsByTagName,
- // n = "typeform-share";
- // r.call(o, n) || ((e = a.call(o, "script")).id = n, e.src = "https://embed.typeform.com/embed.js", (t = s.call(o, "script")[0]).parentNode.insertBefore(e, t))
- // }();
- // Get SMS Pricing
- function getSmsPricing(){
- var data={};
- data['country']=jQuery('#country3').val();
- data['type']=jQuery('#type').val();
- data['noOfSMS']=jQuery('#noOfSMS').val();
- data['routeType']=jQuery('#type').val() || 4;
- data['action']='511';
- data['currency']=jQuery('#currency').val();
- data['request']='pricing_details';
- if (data.noOfSMS >= 500000) {
- document.getElementById('get-custom-quote').style.display="block";
- document.getElementById('TotalCost').style.display="none";
- document.getElementById('main-smscount').style.display="none";
- return;
- }
- else {
- try{
- document.getElementById('get-custom-quote').style.display="none";
- document.getElementById('TotalCost').style.display="block";
- document.getElementById('main-smscount').style.display="block";
- }catch(err){
-
- }
- }
- try{
- jQuery.get(pricing_url,data,function(result){
- var obj = result;
- var array = $.map(obj , function(value, index) {
- return [value];
- });
- jQuery('.rcost').html(result.amountPerSms + '/');
- jQuery('.tcost').text(result.totalAmount);
- }, 'jsonp')
- }catch(err){
- }
- };
-
- getSmsPricing();
- jQuery(document).ready(function(){
- jQuery('.inputid').on('keyup, keydown', function(){
- setTimeout(function(){ getSmsPricing(); }, 300);
- // jQuery('#noOfSMS').val(jQuery('#noOfSMS').val().substr(0, 11));
- });
- jQuery('.inputidselectcountry').on('change', function(){
- setTimeout(function(){ getSmsPricing(); }, 300);
- });
- jQuery('.types li, .currencys li').on('click', function(){
- setTimeout(function(){ getSmsPricing(); }, 300);
- });
- getSmsPricing();
- })
|