-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnft.html
117 lines (98 loc) · 4.03 KB
/
nft.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
<!DOCTYPE html>
<html>
<head id="mainHead">
<title>NFT marketplace-ArtWarp</title>
<link rel="icon" href="images/logo/logo only.png" type="image/icon type">
<link id="nft-theme" rel="stylesheet" href="styles/nft.css">
<link id="collection-theme" rel="stylesheet" href="styles/nft-collection.css">
<link id="subscribe-theme" rel="stylesheet" href="styles/nft-subscribe.css">
<link id="latest-theme" rel="stylesheet" href="styles/nft-latest.css">
</head>
<body>
<button onclick="topFunction()" id="topBtn">↑</button>
<nav></nav>
<div id="mySideNav" class="sidenav"></div>
<div class="hero-heading">
<div class="hero-heading-css">Welcome to Your<br>
World of NFTs </div>
</div>
<div class="latest-drops">
<div class="latest-drops-heading">
Latest Drops
</div>
<div class="item-block"></div>
</div>
<div class="introducing">
<div class="intro-heading">
artWarp
</div>
<div class="intro-artWarp">
<div class="intro-artWarp-img">
<img id="intro-logo" src="images/logo/logo-removebg.png">
</div>
<div class="intro-content">
"Where Digital Dreams Become Tangible Treasures: Discover Your nft Haven!"
</div>
</div>
</div>
<div class="collection"></div>
<div class="subscribe">
<h2 class="line1">Never miss a drop</h2>
<div class="line2">Subscribe for the latest news, drops & collectibles</div>
<div class="subscribe-input">
<input class="subscribe-input-box" placeholder="Email">
<button>Subscribe</button>
</div>
</div>
<footer></footer>
<script src="javascript/head.js"></script>
<script src="javascript/sideNav.js"></script>
<script type="module" src="javascript/homepage/renderNavbar.js"></script>
<script type="module" src="javascript/homepage/nft-latestdrops.js"></script>
<script type="module" src="javascript/homepage/nft-collection.js"></script>
<script type='module' src="javascript/homepage/renderFooter.js"></script>
<script>
let mybutton = document.getElementById("topBtn");
let id;
let j=0;
window.onscroll=function(){
setTimeout(scrollFunc,300);
scrollFunction();
};
function scrollFunc(){
const x=window.scrollY>1130 && window.scrollY<2200;
if (!j){
if (x){
j=1;
document.querySelector(".intro-content").innerHTML='';
var i = 0;
var txt = "Where Digital Dreams Become Tangible Treasures: Discover Your nft Haven!";
var speed =70;
typeWriter();
function typeWriter(){
if (i < txt.length) {
document.querySelector(".intro-content").innerHTML += txt.charAt(i);
i++;
id=setTimeout(typeWriter, speed);
}
}
}
}else if(!x){
j=0;
clearTimeout(id);
}
};
function scrollFunction() {
if (document.body.scrollTop > 500 || document.documentElement.scrollTop > 500) {
mybutton.style.display = "block";
} else {
mybutton.style.display = "none";
}
}
function topFunction() {
document.body.scrollTop = 0;
document.documentElement.scrollTop = 0;
}
</script>
</body>
</html>