PageSourceSearch

https://marsactu.fr/wp-content/themes/marsactu/js/common.min.js?ver=170926.1

js marsactu.fr collected 2026-10-02 06:28:44 UTC 12,061 bytes, 1 lines download raw bytes

1function openNav(){document.getElementById("menuOpen").style.width="100%"}function closeNav(){document.getElementById("menuOpen").style.width="0%"}function GetURLParameter(e){for(var r,o=window.location.search.substring(1).split("&"),t=0;t<o.length;t++){var n=o[t].split("=");if(n[0]==e)return n[1]}}function writeCookie(e,r){var o,t;(o=new Date).setTime(o.getTime()+2592e5),t="; expires="+o.toGMTString(),document.cookie=e+"="+r+t+"; path=/"}function readCookie(e){var r,o,t,n=e+"=";for(t=document.cookie.split(";"),r=0;r<t.length;r++){for(o=t[r];" "==o.charAt(0);)o=o.substring(1,o.length);if(0==o.indexOf(n))return o.substring(e.length,o.length)}return""}function removeParam(e,r=document.location.href){var o=r.split("?")[0],t,n=[],i=-1!==r.indexOf("?")?r.split("?")[1]:"";if(""!==i){for(var s=(n=i.split("&")).length-1;s>=0;s-=1)(t=n[s].split("=")[0])===e&&n.splice(s,1);n.length&&(o=o+"?"+n.join("&"))}window.history.pushState("",document.title,o)}const vcTabs=document.querySelectorAll(".vc_tabs");window.location.host.includes("facebook.com")&&jQuery(".single-post .icon-menu >
1 .shareButton").hide(),vcTabs.forEach((e=>{const r=e.querySelector('input[type="radio"]');r&&!0!==r.checked&&(r.checked=!0)}));var acc=document.getElementsByClassName("accordion-category"),i;for(i=0;i<acc.length;i++)acc[i].addEventListener("click",(function(){this.classList.toggle("active");var e=this.nextElementSibling;e.style.maxHeight?e.style.maxHeight=null:e.style.maxHeight=e.scrollHeight+"px"}));jQuery("body").on("updated_checkout",(function(){(jQuery(".woocommerce_subscription_gifting_checkbox").length||jQuery("td:contains('Offrez')").length)&&(jQuery(".woocommerce .product-name fieldset").css("display","inherit"),jQuery(".page-template-page-commande tbody .cart_item").css("display","inherit"),jQuery(".woocommerce_subscriptions_gifting_recipient_email").css("display","inherit"),jQuery(".wcsg_add_recipient_fields").css("display","inherit"),jQuery(".woocommerce_subscription_gifting_checkbox").each((function(){jQuery(this).prop("checked",!0)})))})),jQuery(document).on("click","#close-promo",(function(e){e.preventDefault(),jQuery(this).parent("#block-promo").hide(),Cookies.set("hide-promo",!0,{expires:1})})),jQuery(document).on("click",".shareButton",(function(e){navigator.share({title:jQuery("h1.entry-title").text(),text:jQuery(".chapeau p").text(),url:document.location.href}).then((()=>console.log("Partagé"))).catch((e=>console.log("Non partagé",e)))})),jQuery(document).on("click",".woocommerce .accordion",(function(){var e=jQuery(".active");e.next().hide(),e.removeClass("active");var r=jQuery(this);r.addClass("active"),r.next().show()})),jQuery(document).ready((function(){MicroModal.init({onShow:function(e,r,o){o.preventDefault(),o.stopPropagation()}}),jQuery("#modal-login .woocommerce-error-tunnel").length&&MicroModal.show("modal-login");
1const e=window.location.search,r=new URLSearchParams(e),o=r.get("add-to-cart"),t=r.get("variation_id");let n="";if(n=r.has("variation_id")?t:o,((o?.trim()?.length||0)>0||(t?.trim()?.length||0)>0)&&""!=n&&(dataLayer.push({ecommerce:null}),dataLayer.push({event:"add_to_cart",ecommerce:{items:[{item_id:n}]}})),removeParam("add-to-cart"),"true"==Cookies.get("hide-promo")&&(jQuery("#block-promo").remove(),jQuery("#block-promo").hide()),jQuery(".size-full").parent("p").addClass("pFull"),jQuery(".alignleft").parent("p").addClass("pFullLeft"),jQuery(".alignright").parent("p").addClass("pFullRight"),jQuery(".td_encadre").on("click",(function(){jQuery(this).toggleClass("visible")})),jQuery("#input_35_27").length>0&&jQuery("#input_35_27").val(GetURLParameter("sub")+"-"+GetURLParameter("uid")),jQuery(".kv_interview").length>0&&jQuery(".kv_interview").last().addClass("last"),jQuery(".aesop-document-wrapper").length>0&&jQuery(".aesop-document-wrapper").slideToggle(),jQuery(".modal-group .close").on("click touch",(function(){jQuery(this).closest(".modal").removeClass("show-modal")})),jQuery("#og-grid a").on("click touch",(function(){var e=jQuery(this).attr("data-id");jQuery("#id-"+e).addClass("show-modal")})),jQuery(document).mouseup((function(e){var r=jQuery(".show-modal");r.is(e.target)||0!==r.has(e.target).length||r.removeClass("show-modal")})),jQuery("open").click((function(){jQuery("open").slideUp()})),jQuery("close").click((function(){jQuery("#bizzbar").slideUp(),jQuery("open").slideDown()})),jQuery(".openMenuMob").click((function(){jQuery(this).toggleClass("active"),jQuery(".overlayUser").toggleClass("open")})),jQuery(".condValid input").on("click",(function(){jQuery(this).prop("checked")?(jQuery(this).css("background-color","#003c57"),jQuery(".gform_footer").prop("disabled",!0),jQuery(".gform_footer").hide()):(jQuery(this).css("background-color","#ffffff"),jQuery(".gform_footer").prop("disabled",!1),jQuery(".gform_footer").show())})),jQuery(".homeHeight").length){var i=jQuery(".homeHeight").height()-143;i<0&&(i="534"),i+="px",jQuery(".homeHeight").next().find(".swiper-container-bref").css("height",i)}var s=document.querySelectorAll("#btn-menu");if(jQuery("#comments").length&&jQuery("#open-comments").show(),[].forEach.call(s,(function(e){var r=!1;e.onclick=function(e){e.preventDefault(),r?(this.classList.remove("close"),jQuery("#navigation").removeClass("show"),jQuery("#btn-menu").removeClass("show"),r=!1):(this.classList.add("close"),r=!0,jQuery("#navigation").addClass("show"),jQuery("#btn-menu").addClass("show"))}})),jQuery(window).scroll((function(){jQuery(this).scrollTop()>100?jQuery("#up-button").addClass("show"):jQuery("#up-button").removeClass("show")})),jQuery("#up-button").click((function(){return jQuery("html, body").animate({scrollTop:0},800),!1})),jQuery(".go_top").click((function(){return jQuery("html, body").animate({scrollTop:0},800),!1})),jQuery(".logo_ravi").click((function(){return jQuery(this).hasClass("open")?(jQuery(this).removeClass("open"),jQuery(".popup_ravi").removeClass("show")):(jQuery(this).addClass("open"),jQuery(".popup_ravi").addClass("show")),!1})),jQuery(".btn-login-mobile").click((function(){return jQuery(this).hasClass("open")?(jQuery(this).removeClass("open"),jQuery("#menu_user").removeClass("show")):(jQuery(this).addClass("open"),jQuery("#menu_user").addClass("show")),!1})),jQuery(".open_form_email").click((function(){jQuery(".box_form").hide(),jQuery(".box_form_email").fadeIn()})),jQuery(".open_form_mdp").click((function(){jQuery(".box_form").hide(),jQuery(".box_form_mdp").fadeIn()})),jQuery(".btn-login-open").click((function(){jQuery("html, body").animate({scrollTop:0},800);var e=jQuery(this).attr("data-target");return jQuery(e).addClass("show"),!1})),jQuery("body").click((function(e){"popin-login"!=e.target.id&&"open-search"!=e.target.id&&(jQuery(e.target).closest(".popin-login").length||jQuery(e.target).closest(".open-search").length||(jQuery(".popin-login").removeClass("show"),jQuery(".open-search").removeClass("show")))})),jQuery(".content").height()<500&&jQuery(".content-center").height()<500&&jQuery("#share").css("display","none"),jQuery("#menu-timeline .menu-item").on("click",(function(){jQuery("#menu-timeline .current-menu-item").removeClass("current-menu-item"),jQuery(this).addClass("current-menu-item")})),jQuery(".content .wp-caption").length&&jQuery(".content .wp-caption").equalize({equalize:"width",children:""}),jQuery("#blog_loop").length&&jQuery("#blog_loop").equalize({equalize:"height"}),jQuery(".tunel_abo").length&&jQuery(".tunel_abo").equalize({equalize:"height"}),jQuery("#tabs").length>0&&jQuery("#tabs").tabs(),jQuery("#open-comments, .open-comments").length>0){if(jQuery("#share-comment").click((function(){return jQuery("#comments").addClass("show"),!1})),jQuery(".open_comment").click((function(){return jQuery("#comments").addClass("show"),!1})),jQuery(".open_comment_commenter").click((function(){if(jQuery(".non-membre").length>0&&(window.location.href=jQuery(this).attr("href")),jQuery("#comments").addClass("show"),jQuery("#commenter").length>0){var e=jQuery("#commenter").offset().top;jQuery(".comments").delay(400).animate({scrollTop:e},2e3)}return!1})),jQuery("#open-comments, .open-comments").click((function(){return jQuery("#comments").addClass("show"),jQuery("#share-comment").addClass("hide"),!1})),jQuery("#comments .fermer").click((function(){return jQuery("#share-comment").removeClass("hide"),jQuery("#comments").removeClass("show"),!1})),window.location.href.indexOf("#")>-1&&jQuery("#comments").length>0){var a=window.location.href.split("#");if(jQuery("#comments").addClass("show"),"commenter"==a[1])var u=jQuery("#commenter").offset().top;else var u=jQuery("#li-"+a[1]).offset().top;jQuery(".comments").delay(2e3).animate({scrollTop:u},2e3)}jQuery(".logged-in:not(.is-bibliotheque) .share_mail").click((function(){return jQuery(this).hasClass("open")?(jQuery(this).removeClass("open"),jQuery("#share_mail").removeClass("show")):(jQuery(this).addClass("open"),jQuery("#share_mail").addClass("show")),!1})),jQuery("#share_mail .fermer").click((function(){return jQuery(".share_mail").removeClass("open"),jQuery("#share_mail").removeClass("show"),!1})),jQuery(".non-membre .share_pdf").click((function(e){e.preventDefault()})),jQuery(".non-membre .download_article").click((function(e){e.preventDefault()})),jQuery(".member-logged-in:not(.is-bibliotheque) .share_pdf").click((function(){return jQuery(this).hasClass("open")?(jQuery(this).removeClass("open"),jQuery("#share_pdf").removeClass("show")):(jQuery(this).addClass("open"),jQuery("#share_pdf").addClass("show")),!1})),jQuery("#share_pdf .fermer").click((function(){return jQuery(".share_pdf").removeClass("open"),jQuery("#share_pdf").removeClass("show"),!1})),jQuery("#reorder_comment").click((function(){return ul=jQuery("ol.commentlist"),ul.children().each((function(e,r){ul.prepend(r)})),jQuery(this).toggleClass("desc"),!1}))}jQuery(".btn-search-open").click((function(){return jQuery(this).find(".open-search").addClass("show"),jQuery(this).find("input").focus(),!1}));var c=0;jQuery(".box_author_posts").height()>jQuery(".box_author_identity").height()?jQuery(".box_author_identity").height(jQuery(".box_author_posts").height()-28):jQuery(".box_author_posts").height(jQuery(".box_author_identity").height())})),jQuery(window).scroll((function(){var e;jQuery(window).scrollTop()>=200?jQuery("#header").addClass("gabian"):jQuery("#header").removeClass("gabian")})),window.gwrf,function($){gwrf=function(e){this.formId=e.formId,this.spinnerUrl=e.spinnerUrl,this.refreshTime=e.refreshTime,this.refreshTimeout=null,this.formWrapper=jQuery("#gform_wrapper_"+this.formId),this.staticElem=this.formWrapper.parent(),this.formHtml=jQuery("<div />").append(this.formWrapper.clone()).html(),this.spinnerInitialized=!1,this.init=function(){var e=this;jQuery(document).bind("gform_confirmation_loaded",(function(r,o){o!=e.formId||e.refreshTime<=0||(e.refreshTimeout=setTimeout((function(){e.reloadForm()}),1e3*e.refreshTime))})),jQuery("#share_mail .fermer").on("click",(function(r){r.preventDefault(),e.reloadForm()}))},this.reloadForm=function(){this.staticElem.find(".gform_confirmation_message_"+this.formId).length&&(this.refreshTimeout&&clearTimeout(this.refreshTimeout),this.staticElem.find(".gform_confirmation_message_"+this.formId).wrap("<div />").parent().html(this.formHtml),this.staticElem.find("#gform_wrapper_"+this.formId).unwrap(),jQuery(document).trigger("gform_post_render",[this.formId,0]),window.gformInitDatepicker&&gformInitDatepicker())},this.initSpinner=function(){var e=this;this.staticElem.on("submit","#gform_"+this.formId,(function(){jQuery("#gform_submit_button_"+e.formId).attr("disabled",!0).after('<img id="gform_ajax_spinner_'+e.formId+'"  class="gform_ajax_spinner" src="'+e.spinnerUrl+'" />'),e.formWrapper.find(".gform_previous_button").attr("disabled",!0),e.formWrapper.find(".gform_next_button").attr("disabled",!0).after('<img id="gform_ajax_spinner_'+e.formId+'"  class="gform_ajax_spinner" src="'+e.spinnerUrl+'" alt="" />')}))},this.init()},jQuery(document).ready((function(){new gwrf({formId:7,spinnerUrl:"{spinner_url}",refreshTime:5})}))}(jQuery);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.