-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
193 lines (173 loc) · 8.16 KB
/
index.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
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Sandelier's Portfolio</title>
<meta name="description" content="Website to showcase Sandelier's portfolio">
<link rel="stylesheet" href="Main/index/Css/index.css">
<link rel="stylesheet" href="Main/index/Css/shortCuts.css">
<link rel="stylesheet" href="Main/index/Css/overlay.css">
<link rel="stylesheet" href="Main/browser/browser.css">
<link rel="stylesheet" href="Main/notepad/notepad.css">
<link rel="stylesheet" href="Main/terminal/terminal.css">
<link rel="stylesheet" href="Main/allPrograms/programs.css">
</head>
<body>
<div id="overlay">
<div id="overlay-content">
<div>Works best on computers.</div>
<div>Using Full screen mode is recommended.</div>
<div>Click anywhere to close.</div>
</div>
</div>
<div id="iframeContainer">
<!-- Browser -->
<div class="draggable-container" data-container="browser">
<div class="program-frame">
<header class="program-header">
<div class="program-top-header">
<div class="program-top-header-modifybuttons">
<button class="program-tab-right-menu" onclick="minProgram('browser')" aria-label="Minimize browser">
<p>─</p>
</button>
<button class="program-tab-right-menu maximizeBtn" onclick="maxiProgram('browser')" aria-label="Maximize browser">
</button>
<button class="program-tab-right-menu refreshBtn" id="browser-menu-refresh-button" onclick="refreshSite('browser')" aria-label="Refresh browser">
</button>
<button class="program-tab-right-menu-close closeBtn" onclick="closeProgram('browser')" aria-label="Close browser">
</button>
</div>
</div>
<a href="https://github.com/Sandelier/sandelier.github.io" target='_blank' id="browser-github-link">
<img src="Main/index/images/github.webp" id="browser-github-page" loading="lazy" alt="Github page for project.">
</a>
</header>
<iframe width="100%" frameborder="0" id="browser-iframe-website" class="removableData" title="Browser Website" src="Main/browser/default/default.html"></iframe>
</div>
<div class="iframe-handle browser-handle"></div>
<div class="resize-handle"></div>
</div>
<!-- Terminal -->
<div class="draggable-container" data-container="terminal">
<div class="program-frame">
<header class="program-header">
<div class="program-top-header">
<div class="program-top-header-modifybuttons">
<button class="program-tab-right-menu" onclick="minProgram('terminal')" aria-label="Minimize terminal">
<p>─</p>
</button>
<button class="program-tab-right-menu maximizeBtn" onclick="maxiProgram('terminal')" aria-label="Maximize terminal">
</button>
<button class="program-tab-right-menu-close closeBtn" onclick="closeProgram('terminal')" aria-label="Close terminal">
</button>
</div>
</div>
</header>
<div id="terminal-window">
<div id="terminal-messages-container" class="removableData"></div>
<div id="terminal-input-container">
<textarea type="text" id="terminal-input" spellcheck="false" aria-label="Terminal input"></textarea>
</div>
</div>
</div>
<div class="iframe-handle"></div>
<div class="resize-handle"></div>
</div>
<!-- Notepad -->
<div class="draggable-container" data-container="notepad">
<div class="program-frame">
<header class="program-header">
<div class="program-top-header">
<div class="program-top-header-modifybuttons">
<button class="program-tab-right-menu" onclick="minProgram('notepad')" aria-label="Minimize Notepad">
</button>
<button class="program-tab-right-menu maximizeBtn" onclick="maxiProgram('notepad')" aria-label="Maximize Notepad">
</button>
<button class="program-tab-right-menu-close closeBtn" onclick="closeProgram('notepad')" aria-label="Close Notepad">
</button>
</div>
</div>
</header>
<div id="notepad-textContainer">
<p>- Open the terminal on your desktop to begin.</p>
<p>- Use "<b>li</b>" to list directories.</p>
<p>- Navigate with "<b>cd 'directory'</b>" and go back with "<b>cd ..</b>".</p>
<p>- Type "<b>help</b>" for a list of commands and some other commands.</p>
<p>- Enter "<b>read</b>" in the last directory to visit the website.</p>
<p>- Example: "<b>cd extensions/mangapresence</b>" then "<b>read</b>".</p>
<p>- Then to navigate to ext-run after mangapresence: "<b>cd ../../Librarys/ext-run</b>".</p>
<p>- For more pages, use "<b>li</b>" to see available options and navigate through cd.</p>
</div>
</div>
<div class="iframe-handle"></div>
<div class="resize-handle"></div>
</div>
<nav id="program-shortcut">
<div class="program-shortcut-button" onclick="highLightSelection(this)" ondblclick="activateProgram('terminal', this)">
<button class="program-shortcut-buttons" id="program-shortcut-terminal" aria-label="Terminal Shortcut"></button>
<p>Terminal</p>
</div>
<div class="program-shortcut-button" onclick="highLightSelection(this)" ondblclick="activateProgram('browser', this)">
<button class="program-shortcut-buttons" id="program-shortcut-browser" aria-label="Browser Shortcut"></button>
<p>Browser</p>
</div>
<div class="program-shortcut-button" onclick="highLightSelection(this)" ondblclick="activateProgram('notepad', this)">
<button class="program-shortcut-buttons" id="program-shortcut-notepad" aria-label="Notepad Shortcut"></button>
<p>Important</p>
</div>
<div class="program-shortcut-button" onclick="highLightSelection(this)" ondblclick="window.open('https://github.com/Sandelier', '_blank')">
<button class="program-shortcut-buttons" id="program-shortcut-github" aria-label="Github Shortcut"></button>
<p>Github</p>
</div>
<div class="program-shortcut-button" onclick="highLightSelection(this)" ondblclick="changePage('Sources/Sources.html')">
<button class="program-shortcut-buttons" id="program-shortcut-sources" aria-label="Sources Shortcut"></button>
<p>Sources</p>
</div>
<div class="program-shortcut-button" onclick="highLightSelection(this)" ondblclick="changePage('../../3D/3d.html', false, true, true)">
<button class="program-shortcut-buttons" id="program-shortcut-Models" aria-label="Models Shortcut"></button>
<p>Models</p>
</div>
<div class="program-shortcut-button" onclick="highLightSelection(this)" ondblclick="changePage('../../Aboutme/Aboutme.html')">
<button class="program-shortcut-buttons" id="program-shortcut-AboutMe" aria-label="About me Shortcut"></button>
<p>About me</p>
</div>
</nav>
</div>
</body>
<script>
function fpsMeter() {
let prevTime = Date.now(),
frames = 0;
requestAnimationFrame(function loop() {
const time = Date.now();
frames++;
if (time > prevTime + 100) {
//let fps = Math.round((frames * 1000) / (time - prevTime));
let fps = Math.floor(frames * 1000 / (time - prevTime) / 10) * 10;
prevTime = time;
frames = 0;
if (fps < 100) {
console.warn('Low FPS detected! FPS: ', fps);
} else if (fps < 150 && fps > 100) {
console.info(`FPS: ${fps}`);
}
}
requestAnimationFrame(loop);
});
}
fpsMeter();
</script>
<script src="Main/settings/settingsCookies.js"></script>
<script src="Main/index/Javascripts/loadScriptsDynamically.js"></script>
<script src=" https://cdn.jsdelivr.net/npm/interactjs@1.10.27/dist/interact.min.js "></script>
<script src="Main/index/Javascripts/frameModifying.js"></script>
<script src="Main/browser/showPage.js"></script>
<script src="Main/terminal/terminal.js"></script>
<script src="Main/index/Javascripts/frameButtons.js"></script>
<script src="Main/index/Javascripts/styling.js"></script>
<!--
<script src="https://cdn.jsdelivr.net/npm/tsparticles@1.33.0"></script>
<script src="codingIndex/Javascripts/particles.js"></script>
-->
</html>