diff --git a/index.html b/index.html index 6ac187a..3907afd 100644 --- a/index.html +++ b/index.html @@ -137,10 +137,10 @@
  • Lifestyle, Travel & me
  • - +
    - +
    @@ -336,6 +336,18 @@ +
    +
    +

    🍪

    +
    +
    +

    Hey, this site uses cookies!

    +

    Don't worry, no cookies are used at the moment. This is just a preparation of the hint for later. Because at the moment this website is still under development.

    + + +
    +
    +
    @@ -348,6 +360,11 @@ // Instagram: https://www.instagram.com/vompictures/?__a=1 age(16, 09, 2005); toggleSocialmedia(); + // Check cookie banner + //localStorage.removeItem('cookies'); + if(localStorage.getItem('cookies') != null){ + document.getElementById('cookieBanner').style.display = "none"; + } //AOS.init({disable: 'mobile'}); AOS.init({disable: true}); // hide loadingscreen @@ -377,10 +394,15 @@ function scrollDown(){ if(navigator.userAgent.includes('iPhone') || navigator.userAgent.includes('iPad') || navigator.userAgent.includes('Mac')){ - window.scroll(0, 1000); + //window.scroll(0, 1000); + document.getElementById('about').scrollIntoView({ + behavior: 'smooth' + }); } else{ - window.scrollBy(0, 1000); + document.getElementById('about').scrollIntoView({ + behavior: 'smooth' + }); } } @@ -470,6 +492,27 @@ } } + function useCookie(usersChoice){ + let cookieBanner = document.getElementById('cookieBanner'); + cookieBanner.style.display = "none"; + if(usersChoice == true){ + localStorage.setItem('cookies', true); + } + else{ + localStorage.setItem('cookies', false); + } + } + + function showQrcode(src, imgId, old){ + // src = 'assets/socialmedia/insta-code.png' + // old = assets/socialmedia/michi_pb.jpeg + // img = document.getElementById('insta1Img') + var src = "https://api.qrserver.com/v1/create-qr-code/?size=900x900&format=png&margin=0&data=http://insta.michivonah.ch/"; + var image = document.getElementById(imgId).src; + if(image != src) document.getElementById(imgId).src = src; + else document.getElementById(imgId).src = old; + } + function sendWhatsapp(){ // https://wa.me/41782471516?text= }