-
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.
change tags, add translator role, add alex's down
- Loading branch information
Showing
14 changed files
with
149 additions
and
45 deletions.
There are no files selected for viewing
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,22 @@ | ||
<!DOCTYPE html> | ||
<html lang="he" dir="rtl"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> | ||
<link rel="preload" as="style" href="https://fonts.googleapis.com/css2?family=Miriam+Libre:wght@400;700&display=block"> | ||
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Miriam+Libre:wght@400;700&display=block"> | ||
<link rel="stylesheet" href="../style.css"> | ||
<link rel="stylesheet" href="style.css"> | ||
<script src="../pages.js"></script> | ||
<script src="script.js"></script> | ||
<meta property="og:image" content="https://oulipoh.com/resen/cent/snippet"> | ||
<noscript><style>body {visibility: visible}</style></noscript> | ||
</head> | ||
<body onload="document.body.style.visibility = 'visible'"> | ||
<script> | ||
make_header() | ||
make_footer() | ||
</script> | ||
</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,23 @@ | ||
let down, origin_x, origin_y, origin_bg_pos_x, origin_bg_pos_y | ||
|
||
document.addEventListener('pointerdown', e => { | ||
down = true | ||
origin_x = e.clientX | ||
origin_y = e.clientY | ||
}) | ||
|
||
document.addEventListener('pointerup', () => { | ||
down = false | ||
const style = getComputedStyle(document.body) | ||
origin_bg_pos_x = parseInt(style.getPropertyValue('background-position-x')) | ||
origin_bg_pos_y = parseInt(style.getPropertyValue('background-position-y')) | ||
}) | ||
|
||
document.addEventListener('pointermove', e => { | ||
if (!down) | ||
return | ||
document.body.style.backgroundPositionX = Math.max(0, Math.min((origin_x-e.clientX) / 45 + origin_bg_pos_x, 100)) + '%' | ||
document.body.style.backgroundPositionY = Math.max(0, Math.min((origin_y-e.clientY) / 25 + origin_bg_pos_y, 100)) + '%' | ||
}) | ||
|
||
addEventListener('load', () => document.dispatchEvent(new Event('pointerup'))) |
Binary file not shown.
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 @@ | ||
html { | ||
overscroll-behavior: none; | ||
} | ||
|
||
body { | ||
background-image: url('down.jpg'); | ||
background-position: 43% 40%; | ||
background-repeat: no-repeat; | ||
background-size: 500%; | ||
--fg_dim: var(--fg); | ||
user-select: none; | ||
-webkit-user-select: none; | ||
} | ||
|
||
footer, h1, h2, nav { | ||
text-shadow: var(--bg) 0 0 2px; | ||
} | ||
|
||
nav { | ||
background: none; | ||
} |
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
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
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
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
Oops, something went wrong.