Compare commits
2 commits
0d54f40061
...
6e4bef5179
Author | SHA1 | Date | |
---|---|---|---|
6e4bef5179 | |||
bf4c8989eb |
5 changed files with 15 additions and 1 deletions
|
@ -1,6 +1,8 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
cp geofeed.csv dist
|
cp geofeed.csv dist
|
||||||
|
find dist -type f -exec sed -i 's/var_lastmod/$(date)/g' {} +
|
||||||
|
find dist -type f -exec sed -i 's/var_commithash/$(git rev-parse --short HEAD)/g' {} +
|
||||||
|
|
||||||
ncftpput -R -u $FTP_USER -p $FTP_PASSWORD $FTP_SERVER . dist/*
|
ncftpput -R -u $FTP_USER -p $FTP_PASSWORD $FTP_SERVER . dist/*
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "parcel src/index.html src/**/index.html",
|
"start": "BUILD_DATE=$(date) parcel src/index.html src/**/index.html",
|
||||||
"build": "parcel build src/index.html src/**/index.html"
|
"build": "parcel build src/index.html src/**/index.html"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
|
|
@ -5,6 +5,13 @@
|
||||||
<script src="./script.js" defer></script>
|
<script src="./script.js" defer></script>
|
||||||
<title>dn724</title>
|
<title>dn724</title>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
html {
|
||||||
|
font-size: large;
|
||||||
|
background: #fee;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
||||||
<input type="number" min="0" placeholder="your ASN" oninput="calculate(this)">
|
<input type="number" min="0" placeholder="your ASN" oninput="calculate(this)">
|
||||||
<p>Port: <span id="result"></span></p>
|
<p>Port: <span id="result"></span></p>
|
||||||
</html>
|
</html>
|
|
@ -43,5 +43,7 @@
|
||||||
<li><a href="./services.html">Services</a></li>
|
<li><a href="./services.html">Services</a></li>
|
||||||
<li><a href="https://git.m724.eu/Minecon724/dn42-info">Source code</a></li>
|
<li><a href="https://git.m724.eu/Minecon724/dn42-info">Source code</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
|
<p>Last modified: var_lastmod var_commithash</p>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
|
@ -1,12 +1,15 @@
|
||||||
html {
|
html {
|
||||||
font-size: large;
|
font-size: large;
|
||||||
|
background: #fee;
|
||||||
}
|
}
|
||||||
|
|
||||||
body {
|
body {
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
padding-right: 20px; /* make it look aligned */
|
padding-right: 20px; /* make it look aligned */
|
||||||
max-width: calc(100vw - 40px);
|
max-width: calc(100vw - 40px);
|
||||||
word-wrap: break-word;
|
word-wrap: break-word;
|
||||||
width: fit-content;
|
width: fit-content;
|
||||||
|
border-radius: 0px;
|
||||||
}
|
}
|
||||||
ul {
|
ul {
|
||||||
margin-bottom: 1.4em;
|
margin-bottom: 1.4em;
|
||||||
|
|
Loading…
Reference in a new issue