-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
141 lines (123 loc) · 4.55 KB
/
index.html
File metadata and controls
141 lines (123 loc) · 4.55 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
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>douglasgraphics</title>
<link rel="icon" type="image/x-icon" href="favicon.ico.png">
<link rel="stylesheet" href="style.css">
<script src="https://kit.fontawesome.com/5485a8e8c8.js" crossorigin="anonymous"></script>
</head>
<body>
<div class="container1">
<nav>
<input type="checkbox" name="" id="chk1">
<img src="Douglas Graphics logo.png" class="logo">
<div class="search-box">
<form action="">
<input type="text" name="search" id="srch" placeholder="Search">
<button type="submit"><i class="fa fa-search"></i></button>
</form>
</div>
<div class="menu">
<label for="chk1">
<i class="fa fa-bars"></i>
</label>
</div>
<ul>
<li><a href="header.html"></i>Home</a></li>
<li><a href="about.html" ></i>About</a></li>
<li><a href="Services.html">Services</a></li>
<li><a href="#portfolio.html"></i>My Potfolio</a></li>
<li><a href="#Contact.html">Contact Me</a></li>
</ul>
<li>
<a href="https://www.facebook.com/dictorsanja.abdallah"><i class="fab fa-facebook"></i></a>
<a href="https://x.com/OlameDicto26034"><i class="fa-brands fa-x-twitter"></i></a>
<a href="https://www.instagram.com/olamedictor37/"><i class="fa-brands fa-instagram"></i></a>
</li>
</nav>
</div>
<div class="header">
<h1>Hello, Welcome!</h1>
<h2> This is Dictor Olame</h2>
<h4> I am a <span class="auto-type"></span></h4>
</div>
<div class="copyright">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<a href="#header">
<img src="Douglas Graphics logo.png" class="logo">
</a>
<div class=" footer">
<ul id="sidemenu">
<li><a href="header.html"> Home</a></li>
<li><a href="about.html"> About</a></li>
<li><a href="services.html"> Services</a></li>
<li><a href="portfolio.html"> Portfolio</a></li>
<li><a href="contact.html"> Contact</a></li>
</div>
</ul>
<p>Copyright © Dictor Olame. Made for <i class="fa-solid fa-heart"></i> Personal Use and professional only</p>
</div>
</script>
<script>
var tablinks = document.getElementsByClassName ("tab-links");
var tabcontents = document.getElementsByClassName ("tab-contents");
function opentab(tabname){
for(tablink of tablinks){
tablink.classList.remove("active-link");
}
for(tabcontent of tabcontents){
tabcontent.classList.remove("active-tab");
}
event.currentTarget.classList.add("active-link");
document.getElementById(tabname).classList.add("active-tab");
}
</script>
<script>
var sidemenu = document.getElementById("sidemenu");
function openmenu(){
sidemenu.style.right="0";
}
function closemenu(){
sidemenu.style.right="-200px";
}
</script>
<script>
const scriptURL = 'https://script.google.com/macros/s/AKfycbyZFQBhINHJrQporC7Xwg0vxHtXKUO0cPEqapURAE-m9-vKpgb8QtYLSl1azWt9dhC4/exec'
const form = document.forms['submit-to-google-sheet']
const msg =document.getElementById("msg")
form.addEventListener('submit', e => {
e.preventDefault()
fetch(scriptURL, { method: 'POST', body: new FormData(form)})
.then(response => {
msg.innerHTML= "Message sent successfully"
setTimeout(function(){
msg.innerHTML=''
},5000)
form.reset()
})
.catch(error => console.error('Error!', error.message))
})
function showsidebar(){
const sidebar =document.querySelector('.sidebar')
sidebar.style.display='flex'
}
function hideSidebar(){
const sidebar =document.querySelector('.sidebar')
sidebar.style.display='none'
}
</script>
<script src="https://unpkg.com/typed.js@2.1.0/dist/typed.umd.js"></script>
<script>
var typed = new Typed(".auto-type",
{
strings :["Programmer", "IT Supporter", "Web Developer", "Graphic Designer"],
typeSpeed:140,
backSpeed:140,
looped:true,
}
)
</script>
</body>
</html>