Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
morin0094 authored May 3, 2021
0 parents commit e35d541
Show file tree
Hide file tree
Showing 11 changed files with 3,711 additions and 0 deletions.
Binary file added Capture.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
984 changes: 984 additions & 0 deletions css/main.css

Large diffs are not rendered by default.

751 changes: 751 additions & 0 deletions index.html

Large diffs are not rendered by default.

28 changes: 28 additions & 0 deletions js/altitude.js
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);
});
52 changes: 52 additions & 0 deletions js/functions.js
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";
});
}

31 changes: 31 additions & 0 deletions js/include.js
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();
Loading

0 comments on commit e35d541

Please sign in to comment.