-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 819c48a
Showing
542 changed files
with
13,148 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
pictures/lab/storage_2024_03_07/.tmp/* | ||
pictures/radioburza/leden_2024/.tmp/* | ||
|
||
!.gitignore | ||
!.nojekyll | ||
!.github |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
zap.devvie.cc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
MIT License | ||
|
||
Copyright (c) 2024 Oliver Caha | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
[Core] | ||
template_path = assets/template.html | ||
css_path = assets/style.css | ||
js_path = assets/script.js | ||
|
||
[Output] | ||
images_directory_name = images | ||
core_directory_name = core | ||
output_file_name = index.html | ||
|
||
[Index] | ||
enabled = true | ||
page = assets/index_template.html | ||
base_directory = docs/g/ | ||
base_index_name = index.html | ||
|
||
[Index.special_rules] | ||
generate_project_index = true | ||
generate_project_root_index = true | ||
|
||
project_root_index_name = dir.html | ||
project_index_name = index.html | ||
|
||
root_index_name = index.html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,102 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>{{header}}</title> | ||
<style> | ||
body { | ||
font-family: Arial, sans-serif; | ||
margin: 20px; | ||
padding: 0; | ||
background-color: #222; | ||
color: #ddd; | ||
font-size: 18px; | ||
} | ||
h1 { | ||
margin-bottom: 20px; | ||
font-size: 28px; | ||
} | ||
ul { | ||
list-style-type: none; | ||
padding: 0; | ||
margin: 0; | ||
} | ||
li { | ||
margin-bottom: 10px; | ||
background-color: #333; | ||
border-radius: 5px; | ||
transition: background-color 0.3s ease; | ||
cursor: pointer; | ||
font-size: 20px; | ||
} | ||
li:hover { | ||
background-color: #555; | ||
} | ||
li a { | ||
display: block; | ||
padding: 8px; | ||
text-decoration: none; | ||
color: #007bff; | ||
font-size: 20px; | ||
} | ||
li a:hover { | ||
text-decoration: underline; | ||
} | ||
|
||
.index_self { | ||
background-color: #444; | ||
color: #999; | ||
} | ||
.index_directory { | ||
background-color: rgb(67, 135, 198); | ||
color: #ffffff; | ||
} | ||
.index_file { | ||
background-color: #008b7b; | ||
color: #fff; | ||
} | ||
|
||
button { | ||
background-color: transparent; | ||
color: #007bff; | ||
border: 1px solid #007bff; | ||
padding: 12px 24px; | ||
border-radius: 5px; | ||
cursor: pointer; | ||
transition: background-color 0.3s ease; | ||
font-size: 20px; | ||
} | ||
|
||
button:hover { | ||
background-color: #007bff; | ||
color: #fff; | ||
} | ||
|
||
/* Mobile Styles */ | ||
@media screen and (max-width: 600px) { | ||
body { | ||
font-size: 8px; | ||
} | ||
h1 { | ||
font-size: 18px; | ||
} | ||
li, | ||
li a { | ||
font-size: 12px; | ||
} | ||
button { | ||
font-size: 12px; | ||
padding: 6px 12px; | ||
} | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<h1>{{title}}</h1> | ||
<ul> | ||
{{directory_list}} | ||
</ul> | ||
{{comment_start}}<button onclick="location.href='..';">.. (zap.devvie.cc{{parent}})</button>{{comment_end}} | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,124 @@ | ||
var current_image_index = 0; | ||
var image_paths = [ | ||
{{image_paths}} | ||
]; | ||
|
||
function normalize_path(file_path) { | ||
const parts = file_path.split('/'); | ||
const normalized_parts = []; | ||
|
||
for (const part of parts) { | ||
if (part === '..') { | ||
normalized_parts.pop(); | ||
} else if (part !== '.') { | ||
normalized_parts.push(part); | ||
} | ||
} | ||
|
||
const normalized_path = normalized_parts.join('/'); | ||
|
||
if (file_path.startsWith('/')) { | ||
return '/' + normalized_path; | ||
} else { | ||
return normalized_path; | ||
} | ||
} | ||
|
||
function open_image_viewer(image_path, prevent_navigation) { | ||
current_image_index = image_paths.indexOf(normalize_path(image_path)); | ||
update_image_viewer(); | ||
document.querySelector(".image-viewer").style.display = "flex"; | ||
document.body.style.overflow = "hidden"; | ||
|
||
if (prevent_navigation) { | ||
document.querySelector(".nav-arrows").style.display = "none"; | ||
} else { | ||
document.querySelector(".nav-arrows").style.display = "flex"; | ||
} | ||
|
||
document.addEventListener("keydown", handle_keypress); | ||
} | ||
|
||
function instant_scaledown(element) { | ||
var original_transition = element.style.transition; | ||
element.style.transition = "transform 0s"; | ||
element.style.transform = "scale(1)"; | ||
setTimeout(()=>{ | ||
element.style.transition = original_transition; | ||
},0); | ||
} | ||
|
||
function close_image_viewer() { | ||
var img = document.getElementById("viewer-image"); | ||
instant_scaledown(img); | ||
|
||
document.querySelector(".image-viewer").style.display = "none"; | ||
document.body.style.overflow = "auto"; | ||
|
||
document.removeEventListener("keydown", handle_keypress); | ||
} | ||
|
||
function navigate_image(event,direction) { | ||
var img = document.getElementById("viewer-image"); | ||
|
||
instant_scaledown(img); | ||
|
||
event.stopPropagation(); | ||
current_image_index += direction; | ||
if (current_image_index < 0) { | ||
current_image_index = image_paths.length - 1; | ||
} else if (current_image_index >= image_paths.length) { | ||
current_image_index = 0; | ||
} | ||
update_image_viewer(); | ||
} | ||
|
||
function update_image_viewer() { | ||
document.getElementById("viewer-image").src = image_paths[current_image_index]; | ||
} | ||
|
||
function toggle_dark_mode() { | ||
var body = document.body; | ||
body.classList.toggle("dark-mode"); | ||
} | ||
|
||
var last_zoom_x = 0; | ||
var last_zoom_y = 0; | ||
|
||
function zoom_image(event,instant) { | ||
var img = document.getElementById("viewer-image"); | ||
var bounding_rect = img.getBoundingClientRect(); | ||
|
||
var x = (event.clientX - bounding_rect.left) / bounding_rect.width; | ||
var y = (event.clientY - bounding_rect.top) / bounding_rect.height; | ||
|
||
if (img.style.transform === "scale(2)") { | ||
x = last_zoom_x; | ||
y = last_zoom_y; | ||
img.style.transformOrigin = `${x*100}% ${y*100}%`; | ||
img.style.transform = "scale(1)"; | ||
} else { | ||
img.style.transformOrigin = `${x*100}% ${y*100}%`; | ||
img.style.transform = "scale(2)"; | ||
last_zoom_x = x; | ||
last_zoom_y = y; | ||
} | ||
|
||
event.stopPropagation(); | ||
} | ||
|
||
function handle_keypress(event) { | ||
if (document.querySelector(".image-viewer").style.display === "flex") { | ||
switch(event.key) { | ||
case "ArrowLeft": | ||
navigate_image(event, -1); | ||
break; | ||
case "ArrowRight": | ||
navigate_image(event, 1); | ||
break; | ||
case "Escape": | ||
close_image_viewer(); | ||
break; | ||
} | ||
} | ||
} |
Oops, something went wrong.