function selectLocation(locations){var location=locations.split(',');var lc_name=[];var loc_array=[];for(i=0;i<location.length;i++){let name_arr=location[i].split(':');lc_name.push(name_arr[0]);loc_array[name_arr[0]]=name_arr[1];}
    var location_html='';var default_id='';var default_selected='';if(lc_name.includes('dallas')){if(default_id==''){default_id=loc_array['dallas'];default_selected='Selected Location: Dallas - USA';}
        location_html+='<div data-productid="'+
            loc_array['dallas']+
            '" class="slocation'+
            (location_html==''?' selected':'')+
            '"><i class="far fa-'+
            (location_html==''?'check-circle':'circle')+
            '"></i> <img class="img-fluid" loading="lazy" src="/content/img/usa-flag.png" width="80" height="50" alt="usa"/> <h6>Dallas <span>USA</span></h6> </div>';}
    if(lc_name.includes('orlando')){if(default_id==''){default_id=loc_array['orlando'];default_selected='Selected Location: Orlando - USA';}
        location_html+='<div data-productid="'+
            loc_array['orlando']+
            '" class="slocation'+
            (location_html==''?' selected':'')+
            '"><i class="far fa-'+
            (location_html==''?'check-circle':'circle')+
            '"></i> <img class="img-fluid" loading="lazy" src="/content/img/usa-flag.png" width="80" height="50" alt="usa"/> <h6>Orlando <span>USA</span></h6> </div>';}
    if(lc_name.includes('dhaka')){if(default_id==''){default_id=loc_array['dhaka'];default_selected='Selected Location: Dhaka - Bangladesh';}
        location_html+='<div data-productid="'+
            loc_array['dhaka']+
            '" class="slocation'+
            (location_html==''?' selected':'')+
            '"><i class="far fa-'+
            (location_html==''?'check-circle':'circle')+
            '"></i> <img class="img-fluid" loading="lazy" src="/content/img/bd-flag.jpg" width="80" height="50" alt="bd"/>  <h6>Dhaka <span>Bangladesh</span></h6> </div>';}
    $('.location-popup-body').html(location_html);$('#location-link').attr('href','//account.alpha.net.bd/cart.php?a=add&pid='+default_id+'&currency=2');$('#loc-selected').html(default_selected);$('.location-popup').show();$('#whoisbd').click(function(){$('#bdwhoisform').submit();});}
