-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit e35d541
Showing
11 changed files
with
3,711 additions
and
0 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
$("multizone, multiZone").each(function () { | ||
$(this).replaceWith("<div class='" + $(this).attr("class") + "'>" + $(this).html() + "</div>"); | ||
}); | ||
|
||
$("productBroker, productbroker, broker").each(function () { | ||
$(this).replaceWith("<span class='" + $(this).attr("class") + "'>" + $(this).html() + "</span>"); | ||
}); | ||
|
||
$("productLink, productlink").each(function () { | ||
$(this).replaceWith("<a class='" + $(this).attr("class") + "' href='#'>" + $(this).html() + "</a>"); | ||
}); | ||
|
||
$("resx").each(function () { | ||
var cnt = $(this), | ||
inner = cnt.contents(); | ||
cnt.replaceWith(inner); | ||
}); | ||
|
||
$(".defaultFacet, .GpcRatingWrapQuery").trigger("templatingCompleted"); | ||
$("ul.GpcMenu").trigger("NavigationCountCompleted"); | ||
$(".contentHolder").each(function () { | ||
var cnt = $(this), | ||
inner = cnt.contents(); | ||
if (cnt.attr("style")) { | ||
cnt.parent().attr("style", cnt.attr("style")); | ||
} | ||
cnt.replaceWith(inner); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
//Set des images de produits en background | ||
function setImgInBg() { | ||
$("img.setInBg").each(function () { | ||
$(this).hide().parent().css("background-image", "url(" + $(this).prop("src") + ")"); | ||
}); | ||
} | ||
|
||
function lireCookie(szName) | ||
{ | ||
var szValue = null; | ||
if(document.cookie) //only if exists | ||
{ | ||
var arr = document.cookie.split((escape(szName) + '=')); | ||
if(2 <= arr.length) | ||
{ | ||
var arr2 = arr[1].split(';'); | ||
szValue = unescape(arr2[0]); | ||
} | ||
} | ||
return szValue; | ||
} | ||
|
||
function ecrireCookie(sName, sValue, jours) { | ||
var today = new Date(), expires = new Date(); | ||
expires.setTime(today.getTime() + (jours*24*60*60*1000)); | ||
document.cookie = sName + "=" + encodeURIComponent(sValue) + ";expires=" + expires.toGMTString() + ";path=/"; | ||
} | ||
|
||
function effacerCookie(sName){ | ||
setCookie(sName,"",-1) | ||
} | ||
|
||
function getQueryString (field, url) { | ||
var href = url ? url : window.location.href; | ||
var reg = new RegExp('[?&]' + field + '=([^&#]*)', 'i'); | ||
var string = reg.exec(href); | ||
return string ? string[1] : null; | ||
}; | ||
|
||
function scrolling(elem, sticky) { | ||
document.getElementsByTagName("html")[0].style.scrollBehavior = "unset"; | ||
var height = 0; | ||
if (sticky) { | ||
height = $(".header").height() | ||
} | ||
$('html, body').animate({ | ||
scrollTop: $(elem).offset().top - height | ||
}, 800, function () { | ||
document.getElementsByTagName("html")[0].style.scrollBehavior = "smooth"; | ||
}); | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
function includeHTML() { | ||
var z, i, elmnt, file, xhttp; | ||
/* Loop through a collection of all HTML elements: */ | ||
z = document.getElementsByTagName("*"); | ||
for (i = 0; i < z.length; i++) { | ||
elmnt = z[i]; | ||
/*search for elements with a certain atrribute:*/ | ||
file = elmnt.getAttribute("include"); | ||
if (file) { | ||
/* Make an HTTP request using the attribute value as the file name: */ | ||
xhttp = new XMLHttpRequest(); | ||
xhttp.onreadystatechange = function () { | ||
if (this.readyState == 4) { | ||
if (this.status == 200) { elmnt.innerHTML = this.responseText; } | ||
if (this.status == 404) { elmnt.innerHTML = "Page not found."; } | ||
/* Remove the attribute, and call this function once more: */ | ||
//elmnt.removeAttribute("w3-include-html"); | ||
var cnt = $(elmnt).contents(); | ||
$(elmnt).replaceWith(cnt); | ||
includeHTML(); | ||
} | ||
} | ||
xhttp.open("GET", file, false); | ||
xhttp.send(); | ||
/* Exit the function: */ | ||
return; | ||
} | ||
} | ||
} | ||
|
||
includeHTML(); |
Oops, something went wrong.