diff --git a/jquery-ptlinked_plugin.js b/jquery-ptlinked_plugin.js index a0b0cdf..28170e4 100644 --- a/jquery-ptlinked_plugin.js +++ b/jquery-ptlinked_plugin.js @@ -1,7 +1,7 @@ /** * PTLINKED Plugin - Exercise Program Library * Customer: MDVIP - * Version: 1.0.7 + * Version: 1.0.8 * Author: Mike Frank (PTLINKED, LLC.) - mfrank@ptlinked.com * * Table of Contents @@ -1964,6 +1964,7 @@ function print_program( ) { var url = options["api_root_url"] + "/exerciseprogram/print_program" ; + var windowReference = window.open( "about:blank", "_PDF_VIEWER" ) ; var parameters = fetch_parameters( ) ; $.ajax({ type: "POST", @@ -1986,7 +1987,7 @@ }, success: function( data, textStatus, jqXHR ) { var status = jqXHR["status"] ; - window.open( data, "_blank" ) ; + windowReference.location = data ; } }); } diff --git a/jquery-ptlinked_plugin.min.js b/jquery-ptlinked_plugin.min.js index 7ca1399..303466c 100644 --- a/jquery-ptlinked_plugin.min.js +++ b/jquery-ptlinked_plugin.min.js @@ -1 +1 @@ -!function(U){var W="ptlinkedLibrary";function r(e,g){var s=e,t=U(e);g=U.extend({},U.fn[W].defaults,g);var a,i,l=0,o={},n=500,f={},r={},d=!1,c=!0,p=!1,u=0,v=25,h=0,m="",_=!1,b={};function y(){var e=g.api_root_url+"/predesigned/bodyregions/html";G()&&(e=g.api_root_url+"/predesigned/bodyregions/html2"),U.ajax({type:"GET",url:e,crossDomain:!0,headers:{"token-authorization-x":g.api_key,"ptlinked-uid-x":g.user_uid,"ptlinked-utype-x":g.user_type},dataType:"json",error:function(e,i,s){g.debug_mode&&(console.log("::::: Load Categories AJAX :::::"),console.log("Request Error or Timeout"),console.log("Status Code: "+e.status),console.log("Status Msg: "+e.statusText),console.log("Response Msg: "+e.responseText),console.log("::::: ===== ===== ===== ===== :::::")),_=!0,X("predesigned--sys_error","CAT"+e.status+" - "+e.statusText)},success:function(e,i,s){var p,t,r;G()?(p=U("#predesigned_filters--bodyregion-mobile"),U.each(e,function(e,i){p.append(i)}),t=g.assets_cdn+"bodyregion_highlights/bodyregion--empty.png",U(".ptlinked--m_bodyregion_highlight").find("img").attr("src",t),U(".ptlinked--m_bodyregion_highlight").find(".highlight-label").html("All Programs"),U(".ptlinked--m_bodyregion_highlight").show(),p.select2(),p.unbind("select2:select").on("select2:select",function(e){var i=U("#predesigned_filters--bodyregion-mobile").val(),s=U("#predesigned_filters--bodyregion-mobile").find(":selected").data("customcat");0View All'),a.html(""),U.each(e.types,function(e,i){s.append(i),a.append(i)});var n=U("ul.filter--item_list li");a.select2(),n.unbind("click").on("click",function(){var e=U(this).data("oid"),i=U(this).data("filter_label"),s=U(this).data("filter_type"),t=U("#selected_bodyregion_id").val(),r=b[t].title;A(f.c,"","bodyregion","remove"),U("ul.category-bubbles-list li").removeClass("active-filter"),A(t,r,"bodyregion","add"),U("ul.category-bubbles-list li[data-oid='"+t+"'][data-customcat='0']").addClass("active-filter"),f.c=t,0Filter by condition"),a.html(""),U.each(e,function(e,i){s.append(i),a.append(i)}),e.length<1||0==e?U("#predesigned_filters--conditions-mobile").prop("disabled",!0):U("#predesigned_filters--conditions-mobile").prop("disabled",!1),s.select2(),a.select2(),s.unbind("select2:select").on("select2:select",function(e){var i=U("#filter--condition_type").val(),s=U("#filter--condition_type").select2().find(":selected").data("title"),t=U("#filter--condition_type").select2().find(":selected").data("type"),r=U("#selected_bodyregion_id").val(),a=U(".ptlinked--dropdown_bodyregion_highlight").find(".highlight-label").html();A(f.c,"","bodyregion","remove"),U("ul.category-bubbles-list li").removeClass("active-filter"),A(r,a,"bodyregion","add"),U("ul.category-bubbles-list li[data-oid='"+r+"'][data-customcat='0']").addClass("active-filter"),f.c=r,u=(void 0!==f.f4?f.f4!=i?(U(".clear-condition-filters").hasClass("hide")&&U(".clear-condition-filters").removeClass("hide"),A(f.f4=i,s,t,"add"),U("ul.filter--item_list li").removeClass("selected"),U("ul.filter--item_list").find("li[data-oid=1]").addClass("selected"),A(f.f1,"","type","remove"),f.f1=1):(U("ul.filter--item_list li").removeClass("selected"),0Filter by sub-category"),t.html(""),U.each(e,function(e,i){s.append(i),t.append(i)}),s.select2(),t.select2(),s.on("select2:select",function(e){var i=U("#predesigned_filters--subcategories").val();f.c1=i,r.hasClass("open")&&r.removeClass("open"),u=0,E()}),t.on("select2:select",function(e){var i=U("#predesigned_filters--subcategories-mobile").val();f.c1=i,u=0,E(),a.hasClass("opened")&&a.removeClass("opened");var s=t.parent().parent().find(".mobile-filter--clear");1==i?s.hasClass("active")&&s.removeClass("active"):s.hasClass("active")||s.addClass("active")}),void 0!==f.c1&&1'+t.bodyregion.title+'',i.append(e),s.append(e)),void 0!==t.type.oid&&(e='
  • '+t.type.title+'
  • ',i.append(e),s.append(e)),void 0!==t.condition.oid&&(e='
  • '+t.condition.title+'
  • ',i.append(e),s.append(e)),U("ul.predesigned--filter_crumbtrail li.service-bubble span.remove_filter").unbind("click").on("click",j),U("ul.mobile-predesigned--filter_crumbtrail li.service-bubble span.remove_filter").unbind("click").on("click",j)}function j(){var e=U(this).parent().data("oid"),i=U(this).parent().data("type");switch(i){case"bodyregion":f.c=0,f.c1=0,1==f.f1&&(P(f.f4,"condition"),f.f4=0,P(1,"type"),f.f1=0);break;case"type":f.f1=0,1==f.f1&&(P(f.f4,"condition"),f.f4=0,P(1,"type"),f.f1=0);break;case"condition":P(f.f4,"condition"),f.f4=0,P(1,"type"),f.f1=0}P(e,i),M(),L(),E()}function E(){D(),function(){var e=!1,i=!1;"none"!=U(".mobile-filter-panel").css("display")&&(i=!0),void 0!==f.f1&&0')}(),I(t.total_returned,t.total_records),p=!1},200),0==u&&U(".ptlinked--application_container > .scroll-on-hover").scrollTop(0),U(".cards--grid_container_item").not(".cards--grid_placeholder").unbind("click").on("click",F),-1==f.c&&U(".cards--grid_container_item .btn-remove-favorite").unbind("click").on("click",function(e){e.stopPropagation();e=U(this).data("exercise_program_id");U("#ptlinked--dialog-message").data("exercise_program_id",e),H("Are you sure?","This action cannot be undone. Are you sure you want to remove this favorite exercise program?","Yes, Remove",z)}),R(),T(e.conditions),S(e.subcategories),_||X("predesigned--results_display")):201==s&&(I(0,0),R(),T(e.conditions),S(e.subcategories),_||X("predesigned--no_results_display"),p=!1)}}))}function z(){var e=g.api_root_url+"/users/remove_favorite",i=U("#ptlinked--dialog-message").data("exercise_program_id");U.ajax({type:"POST",crossDomain:!0,headers:{"token-authorization-x":g.api_key,"ptlinked-uid-x":g.user_uid,"ptlinked-utype-x":g.user_type},url:e,data:{exercise_program_id:i},dataType:"json",error:function(e,i,s){g.debug_mode&&(console.log("::::: Remove Favorite Program AJAX :::::"),console.log("Request Error or Timeout"),console.log("Status Code: "+e.status),console.log("Status Msg: "+e.statusText),console.log("Response Msg: "+e.responseText),console.log("::::: ===== ===== ===== ===== :::::")),_=!0,X("predesigned--sys_error","USR"+e.status+" - "+e.statusText)},success:function(e,i,s){s=s.status;200==s?D():201==s&&H("Error","There was an error trying to remove the exercise program. Please refresh and try again.")}})}function F(e){var i=U(this).data("epid"),s=U(this).data("code"),t=U(this).find(".cards--program_title").text();0
    X
      ').append(function(){var e="";"mdvip"==g.category_slider_style&&(e="mdvip");return'
        '}()).append('
        Loading...

        No Results

        Sorry, we are unable to find any exercise programs with the filters and/or search terms you are using.

        Please try a different combination of filters and/or search terms.



        NOTE: Every exercise program published on this site has been created and reviewed by a team of licensed physical therapists.

        Something Went Wrong

        Sorry, there seems to be an issue loading this component. Please refresh your browser.

        If this problem persists, please contact technical support and provide them with the following error number:

        #ERR010203

        '),t.find(".cards--grid_renderer").prepend('
          X
          '),$bel=U("body"),$bel.append(function(){var e="";"modal"==g.exercise_program_viewer&&(e="mdvip-modal");var i="";i='

            ',i+='
            '}()),$bel.append('
            • FiltersClear All Filters
            Hip
            '),$bel.append("bootstrap"==g.dialog_box_type?'':'

            '),$bel.append('
            Hip
            View By Type
              View By Condition
              ')}function X(e,i){"predesigned--results_display"==e?(U(".info-box-item").hasClass("active")&&U(".info-box-item").removeClass("active"),U("#predesigned--results_display").hasClass("display_info_box")&&U("#predesigned--results_display").removeClass("display_info_box")):("predesigned--sys_error"==e&&(U(".info-box-item").find("p.error-number").html("#"+i),t.find(".scroll-container").hide(),t.find("#grid-filter").hide()),U("#predesigned--results_display").hasClass("display_info_box")||U("#predesigned--results_display").addClass("display_info_box"),U(".info-box-item").hasClass("active")&&U(".info-box-item").removeClass("active"),U("#"+e).addClass("active"),U("#load-more-records").hide())}function G(){var e=window.matchMedia("only screen and (max-width: 1024px)").matches;return g.debug_mode&&(e?console.log("----- Mobile Device Detected"):console.log("----- Desktop Device Detected")),e}function H(e,i,s,t){var r;"jquery"==g.dialog_box_type?((r=U("#ptlinked--dialog-message")).attr("title",e),r.find("p.ptlinked-dialog--message").html(i),s&&t?(r.find("#ptlinked-modal--action_btn").html(s),r.dialog({modal:!0,title:e,buttons:[{text:s,click:function(){U(this).dialog("close"),t()}},{text:"Cancel",click:function(){U(this).dialog("close")}}]})):r.dialog({modal:!0,title:e,buttons:[{text:"Ok",click:function(){U(this).dialog("close")}}]})):((r=[]).title=e,r.content=i,r.confirmation_btn=s,r.confirmation_callbackn=t,J("onShowDialog",r))}function J(e,i){void 0!==g[e]&&g[e].call(s,i)}return g.debug_mode&&console.log("----- Rendering User Interface"),O(),g.debug_mode&&console.log("----- Register User Session"),i=g.api_root_url+"/users/register_plugin",U.ajax({type:"POST",crossDomain:!0,headers:{"token-authorization-x":g.api_key,"ptlinked-uid-x":g.user_uid,"ptlinked-utype-x":g.user_type},url:i,dataType:"json",error:function(e,i,s){g.debug_mode&&(console.log("::::: Register User AJAX :::::"),console.log("Request Error or Timeout"),console.log("Status Code: "+e.status),console.log("Status Msg: "+e.statusText),console.log("Response Msg: "+e.responseText),console.log("::::: ===== ===== ===== ===== :::::")),_=!0,X("predesigned--sys_error","REG"+e.status+" - "+e.statusText)},success:function(e,i,s){s=s.status;200==s&&(g.debug_mode&&console.log("::::: Plugin Initialization :::::"),f.c=0,f.c1=0,f.v="",f.f1=0,f.f4=0,u=0,v=25,o={bodyregion:{},type:{},condition:{},myfavorites:{},customcat:{}},g.debug_mode&&console.log("----- Calculate Plugin Container Height"),function(){var e=0;g.header_element_class.split(","),e=Math.round(U("#block-siteheader").outerHeight()),g.debug_mode&&console.log("----- Calculated Page Header Height: "+e);var i=Math.round(U("body").outerHeight()),i=Math.round(i-e);t.css("height",i),e=U(".scroll-container"),e=Math.round(U(e).outerHeight()),U(".scroll-on-hover").css("height",Math.round(i-e))}(),g.debug_mode&&console.log("----- Process Page Request Parameters"),r=function(){var i={};return document.location.search.replace(/\??(?:([^=]+)=([^&]*)&?)/g,function(){function e(e){return decodeURIComponent(e.split("+").join(" "))}i[e(arguments[1])]=e(arguments[2])}),i}(),g.debug_mode&&console.log("----- Initializing the Filter Drop Down"),U(".card--grid_filter").unbind("click").on("click",function(){var e=U("#grid-filter");e.hasClass("open")?e.removeClass("open"):e.addClass("open")}),g.debug_mode&&console.log("----- Initializing the Mobile Filter Menu"),U("#mobile-predesigned--filter_link").unbind("click").on("click",function(){U(".mobile-filter-panel").hasClass("opened")?U(".mobile-filter-panel").removeClass("opened"):U(".mobile-filter-panel").addClass("opened")}),U("#mbtn-close_filter_menu").unbind("click").on("click",function(){U(".mobile-filter-panel").hasClass("opened")&&U(".mobile-filter-panel").removeClass("opened")}),g.debug_mode&&console.log("----- Initializing Search Bar"),function(){var i=U("#header-search"),s=U("#mheader-search"),t=U(".header-search-bar-clear"),r=U(".mheader-search-bar-clear");i.val(""),s.val(""),i.unbind("keypress").on("keypress",function(e){13==e.keyCode&&(f.v=U.trim(i.val()),""==f.v?(i.val(""),u=0,D(),t.hasClass("active")&&t.removeClass("active")):(u=0,D(),t.hasClass("active")||t.addClass("active")))}),s.unbind("keypress").on("keypress",function(e){13==e.keyCode&&(f.v=U.trim(s.val()),""==f.v?(s.val(""),u=0,D(),r.hasClass("active")&&r.removeClass("active")):(u=0,D(),r.hasClass("active")||r.addClass("active"),U(".navbar-mobile--search_panel").hasClass("displayed")&&U(".navbar-mobile--search_panel").removeClass("displayed"),U(".ptl-mobile_search_button").hasClass("active")||U(".ptl-mobile_search_button").addClass("active")))}),U("#search-icon-legacy").unbind("click").on("click",function(e){2View All'),a.html(""),W.each(e.types,function(e,i){s.append(i),a.append(i)});var n=W("ul.filter--item_list li");a.select2(),n.unbind("click").on("click",function(){var e=W(this).data("oid"),i=W(this).data("filter_label"),s=W(this).data("filter_type"),t=W("#selected_bodyregion_id").val(),r=b[t].title;A(f.c,"","bodyregion","remove"),W("ul.category-bubbles-list li").removeClass("active-filter"),A(t,r,"bodyregion","add"),W("ul.category-bubbles-list li[data-oid='"+t+"'][data-customcat='0']").addClass("active-filter"),f.c=t,0Filter by condition"),a.html(""),W.each(e,function(e,i){s.append(i),a.append(i)}),e.length<1||0==e?W("#predesigned_filters--conditions-mobile").prop("disabled",!0):W("#predesigned_filters--conditions-mobile").prop("disabled",!1),s.select2(),a.select2(),s.unbind("select2:select").on("select2:select",function(e){var i=W("#filter--condition_type").val(),s=W("#filter--condition_type").select2().find(":selected").data("title"),t=W("#filter--condition_type").select2().find(":selected").data("type"),r=W("#selected_bodyregion_id").val(),a=W(".ptlinked--dropdown_bodyregion_highlight").find(".highlight-label").html();A(f.c,"","bodyregion","remove"),W("ul.category-bubbles-list li").removeClass("active-filter"),A(r,a,"bodyregion","add"),W("ul.category-bubbles-list li[data-oid='"+r+"'][data-customcat='0']").addClass("active-filter"),f.c=r,u=(void 0!==f.f4?f.f4!=i?(W(".clear-condition-filters").hasClass("hide")&&W(".clear-condition-filters").removeClass("hide"),A(f.f4=i,s,t,"add"),W("ul.filter--item_list li").removeClass("selected"),W("ul.filter--item_list").find("li[data-oid=1]").addClass("selected"),A(f.f1,"","type","remove"),f.f1=1):(W("ul.filter--item_list li").removeClass("selected"),0Filter by sub-category"),t.html(""),W.each(e,function(e,i){s.append(i),t.append(i)}),s.select2(),t.select2(),s.on("select2:select",function(e){var i=W("#predesigned_filters--subcategories").val();f.c1=i,r.hasClass("open")&&r.removeClass("open"),u=0,E()}),t.on("select2:select",function(e){var i=W("#predesigned_filters--subcategories-mobile").val();f.c1=i,u=0,E(),a.hasClass("opened")&&a.removeClass("opened");var s=t.parent().parent().find(".mobile-filter--clear");1==i?s.hasClass("active")&&s.removeClass("active"):s.hasClass("active")||s.addClass("active")}),void 0!==f.c1&&1'+t.bodyregion.title+'',i.append(e),s.append(e)),void 0!==t.type.oid&&(e='
            • '+t.type.title+'
            • ',i.append(e),s.append(e)),void 0!==t.condition.oid&&(e='
            • '+t.condition.title+'
            • ',i.append(e),s.append(e)),W("ul.predesigned--filter_crumbtrail li.service-bubble span.remove_filter").unbind("click").on("click",j),W("ul.mobile-predesigned--filter_crumbtrail li.service-bubble span.remove_filter").unbind("click").on("click",j)}function j(){var e=W(this).parent().data("oid"),i=W(this).parent().data("type");switch(i){case"bodyregion":f.c=0,f.c1=0,1==f.f1&&(P(f.f4,"condition"),f.f4=0,P(1,"type"),f.f1=0);break;case"type":f.f1=0,1==f.f1&&(P(f.f4,"condition"),f.f4=0,P(1,"type"),f.f1=0);break;case"condition":P(f.f4,"condition"),f.f4=0,P(1,"type"),f.f1=0}P(e,i),M(),L(),E()}function E(){D(),function(){var e=!1,i=!1;"none"!=W(".mobile-filter-panel").css("display")&&(i=!0),void 0!==f.f1&&0')}(),I(t.total_returned,t.total_records),p=!1},200),0==u&&W(".ptlinked--application_container > .scroll-on-hover").scrollTop(0),W(".cards--grid_container_item").not(".cards--grid_placeholder").unbind("click").on("click",F),-1==f.c&&W(".cards--grid_container_item .btn-remove-favorite").unbind("click").on("click",function(e){e.stopPropagation();e=W(this).data("exercise_program_id");W("#ptlinked--dialog-message").data("exercise_program_id",e),H("Are you sure?","This action cannot be undone. Are you sure you want to remove this favorite exercise program?","Yes, Remove",z)}),R(),T(e.conditions),S(e.subcategories),_||X("predesigned--results_display")):201==s&&(I(0,0),R(),T(e.conditions),S(e.subcategories),_||X("predesigned--no_results_display"),p=!1)}}))}function z(){var e=g.api_root_url+"/users/remove_favorite",i=W("#ptlinked--dialog-message").data("exercise_program_id");W.ajax({type:"POST",crossDomain:!0,headers:{"token-authorization-x":g.api_key,"ptlinked-uid-x":g.user_uid,"ptlinked-utype-x":g.user_type},url:e,data:{exercise_program_id:i},dataType:"json",error:function(e,i,s){g.debug_mode&&(console.log("::::: Remove Favorite Program AJAX :::::"),console.log("Request Error or Timeout"),console.log("Status Code: "+e.status),console.log("Status Msg: "+e.statusText),console.log("Response Msg: "+e.responseText),console.log("::::: ===== ===== ===== ===== :::::")),_=!0,X("predesigned--sys_error","USR"+e.status+" - "+e.statusText)},success:function(e,i,s){s=s.status;200==s?D():201==s&&H("Error","There was an error trying to remove the exercise program. Please refresh and try again.")}})}function F(e){var i=W(this).data("epid"),s=W(this).data("code"),t=W(this).find(".cards--program_title").text();0
              X
                ').append(function(){var e="";"mdvip"==g.category_slider_style&&(e="mdvip");return'
                  '}()).append('
                  Loading...

                  No Results

                  Sorry, we are unable to find any exercise programs with the filters and/or search terms you are using.

                  Please try a different combination of filters and/or search terms.



                  NOTE: Every exercise program published on this site has been created and reviewed by a team of licensed physical therapists.

                  Something Went Wrong

                  Sorry, there seems to be an issue loading this component. Please refresh your browser.

                  If this problem persists, please contact technical support and provide them with the following error number:

                  #ERR010203

                  '),t.find(".cards--grid_renderer").prepend('
                    X
                    '),$bel=W("body"),$bel.append(function(){var e="";"modal"==g.exercise_program_viewer&&(e="mdvip-modal");var i="";i='

                      ',i+='
                      '}()),$bel.append('
                      • FiltersClear All Filters
                      Hip
                      '),$bel.append("bootstrap"==g.dialog_box_type?'':'

                      '),$bel.append('
                      Hip
                      View By Type
                        View By Condition
                        ')}function X(e,i){"predesigned--results_display"==e?(W(".info-box-item").hasClass("active")&&W(".info-box-item").removeClass("active"),W("#predesigned--results_display").hasClass("display_info_box")&&W("#predesigned--results_display").removeClass("display_info_box")):("predesigned--sys_error"==e&&(W(".info-box-item").find("p.error-number").html("#"+i),t.find(".scroll-container").hide(),t.find("#grid-filter").hide()),W("#predesigned--results_display").hasClass("display_info_box")||W("#predesigned--results_display").addClass("display_info_box"),W(".info-box-item").hasClass("active")&&W(".info-box-item").removeClass("active"),W("#"+e).addClass("active"),W("#load-more-records").hide())}function G(){var e=window.matchMedia("only screen and (max-width: 1024px)").matches;return g.debug_mode&&(e?console.log("----- Mobile Device Detected"):console.log("----- Desktop Device Detected")),e}function H(e,i,s,t){var r;"jquery"==g.dialog_box_type?((r=W("#ptlinked--dialog-message")).attr("title",e),r.find("p.ptlinked-dialog--message").html(i),s&&t?(r.find("#ptlinked-modal--action_btn").html(s),r.dialog({modal:!0,title:e,buttons:[{text:s,click:function(){W(this).dialog("close"),t()}},{text:"Cancel",click:function(){W(this).dialog("close")}}]})):r.dialog({modal:!0,title:e,buttons:[{text:"Ok",click:function(){W(this).dialog("close")}}]})):((r=[]).title=e,r.content=i,r.confirmation_btn=s,r.confirmation_callbackn=t,J("onShowDialog",r))}function J(e,i){void 0!==g[e]&&g[e].call(s,i)}return g.debug_mode&&console.log("----- Rendering User Interface"),O(),g.debug_mode&&console.log("----- Register User Session"),i=g.api_root_url+"/users/register_plugin",W.ajax({type:"POST",crossDomain:!0,headers:{"token-authorization-x":g.api_key,"ptlinked-uid-x":g.user_uid,"ptlinked-utype-x":g.user_type},url:i,dataType:"json",error:function(e,i,s){g.debug_mode&&(console.log("::::: Register User AJAX :::::"),console.log("Request Error or Timeout"),console.log("Status Code: "+e.status),console.log("Status Msg: "+e.statusText),console.log("Response Msg: "+e.responseText),console.log("::::: ===== ===== ===== ===== :::::")),_=!0,X("predesigned--sys_error","REG"+e.status+" - "+e.statusText)},success:function(e,i,s){s=s.status;200==s&&(g.debug_mode&&console.log("::::: Plugin Initialization :::::"),f.c=0,f.c1=0,f.v="",f.f1=0,f.f4=0,u=0,v=25,o={bodyregion:{},type:{},condition:{},myfavorites:{},customcat:{}},g.debug_mode&&console.log("----- Calculate Plugin Container Height"),function(){var e=0;g.header_element_class.split(","),e=Math.round(W("#block-siteheader").outerHeight()),g.debug_mode&&console.log("----- Calculated Page Header Height: "+e);var i=Math.round(W("body").outerHeight()),i=Math.round(i-e);t.css("height",i),e=W(".scroll-container"),e=Math.round(W(e).outerHeight()),W(".scroll-on-hover").css("height",Math.round(i-e))}(),g.debug_mode&&console.log("----- Process Page Request Parameters"),r=function(){var i={};return document.location.search.replace(/\??(?:([^=]+)=([^&]*)&?)/g,function(){function e(e){return decodeURIComponent(e.split("+").join(" "))}i[e(arguments[1])]=e(arguments[2])}),i}(),g.debug_mode&&console.log("----- Initializing the Filter Drop Down"),W(".card--grid_filter").unbind("click").on("click",function(){var e=W("#grid-filter");e.hasClass("open")?e.removeClass("open"):e.addClass("open")}),g.debug_mode&&console.log("----- Initializing the Mobile Filter Menu"),W("#mobile-predesigned--filter_link").unbind("click").on("click",function(){W(".mobile-filter-panel").hasClass("opened")?W(".mobile-filter-panel").removeClass("opened"):W(".mobile-filter-panel").addClass("opened")}),W("#mbtn-close_filter_menu").unbind("click").on("click",function(){W(".mobile-filter-panel").hasClass("opened")&&W(".mobile-filter-panel").removeClass("opened")}),g.debug_mode&&console.log("----- Initializing Search Bar"),function(){var i=W("#header-search"),s=W("#mheader-search"),t=W(".header-search-bar-clear"),r=W(".mheader-search-bar-clear");i.val(""),s.val(""),i.unbind("keypress").on("keypress",function(e){13==e.keyCode&&(f.v=W.trim(i.val()),""==f.v?(i.val(""),u=0,D(),t.hasClass("active")&&t.removeClass("active")):(u=0,D(),t.hasClass("active")||t.addClass("active")))}),s.unbind("keypress").on("keypress",function(e){13==e.keyCode&&(f.v=W.trim(s.val()),""==f.v?(s.val(""),u=0,D(),r.hasClass("active")&&r.removeClass("active")):(u=0,D(),r.hasClass("active")||r.addClass("active"),W(".navbar-mobile--search_panel").hasClass("displayed")&&W(".navbar-mobile--search_panel").removeClass("displayed"),W(".ptl-mobile_search_button").hasClass("active")||W(".ptl-mobile_search_button").addClass("active")))}),W("#search-icon-legacy").unbind("click").on("click",function(e){2