$(function(){'use strict';$('nav.main_menu > ul.nav').css('opacity','1');$('#location-link').click(function(){$('.location-popup').hide();});$('#close-vps-popup').click(function(){$('.location-popup').hide();});$('.custom-map-location li span').tooltip('show');$(function(){$('[data-bs-toggle="tooltip"]').tooltip();});$(document).on('click','.slocation',function(event){$('.location-popup-body').find('i').attr('class','far fa-circle');$('.slocation').removeClass('selected');$(this).addClass('selected');$(this).find('i').attr('class','far fa-check-circle');$('#location-link').attr('href','//account.alpha.net.bd/cart.php?a=add&pid='+
    $(this).attr('data-productid')+
    '&currency=2');let country=$(this).find('span').text();let city=$(this).find('h6').text();$('#loc-selected').html('Selected Location: '+city.replace(country,'')+'- '+country);});let isMobile=false;if(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|ipad|iris|kindle|Android|Silk|lge |maemo|midp|mmp|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i.test(navigator.userAgent)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(navigator.userAgent.substr(0,4))){isMobile=true;}
    isMobile?$('body').addClass('is-mobile'):$('body').removeClass('is-mobile');var body=$('body'),menunav=$('header nav'),meanmenuContainer='header .row',meanmenuBreakpoint=1199
    menunav.meanmenu({meanMenuContainer:meanmenuContainer,meanScreenWidth:meanmenuBreakpoint,});$('.mean-bar a.meanmenu-reveal').on('click',()=>{body.toggleClass('menu-open')
        body.removeClass('header-sticky');header.removeClass('sticky-top');window.scrollTo({top:0});});$(window).resize(function(){$('.mean-bar a.meanmenu-reveal').on('click',()=>{body.toggleClass('menu-open')
        body.removeClass('header-sticky');header.removeClass('sticky-top');window.scrollTo({top:0});});});$('nav.mean-nav > ul > li').on('click',function(e){window.scrollTo({top:$(this).offset().top,behavior:'smooth'});});const header=$('header');function headerSticky(){var sticky=header.scrollTop();if(window.pageYOffset>sticky)!body.hasClass("menu-open")&&header.addClass('sticky-top')&&body.addClass('header-sticky');else header.removeClass('sticky-top')&&body.removeClass('header-sticky');}
    function scrollTop(){let scroll_top=$('#scroll-top'),scroll=$(window).scrollTop();if(scroll>=300)scroll_top.removeClass('d-none');else scroll_top.addClass('d-none');}
    $('#scroll-top').click(function(){$('html, body').animate({scrollTop:0},500);return false;});$(window).on('scroll',function(){headerSticky();scrollTop();});$('.main_slider').slick({autoplay:true,autoplaySpeed:5000,dots:true,});$('.demo_slider').slick({infinite:true,speed:500,fade:true,cssEase:'linear',autoplay:true,autoplaySpeed:5000,dots:false,prevArrow:'<button type="button" class="slick-prev custom">Previous</button>',nextArrow:'<button type="button" class="slick-next custom">Next</button>'});$('.control_panel_preview').slick({dots:true,infinite:true,speed:500,fade:true,autoplay:true,autoplaySpeed:2000,cssEase:'linear',prevArrow:false,nextArrow:false});$('.client_preview').slick({dots:true,autoplaySpeed:2000,fade:true,cssEase:'linear',prevArrow:false,nextArrow:false});$('#webport').flipster({style:'carousel',spacing:-0.5,nav:false,buttons:false,loop:true,autoplay:false,});$('#webport, #AlphacmsSlider, #JoomlaSlider, #WordPressSlider, #e_CommerceSlider').flipster({loop:true,autoplay:2000});$('.popup-youtube').magnificPopup({disableOn:700,type:'iframe',mainClass:'mfp-fade',removalDelay:160,preloader:false,fixedContentPos:false,});$('.year').html(new Date().getFullYear()-2001);$('.bd_year').html((new Date().getFullYear()-2001).toLocaleString("bn-BD"));$('.featured_clients').slick({speed:4500,autoplay:true,autoplaySpeed:0,cssEase:'linear',centerMode:true,slidesToShow:1,slidesToScroll:1,variableWidth:true,dots:false,prevArrow:false,nextArrow:false,useTransform:false,infinite:false});$('#zebra_striped .row:odd').addClass('flex-md-row-reverse');$('#zebra_striped .row:odd > div:even').addClass('text-md-right');$(".main-isotope").isotope({filter:".FShow"});$(".main-isotope").isotope({itemSelector:".item",layoutMode:"fitRows",});$(".code_examples ul li").click(function(){$("ul li").removeClass("active");$(this).addClass("active");var selector=$(this).attr("data-filter");$(".main-isotope").isotope({filter:selector,});});lax.setup()
    const updateLax=()=>{lax.update(window.scrollY)
        window.requestAnimationFrame(updateLax)}
    window.requestAnimationFrame(updateLax);$('.popUp').each(function(key,value){if(!sessionStorage.getItem(`.popup${key}`)){$(this).modal('show');sessionStorage.setItem(`.popup${key}`,new Date());return false;}});setTimeout(function(){$('.popUp').modal('hide');},8000);$('header ul.nav .nav-item').hover(function(e){let subDropdown=$(this).find(".sub_dropdown");let l=$(this).offset().left,w=$(this).width(),docW=$(body).width(),isEntirelyVisible=(l+w<=docW);if(!isEntirelyVisible){$(this).addClass('edge');subDropdown.addClass('edgedrop');}else if(subDropdown.length){let l=subDropdown.offset().left,w=subDropdown.width(),docW=$(body).width(),isEntirelyVisible=(l+w<=docW);if(!isEntirelyVisible){$(this).addClass('edge');subDropdown.addClass('edgedrop');}else{$(this).removeClass('edge');subDropdown.removeClass('edgedrop');}}});});(function($){$('.image-link').magnificPopup({type:'image',mainClass:'mfp-with-zoom',gallery:{enabled:true,},zoom:{enabled:true,duration:300,easing:'ease-in-out',opener:function(openerElement){return openerElement.is('img')?openerElement:openerElement.find('img');},},callbacks:{beforeOpen:function(){this.st.image.markup=this.st.image.markup.replace('mfp-figure','mfp-figure mfp-with-anim');this.st.mainClass=this.st.el.attr('data-effect');},open:function(){$('.mfp-img').addClass('img-fluid').attr('height','505').attr('width','1000');},}});$(document).ready(function(){$("#pack-comparison").click(function(){$(".pack-comparison").slideToggle();$(".bx-plus, .bx-minus").toggleClass("bx-plus bx-minus secondary_text");});});})(jQuery);