Skip to content

Commit

Permalink
Refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
StrawberryMaster committed Nov 19, 2024
1 parent aae914a commit bf52130
Show file tree
Hide file tree
Showing 14 changed files with 3,102 additions and 121 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/node_modules
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
# danu
A testing ground for a Danula map

# Build instructions:
1. install the dependencies (typescript and node-sass!)
2. npm run build
50 changes: 29 additions & 21 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,32 +2,40 @@
<html lang="en">

<head>
<meta charset="UTF-8">
<title>Danula testing ground</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta charset="UTF-8">
<title>Danula testing ground</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">

<meta name="description" content="A testing ground for the Danula world map">
<meta name="author" content="StrawberryMaster, AsrielTheLatvian">
<meta name="description" content="A testing ground for the Danula world map">
<meta name="author" content="StrawberryMaster, AsrielTheLatvian">

<link rel="icon" href="media/favicon.ico">
<link rel="stylesheet" href="styles/styles.css">
<link rel="icon" href="media/favicon.ico">
<link rel="stylesheet" href="styles/styles.css">
</head>

<body>
<header>
<h1>Danula testing ground</h1>
</header>

<div class="map-container">
<img src="media/realcolorentireworld.png" class="map" usemap="#map">
<div class="coordinates" id="hover-coordinates"></div>
</div>

<footer>
<p>Created by <a href="https://github.com/StrawberryMaster">StrawberryMaster</a>. "Danula" and all related content is owned by AsrielTheLatvian.</p>
</footer>

<script src="scripts/nermal.js"></script>
<header>
<h1>Danula testing ground</h1>
</header>

<div class="map-container">
<img src="media/realcolorentireworld.png" class="map" usemap="#map">
<div class="coordinates" id="hover-coordinates"></div>
</div>

<footer>
<p>Created by <a href="https://github.com/StrawberryMaster">StrawberryMaster</a>. "Danula" and all related content
is owned by AsrielTheLatvian.</p>
</footer>

<script src="scripts/nermal.js"></script>
<script>
const tracker = new MapCoordinatesTracker('.map', 'hover-coordinates', {
precision: 2,
useThrottle: true,
throttleInterval: 16 // ~60fps
});
</script>
</body>

</html>
File renamed without changes.
Loading

0 comments on commit bf52130

Please sign in to comment.