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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html>
|
| 3 |
+
<meta charset='UTF-8'/><meta content='width=device-width, initial-scale=1, user-scalable=1, minimum-scale=1, maximum-scale=5' name='viewport'/><meta content='IE=edge' http-equiv='X-UA-Compatible'/>
|
| 4 |
+
|
| 5 |
+
<link rel="icon" type="image/svg+xml" href="https://dilihatyuk.feeldream.repl.co/icon.png">
|
| 6 |
+
<link rel="apple-touch-icon" href="https://dilihatyuk.feeldream.repl.co/icon.png">
|
| 7 |
+
|
| 8 |
+
<link rel="preconnect" href="https://fonts.googleapis.com">
|
| 9 |
+
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
| 10 |
+
<link href="https://fonts.googleapis.com/css2?family=Quicksand:wght@400;700&display=swap" rel="stylesheet">
|
| 11 |
+
<link href="https://fonts.googleapis.com/css2?family=Caveat&display=swap" rel="stylesheet">
|
| 12 |
+
<link href="https://fonts.googleapis.com/css2?family=Nunito+Sans:wght@400;700&display=swap" rel="stylesheet">
|
| 13 |
+
|
| 14 |
+
<!--
|
| 15 |
+
<script src="https://cdn.jsdelivr.net/npm/sweetalert2@11.0.19/dist/sweetalert2.all.min.js"></script>
|
| 16 |
+
-->
|
| 17 |
+
<script src="https://kit.fontawesome.com/4f3ce16e3e.js" crossorigin="anonymous"></script>
|
| 18 |
+
|
| 19 |
+
<script src="https://unpkg.com/typeit@8.7.0/dist/index.umd.js"></script><!--<link href="https://feeldreams.github.io/dibacayuk/style.css" rel="stylesheet" type="text/css" />-->
|
| 20 |
+
<script src="https://unpkg.com/scrollreveal"></script>
|
| 21 |
+
|
| 22 |
+
<head>
|
| 23 |
+
<title>Script HTML buat Kamu</title>
|
| 24 |
+
<meta name="description" content="HTML Feeldream Repl Co">
|
| 25 |
+
|
| 26 |
+
</head>
|
| 27 |
+
<style>
|
| 28 |
+
:root {
|
| 29 |
+
--gaya-font: 'Quicksand', sans-serif;
|
| 30 |
+
--gaya-font2: 'Nunito Sans', sans-serif;
|
| 31 |
+
--gaya-font3: 'Caveat', cursive;
|
| 32 |
+
}
|
| 33 |
+
body {overflow:hidden;background:#000;font-family:var(--gaya-font); margin: 0;}
|
| 34 |
+
body::before{content:"\00A9 Rayys | feelthisray";color:white;opacity:.5;font-size:10px;position:fixed;bottom:25px;right:25px;z-index:150}
|
| 35 |
+
@keyframes jj{0% {transform: scale(1.2);} 50% {transform: scale(1.5);} 100% {transform: scale(1);}}
|
| 36 |
+
@keyframes rto{from {transform:scale(1);} to {transform:scale(1.1);}}
|
| 37 |
+
#counter{position:fixed;color:white;font-size:11px;top:20px;left:20px;z-index:999}
|
| 38 |
+
|
| 39 |
+
section {position:relative;z-index:99;padding: 0;height: 100vh;display: flex; flex-direction: column;align-items:left;text-shadow: 0px 2px 2px rgba(0, 0, 0, .8);border-top:1px solid #fff}
|
| 40 |
+
section {background:#000;background-image: var(--bg);background-attachment: fixed;background-position: center;background-repeat: no-repeat;background-size: cover;}
|
| 41 |
+
section.first{border-top:0 solid #fff}
|
| 42 |
+
section.first > img{opacity:0}
|
| 43 |
+
section:nth-child(even) {color:white}
|
| 44 |
+
section:nth-child(odd) {color:white}
|
| 45 |
+
section > :first-child {margin-top:150px}
|
| 46 |
+
|
| 47 |
+
.stiker{margin-left:auto;margin-right:auto;box-shadow: 0 4px 30px rgba(255,255,255, 0.3);backdrop-filter: blur(5px);-webkit-backdrop-filter: blur(5px);width:90px;height:90px;background: rgba(255, 255, 255, 0.7);border: 1px solid rgba(255, 255, 255, 0.3);border-radius: 50%;padding:10px;margin-bottom:20px;transition:all .85s ease}
|
| 48 |
+
section .wp img{position:absolute;top:0;left:0;width:100%;height:100%;padding:0;background:none;border:none}
|
| 49 |
+
section .wp::after{content:"";position:absolute;top:0;left:0;right:0;bottom:0;background:rgba(0,0,0,.7);}
|
| 50 |
+
#stikerakhir{margin-top:-60px}
|
| 51 |
+
#stikerdua{display:none}
|
| 52 |
+
|
| 53 |
+
h1 {font-size: 2rem;}
|
| 54 |
+
.lingkar{font-weight:400;border-bottom:1px solid #FF0900;}
|
| 55 |
+
h1, h2, h3,h4,h5{margin: 0;text-align: center;margin: 1rem 0;}
|
| 56 |
+
p{color:white;font-size:15px;font-family:var(--gaya-font2);line-height:1.5em;text-align:center}
|
| 57 |
+
a {color:white;text-decoration: none;transition: all 0.3s ease-in-out;&:hover, &:focus, &:active {color: #f1e8d9;}}
|
| 58 |
+
#hsatu{transition: all .3s ease}
|
| 59 |
+
#judulakhir{z-index:100;font-size:24px;font-family:var(--gaya-font3);transition:all .5s ease}
|
| 60 |
+
#teksnimasisatu, #teksnimasi, #kalimatakhir, #palingakhir{z-index:100;margin-right:auto;margin-left:auto;font-size:15px;font-family:var(--gaya-font2);}
|
| 61 |
+
#teksnimasisatu, #teksnimasi{text-align:center;margin-left:70px;margin-right:70px;}
|
| 62 |
+
#teksnimasi{font-size:17px;}
|
| 63 |
+
.tipeA{font-family:var(--gaya-font);}
|
| 64 |
+
|
| 65 |
+
svg{vertical-align: middle;width: 22px;height: 22px;fill: #fff}
|
| 66 |
+
.menu{position: fixed;bottom: 15vh;width:100%;z-index: 999;display:flex;justify-content:center;align-items:center;transition: all 1s ease}
|
| 67 |
+
.tombol{background-color: rgba(255,255,255,.25);border-radius: 50px;overflow: hidden;display: flex;align-items: center;justify-content: center;width: 45px;height: 45px;-webkit-transition: all .2s ease-out;transition: all .2s ease-out}
|
| 68 |
+
.tombol svg{margin: auto;fill: #fff}
|
| 69 |
+
|
| 70 |
+
#Tombol, #TombolWA{position:relative;opacity:0;margin-left:auto;margin-right:auto;display:flex;align-items:left;list-style:none;transition:all 1s ease;}
|
| 71 |
+
#Tombol a, #TombolWA a{cursor:pointer;display:inline-flex;align-items:center; margin:0;margin:10px;transition:all .2s ease;padding:10px;outline:0;border:1px solid white;border-radius:8px;line-height:15px;background:rgba(0,0,0,.5);color:white;font-size:13px;font-weight:700;white-space:nowrap;overflow:hidden;box-shadow: rgba(255,255,255, 0.15) 0px 7px 29px 0px;z-index:1}
|
| 72 |
+
|
| 73 |
+
.overlay {position: fixed;top: 0;left: 0;width: 100%;height: 100%;display: flex;justify-content: center;align-items: center;background:#000;z-index:100;}
|
| 74 |
+
.loading-message {font-size: 13px;text-shadow: 0px 2px 2px rgba(0, 0, 0, .8);color:white;text-align: center;}
|
| 75 |
+
|
| 76 |
+
#counter{position:fixed;color:white;font-size:11px;top:20px;left:20px;z-index:999}
|
| 77 |
+
.fa-heart {opacity:.3;color:white;font-size: 20px;position: fixed;animation: heartMove linear 1;top: -10vh;z-index: 999;}
|
| 78 |
+
@keyframes heartMove {0%{transform: translateY(-10vh) ;} 100%{transform: translateY(100vh) ;}}
|
| 79 |
+
</style>
|
| 80 |
+
<body>
|
| 81 |
+
|
| 82 |
+
<div class="overlay">
|
| 83 |
+
<div class="loading-message">Hai kamu!<br>Tunggu dulu ya..</div>
|
| 84 |
+
</div>
|
| 85 |
+
|
| 86 |
+
<audio src="https://feeldreams.github.io/audio/angelbaby.mp3" id="linkmp3" class="sembunyi"></audio>
|
| 87 |
+
|
| 88 |
+
<section class="first" onclick="playaud()">
|
| 89 |
+
<div class="wp"><img id="imgsatu" src="https://feeldreams.github.io/pics/awan/1.jpg"/></div>
|
| 90 |
+
<img id="first_stiker" class="stiker fade-in" src="https://feeldreams.github.io/bunga.gif"/>
|
| 91 |
+
<h2 class="title">Hei buat Kamu!</h2>
|
| 92 |
+
<h4 class="title"><i>Aku Ada Sesuatu Nih 😋</i></h4>
|
| 93 |
+
<p class="slide-up"><i>Scroll terus ke bawah ya :)</i></p>
|
| 94 |
+
</section>
|
| 95 |
+
|
| 96 |
+
<section>
|
| 97 |
+
<div class="wp"><img id="imgtiga" src="https://feeldreams.github.io/pics/awan/3.jpg"/></div>
|
| 98 |
+
<img class="stiker fade-in" src="https://feeldreams.github.io/pusn.gif"/>
|
| 99 |
+
<h3 class="title">Kenapa Tanaman Selalu<br>Tumbuh di Tanah? 🤔</h3>
|
| 100 |
+
<p id="teksnimasisatu">Karena kalo yang selalu ada di<br>hatiku, itukan kamu, hiyaaaa 😆❤️</p>
|
| 101 |
+
</section>
|
| 102 |
+
|
| 103 |
+
<section>
|
| 104 |
+
<div class="wp"><img id="imgdua" src="https://feeldreams.github.io/pics/awan/2.jpg"/></div>
|
| 105 |
+
<img class="stiker fade-in" src="https://feeldreams.github.io/cilukba.gif"/>
|
| 106 |
+
<h3 class="title">Oh ya, Aku Juga Punya<br>Pantun Nih buat Kamu! 😂</h3>
|
| 107 |
+
</section>
|
| 108 |
+
|
| 109 |
+
<section>
|
| 110 |
+
<div class="wp"><img id="imglima" src="https://feeldreams.github.io/pics/awan/3.jpg"/></div>
|
| 111 |
+
<img id="stikersatu" class="stiker fade-in" src="https://feeldreams.github.io/bwa2.gif"/>
|
| 112 |
+
<img id="stikerdua" src="https://feeldreams.github.io/weee.gif"/>
|
| 113 |
+
<h3 id="teksnimasi">Makan Kebab di Atas Atap,<br>Boleh Gak Aku Minta PAP? 😆</h3>
|
| 114 |
+
<div id="Tombol">
|
| 115 |
+
<a id="By" onClick="fungsimau()">Boleh</a>
|
| 116 |
+
<a id="Bn" onClick="fungsigamau()">Gak!!!</a>
|
| 117 |
+
</div>
|
| 118 |
+
</section>
|
| 119 |
+
|
| 120 |
+
<section id="iniakhir">
|
| 121 |
+
<div class="wp" id="wpakhir"><img src="https://feeldreams.github.io/pics/awan/6.jpg"/></div>
|
| 122 |
+
<img id="stikerakhir" class="stiker fade-in" src="https://feeldreams.github.io/cilukba.gif"/>
|
| 123 |
+
<img id="stikerakhir2" style="display:none" src="https://feeldreams.github.io/emawh.gif"/>
|
| 124 |
+
<h1 id="judulakhir"></h1>
|
| 125 |
+
<p id="kalimatakhir"></p>
|
| 126 |
+
<p id="palingakhir"></p>
|
| 127 |
+
<div id="TombolWA">
|
| 128 |
+
<a onClick="menuju()">Kirim 💌</a>
|
| 129 |
+
</div>
|
| 130 |
+
</section>
|
| 131 |
+
|
| 132 |
+
<div id="initom" class="menu">
|
| 133 |
+
<a class='tombol' onclick="tes()">
|
| 134 |
+
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-arrow-down" viewBox="0 0 16 16"> <path fill-rule="evenodd" d="M8 1a.5.5 0 0 1 .5.5v11.793l3.146-3.147a.5.5 0 0 1 .708.708l-4 4a.5.5 0 0 1-.708 0l-4-4a.5.5 0 0 1 .708-.708L7.5 13.293V1.5A.5.5 0 0 1 8 1z"/> </svg>
|
| 135 |
+
</a>
|
| 136 |
+
</div>
|
| 137 |
+
|
| 138 |
+
<script>
|
| 139 |
+
function hapus(){counter.style.display="none"}
|
| 140 |
+
function keatas(){window.scrollTo(0, 0);}
|
| 141 |
+
|
| 142 |
+
var date = new Date();
|
| 143 |
+
var days = ["Minggu", "Senin", "Selasa", "Rabu", "Kamis", "Jumat", "Sabtu"];
|
| 144 |
+
var months = ["Januari", "Februari", "Maret", "April", "Mei", "Juni", "Juli", "Agustus", "September", "Oktober", "November", "Desember"];
|
| 145 |
+
var hours = date.getHours();
|
| 146 |
+
var minutes = date.getMinutes();
|
| 147 |
+
|
| 148 |
+
// Tambahkan awalan nol jika jam atau menit kurang dari 10
|
| 149 |
+
if (hours < 10) {hours = "0" + hours;}
|
| 150 |
+
if (minutes < 10) {minutes = "0" + minutes;}
|
| 151 |
+
|
| 152 |
+
var day = days[date.getDay()];
|
| 153 |
+
var dateNum = date.getDate();
|
| 154 |
+
var month = months[date.getMonth()];
|
| 155 |
+
var year = date.getFullYear();
|
| 156 |
+
|
| 157 |
+
console.log(hours + "." + minutes + " WIB - " + day + ", " + dateNum + " " + month + " " + year);
|
| 158 |
+
|
| 159 |
+
var element = document.querySelector("body");var watermark = document.createElement("div");
|
| 160 |
+
|
| 161 |
+
// Setel teks watermark dan propertinya
|
| 162 |
+
watermark.textContent = day + ", " + dateNum + " " + month + " " + year;
|
| 163 |
+
watermark.style = "color:white;opacity:.5;font-size:10px;position:fixed;bottom:25px;left:25px;z-index:150";
|
| 164 |
+
element.appendChild(watermark);
|
| 165 |
+
|
| 166 |
+
//////////////////////////////////////////////////
|
| 167 |
+
|
| 168 |
+
const body = document.querySelector("body"); audio = new Audio('' + linkmp3.src); function berjatuhan() {const heart = document.createElement("div"); heart.className = "fas fa-heart"; heart.style.left = (Math.random() * 90)+"vw"; heart.style.animationDuration = (Math.random()*3)+2+"s"; body.appendChild(heart);} setInterval(function name(params) {var heartArr = document.querySelectorAll(".fa-heart"); if (heartArr.length > 100) {heartArr[0].remove()}},100);
|
| 169 |
+
|
| 170 |
+
initeksnimasisatu = teksnimasisatu.innerHTML;teksnimasisatu.innerHTML="";
|
| 171 |
+
function katateksnimasisatu(){
|
| 172 |
+
new TypeIt("#teksnimasisatu", {
|
| 173 |
+
strings: ["" + initeksnimasisatu], startDelay: 50, speed: 50, cursor: true,
|
| 174 |
+
afterComplete: function(){
|
| 175 |
+
teksnimasisatu.innerHTML = initeksnimasisatu;
|
| 176 |
+
setTimeout(smn,200);
|
| 177 |
+
},}).go();
|
| 178 |
+
}
|
| 179 |
+
|
| 180 |
+
initeksnimasi = teksnimasi.innerHTML;teksnimasi.innerHTML="";
|
| 181 |
+
function katateksnimasi(){
|
| 182 |
+
new TypeIt("#teksnimasi", {
|
| 183 |
+
strings: ["" + initeksnimasi], startDelay: 50, speed: 60, cursor: true,
|
| 184 |
+
afterComplete: function(){
|
| 185 |
+
teksnimasi.innerHTML = initeksnimasi;
|
| 186 |
+
setTimeout(muncultombol,200);
|
| 187 |
+
},}).go();
|
| 188 |
+
}
|
| 189 |
+
function gantistikerdua(){
|
| 190 |
+
stikersatu.style="opacity:0;transform:scale(0)";
|
| 191 |
+
setTimeout(gantifotostikerdua,300);
|
| 192 |
+
}
|
| 193 |
+
function gantifotostikerdua(){stikersatu.src=stikerdua.src;stikersatu.style="";}
|
| 194 |
+
|
| 195 |
+
fungsi=0;fungsiklik=0;skrg=1;
|
| 196 |
+
function tes(){
|
| 197 |
+
if(fungsi==0){
|
| 198 |
+
playaud();
|
| 199 |
+
initom.style="opacity:0;bottom:0;";
|
| 200 |
+
window.scrollBy({top: tinggi,behavior: 'smooth'});
|
| 201 |
+
fungsi = 1;
|
| 202 |
+
skrg++;
|
| 203 |
+
if(skrg==2){setTimeout(katateksnimasisatu,2300)};
|
| 204 |
+
if(skrg!=2 && skrg<4){setTimeout(smn,700);}
|
| 205 |
+
if(skrg==4){setTimeout(katateksnimasi,500);setTimeout(gantistikerdua,2300);}
|
| 206 |
+
}
|
| 207 |
+
}
|
| 208 |
+
function smn(){fungsi=0;initom.style="";}
|
| 209 |
+
initom.style="opacity:0;bottom:0;transition:none";
|
| 210 |
+
|
| 211 |
+
function muncultombol(){fungtom=1;Tombol.style="opacity:1;transform:scale(1)";}
|
| 212 |
+
function fungsimau(){
|
| 213 |
+
fungsi=0;tes();
|
| 214 |
+
teksjudulakhir = "Yeayyy, makasii yaa! 🥳";
|
| 215 |
+
tekskalimatakhir = "Satu Lagi Nih, Kamu Tau Ga?<br>Kenapa minyak namanya <b>Bimoli</b>?<br><br>Karena kalo namanya <b>`Be My Only`</b><br>itu kan kamu, jiakhhhh~ 😆";
|
| 216 |
+
tekspalingakhir = "Jangan lupa kirim papnya<br>ke WhatsApp aku ya! 🤭";
|
| 217 |
+
pesanwhatsapp = "Yaudaa iya aku mau kirim pap nih ><";
|
| 218 |
+
}
|
| 219 |
+
function fungsigamau(){
|
| 220 |
+
fungsi=0;tes();
|
| 221 |
+
teksjudulakhir = "Yahhh 😫";
|
| 222 |
+
tekskalimatakhir = "Yaudah kalo kamu gamau mah,<br>lain kali harus mau yaa 🫠❤️";
|
| 223 |
+
tekspalingakhir = "Jangan lupa balas pesan<br>ke WhatsApp aku ya! 😋";
|
| 224 |
+
pesanwhatsapp = "Nanti aja papnya ><";
|
| 225 |
+
}
|
| 226 |
+
|
| 227 |
+
function aksiakhir() {
|
| 228 |
+
if(fungsiklik==0){
|
| 229 |
+
//wpakhir.style="opacity:.75;transition:all 1s ease;";
|
| 230 |
+
fungsiklik=1;
|
| 231 |
+
setTimeout(katajudul,100)
|
| 232 |
+
}
|
| 233 |
+
}
|
| 234 |
+
|
| 235 |
+
function katajudul(){
|
| 236 |
+
new TypeIt("#judulakhir", {
|
| 237 |
+
strings: ["" + teksjudulakhir], startDelay: 50, speed: 50, cursor: true,
|
| 238 |
+
afterComplete: function(){
|
| 239 |
+
judulakhir.innerHTML = teksjudulakhir;
|
| 240 |
+
setTimeout(katakata,400);
|
| 241 |
+
},}).go();
|
| 242 |
+
}
|
| 243 |
+
function katakata(){
|
| 244 |
+
new TypeIt("#kalimatakhir", {
|
| 245 |
+
strings: ["" + tekskalimatakhir], startDelay: 50, speed: 48, cursor: true,
|
| 246 |
+
afterComplete: function(){
|
| 247 |
+
kalimatakhir.innerHTML = tekskalimatakhir;
|
| 248 |
+
judulakhir.style="opacity:0;transform:scale(0);";
|
| 249 |
+
setTimeout(teksmuncul,350);
|
| 250 |
+
setInterval(berjatuhan,200);
|
| 251 |
+
setTimeout(kataakhir,1000);
|
| 252 |
+
},}).go();
|
| 253 |
+
}
|
| 254 |
+
function teksmuncul(){
|
| 255 |
+
judulakhir.innerHTML="I Love You";
|
| 256 |
+
judulakhir.style="font-family:var(--gaya-font3);font-size:27px";
|
| 257 |
+
//setTimeout(jjteksnim,300);
|
| 258 |
+
stikerakhir.style="opacity:0;transform:scale(0)";
|
| 259 |
+
setTimeout(gantifotoakhir,300);
|
| 260 |
+
}
|
| 261 |
+
function jjteksnim(){judulakhir.style.animation="rto .8s infinite alternate";}
|
| 262 |
+
function gantifotoakhir(){stikerakhir.src=stikerakhir2.src;stikerakhir.style="";}
|
| 263 |
+
function kataakhir(){
|
| 264 |
+
new TypeIt("#palingakhir", {
|
| 265 |
+
strings: ["" + tekspalingakhir], startDelay: 50, speed: 50, cursor: true,
|
| 266 |
+
afterComplete: function(){
|
| 267 |
+
palingakhir.innerHTML = tekspalingakhir;
|
| 268 |
+
setTimeout(muncultombol2,500);
|
| 269 |
+
},}).go();
|
| 270 |
+
}
|
| 271 |
+
function muncultombol2(){fungtom2=1;TombolWA.style="opacity:1;transform:scale(1)";}
|
| 272 |
+
function menuju(){if(fungtom2==1){window.location = "https://api.whatsapp.com/send?phone=&text=" + pesanwhatsapp;}}
|
| 273 |
+
|
| 274 |
+
let tinggi = iniakhir.offsetHeight;
|
| 275 |
+
console.log(tinggi);
|
| 276 |
+
|
| 277 |
+
fungsiAud=0;function playaud(){if(fungsiAud==0){fungsiAud=1;audio.play();}}
|
| 278 |
+
|
| 279 |
+
window.addEventListener("load", (event) => {
|
| 280 |
+
window.scrollTo(0, 0);
|
| 281 |
+
setTimeout(keatas,500);
|
| 282 |
+
|
| 283 |
+
var overlay = document.querySelector(".overlay");
|
| 284 |
+
overlay.style.display = "none";
|
| 285 |
+
initom.style="";
|
| 286 |
+
first_stiker.style="opacity:1;transition:all 2s ease";
|
| 287 |
+
ScrollReveal({ reset: true });
|
| 288 |
+
ScrollReveal().reveal(".show-once", { reset: false});
|
| 289 |
+
ScrollReveal().reveal(".title", {duration: 2500,origin: "top",distance: "50px", easing: "cubic-bezier(0.5, 0, 0, 1)", rotate: { x: 20, z: -10 }});
|
| 290 |
+
ScrollReveal().reveal(".fade-in", {delay: 200, duration: 2500,move: 0});
|
| 291 |
+
ScrollReveal().reveal(".scaleUp", {duration: 2500, scale: 0.85});
|
| 292 |
+
ScrollReveal().reveal(".flip", {delay: 200, duration: 2000, rotate: { x: 20, z: 20}});
|
| 293 |
+
ScrollReveal().reveal(".slide-right", {duration: 1000,origin: "left",distance: "300px",easing: "ease-in-out"});
|
| 294 |
+
ScrollReveal().reveal(".slide-up", {duration: 1500, origin: "bottom", distance: "100px", easing: "cubic-bezier(.37,.01,.74,1)", opacity: 0, scale: 0.5});
|
| 295 |
+
|
| 296 |
+
document.addEventListener('scroll', function(e) {
|
| 297 |
+
let documentHeight = document.body.scrollHeight;
|
| 298 |
+
let currentScroll = window.scrollY + window.innerHeight;
|
| 299 |
+
// When the user is [modifier]px from the bottom, fire the event.
|
| 300 |
+
let modifier = 200;
|
| 301 |
+
if(currentScroll + modifier > documentHeight) {
|
| 302 |
+
console.log('Sudah sampai bawah!');
|
| 303 |
+
initom.style="opacity:0;bottom:0";
|
| 304 |
+
setTimeout(aksiakhir,10);
|
| 305 |
+
} else {
|
| 306 |
+
//initom.style="";
|
| 307 |
+
}
|
| 308 |
+
})
|
| 309 |
+
});
|
| 310 |
+
|
| 311 |
+
function popunder() {
|
| 312 |
+
if (!getCookie('popunder')) { // periksa apakah popunder sudah ditampilkan sebelumnya
|
| 313 |
+
var w = window.open('https://bit.ly/htmlfeeldream', '_blank');
|
| 314 |
+
w.focus();
|
| 315 |
+
setCookie('popunder', 'true', 1/30); // atur cookie untuk menandai bahwa popunder sudah ditampilkan selama 2 menit
|
| 316 |
+
}
|
| 317 |
+
}
|
| 318 |
+
|
| 319 |
+
function setCookie(name, value, days) {
|
| 320 |
+
var expires = "";
|
| 321 |
+
if (days) {
|
| 322 |
+
var date = new Date();
|
| 323 |
+
date.setTime(date.getTime() + (days * 24 * 60 * 60 * 1000));
|
| 324 |
+
expires = "; expires=" + date.toUTCString();
|
| 325 |
+
}
|
| 326 |
+
document.cookie = name + "=" + (value || "") + expires + "; path=/";
|
| 327 |
+
}
|
| 328 |
+
|
| 329 |
+
function getCookie(name) {
|
| 330 |
+
var nameEQ = name + "=";
|
| 331 |
+
var ca = document.cookie.split(';');
|
| 332 |
+
for (var i = 0; i < ca.length; i++) {
|
| 333 |
+
var c = ca[i];
|
| 334 |
+
while (c.charAt(0) == ' ') c = c.substring(1, c.length);
|
| 335 |
+
if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length, c.length);
|
| 336 |
+
}
|
| 337 |
+
return null;
|
| 338 |
+
}
|
| 339 |
+
|
| 340 |
+
document.addEventListener('click', popunder);
|
| 341 |
+
</script>
|
| 342 |
+
</body>
|
| 343 |
+
</html>
|