From 5c2f4508cef1bc306d1e6014391519e37979bec1 Mon Sep 17 00:00:00 2001 From: Marc Michalsky Date: Sun, 30 Jan 2022 20:40:45 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=89=20Initial=20commit?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .idea/.gitignore | 8 +++++++ .idea/eridian_clock.iml | 8 +++++++ .idea/modules.xml | 8 +++++++ README.md | 3 +++ css/style.css | 50 ++++++++++++++++++++++++++++++++++++++++ fonts/eridani.eot | Bin 0 -> 2516 bytes fonts/eridani.svg | 35 ++++++++++++++++++++++++++++ fonts/eridani.ttf | Bin 0 -> 2352 bytes fonts/eridani.woff | Bin 0 -> 2428 bytes img/favicon.png | Bin 0 -> 583 bytes index.html | 29 +++++++++++++++++++++++ js/scripts.js | 22 ++++++++++++++++++ 12 files changed, 163 insertions(+) create mode 100644 .idea/.gitignore create mode 100644 .idea/eridian_clock.iml create mode 100644 .idea/modules.xml create mode 100644 README.md create mode 100644 css/style.css create mode 100644 fonts/eridani.eot create mode 100644 fonts/eridani.svg create mode 100644 fonts/eridani.ttf create mode 100644 fonts/eridani.woff create mode 100644 img/favicon.png create mode 100644 index.html create mode 100644 js/scripts.js diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000..13566b8 --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,8 @@ +# Default ignored files +/shelf/ +/workspace.xml +# Editor-based HTTP Client requests +/httpRequests/ +# Datasource local storage ignored files +/dataSources/ +/dataSources.local.xml diff --git a/.idea/eridian_clock.iml b/.idea/eridian_clock.iml new file mode 100644 index 0000000..c956989 --- /dev/null +++ b/.idea/eridian_clock.iml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 0000000..fd0ae56 --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..949679f --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# Eridian Clock + +This little website is inspired by the novel *Project Hail Mary* by the great author [Andy Weir](https://www.andyweirauthor.com/). \ No newline at end of file diff --git a/css/style.css b/css/style.css new file mode 100644 index 0000000..c8a820b --- /dev/null +++ b/css/style.css @@ -0,0 +1,50 @@ +@font-face { + font-family: 'eridani'; + src: url('../fonts/eridani.eot?o2f7zp'); + src: url('../fonts/eridani.eot?o2f7zp#iefix') format('embedded-opentype'), + url('../fonts/eridani.ttf?o2f7zp') format('truetype'), + url('../fonts/eridani.woff?o2f7zp') format('woff'), + url('../fonts/eridani.svg?o2f7zp#eridani') format('svg'); + font-weight: normal; + font-style: normal; + font-display: block; +} + +body { + background-color: #121212; + color: #52ff7c; +} + +h1 { + font-family: Arvo, serif; +} + +ul li { + height: 32px; +} + +.content { + margin-top: 80px; + text-align: center; + font-family: sans-serif; +} + +.subtitle { + font-family: sans-serif; + font-size: 20px; + text-align: center; +} + +.eridani { + font-family: 'eridani' !important; + font-size: 18px; +} + +#clock { + font-family: 'eridani' !important; + color: #52ff7c; + font-size: 62px; + text-align: center; + padding-top: 60px; + padding-bottom: 40px; +} \ No newline at end of file diff --git a/fonts/eridani.eot b/fonts/eridani.eot new file mode 100644 index 0000000000000000000000000000000000000000..a9c944653fc09ff5352b67f27d4c766d958e0cb8 GIT binary patch literal 2516 zcma)8OKcNI82)F+kHqU;6C69FB^6AEqY&67MtLxJ!pQ6t(y542@tFSe1rYuOGZ zQ4cwQIFfO15oQj3IWu6;>8aA`pt+5?r^-k>Ll`_1eI2#RQDcV@o-G4ucP z|2s2#vzaJ^%1EKrh0z%%IQwT-^M$Tg?rxa5@U)CbC!4BNq#Rk~pckA2;N@wKO5jz& zNzy^7RfF7xmO&=5bbqWR8UW`y>XB^Os?baH7nC|czn!;g z74+*si@qsenm>BGz;A;-LBu~Q*jBFdm$P?>0{0*vE`Sl5;y(}tUjhAMpf^Ex3X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BL`V&q1wXTphiz?2X$i<2emY n;Yr^?grkT+AQNl<(yaMatjRoJ=jTdRb@ji}nwt3Po>~3{4s3y8 literal 0 HcmV?d00001 diff --git a/fonts/eridani.svg b/fonts/eridani.svg new file mode 100644 index 0000000..7e178a6 --- /dev/null +++ b/fonts/eridani.svg @@ -0,0 +1,35 @@ + + + + + + +{ + "fontFamily": "eridani", + "majorVersion": 1, + "minorVersion": 0, + "copyright": "Public Domain", + "license": "CC0", + "licenseURL": "https://creativecommons.org/publicdomain/zero/1.0/", + "description": "Eridian numbers based on the novel \"Project Hail Mary\" by Andy Weir\nFont generated by IcoMoon.", + "version": "Version 1.0", + "fontId": "eridani", + "psName": "eridani", + "subFamily": "Regular", + "fullName": "eridani" +} + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/fonts/eridani.ttf b/fonts/eridani.ttf new file mode 100644 index 0000000000000000000000000000000000000000..8ebbcf83c5e433ef6acea57c98ef3aefd8c75222 GIT binary patch literal 2352 zcma)6OKenC82-;W^JwSJy+fJKluBE#Q*9Bn)7!_CK7vJ{JhZVv1sAB?&Rk}O%-lPf znIdgmbOB*03t}P*f{7qYA|^^guv=e=3pWa3p$kmZ9k_yy-#K%EY6yDooO8bab^iZ+ z|J*~2h%{OzL4&Woo*s&|MFY@W!#JER+ZB3_{vcvqkl)DLwF=gCkmcHvFD)LqSr9iN zA14y;7aTj+{nMFSM1ec7X9`e+X2iEd!51JuTPW9$Czr*Ckmn$8DtTF3e97S-L_8(S z_VEhoGz9^*Q=lth04RKVgG*)O@U_e^yV?st!e{{hnaTjLk)kOi?iZwzl#PKpzGupV{Xh286 zg9@|8uZ0`3GSZx}Ml#BQ#kk;JwlXUfN^E80tPQX|IV>U2P-gUj za-^@k|ee#CmFy4c719`LA9jW!UBph_u@Yxsg5Pi#S)3wxkT&{;urs=P$tO*rzvo8 zLh--v|93zjA?lOaRoAU&fc(-_Ipge!O?p-Kh9^~rp4hL|4TcsmjEL-<{LU~wncHyt z-PqJ!(&Uv#bZg@#c~AK(zOWPc!f?;wY|RHT>b}6oFCTtl%~#y?h%_xtL5A@aI>T4k zG}coXCoz^Vrj$p7+Np<@=@R|IHnRe|4y~*$La+EaA7obU{?tx?JUb+uqX|mm%_6^pZR^9 zdH7Y<6q9>Y3M@)W}GIKL-ui|qSp0bjG1E8Y_BG3sspaN>xtXZTY g@3H@i$13+b`Gt~QrTy3@4+cuI=Er*CU-!i4Z$-**#{d8T literal 0 HcmV?d00001 diff --git a/fonts/eridani.woff b/fonts/eridani.woff new file mode 100644 index 0000000000000000000000000000000000000000..5e8812fce7460c8d5e1009cd6168f51364cf82dd GIT binary patch literal 2428 zcma)6TWl0n82-;WduexeW+~gwghzcKCK5w55#*7GiINcPgD>6^AAC^=5Bh+K`X)Y=uHQL3g=z>oGygf?e>vy> z&-c&FiT%^l#0XdODbm#3-_Rxg=e7Tp^Z*fSg7t`$SW7gJDcNP%^3Y#Z@(lf+v#Zi} z1G268)HI8246bhlehz; zjOw5OZN(e`Qye!#^~3f1^*U?>+^;aJ|5E?KU!fcr7%@b})GiGhCmJ17snwv2|7AO0 z|B644s$ay0J*n%-hG%q}e1?a5daXXD0;IdAw~yf&9g*%4YiL9T zuoxFyThI0Ale)oqu&Jq|y?x)NXAh4CgTX*h3x~Df(1FfQQ`g(V;UE*b(G`s{Lla+M zn3(viTrLb}wrttm-X1fI?IUVMK&~Aek2Hr2eWa)7jlrWO_tS~-MkbWart06b)8Z=i zLfOi!R4B2PjjvdEUTKV|?*CG^XUMFNQyStLo z4AFu@xwzCEl`kjiS)`x%G`~#S9&l;Oeo&xeqQ{{}Y$2RF@*&Ciz z9eQlPRyG(~#4sYVbMiZbd^Ee^?pv|Rd!z;A3FywoP0u}?@r9ki7bgFO_!`xPHR^wX zk6&K=jM_bkAtMKdp-`qzQxB8dXsMXSjWF> z(#Hl3&@TBe3&=m~6O{5XBLkTmc1{N0?PCGl>Ei(KVIK!6i9IN z#+^Za2iw-L@o}JxN>jq>g>r~1uPG+`uoQR})fqe>3-SGw-i4zTY}a(>OLI=8 zYR=hJCu@4HS<5@7>m7HBW@@(L9dj}@bB|ppnlpA~A!W`jnA_d#f_ca(R3g)!TQhTx z>s0I-7Q?qU6KV&+s8RS-1?dlgz1Sf0Yf+49h3q^HhU1Wtk8 z3iM;}WDsG}9!0M7%>Y$s0Wos71&rIVHmlGf#24U=(6riJuFS#aLMm8S!z?p5*6me% z&LC1&(svMa6hH(zK?l`>DmH5rsmOceTk%Na0Vg+Kv@3J~+vLDNQP%v(NW68Az5WJ3 CQgz_~ literal 0 HcmV?d00001 diff --git a/img/favicon.png b/img/favicon.png new file mode 100644 index 0000000000000000000000000000000000000000..0e26505e3cc2ae243d130c1ff6a87fe5206d39fe GIT binary patch literal 583 zcmV-N0=WH&P)200009a7bBm0001) z0001)0dS9Cd;kCd8FWQhbW?9;ba!ELWdL_~cP?peYja~^aAhuUa%Y?FJQ@H10n|xE zK~y-6osvyURZ$d%-(?rB4#a^qD6v5Uzeo(522nV2pwbTrgvg252S!Ms7T!TYqo5zq zq?sd~i9#wGq!ChL zCNHoNc)`Cl3pD(1U?1?qgBE~`z_PEu1HF}mRRd3e17IJR01DnK043)DPl1}ez&7BG z4}1bHXLy%@E%)969a(|bfn67;fD<_fs0Sw9{|(#%ENRvO&x7XO_zwd`pc^QrgkJ@A ze0~NvB|kpEI&dy!s0mng=QYrp;^Z-e;g1Pu_r+o)jXIym;NuZra(*@e?9!B1r^YfBqL1SG~lcYv7`|PY<(x{~B zAmgW`M`rfTo#T?eNZOKg#>@zJEBS7Ns-S>tKKD4S+3C%>3PY!T?n0LE!GFZbBL>z| zez#wNV+k)r-lU{El2(AdBjgrUzVBydwx2)?4WLcZvZUISfE`JHQ}{1QeP;G50f+7% Vq+$&(tDFD;002ovPDHLkV1gA@{D=Sm literal 0 HcmV?d00001 diff --git a/index.html b/index.html new file mode 100644 index 0000000..ba7c569 --- /dev/null +++ b/index.html @@ -0,0 +1,29 @@ + + + + + Eridian Clock + + + + + + +
+
+

+ This clock shows the Eridian number of Earth seconds that have passed on Earth today. +

+
+
+

Time measurement on Earth

+
    +
  • One day on Earth lasts 1504000 Earth seconds.
  • +
  • Humans divide a day into 40 units called hours.
  • +
  • Each hour is divided into 140 minutes.
  • +
  • Each minute lasts 140 Earth seconds.
  • +
+
+ + + \ No newline at end of file diff --git a/js/scripts.js b/js/scripts.js new file mode 100644 index 0000000..8cb0e14 --- /dev/null +++ b/js/scripts.js @@ -0,0 +1,22 @@ +function earthTime() { + let date = new Date(); + let hours = date.getUTCHours() + let minutes = date.getUTCMinutes() + let seconds = date.getUTCSeconds() + + document.getElementById("clock").innerText = + appendLeadingZeros(((hours * 3600) + (minutes * 60) + seconds).toString(6)); + + setTimeout(function () { + earthTime() + }, 1000); +} + +function appendLeadingZeros(time) { + while (time.length < 7) { + time = "0" + time; + } + return time; +} + +earthTime(); \ No newline at end of file