diff --git a/www/LOVELand/astroport.frama.site/app/views/base/footer/footer.js b/www/LOVELand/astroport.frama.site/app/views/base/footer/footer.js deleted file mode 100644 index 52adc43..0000000 --- a/www/LOVELand/astroport.frama.site/app/views/base/footer/footer.js +++ /dev/null @@ -1,5 +0,0 @@ -$(document).ready(function(){ -// the "href" attribute of the modal trigger must specify the modal ID that wants to be triggered - $('#login-modal').modal(); - -}); \ No newline at end of file diff --git a/www/LOVELand/astroport.frama.site/app/views/base/nav/nav.js b/www/LOVELand/astroport.frama.site/app/views/base/nav/nav.js deleted file mode 100644 index 10e8c75..0000000 --- a/www/LOVELand/astroport.frama.site/app/views/base/nav/nav.js +++ /dev/null @@ -1,70 +0,0 @@ -$(document).ready(function () { -//pour l'édition du menu - $('.editMenuLabel').click(function () { - console.log('coucou') - //on récupere toutes les infos stockées dans l'id du boutton - let splittedId = this.id.split("-") - //et on remplit le formulaire caché avec - $('.addToMenuForm input[name = id]').val(splittedId[1]) - //on modifie le titre et le boutton de la fenetre modale "à la sauvage" - $('#add-to-menu-modal h4').html("Modifier l'élement du menu"); - $('#add-to-menu-modal button').html("Editer"); - - //gestion du pré-remplissage avec l'ancien nom - $('#add-to-menu-modal input[name=label]').val(splittedId[2]); - setTimeout(function () { - Materialize.updateTextFields(); - },50) - //et on ouvre la modale - $('#add-to-menu-modal').modal('open'); - }) - $('.goToEditParams').click(function (event) { - event.preventDefault() - $("#siteOptionsModal").modal('open') - $("a[href=#options-params]").click() - }) - - $(".button-collapse").sideNav(); - $('.navItems').click(()=>{ - $('.button-collapse').sideNav('hide'); - }) - - // Hide Header on on scroll down - var didScroll; - var lastScrollTop = 0; - var delta = 5; - var navbarHeight = $('#mainNav').outerHeight(); - - $(window).scroll(function(event){ - didScroll = true; - }); - - setInterval(function() { - if (didScroll) { - hasScrolled(); - didScroll = false; - } - }, 250); - - function hasScrolled() { - var st = $(this).scrollTop(); - - // Make sure they scroll more than delta - if(Math.abs(lastScrollTop - st) <= delta) - return; - - // If they scrolled down and are past the navbar, add class .nav-up. - // This is necessary so you never see what is "behind" the navbar. - if (st > lastScrollTop && st > navbarHeight){ - // Scroll Down - $('#mainNav').removeClass('nav-down').addClass('nav-up'); - } else { - // Scroll Up - if(st + $(window).height() < $(document).height()) { - $('#mainNav').removeClass('nav-up').addClass('nav-down'); - } - } - - lastScrollTop = st; - } -}) \ No newline at end of file diff --git a/www/LOVELand/astroport.frama.site/app/views/modules/button/show.js b/www/LOVELand/astroport.frama.site/app/views/modules/button/show.js deleted file mode 100644 index e69de29..0000000 diff --git a/www/LOVELand/astroport.frama.site/app/views/modules/caroutext/show.js b/www/LOVELand/astroport.frama.site/app/views/modules/caroutext/show.js deleted file mode 100644 index f8bdd1c..0000000 --- a/www/LOVELand/astroport.frama.site/app/views/modules/caroutext/show.js +++ /dev/null @@ -1,72 +0,0 @@ -caroutextSlider = [] -$(document).ready(function () { - - $(window).bind("load", function () { - switchToCaroutextImg = function (id, img) { - $('#caroutextImgFocus-' + id + ' img').fadeOut( function () { - $('#caroutextImgFocus-' + id + ' img').attr('src', $(img).attr('src')) - $(this).fadeIn('slow') - }) - } - makeCaroutextBeautifull =function(id) { - let imgArray = [] - let ratioSum = 0 - $('#' + id + ' .caroutextImage ').each(function (i, el) { - let natratio = parseInt(($(this).get(0).naturalHeight / $(this).get(0).naturalWidth) * 1000) - imgArray[i] = natratio - ratioSum += natratio - }) - setTimeout(function () { - $('#' + id + ' .caroutextImage').each(function (j) { - let flexAttr = parseInt((parseInt(ratioSum) / parseInt(imgArray[j])) * 10000) - $(this).parent().attr('style', 'flex : ' + flexAttr) - }) - }, 100) - setTimeout(function () { - $('#' + id + ' .flexImagesContainer').removeClass('hidden') - }, 100) - - $('#' + id + ' .caroutextImage').click(function () { - switchToCaroutextImg(id, this) - caroutextSlider[id] = -10 - }) - - caroutextSlider[id] = 0 - } - - autoSlideCaroutext = function (id) { - if(caroutextSlider>= 0){ - if(caroutextSlider[id] > 3){ - caroutextSlider[id] =-1 - } - setTimeout(function () { - console.log(id) - switchToCaroutextImg(id, '#' + id + ' #moduleValue-imgUrl'+caroutextSlider[id]) - - caroutextSlider[id] ++ - autoSlideCaroutext(id) - },3000) - - } - - - - } - - setTimeout(function () { - $('.flexImagesContainer').each(function (i, el) { - let id = this.id.split('-')[1] - makeCaroutextBeautifull(id) - //autoSlideCaroutext(id) - }) - }, 200) - - }) - // $('.showOnScrollCaroutext').each(function (i, el) { - // scrollFireOptions.push( - // {selector: '#'+el.id, offset: 200, callback: function(el1) { - // $(el1).animate({'left' :'-=1500'}, 350, 'swing') - // } }) - // }) - -}) diff --git a/www/LOVELand/astroport.frama.site/app/views/modules/contact/show.js b/www/LOVELand/astroport.frama.site/app/views/modules/contact/show.js deleted file mode 100644 index e69de29..0000000 diff --git a/www/LOVELand/astroport.frama.site/app/views/modules/paralax/show.js b/www/LOVELand/astroport.frama.site/app/views/modules/paralax/show.js deleted file mode 100644 index c9c12c5..0000000 --- a/www/LOVELand/astroport.frama.site/app/views/modules/paralax/show.js +++ /dev/null @@ -1,3 +0,0 @@ -$(document).ready(function () { - $('.parallax').parallax(); -}) \ No newline at end of file diff --git a/www/LOVELand/astroport.frama.site/app/views/modules/photo_cv/show.js b/www/LOVELand/astroport.frama.site/app/views/modules/photo_cv/show.js deleted file mode 100644 index e69de29..0000000 diff --git a/www/LOVELand/astroport.frama.site/app/views/modules/products/show.js b/www/LOVELand/astroport.frama.site/app/views/modules/products/show.js deleted file mode 100644 index e69de29..0000000 diff --git a/www/LOVELand/astroport.frama.site/app/views/modules/three_cards/show.js b/www/LOVELand/astroport.frama.site/app/views/modules/three_cards/show.js deleted file mode 100644 index e69de29..0000000 diff --git a/www/LOVELand/astroport.frama.site/index.html b/www/LOVELand/astroport.frama.site/index.html deleted file mode 100644 index 00a1912..0000000 --- a/www/LOVELand/astroport.frama.site/index.html +++ /dev/null @@ -1,657 +0,0 @@ - - - - - -
- - - -