Skip to content

Commit

Permalink
UPDATE-Hotfix: include script.py, README.MD
Browse files Browse the repository at this point in the history
  • Loading branch information
SirKnubble committed Apr 10, 2024
1 parent c82ca1a commit 05fc771
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ sirknubble.github.io
├───/map
│ │ /gallery.html
│ │ /index.html
│ │ /script.py
│ │
│ ├───/css
│ │ /styles.css
Expand Down Expand Up @@ -50,7 +51,8 @@ sirknubble.github.io
## ToDo:

- Add ~~new nav-bar~~ "back"&"gallery"-button to map
- Work in map/gallery, buttons in home-nav-bar style (on top of hr/)
- Work on map/gallery, buttons in home-nav-bar style (on top of hr/)
- gallery working on localhost, not on github

Projects to add:
- Discord - Bot
Expand Down
2 changes: 1 addition & 1 deletion map/gallery.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<a href="/home/">Home</a>
<hr/>
<a href="/map/">Map</a>
<div id="links">
<div id="links"> <!-- Script for generating at https://sirknubble.github.io/map/script.py-->
<a href="/map/images/treasure/treasure1.jpg" title="Treasure 1"><img src="/map/icons/treasure.png" alt="Treasure 1" /></a>
<a href="/map/images/treasure/treasure2.jpg" title="Treasure 2"><img src="/map/icons/treasure.png" alt="Treasure 2" /></a>
<a href="/map/images/treasure/treasure3.jpg" title="Treasure 3"><img src="/map/icons/treasure.png" alt="Treasure 3" /></a>
Expand Down
11 changes: 11 additions & 0 deletions map/script.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Python Script for generating <a href> elements for /map/gallery.html
## Written in Python IDLE 3.12 (64-bit)
### Original file-name: treasurescript.py

msg1 ='<a href="/map/images/treasure/treasure'
msg2 ='.jpg" title="Treasure '
msg3 ='"><img src="/map/icons/treasure.png" alt="Treasure '
msg4 ='" /></a>'

for number in range(1,297):
print(msg1,number,msg2,number,msg3,number,msg4, sep = '') # sep: Seperator (remove whitespace)

0 comments on commit 05fc771

Please sign in to comment.