-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
126 lines (111 loc) · 5.24 KB
/
index.html
File metadata and controls
126 lines (111 loc) · 5.24 KB
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
118
119
120
121
122
123
124
125
126
<!DOCTYPE html>
<html lang="en">
<head>
<link rel="stylesheet" type="text/css" href="style.css">
<link href="https://fonts.googleapis.com/css2?family=Fira+Sans:wght@100;200;400;600;800&display=swap" rel="stylesheet">
<script type="text/javascript" src="script.js"></script>
<link rel="icon" type="image/jpg" href="Images/Favicon.png"/>
<script src="https://kit.fontawesome.com/f1c27a6a68.js" crossorigin="anonymous"></script>
<title> Fizza Ahmed Portfolio </title>
<meta name="description" content="Portfolio website for Fizza Ahmed">
<meta name="keywords" content="portfolio, artist, toronto, web designer, student, game design">
<meta name="author" content="Fizza Ahmed">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
<main class="large">
<div class="introTopDiv">
<img class="introTop fade" id="indexLogo" src="Images/logocol.png" alt="Fizza Ahmed Logo">
<h1 class="introTop fade" id="nameChange" style="margin:0">.fizzara</h1>
</div>
<div class="introItems">
<div class="introItemDiv" onclick="jumpTo();">
<img src="Images/lookingfor/van.png" alt="" class="randimg fade">
<img src="Images/lookingfor/rainbow.png" alt="" class="randimg fade">
<img src="Images/lookingfor/drowning.png" alt="" class="randimg fade">
<img src="Images/lookingfor/vid.png" alt="" class="randimg fade">
<h2 class="fade">View A Random Project</h2>
</div>
<div class="introItemDiv"><a href="https://fizzara.github.io/resume">
<img src="Images/lookingfor/me.png" alt="" class="meimg fade">
<h2 class="fade">View My Resumé</h2></a>
</div>
</div>
<div style="text-align: center">
<a class="fade" href="https://www.linkedin.com/in/fizzara" style="color: #dbd8d0; text-decoration: none;"><p style="font-weight: 400; margin-top: 4px"> <i class="fa-brands fa-linkedin"></i> Connect with me on LinkedIn </p> </a>
<a class="fade" href="https://fizzara.github.io/contact" style="color: #dbd8d0; text-decoration: none;"><p style="font-weight: 400; margin-top: 4px"> <i class="fa-regular fa-note-sticky"></i> Fill out my Contact Form </p></a>
</div>
</main>
<script>
resume = false;
opac = 1;
runrun = true;
loc = 0;
i = 0;
funky();
let images = document.getElementsByClassName("randimg");
let imageIndex = 0;
imgChange();
// choose();
function myMove() {
element = document.getElementById("ugh");
element.style.animation = "goDown 2s linear 0s";
}
function funky(){
let hold = document.querySelector("#nameChange");
if(hold.textContent == ".fizzara"){
hold.textContent = "Fizza Ahmed";
}else{
hold.textContent = ".fizzara";
}
setTimeout(funky, 2000);
}
// function choose(){
// cso = document.querySelector(".choose");
// console.log(cso);
// arr = [".", "..", "..."];
// if(i>arr.length)i=0;
// cso.textContent = arr[i];
// i++;
// setTimeout(choose, 800);
// }
function imgChange(){
if(runrun){
for(let i=0; i < images.length; i++){
images[i].style.display = "none";
}
imageIndex++;
if(imageIndex == images.length) imageIndex = 0;
images[imageIndex].style.display="block";
console.log(runrun);
setTimeout(imgChange, 1200);
}
}
function jumpTo(){
arr = ["video.html#tlou", "video.html#rube", "art.html", "code.html", "code.html#html-code", "photography.html", "Memories.html", "TrainQuest.html", "DauDesignDoc.html", "figma.html#web-design", "figma.html", "resume.html"]
j = Math.floor(Math.random() * (arr.length-1));
fadeOut();
}
function fadeOut(){
runrun = false;
items = document.getElementsByClassName("fade");
tester = [];
for(m = 0; m < items.length; m++){
tester.push(items[m]);
}
for(m = 0; m < tester.length; m++){
tester[m].style.opacity = 1;
}
for(k = 0; k < tester.length; k++){
tester[k].style.opacity = opac;
tester[k].style.animation = "goDown 2s ease-in";
}
if(opac > 0){
opac -= 0.01;
setTimeout(fadeOut, 10);
}
setTimeout(() => { window.location.href = arr[j]; }, 1700);
}
</script>
</body>
</html>