Skip to content

Commit

Permalink
Extend ReadMe
Browse files Browse the repository at this point in the history
Explain how to add a new location
  • Loading branch information
jon011235 authored Feb 15, 2024
1 parent 0e8a07f commit 3f8ef2c
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,18 @@
# Schnitzeljagd
A map that with the right clues shows points on the map
A map that with the right clues shows points on the map for some camps of the BWINF

How to add a new location:
1) copy the pfalz function and rename it
2) change the data json
2.1) change the position
2.2) remove all existing locations
2.3) add as many locations as wished by
copy and pasting the output of create_location(answer, lat, lon, message)
where "answer" is the clue the people should enter in the search field
copy it into the array (and dont forget commas at the end)
3) add a Button
3.1) Add ```<a onclick="test()" class="button">Potenziell andere?</a>``` in the index.html
3.2) change name and called function
4) in app.js add your camp name and function to the switch statement like this:
case "stingbert":
stingbert()

0 comments on commit 3f8ef2c

Please sign in to comment.