mirror of
https://github.com/michivonah/website-v2.git
synced 2025-12-22 20:46:29 +01:00
Update index.html
This commit is contained in:
parent
e9e29d6741
commit
5b3aef5bf1
1 changed files with 47 additions and 4 deletions
51
index.html
51
index.html
|
|
@ -137,10 +137,10 @@
|
||||||
<li>Lifestyle, Travel & me</li>
|
<li>Lifestyle, Travel & me</li>
|
||||||
</ul>
|
</ul>
|
||||||
<button onclick="window.open('https://instagram.com/michivonah')">Follow!</button>
|
<button onclick="window.open('https://instagram.com/michivonah')">Follow!</button>
|
||||||
<button>Get QR-Code</button>
|
<button onclick="showQrcode('assets/socialmedia/insta-code.png', 'insta1Img', 'assets/socialmedia/michi_pb.jpeg');">Show QR-Code</button>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<img src="assets/socialmedia/michi_pb.jpeg">
|
<img src="assets/socialmedia/michi_pb.jpeg" id="insta1Img">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -336,6 +336,18 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div id="cookieBanner">
|
||||||
|
<div id="cookieImg">
|
||||||
|
<p id="cookieIcon">🍪</p>
|
||||||
|
</div>
|
||||||
|
<div id="cookieHint">
|
||||||
|
<h3>Hey, this site uses cookies!</h3>
|
||||||
|
<p>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.</p>
|
||||||
|
<button onclick="useCookie(true)">Accept!</button>
|
||||||
|
<button onclick="useCookie(false)">Stop!</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div id="scroll-top">
|
<div id="scroll-top">
|
||||||
<i class="ai-chevron-up"></i>
|
<i class="ai-chevron-up"></i>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -348,6 +360,11 @@
|
||||||
// Instagram: https://www.instagram.com/vompictures/?__a=1
|
// Instagram: https://www.instagram.com/vompictures/?__a=1
|
||||||
age(16, 09, 2005);
|
age(16, 09, 2005);
|
||||||
toggleSocialmedia();
|
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: 'mobile'});
|
||||||
AOS.init({disable: true});
|
AOS.init({disable: true});
|
||||||
// hide loadingscreen
|
// hide loadingscreen
|
||||||
|
|
@ -377,10 +394,15 @@
|
||||||
|
|
||||||
function scrollDown(){
|
function scrollDown(){
|
||||||
if(navigator.userAgent.includes('iPhone') || navigator.userAgent.includes('iPad') || navigator.userAgent.includes('Mac')){
|
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{
|
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(){
|
function sendWhatsapp(){
|
||||||
// https://wa.me/41782471516?text=
|
// https://wa.me/41782471516?text=
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue