www.glsshipping.in
Open in
urlscan Pro
162.251.80.14
Public Scan
Submitted URL: http://www.glsshipping.in/wp-content/themes/globefarer/assets/js/main.min.js
Effective URL: https://www.glsshipping.in/wp-content/themes/globefarer/assets/js/main.min.js
Submission: On March 29 via api from US — Scanned from US
Effective URL: https://www.glsshipping.in/wp-content/themes/globefarer/assets/js/main.min.js
Submission: On March 29 via api from US — Scanned from US
Form analysis
0 forms found in the DOMText Content
!function(a){"use strict";window.qodef={},qodef.body=a("body"),qodef.html=a("html"),qodef.window=a(window),qodef.windowWidth=a(window).width(),qodef.windowHeight=a(window).height(),qodef.scroll=0,a(document).ready(function(){qodef.scroll=a(window).scrollTop(),i.init(),b.init(),n.init(),r.init()}),a(window).on("load",()=>{o.init()}),a(window).resize(function(){qodef.windowWidth=a(window).width(),qodef.windowHeight=a(window).height()}),a(window).scroll(function(){qodef.scroll=a(window).scrollTop()}),a(document).on("globefarer_trigger_get_new_posts",function(){b.init(),n.init()});var i={init:function(){i.addBodyClassName()},isBrowser:function(e){var t=!1;switch(e){case"chrome":t=/Chrome/.test(navigator.userAgent)&&/Google Inc/.test(navigator.vendor);break;case"safari":t=/Safari/.test(navigator.userAgent)&&/Apple Computer/.test(navigator.vendor);break;case"firefox":t=-1<navigator.userAgent.toLowerCase().indexOf("firefox");break;case"ie":t=0<window.navigator.userAgent.indexOf("MSIE ")||!!navigator.userAgent.match(/Trident.*rv\:11\./);break;case"edge":t=/Edge\/\d./i.test(navigator.userAgent)}return t},addBodyClassName:function(){a.each(["chrome","safari","firefox","ie","edge"],function(e,t){i.isBrowser(t)&&void 0!==qodef.body&&("ie"===t&&(t="ms-explorer"),qodef.body.addClass("qodef-browser--"+t))})}},b={init:function(e){this.holder=a(".qodef-swiper-container"),a.extend(this.holder,e),this.holder.length&&this.holder.each(function(){b.initSlider(a(this))})},initSlider:function(e){var t=b.getOptions(e),i=b.getEvents(e,t);new Swiper(e,Object.assign(t,i))},getOptions:function(e,t){var i=void 0!==e.data("options")?e.data("options"):{},n=void 0!==i.direction&&""!==i.direction?i.direction:"horizontal",o=void 0!==i.spaceBetween&&""!==i.spaceBetween?i.spaceBetween:0,a=void 0!==i.slidesPerView&&""!==i.slidesPerView?i.slidesPerView:1,r=void 0!==i.centeredSlides&&""!==i.centeredSlides&&i.centeredSlides,s=void 0!==i.sliderScroll&&""!==i.sliderScroll&&i.sliderScroll,d=void 0===i.loop||""===i.loop||i.loop,l=void 0===i.autoplay||""===i.autoplay||i.autoplay,f=void 0!==i.speed&&""!==i.speed?parseInt(i.speed,10):5e3,c=void 0!==i.speedAnimation&&""!==i.speedAnimation?parseInt(i.speedAnimation,10):800,u=void 0!==i.slideAnimation&&""!==i.slideAnimation?i.slideAnimation:"",h=void 0!==i.customStages&&""!==i.customStages&&i.customStages,g=void 0!==i.outsideNavigation&&"yes"===i.outsideNavigation,p=g?".swiper-button-next-"+i.unique:e.find(".swiper-button-next"),m=g?".swiper-button-prev-"+i.unique:e.find(".swiper-button-prev"),v=e.find(".swiper-pagination");!1!==l&&5e3!==f&&(l={delay:f});var q=void 0!==i.slidesPerView1440&&""!==i.slidesPerView1440?parseInt(i.slidesPerView1440,10):5,w=void 0!==i.slidesPerView1366&&""!==i.slidesPerView1366?parseInt(i.slidesPerView1366,10):4,y=void 0!==i.slidesPerView1024&&""!==i.slidesPerView1024?parseInt(i.slidesPerView1024,10):3,g=void 0!==i.slidesPerView768&&""!==i.slidesPerView768?parseInt(i.slidesPerView768,10):2,f=void 0!==i.slidesPerView680&&""!==i.slidesPerView680?parseInt(i.slidesPerView680,10):1;h||(a<2?g=y=w=q=a:a<3?y=w=q=a:a<4?w=q=a:a<5&&(q=a));a={direction:n,slidesPerView:a="vertical"===n?1:a,centeredSlides:r,sliderScroll:s,spaceBetween:o,autoplay:l,loop:d,speed:c,navigation:{nextEl:p,prevEl:m},pagination:{el:v,type:"bullets",clickable:!0},breakpoints:{0:{slidesPerView:void 0!==i.slidesPerView480&&""!==i.slidesPerView480?parseInt(i.slidesPerView480,10):1},481:{slidesPerView:f},681:{slidesPerView:g},769:{slidesPerView:y},1025:{slidesPerView:w},1367:{slidesPerView:q},1441:{slidesPerView:a}}};return u.length&&"fade"===u&&(a.effect="fade",a.fadeEffect={crossFade:!0}),Object.assign(a,b.getSliderDatas(e))},getSliderDatas:function(e){var t,i=e.data(),n={};for(t in i)i.hasOwnProperty(t)&&"options"!==t&&void 0!==i[t]&&""!==i[t]&&(n[t]=i[t]);return n},getEvents:function(n,o){return{on:{beforeInit:function(){var e,t,i;"vertical"===o.direction&&(t=e=0,(i=n.find(".qodef-e")).length&&i.each(function(){t=a(this).outerHeight(),e<t&&(e=t)}),n.css("height",e),i.css("height",e))},init:function(){var t;n.addClass("qodef-swiper--initialized"),qodef.body.trigger("globefarer_trigger_swiper_is_initialized",[n,o]),o.sliderScroll&&(t=!1,n.on("mousewheel",function(e){e.preventDefault(),t||(t=!0,e.deltaY<0?n[0].swiper.slideNext():n[0].swiper.slidePrev(),setTimeout(function(){t=!1},1e3))}))}}}}};qodef.qodefSwiper=b;var n={init:function(e){this.holder=a(".qodef-magnific-popup"),a.extend(this.holder,e),this.holder.length&&this.holder.each(function(){n.initPopup(a(this))})},initPopup:function(e){e.hasClass("qodef-popup-item")?n.initSingleImagePopup(e):e.hasClass("qodef-popup-gallery")&&n.initGalleryPopup(e)},initSingleImagePopup:function(e){var t=e.data("type");e.magnificPopup({type:t,titleSrc:"title",image:{cursor:null},closeMarkup:'<button title="%title%" type="button" class="mfp-close">'+qodefGlobal.vars.iconClose+"</button>"})},initGalleryPopup:function(e){var e=e.find(".qodef-popup-item"),t=n.generateGalleryItems(e);e.each(function(e){a(this).magnificPopup({items:t,gallery:{enabled:!0,arrowMarkup:'<button title="%title%" type="button" class="mfp-arrow mfp-arrow-%dir%">'+qodefGlobal.vars.iconArrowLeft+"</button>"},index:e,type:"image",image:{cursor:null},closeMarkup:'<button title="%title%" type="button" class="mfp-close">'+qodefGlobal.vars.iconClose+"</button>"})})},generateGalleryItems:function(e){var t=[];return e.length&&e.each(function(){var e=a(this),e={src:e.attr("href"),title:e.attr("title"),type:e.data("type")};t.push(e)}),t}};qodef.qodefMagnificPopup=n;var r={items:"",init:function(e){this.holder=a(".qodef-anchor"),a.extend(this.holder,e),this.holder.length&&(r.items=this.holder,r.clickTrigger(),a(window).on("load",function(){r.checkAnchorOnScroll(),r.checkAnchorOnLoad()}))},clickTrigger:function(){r.items.on("click",function(e){var t=r.getAnchorItem(this),i=t.attr("href"),n=t.prop("hash").split("#")[1],o=window.location.href,a=-1<o.indexOf("#")?o.split("#")[1]:0;(i.indexOf("http")<0||i===o||0!==a&&i.substring(0,i.length-n.length-1)===o.substring(0,o.length-a.length-1)||0===a&&i.substring(0,i.length-n.length-1)===o)&&e.preventDefault(),r.animateScroll(t,n)})},checkAnchorOnLoad:function(){var t=window.location.hash.split("#")[1];void 0!==t&&""!==t&&r.items.length&&r.items.each(function(){var e=r.getAnchorItem(this);-1<e.attr("href").indexOf(t)&&r.animateScroll(e,t)})},checkAnchorOnScroll:function(){var e;1024<qodef.windowWidth&&((e=a("#qodef-page-inner *[id]")).length&&e.each(function(){var e=a(this),t=a('[href*="#'+e.attr("id")+'"]');t.length&&(r.isTargetInView(e)&&r.setActiveState(t),a(window).scroll(function(){r.isTargetInView(e)?r.setActiveState(t):t.removeClass(r.getItemClasses(t))}))}))},isTargetInView:function(e){var t=e[0].getBoundingClientRect(),e=window.innerHeight||document.documentElement.clientHeight;return!(Math.floor(100-(0<=t.top?0:t.top)/-+t.height*100)<20||Math.floor(100-(t.bottom-e)/t.height*100)<20)},getAnchorItem:function(e){return"A"===e.tagName?a(e):a(e).children("a")},animateScroll:function(e,t){var i=""!==t?a('[id="'+t+'"]'):"";if(i.length){i=i.offset().top-r.getHeaderHeight()-qodefGlobal.vars.adminBarHeight;return r.setActiveState(e),qodef.html.stop().animate({scrollTop:Math.round(i)},1e3,function(){history.pushState&&history.pushState(null,"","#"+t)}),!1}},getHeaderHeight:function(){var e=0;return e=1024<qodef.windowWidth&&null!==qodefGlobal.vars.headerHeight&&""!==qodefGlobal.vars.headerHeight?parseInt(qodefGlobal.vars.headerHeight,10):e},setActiveState:function(e){var t=!e.parent().hasClass("qodef-anchor"),i=r.getItemClasses(e);r.items.removeClass(i),(t?e:e.parent()).addClass(i)},getItemClasses:function(e){return"qodef-anchor--active"+(e.parents("#qodef-page-header")?" current-menu-item current_page_item":"")}};qodef.qodefAnchor=r;var e={check:function(e,t){if(e.length){var i=e.find("img");if(i.length)for(var n=0,o=0;o<i.length;o++){var a,r=i[o];r.complete?++n===i.length&&t.call(e):((a=new Image).addEventListener("load",function(){if(++n===i.length)return t.call(e),!1},!1),a.src=r.src)}else t.call(e)}}};qodef.qodefWaitForImages=e;const o={init(){const e=a(".qodef-custom-appear-right, .qodef-custom-appear-center");e.length&&e.each((e,t)=>{o.appearAnimation(a(t))})},appearAnimation(e){qodefCore.qodefIsInViewport.check(e,()=>{e.addClass("qodef--appeared")})}};qodef.qodefCustomAppear=o,"function"!=typeof Object.assign&&(Object.assign=function(e){if(null==e)throw new TypeError("Cannot convert undefined or null to object");e=Object(e);for(var t=1;t<arguments.length;t++){var i=arguments[t];if(null!==i)for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e})}(jQuery),function(n){"use strict";n(document).ready(function(){o.init()}),n(window).resize(function(){o.init()}),n(document).on("globefarer_trigger_get_new_posts",function(e,t){t.hasClass("qodef-blog")&&(i.resize(t),o.resize(t))});var i={init:function(){var e=n(".qodef-blog");e.length&&i.resize(e)},resize:function(e){e=e.find(".wp-video-shortcode, .wp-audio-shortcode").not(".mejs-container");e.length&&e.each(function(){var e=n(this);"function"==typeof e.mediaelementplayer&&e.mediaelementplayer({videoWidth:"100%",videoHeight:"56.5%"})})}};qodef.qodefReInitMediaElementPostFormats=i;var o={init:function(){var e=n(".qodef-blog");e.length&&o.resize(e)},resize:function(e){e=e.find(".qodef-e-media iframe");e.length&&e.each(function(){var e=n(this),t=e.attr("width"),i=e.attr("height"),i=e.width()/t*i;e.css("height",i)})}};qodef.qodefResizeIframes=o}(jQuery),function(n){"use strict";n(document).ready(function(){r.init()}),n(document).on("globefarer_trigger_get_new_posts",function(e,t){t.hasClass("qodef-filter--on")&&t.removeClass("qodef--filter-loading")});var r={customListQuery:{},init:function(e){this.holder=n(".qodef-filter--on"),n.extend(this.holder,e),this.holder.length&&this.holder.each(function(){var e=n(this),t=e.find(".qodef-m-filter-item");r.checkCustomListQuery(e.data("options")),r.clickEvent(e,t)})},checkCustomListQuery:function(e){void 0!==e.additional_query_args&&void 0!==e.additional_query_args.tax_query&&(r.customListQuery=e.additional_query_args.tax_query)},clickEvent:function(t,i){i.on("click",function(e){e.preventDefault();e=n(this);e.hasClass("qodef--active")||(t.addClass("qodef--filter-loading"),i.removeClass("qodef--active"),e.addClass("qodef--active"),r.setVisibility(t,e))})},setVisibility:function(e,t){var i=t.data("taxonomy"),n=t.data("filter"),o="*"===n,a=e.data("options"),t={},t=o?r.customListQuery:{0:{taxonomy:i,field:"number"==typeof n?"term_id":"slug",terms:n}};a.additional_query_args={tax_query:t},qodef.body.trigger("globefarer_trigger_load_more",[e,1])},isMasonryLayout:function(e){return e.hasClass("qodef-layout--masonry")},hasLoadMore:function(e){return e.hasClass("qodef-pagination-type--load-more")}};qodef.qodefFilter=r}(jQuery),function(t){"use strict";t(document).ready(function(){o.init()}),t(window).resize(function(){o.reInit()}),t(document).on("globefarer_trigger_get_new_posts",function(e,t){t.hasClass("qodef-layout--masonry")&&o.init()});var o={init:function(e){this.holder=t(".qodef-layout--masonry"),t.extend(this.holder,e),this.holder.length&&this.holder.each(function(){o.createMasonry(t(this))})},reInit:function(e){this.holder=t(".qodef-layout--masonry"),t.extend(this.holder,e),this.holder.length&&this.holder.each(function(){var e=t(this).find(".qodef-grid-inner");"function"==typeof e.isotope&&e.isotope("layout")})},createMasonry:function(t){var i=t.find(".qodef-grid-inner"),n=i.find(".qodef-grid-item");qodef.qodefWaitForImages.check(i,function(){var e;"function"==typeof i.isotope&&(i.isotope({layoutMode:"packery",itemSelector:".qodef-grid-item",percentPosition:!0,masonry:{columnWidth:".qodef-grid-masonry-sizer",gutter:".qodef-grid-masonry-gutter"}}),t.hasClass("qodef-items--fixed")&&(e=o.getFixedImageSize(i,n),o.setFixedImageProportionSize(i,n,e)),i.isotope("layout")),i.addClass("qodef--masonry-init")})},getFixedImageSize:function(e,t){var i=e.find(".qodef-item--square");if(i.length){var n=i.find("img"),i=n.width(),n=n.height();return i!==n?n:i}return e.find(".qodef-grid-masonry-sizer").width()-2*parseInt(t.css("paddingLeft"),10)},setFixedImageProportionSize:function(e,t,i){var n=parseInt(t.css("paddingLeft"),10),o=(e.find(".qodef-item--square"),e.find(".qodef-item--landscape")),a=e.find(".qodef-item--portrait"),r=e.find(".qodef-item--huge-square"),e=qodef.windowWidth<=680;t.css("height",i),o.length&&o.css("height",Math.round(i/2)),a.length&&a.css("height",Math.round(2*(i+n))),e||(o.length&&o.css("height",i),r.length&&r.css("height",Math.round(2*(i+n))))}};qodef.qodefMasonryLayout=o}(jQuery),function(t){"use strict";t(document).ready(function(){i.init()});var i={init:function(){var e=t("#qodef-page-mobile-header");e.length&&(i.initMobileHeaderOpener(e),i.initDropDownMobileMenu())},initMobileHeaderOpener:function(e){var t,i=e.find(".qodef-mobile-header-opener");i.length&&(t=e.find(".qodef-mobile-header-navigation"),i.on("tap click",function(e){e.preventDefault(),t.is(":visible")?(t.slideUp(450),i.removeClass("qodef--opened")):(t.slideDown(450),i.addClass("qodef--opened"))}))},initDropDownMobileMenu:function(){var e=t(".qodef-mobile-header-navigation .menu-item-has-children > .qodef-menu-item-arrow, .qodef-mobile-header-navigation .menu-item-has-children.qodef--hide-link > a");e.length&&e.each(function(){var n=t(this);n.on("tap click",function(e){e.preventDefault();var t,i=n.parent(),e=i.siblings(".menu-item-has-children");i.hasClass("menu-item-has-children")&&((t=i.find("ul.sub-menu").first()).is(":visible")?(t.slideUp(450),i.removeClass("qodef--opened")):(i.addClass("qodef--opened"),(0===e.length?i:i.siblings().removeClass("qodef--opened")).find(".sub-menu").slideUp(400,function(){t.slideDown(400)})))})})}}}(jQuery),function(a){a(document).ready(function(){e.init()});var e={init:function(){var e=a(".qodef-header-navigation.qodef-header-navigation-initial > ul > li.qodef-menu-item--narrow.menu-item-has-children");e.length&&e.each(function(){var e,t=a(this),i=t.offset().left,n=t.find(" > ul"),o=n.outerWidth(),i=a(window).width()-i;0<t.find("li.menu-item-has-children").length&&(e=i-o),n.removeClass("qodef-drop-down--right"),(i<o||e<o)&&n.addClass("qodef-drop-down--right")})}}}(jQuery),function(a){"use strict";a(document).ready(function(){r.init()}),a(window).scroll(function(){r.scroll()}),a(document).on("globefarer_trigger_load_more",function(e,t,i){r.triggerLoadMore(t,i)});var r={init:function(e){this.holder=a(".qodef-pagination--on"),a.extend(this.holder,e),this.holder.length&&this.holder.each(function(){var e=a(this);r.initPaginationType(e)})},scroll:function(e){this.holder=a(".qodef-pagination--on"),a.extend(this.holder,e),this.holder.length&&this.holder.each(function(){var e=a(this);e.hasClass("qodef-pagination-type--infinite-scroll")&&r.initInfiniteScroll(e)})},initPaginationType:function(e){e.hasClass("qodef-pagination-type--standard")?r.initStandard(e):e.hasClass("qodef-pagination-type--load-more")?r.initLoadMore(e):e.hasClass("qodef-pagination-type--infinite-scroll")&&r.initInfiniteScroll(e)},initStandard:function(i,e){var t,n=i.find(".qodef-m-pagination-items");n.length&&(t=i.data("options"),e=void 0!==e&&""!==e?parseInt(e,10):1,r.changeStandardState(i,t.max_pages_num,e),n.children().each(function(){var t=a(this);t.on("click",function(e){e.preventDefault(),t.hasClass("qodef--active")||r.getNewPosts(i,t.data("paged"))})}))},changeStandardState:function(e,t,i){var n,o,a;e.hasClass("qodef-pagination-type--standard")&&(o=(n=e.find(".qodef-m-pagination-items")).children(".qodef--number"),a=n.children(".qodef--prev"),e=n.children(".qodef--next"),r.standardPaginationVisibility(n,t),o.removeClass("qodef--active").eq(i-1).addClass("qodef--active"),a.data("paged",i-1),1<i?(a.show(),a.next().removeClass("qodef-prev--hidden")):(a.hide(),a.next().addClass("qodef-prev--hidden")),e.data("paged",i+1),i===t?e.hide():e.show())},standardPaginationVisibility:function(e,t){1===t?e.hide():1<t&&!e.is(":visible")&&e.show()},changeStandardHtml:function(e,t,i,n){var o,a;e.hasClass("qodef-pagination-type--standard")&&(o=e.find(".qodef-m-pagination"),a=e.find(".qodef-m-pagination-spinner"),r.standardPaginationVisibility(o,t),o.remove(),a.remove(),e.append(n),r.initStandard(e,i))},triggerStandardScrollAnimation:function(e){e.hasClass("qodef-pagination-type--standard")&&a("html, body").animate({scrollTop:e.offset().top-100},500)},initLoadMore:function(t){t.find(".qodef-load-more-button").on("click",function(e){e.preventDefault(),r.getNewPosts(t)})},triggerLoadMore:function(e,t){r.getNewPosts(e,t)},loadMoreButtonVisibility:function(e,t){e.hasClass("qodef-pagination-type--load-more")&&(t.next_page>t.max_pages_num||1===t.max_pages_num?e.find(".qodef-load-more-button").hide():1<t.max_pages_num&&t.next_page<=t.max_pages_num&&e.find(".qodef-load-more-button").show())},initInfiniteScroll:function(e){var t=e.outerHeight()+e.offset().top,i=qodef.scroll+qodef.windowHeight,n=e.data("options");!e.hasClass("qodef--loading")&&t<i&&n.max_pages_num>=n.next_page&&r.getNewPosts(e)},getNewPosts:function(t,i){t.addClass("qodef--loading");var n=t.children(".qodef-grid-inner"),o=t.data("options");r.setNextPageValue(o,i,!1),a.ajax({type:"GET",url:qodefGlobal.vars.restUrl+qodefGlobal.vars.paginationRestRoute,data:{options:o},beforeSend:function(e){e.setRequestHeader("X-WP-Nonce",qodefGlobal.vars.restNonce)},success:function(e){"success"===e.status?(o.max_pages_num!==e.data.max_pages_num&&(o.max_pages_num=e.data.max_pages_num),r.setNextPageValue(o,i,!0),r.changeStandardHtml(t,o.max_pages_num,i,e.data.pagination_html),r.addPosts(n,e.data.html,i),r.reInitMasonryPosts(t,n),setTimeout(function(){qodef.body.trigger("globefarer_trigger_get_new_posts",[t,e.data,i])},300),r.triggerStandardScrollAnimation(t),r.loadMoreButtonVisibility(t,o)):console.log(e.message)},complete:function(){t.removeClass("qodef--loading")}})},setNextPageValue:function(e,t,i){void 0===t||""===t||i?i&&(e.next_page=parseInt(e.next_page,10)+1):e.next_page=t},addPosts:function(e,t,i){void 0!==i&&""!==i?e.html(t):e.append(t)},reInitMasonryPosts:function(e,t){e.hasClass("qodef-layout--masonry")&&(t.isotope("reloadItems").isotope({sortBy:"original-order"}),setTimeout(function(){t.isotope("layout")},200))}};qodef.qodefPagination=r}(jQuery);