diff --git a/doc/images/Notre_Regard_sur_le_Monde.jpg b/doc/images/Notre_Regard_sur_le_Monde.jpg new file mode 100644 index 0000000..fa6e796 Binary files /dev/null and b/doc/images/Notre_Regard_sur_le_Monde.jpg differ diff --git a/doc/images/earth.jpg b/doc/images/earth.jpg new file mode 100644 index 0000000..c4bbc88 Binary files /dev/null and b/doc/images/earth.jpg differ diff --git a/doc/images/sucram.jpg b/doc/images/sucram.jpg index 01e54e9..bd45f45 100644 Binary files a/doc/images/sucram.jpg and b/doc/images/sucram.jpg differ diff --git a/g1sms/init_keys.sh b/g1sms/init_keys.sh index bc8cede..2b6397d 100755 --- a/g1sms/init_keys.sh +++ b/g1sms/init_keys.sh @@ -17,9 +17,9 @@ NANODATE=$(date -u +%s%N) #1569692075385428020 ## IS IT A SMS NODE (gammu-smsd is installed)?? if [[ $(which gammu-smsd) ]]; then [[ ! $MASTERPHONE ]] && echo "MISSING MASTERPHONE run from init.sh" && exit 1 - echo $MASTERPHONE > /home/$YOU/.zen/ipfs/.$IPFSNODEID/G1SSB/_sms + echo $MASTERPHONE > /home/$YOU/.zen/ipfs/.$IPFSNODEID/G1SSB/_g1sms else - if [ -f /home/$YOU/.zen/ipfs/.$IPFSNODEID/G1SSB/_sms ]; then rm -f /home/$YOU/.zen/ipfs/.$IPFSNODEID/G1SSB/_sms; fi + if [ -f /home/$YOU/.zen/ipfs/.$IPFSNODEID/G1SSB/_g1sms ]; then rm -f /home/$YOU/.zen/ipfs/.$IPFSNODEID/G1SSB/_g1sms; fi fi NODE_G1PUBKEY=$(cat /home/$YOU/.ssb/secret.dunikey | grep 'pub:' | cut -d ' ' -f 2) 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 new file mode 100644 index 0000000..52adc43 --- /dev/null +++ b/www/LOVELand/astroport.frama.site/app/views/base/footer/footer.js @@ -0,0 +1,5 @@ +$(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 new file mode 100644 index 0000000..10e8c75 --- /dev/null +++ b/www/LOVELand/astroport.frama.site/app/views/base/nav/nav.js @@ -0,0 +1,70 @@ +$(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 new file mode 100644 index 0000000..e69de29 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 new file mode 100644 index 0000000..f8bdd1c --- /dev/null +++ b/www/LOVELand/astroport.frama.site/app/views/modules/caroutext/show.js @@ -0,0 +1,72 @@ +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 new file mode 100644 index 0000000..e69de29 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 new file mode 100644 index 0000000..c9c12c5 --- /dev/null +++ b/www/LOVELand/astroport.frama.site/app/views/modules/paralax/show.js @@ -0,0 +1,3 @@ +$(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 new file mode 100644 index 0000000..e69de29 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 new file mode 100644 index 0000000..e69de29 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 new file mode 100644 index 0000000..e69de29 diff --git a/www/LOVELand/astroport.frama.site/index.html b/www/LOVELand/astroport.frama.site/index.html new file mode 100644 index 0000000..6dea23b --- /dev/null +++ b/www/LOVELand/astroport.frama.site/index.html @@ -0,0 +1,657 @@ + + + + + +
+ + + +