-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path404.html
171 lines (158 loc) · 8.5 KB
/
404.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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Error 404</title>
<link rel="stylesheet" href="assets/css/style.css">
<link rel="stylesheet" href="assets/css/theme.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
<style>
body {
background-image: url("assets/images/20.webp");
background-size: cover;
background-repeat: no-repeat;
background-position: center;
height: 100vh;
line-height: 20px;
}
* {
font-optical-sizing: auto;
margin: 0;
padding: 0;
box-sizing: border-box;
-webkit-tap-highlight-color: transparent;
font-optical-sizing: auto;
}
html {
top: 0;
left: 0;
width: 100%;
scroll-behavior: smooth;
}
c-nav {
z-index: 10000;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 75px;
background: #000;
}
.contentt {
width: 40%;
min-width: 350px;
height: 300px;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
-webkit-transform: translate(-50%, -50%);
-ms-transform: translate(-50%, -50%);
background-color: #1a1919b7;
backdrop-filter: blur(100px);
padding: 45px 20px 20px;
box-sizing: border-box;
box-shadow: 0 0 250px rgba(0, 0, 0, 0.5);
border-radius: 10px;
border: 1px solid #ffffff60
}
.browser-bar {
background: #ffffffbe;
position: absolute;
top: 0;
left: 0;
right: 0;
padding: 5px;
overflow: hidden;
border-radius: 5px 5px 0 0;
}
.buttonn {
display: inline-block;
float: left;
border-radius: 50%;
width: 15px;
height: 15px;
margin-right: 5px;
}
.close {
background: #fc635d;
}
.min {
background: #fdbc40;
}
.max {
background: #34c84a;
}
.home-link {
background: #fff;
color: black;
text-decoration: none;
border-bottom: solid 2px;
}</style>
</head>
<body>
<c-nav></c-nav>
<div class="contentt">
<div class="browser-bar">
<span class="close buttonn"></span>
<span class="min buttonn"></span>
<span class="max buttonn"></span>
</div>
<div class="text"></div>
</div>
<script>
!function(t){"use strict";var s=function(s,e){this.el=t(s),this.options=t.extend({},t.fn.typed.defaults,e),this.isInput=this.el.is("input"),this.attr=this.options.attr,this.showCursor=this.isInput?!1:this.options.showCursor,this.elContent=this.attr?this.el.attr(this.attr):this.el.text(),this.contentType=this.options.contentType,this.typeSpeed=this.options.typeSpeed,this.startDelay=this.options.startDelay,this.backSpeed=this.options.backSpeed,this.backDelay=this.options.backDelay,this.stringsElement=this.options.stringsElement,this.strings=this.options.strings,this.strPos=0,this.arrayPos=0,this.stopNum=0,this.loop=this.options.loop,this.loopCount=this.options.loopCount,this.curLoop=0,this.stop=!1,this.cursorChar=this.options.cursorChar,this.shuffle=this.options.shuffle,this.sequence=[],this.build()};s.prototype={constructor:s,init:function(){var t=this;t.timeout=setTimeout(function(){for(var s=0;s<t.strings.length;++s)t.sequence[s]=s;t.shuffle&&(t.sequence=t.shuffleArray(t.sequence)),t.typewrite(t.strings[t.sequence[t.arrayPos]],t.strPos)},t.startDelay)},build:function(){var s=this;if(this.showCursor===!0&&(this.cursor=t('<span class="typed-cursor">'+this.cursorChar+"</span>"),this.el.after(this.cursor)),this.stringsElement){s.strings=[],this.stringsElement.hide();var e=this.stringsElement.find("p");t.each(e,function(e,i){s.strings.push(t(i).html())})}this.init()},typewrite:function(t,s){if(this.stop!==!0){var e=Math.round(70*Math.random())+this.typeSpeed,i=this;i.timeout=setTimeout(function(){var e=0,r=t.substr(s);if("^"===r.charAt(0)){var o=1;/^\^\d+/.test(r)&&(r=/\d+/.exec(r)[0],o+=r.length,e=parseInt(r)),t=t.substring(0,s)+t.substring(s+o)}if("html"===i.contentType){var n=t.substr(s).charAt(0);if("<"===n||"&"===n){var a="",h="";for(h="<"===n?">":";";t.substr(s).charAt(0)!==h;)a+=t.substr(s).charAt(0),s++;s++,a+=h}}i.timeout=setTimeout(function(){if(s===t.length){if(i.options.onStringTyped(i.arrayPos),i.arrayPos===i.strings.length-1&&(i.options.callback(),i.curLoop++,i.loop===!1||i.curLoop===i.loopCount))return;i.timeout=setTimeout(function(){i.backspace(t,s)},i.backDelay)}else{0===s&&i.options.preStringTyped(i.arrayPos);var e=t.substr(0,s+1);i.attr?i.el.attr(i.attr,e):i.isInput?i.el.val(e):"html"===i.contentType?i.el.html(e):i.el.text(e),s++,i.typewrite(t,s)}},e)},e)}},backspace:function(t,s){if(this.stop!==!0){var e=Math.round(70*Math.random())+this.backSpeed,i=this;i.timeout=setTimeout(function(){if("html"===i.contentType&&">"===t.substr(s).charAt(0)){for(var e="";"<"!==t.substr(s).charAt(0);)e-=t.substr(s).charAt(0),s--;s--,e+="<"}var r=t.substr(0,s);i.attr?i.el.attr(i.attr,r):i.isInput?i.el.val(r):"html"===i.contentType?i.el.html(r):i.el.text(r),s>i.stopNum?(s--,i.backspace(t,s)):s<=i.stopNum&&(i.arrayPos++,i.arrayPos===i.strings.length?(i.arrayPos=0,i.shuffle&&(i.sequence=i.shuffleArray(i.sequence)),i.init()):i.typewrite(i.strings[i.sequence[i.arrayPos]],s))},e)}},shuffleArray:function(t){var s,e,i=t.length;if(i)for(;--i;)e=Math.floor(Math.random()*(i+1)),s=t[e],t[e]=t[i],t[i]=s;return t},reset:function(){var t=this;clearInterval(t.timeout);var s=this.el.attr("id");this.el.after('<span id="'+s+'"/>'),this.el.remove(),"undefined"!=typeof this.cursor&&this.cursor.remove(),t.options.resetCallback()}},t.fn.typed=function(e){return this.each(function(){var i=t(this),r=i.data("typed"),o="object"==typeof e&&e;r||i.data("typed",r=new s(this,o)),"string"==typeof e&&r[e]()})},t.fn.typed.defaults={strings:["These are the default values...","You know what you should do?","Use your own!","Have a great day!"],stringsElement:null,typeSpeed:0,startDelay:0,backSpeed:0,shuffle:!1,backDelay:500,loop:!1,loopCount:!1,showCursor:!0,cursorChar:"|",attr:null,contentType:"html",callback:function(){},preStringTyped:function(){},onStringTyped:function(){},resetCallback:function(){}}}(window.jQuery);
$(function(){
$('.text').typed({
strings: [
"Oops! It looks like you're lost. <br /> ^1000" +
"Sorry about that. <br /> ^1000" +
"Let me try and help. <br /> ^1000" +
"Go back <a class=home-link href='/'>home</a> and start over."
],
typeSpeed: 1,
showCursor:false
});
});</script> <script>
function searchProjects() { // Check if the current page is index.html
if (window.location.pathname !== '/index.html') {
// Redirect to index.html with the #projects anchor tag
window.location.href = '/index.html#projects';
return;
}
var projectsDiv = document.getElementById('projects');
if (projectsDiv) {
projectsDiv.scrollIntoView({ behavior: 'smooth' });
}
const searchTerm = document.getElementById("search-input").value.toLowerCase();
fetchProjects()
.then(projects => {
const filteredProjects = projects.filter(project => {
const isMatchingTitle = project.title.toLowerCase().includes(searchTerm);
const isMatchingDate = project.date.toLowerCase().includes(searchTerm);
const isMatchingTags = project.tags && project.tags.some(tag => tag.toLowerCase().includes(searchTerm));
return isMatchingTitle || isMatchingDate || isMatchingTags;
});
displayProjects(filteredProjects);
})
.catch(error => {
console.error('Error fetching projects:', error);
});
}// Function to extract and filter out unwanted tags from projects
const footerUrl = 'components/footer.html';
const headerUrl = 'components/navbar.html';
function loadHeader() {
const cNav = document.querySelector('c-nav');
fetch(headerUrl)
.then((response) => response.text())
.then((headerHtml) => {
cNav.innerHTML = headerHtml;
})
.catch((error) => {
console.error('Error loading header:', error);
});
}
loadHeader();</script>
</body>
</html>