From ba837f70632519d58ae0f3f95bfad0dbb8051fc0 Mon Sep 17 00:00:00 2001 From: Rasmus Date: Sat, 1 Apr 2023 16:15:52 +0300 Subject: Loosung ja Baltikett --- rannak/endPage/index.html | 2 +- rannak/endPage/main.js | 14 +- rannak/mangud/direktor/baltikett/index.html | 121 ++++++++++++++++ .../direktor/baltikett/pildid/EVkuulutamine.jpg | Bin 0 -> 78339 bytes rannak/mangud/direktor/baltikett/pildid/avatar.jpg | Bin 0 -> 137594 bytes .../mangud/direktor/baltikett/pildid/baltikett.jpg | Bin 0 -> 90772 bytes .../mangud/direktor/baltikett/pildid/hirvepark.jpg | Bin 0 -> 186590 bytes .../direktor/baltikett/pildid/interrinne.jpg | Bin 0 -> 79800 bytes .../mangud/direktor/baltikett/pildid/laulupidu.jpg | Bin 0 -> 722236 bytes .../mangud/direktor/baltikett/pildid/teletorn.jpg | Bin 0 -> 69745 bytes rannak/mangud/direktor/baltikett/script.js | 47 +++++++ rannak/mangud/direktor/baltikett/styles.css | 98 +++++++++++++ .../mangud/direktor/loosung/fonts/alkatra/OFL.txt | 93 +++++++++++++ .../direktor/loosung/fonts/alkatra/README.txt | 66 +++++++++ .../direktor/loosung/fonts/alkatra/alkatara.ttf | Bin 0 -> 858400 bytes .../loosung/fonts/alkatra/static/Alkatra-Bold.ttf | Bin 0 -> 510560 bytes .../fonts/alkatra/static/Alkatra-Medium.ttf | Bin 0 -> 511268 bytes .../fonts/alkatra/static/Alkatra-Regular.ttf | Bin 0 -> 510480 bytes .../fonts/alkatra/static/Alkatra-SemiBold.ttf | Bin 0 -> 511320 bytes .../direktor/loosung/fonts/bebas/Bebas_Neue.zip | Bin 0 -> 29637 bytes rannak/mangud/direktor/loosung/fonts/bebas/OFL.txt | 93 +++++++++++++ .../mangud/direktor/loosung/fonts/bebas/bebas.ttf | Bin 0 -> 57676 bytes .../loosung/fonts/changa/ChangaOne-Italic.ttf | Bin 0 -> 24744 bytes .../mangud/direktor/loosung/fonts/changa/OFL.txt | 94 +++++++++++++ .../direktor/loosung/fonts/changa/changa.ttf | Bin 0 -> 21364 bytes .../mangud/direktor/loosung/fonts/handrawn/OFL.txt | 93 +++++++++++++ .../direktor/loosung/fonts/handrawn/handrawn.ttf | Bin 0 -> 73232 bytes rannak/mangud/direktor/loosung/index.html | 154 +++++++++++++++++++++ rannak/mangud/direktor/loosung/pildid/avatar.png | Bin 0 -> 690924 bytes rannak/mangud/direktor/loosung/script.js | 124 +++++++++++++++++ rannak/mangud/direktor/loosung/style.css | 142 +++++++++++++++++++ rannak/mangud/index.html | 4 +- .../mangud/kaitseliitlane/soomusmasinad/index.html | 4 +- 33 files changed, 1143 insertions(+), 6 deletions(-) create mode 100644 rannak/mangud/direktor/baltikett/index.html create mode 100644 rannak/mangud/direktor/baltikett/pildid/EVkuulutamine.jpg create mode 100644 rannak/mangud/direktor/baltikett/pildid/avatar.jpg create mode 100644 rannak/mangud/direktor/baltikett/pildid/baltikett.jpg create mode 100644 rannak/mangud/direktor/baltikett/pildid/hirvepark.jpg create mode 100644 rannak/mangud/direktor/baltikett/pildid/interrinne.jpg create mode 100644 rannak/mangud/direktor/baltikett/pildid/laulupidu.jpg create mode 100644 rannak/mangud/direktor/baltikett/pildid/teletorn.jpg create mode 100644 rannak/mangud/direktor/baltikett/script.js create mode 100644 rannak/mangud/direktor/baltikett/styles.css create mode 100644 rannak/mangud/direktor/loosung/fonts/alkatra/OFL.txt create mode 100644 rannak/mangud/direktor/loosung/fonts/alkatra/README.txt create mode 100644 rannak/mangud/direktor/loosung/fonts/alkatra/alkatara.ttf create mode 100644 rannak/mangud/direktor/loosung/fonts/alkatra/static/Alkatra-Bold.ttf create mode 100644 rannak/mangud/direktor/loosung/fonts/alkatra/static/Alkatra-Medium.ttf create mode 100644 rannak/mangud/direktor/loosung/fonts/alkatra/static/Alkatra-Regular.ttf create mode 100644 rannak/mangud/direktor/loosung/fonts/alkatra/static/Alkatra-SemiBold.ttf create mode 100644 rannak/mangud/direktor/loosung/fonts/bebas/Bebas_Neue.zip create mode 100644 rannak/mangud/direktor/loosung/fonts/bebas/OFL.txt create mode 100644 rannak/mangud/direktor/loosung/fonts/bebas/bebas.ttf create mode 100644 rannak/mangud/direktor/loosung/fonts/changa/ChangaOne-Italic.ttf create mode 100644 rannak/mangud/direktor/loosung/fonts/changa/OFL.txt create mode 100644 rannak/mangud/direktor/loosung/fonts/changa/changa.ttf create mode 100644 rannak/mangud/direktor/loosung/fonts/handrawn/OFL.txt create mode 100644 rannak/mangud/direktor/loosung/fonts/handrawn/handrawn.ttf create mode 100644 rannak/mangud/direktor/loosung/index.html create mode 100644 rannak/mangud/direktor/loosung/pildid/avatar.png create mode 100644 rannak/mangud/direktor/loosung/script.js create mode 100644 rannak/mangud/direktor/loosung/style.css diff --git a/rannak/endPage/index.html b/rannak/endPage/index.html index 24b42a7..a3bcfc7 100644 --- a/rannak/endPage/index.html +++ b/rannak/endPage/index.html @@ -4,7 +4,7 @@ - Tehtud + Tehtud diff --git a/rannak/endPage/main.js b/rannak/endPage/main.js index 2813fc0..7f21f65 100644 --- a/rannak/endPage/main.js +++ b/rannak/endPage/main.js @@ -7,7 +7,6 @@ if (localStorage.roll != undefined){ delete localStorage.roll; if (roll == 'Kaitseliitlase'){ - console.log(span1); document.querySelector('h3').innerHTML = 'Baltiketti andmed:'; spans[1].innerHTML = 'Asula: ' + localStorage.asula; spans[2].innerHTML = 'Kaugus: ' + localStorage.kaugus; @@ -15,4 +14,17 @@ if (localStorage.roll != undefined){ delete localStorage.asula; delete localStorage.kaugus; } + + else if (roll == 'Direktori'){ + document.querySelector('h3').innerHTML = 'Baltiketti andmed:'; + spans[3].innerHTML = 'Baltiketi pikkus: ' + localStorage.teekond; + spans[1].innerHTML = 'Asula: ' + localStorage.asula; + spans[2].innerHTML = 'Kaugus: ' + localStorage.kaugus; + + console.log(localStorage.teekond); + + delete localStorage.asula; + delete localStorage.kaugus; + delete localStorage.teekond; + } } diff --git a/rannak/mangud/direktor/baltikett/index.html b/rannak/mangud/direktor/baltikett/index.html new file mode 100644 index 0000000..f4e44cd --- /dev/null +++ b/rannak/mangud/direktor/baltikett/index.html @@ -0,0 +1,121 @@ + + + + + Baltikett + + + + + + + + +
+

Baltikett

+

+ Joonlauaga (vali parempoolsest rippmenüüst joonlaua ikoon + (vasakpoolse paneeli võid ruumi tegemiseks sulgeda)) + saab mitme klikiga mööda joont kaugust mõõta. Selleks, + et saada võimalikult täpne tulemus, zoomi kaardile lähemale + või kaugemale, vastavalt vajadusele.
Leia Baltiketi pikkus Eestis + ning sinu kodukoha kaugus ketist. +

+ +
+
+ + + + +
+ + +
+ + +
+ + + + + + + + +
+
+ + +
+ +
+ + +
+ +
+ + +
+
+ + + + + + +
+ + + +
+ + + + + + + + + + diff --git a/rannak/mangud/direktor/baltikett/pildid/EVkuulutamine.jpg b/rannak/mangud/direktor/baltikett/pildid/EVkuulutamine.jpg new file mode 100644 index 0000000..f462f69 Binary files /dev/null and b/rannak/mangud/direktor/baltikett/pildid/EVkuulutamine.jpg differ diff --git a/rannak/mangud/direktor/baltikett/pildid/avatar.jpg b/rannak/mangud/direktor/baltikett/pildid/avatar.jpg new file mode 100644 index 0000000..37ae271 Binary files /dev/null and b/rannak/mangud/direktor/baltikett/pildid/avatar.jpg differ diff --git a/rannak/mangud/direktor/baltikett/pildid/baltikett.jpg b/rannak/mangud/direktor/baltikett/pildid/baltikett.jpg new file mode 100644 index 0000000..f395c65 Binary files /dev/null and b/rannak/mangud/direktor/baltikett/pildid/baltikett.jpg differ diff --git a/rannak/mangud/direktor/baltikett/pildid/hirvepark.jpg b/rannak/mangud/direktor/baltikett/pildid/hirvepark.jpg new file mode 100644 index 0000000..b94f2b0 Binary files /dev/null and b/rannak/mangud/direktor/baltikett/pildid/hirvepark.jpg differ diff --git a/rannak/mangud/direktor/baltikett/pildid/interrinne.jpg b/rannak/mangud/direktor/baltikett/pildid/interrinne.jpg new file mode 100644 index 0000000..3d6d386 Binary files /dev/null and b/rannak/mangud/direktor/baltikett/pildid/interrinne.jpg differ diff --git a/rannak/mangud/direktor/baltikett/pildid/laulupidu.jpg b/rannak/mangud/direktor/baltikett/pildid/laulupidu.jpg new file mode 100644 index 0000000..6ad8ad9 Binary files /dev/null and b/rannak/mangud/direktor/baltikett/pildid/laulupidu.jpg differ diff --git a/rannak/mangud/direktor/baltikett/pildid/teletorn.jpg b/rannak/mangud/direktor/baltikett/pildid/teletorn.jpg new file mode 100644 index 0000000..c539324 Binary files /dev/null and b/rannak/mangud/direktor/baltikett/pildid/teletorn.jpg differ diff --git a/rannak/mangud/direktor/baltikett/script.js b/rannak/mangud/direktor/baltikett/script.js new file mode 100644 index 0000000..f5d1016 --- /dev/null +++ b/rannak/mangud/direktor/baltikett/script.js @@ -0,0 +1,47 @@ +document.addEventListener('DOMContentLoaded', () => { + let btn = document.querySelector('.modalButton'); + btn.click(); +}); + + + +const inputs = document.querySelectorAll('input'); +let asulaVal; +let kaugusVal; +let teekondVal; + +for (input of inputs){ + input.addEventListener('input', () => { + getInputs() + }); +} + + +function getInputs(){ + let teekond = document.querySelector('.teekondInput'); + let asula = document.querySelector('.asulaInput'); + let kaugus = document.querySelector('.kaugusInput'); + + asulaVal = asula.value; + kaugusVal = kaugus.value; + teekondVal = teekond.value; + + if (asulaVal != '' && kaugusVal != '' && teekondVal != '') + allGood(); +} + + + +/// All Done /// + + + +function allGood(){ + const btn = document.querySelector(".moveOn"); + btn.disabled = false; + localStorage.setItem("roll", "Direktori"); + localStorage.setItem("asula", asulaVal); + localStorage.setItem("kaugus", kaugusVal); + localStorage.setItem("teekond", teekondVal); + btn.onclick = () => location.href = "../../../endPage"; +} diff --git a/rannak/mangud/direktor/baltikett/styles.css b/rannak/mangud/direktor/baltikett/styles.css new file mode 100644 index 0000000..cc1f6ec --- /dev/null +++ b/rannak/mangud/direktor/baltikett/styles.css @@ -0,0 +1,98 @@ +* { + box-sizing: border-box; +} +h1 { + color: #154734; + font-weight: bold; +} +body{ + background-color: #4D5157; +} + +.moveOn{ + display: inline-block; + border: none; + padding: 6px 12px; + margin-botton: 0; + font-size: 1rem; + font-weight: normal; + text-align: center; + cursor: pointer; + border-radius: 4px; + background-color: #4BB543; + color: white; +} + +button:disabled{ + opacity: 0.5; + cursor: not-allowed; +} + + + + +/* Modal Stuff */ + +.avatar { + border-radius: 20px; + width: 100%; + max-width: 15rem; +} + +.modalHeaderWrapper{ + text-align: center; + margin: 0; + width: 100%; +} + + + + +.closeModalButton { + border-radius: 50px; +} + + +.modalButton{ + display: inline-block; + padding: 6px 12px; + margin-left: 30px; + background-color: rgba(0,136,169,1); + border: none; + border-radius: 50px; + cursor: pointer; + transition: all 0.3 ease 0; + font-size: 1rem; +} + + + +.modalButton:hover{ + background-color: rgba(0,136,169,0.8); +} + +span{ + font-size: .1rem; +} + + +/* Mainer */ +.inputWrapper{ + margin-top: 1rem; + display: flex; + items-align: center; + justify-content: center; +} + +.rightWrapper{ + margin-left: 2rem; +} + + +input{margin: .3rem;} + +.main{padding: 2.5%;} +iframe{ + border: solid .5rem black; + border-radius: 10px; +} diff --git a/rannak/mangud/direktor/loosung/fonts/alkatra/OFL.txt b/rannak/mangud/direktor/loosung/fonts/alkatra/OFL.txt new file mode 100644 index 0000000..f3e21ec --- /dev/null +++ b/rannak/mangud/direktor/loosung/fonts/alkatra/OFL.txt @@ -0,0 +1,93 @@ +Copyright 2022 The Alkatra Project Authors (https://github.com/suman51284/Alkatra) + +This Font Software is licensed under the SIL Open Font License, Version 1.1. +This license is copied below, and is also available with a FAQ at: +http://scripts.sil.org/OFL + + +----------------------------------------------------------- +SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007 +----------------------------------------------------------- + +PREAMBLE +The goals of the Open Font License (OFL) are to stimulate worldwide +development of collaborative font projects, to support the font creation +efforts of academic and linguistic communities, and to provide a free and +open framework in which fonts may be shared and improved in partnership +with others. + +The OFL allows the licensed fonts to be used, studied, modified and +redistributed freely as long as they are not sold by themselves. The +fonts, including any derivative works, can be bundled, embedded, +redistributed and/or sold with any software provided that any reserved +names are not used by derivative works. The fonts and derivatives, +however, cannot be released under any other type of license. The +requirement for fonts to remain under this license does not apply +to any document created using the fonts or their derivatives. + +DEFINITIONS +"Font Software" refers to the set of files released by the Copyright +Holder(s) under this license and clearly marked as such. This may +include source files, build scripts and documentation. + +"Reserved Font Name" refers to any names specified as such after the +copyright statement(s). + +"Original Version" refers to the collection of Font Software components as +distributed by the Copyright Holder(s). + +"Modified Version" refers to any derivative made by adding to, deleting, +or substituting -- in part or in whole -- any of the components of the +Original Version, by changing formats or by porting the Font Software to a +new environment. + +"Author" refers to any designer, engineer, programmer, technical +writer or other person who contributed to the Font Software. + +PERMISSION & CONDITIONS +Permission is hereby granted, free of charge, to any person obtaining +a copy of the Font Software, to use, study, copy, merge, embed, modify, +redistribute, and sell modified and unmodified copies of the Font +Software, subject to the following conditions: + +1) Neither the Font Software nor any of its individual components, +in Original or Modified Versions, may be sold by itself. + +2) Original or Modified Versions of the Font Software may be bundled, +redistributed and/or sold with any software, provided that each copy +contains the above copyright notice and this license. These can be +included either as stand-alone text files, human-readable headers or +in the appropriate machine-readable metadata fields within text or +binary files as long as those fields can be easily viewed by the user. + +3) No Modified Version of the Font Software may use the Reserved Font +Name(s) unless explicit written permission is granted by the corresponding +Copyright Holder. This restriction only applies to the primary font name as +presented to the users. + +4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font +Software shall not be used to promote, endorse or advertise any +Modified Version, except to acknowledge the contribution(s) of the +Copyright Holder(s) and the Author(s) or with their explicit written +permission. + +5) The Font Software, modified or unmodified, in part or in whole, +must be distributed entirely under this license, and must not be +distributed under any other license. The requirement for fonts to +remain under this license does not apply to any document created +using the Font Software. + +TERMINATION +This license becomes null and void if any of the above conditions are +not met. + +DISCLAIMER +THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT +OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE +COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL +DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM +OTHER DEALINGS IN THE FONT SOFTWARE. diff --git a/rannak/mangud/direktor/loosung/fonts/alkatra/README.txt b/rannak/mangud/direktor/loosung/fonts/alkatra/README.txt new file mode 100644 index 0000000..f612e43 --- /dev/null +++ b/rannak/mangud/direktor/loosung/fonts/alkatra/README.txt @@ -0,0 +1,66 @@ +Alkatra Variable Font +===================== + +This download contains Alkatra as both a variable font and static fonts. + +Alkatra is a variable font with this axis: + wght + +This means all the styles are contained in a single file: + Alkatra-VariableFont_wght.ttf + +If your app fully supports variable fonts, you can now pick intermediate styles +that aren’t available as static fonts. Not all apps support variable fonts, and +in those cases you can use the static font files for Alkatra: + static/Alkatra-Regular.ttf + static/Alkatra-Medium.ttf + static/Alkatra-SemiBold.ttf + static/Alkatra-Bold.ttf + +Get started +----------- + +1. Install the font files you want to use + +2. Use your app's font picker to view the font family and all the +available styles + +Learn more about variable fonts +------------------------------- + + https://developers.google.com/web/fundamentals/design-and-ux/typography/variable-fonts + https://variablefonts.typenetwork.com + https://medium.com/variable-fonts + +In desktop apps + + https://theblog.adobe.com/can-variable-fonts-illustrator-cc + https://helpx.adobe.com/nz/photoshop/using/fonts.html#variable_fonts + +Online + + https://developers.google.com/fonts/docs/getting_started + https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Fonts/Variable_Fonts_Guide + https://developer.microsoft.com/en-us/microsoft-edge/testdrive/demos/variable-fonts + +Installing fonts + + MacOS: https://support.apple.com/en-us/HT201749 + Linux: https://www.google.com/search?q=how+to+install+a+font+on+gnu%2Blinux + Windows: https://support.microsoft.com/en-us/help/314960/how-to-install-or-remove-a-font-in-windows + +Android Apps + + https://developers.google.com/fonts/docs/android + https://developer.android.com/guide/topics/ui/look-and-feel/downloadable-fonts + +License +------- +Please read the full license text (OFL.txt) to understand the permissions, +restrictions and requirements for usage, redistribution, and modification. + +You can use them in your products & projects – print or digital, +commercial or otherwise. + +This isn't legal advice, please consider consulting a lawyer and see the full +license for all details. diff --git a/rannak/mangud/direktor/loosung/fonts/alkatra/alkatara.ttf b/rannak/mangud/direktor/loosung/fonts/alkatra/alkatara.ttf new file mode 100644 index 0000000..f39dae7 Binary files /dev/null and b/rannak/mangud/direktor/loosung/fonts/alkatra/alkatara.ttf differ diff --git a/rannak/mangud/direktor/loosung/fonts/alkatra/static/Alkatra-Bold.ttf b/rannak/mangud/direktor/loosung/fonts/alkatra/static/Alkatra-Bold.ttf new file mode 100644 index 0000000..3b347f1 Binary files /dev/null and b/rannak/mangud/direktor/loosung/fonts/alkatra/static/Alkatra-Bold.ttf differ diff --git a/rannak/mangud/direktor/loosung/fonts/alkatra/static/Alkatra-Medium.ttf b/rannak/mangud/direktor/loosung/fonts/alkatra/static/Alkatra-Medium.ttf new file mode 100644 index 0000000..f8cc0e2 Binary files /dev/null and b/rannak/mangud/direktor/loosung/fonts/alkatra/static/Alkatra-Medium.ttf differ diff --git a/rannak/mangud/direktor/loosung/fonts/alkatra/static/Alkatra-Regular.ttf b/rannak/mangud/direktor/loosung/fonts/alkatra/static/Alkatra-Regular.ttf new file mode 100644 index 0000000..e6f0bb5 Binary files /dev/null and b/rannak/mangud/direktor/loosung/fonts/alkatra/static/Alkatra-Regular.ttf differ diff --git a/rannak/mangud/direktor/loosung/fonts/alkatra/static/Alkatra-SemiBold.ttf b/rannak/mangud/direktor/loosung/fonts/alkatra/static/Alkatra-SemiBold.ttf new file mode 100644 index 0000000..a74197d Binary files /dev/null and b/rannak/mangud/direktor/loosung/fonts/alkatra/static/Alkatra-SemiBold.ttf differ diff --git a/rannak/mangud/direktor/loosung/fonts/bebas/Bebas_Neue.zip b/rannak/mangud/direktor/loosung/fonts/bebas/Bebas_Neue.zip new file mode 100644 index 0000000..0a4553d Binary files /dev/null and b/rannak/mangud/direktor/loosung/fonts/bebas/Bebas_Neue.zip differ diff --git a/rannak/mangud/direktor/loosung/fonts/bebas/OFL.txt b/rannak/mangud/direktor/loosung/fonts/bebas/OFL.txt new file mode 100644 index 0000000..9d66059 --- /dev/null +++ b/rannak/mangud/direktor/loosung/fonts/bebas/OFL.txt @@ -0,0 +1,93 @@ +Copyright © 2010 by Dharma Type. + +This Font Software is licensed under the SIL Open Font License, Version 1.1. +This license is copied below, and is also available with a FAQ at: +http://scripts.sil.org/OFL + + +----------------------------------------------------------- +SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007 +----------------------------------------------------------- + +PREAMBLE +The goals of the Open Font License (OFL) are to stimulate worldwide +development of collaborative font projects, to support the font creation +efforts of academic and linguistic communities, and to provide a free and +open framework in which fonts may be shared and improved in partnership +with others. + +The OFL allows the licensed fonts to be used, studied, modified and +redistributed freely as long as they are not sold by themselves. The +fonts, including any derivative works, can be bundled, embedded, +redistributed and/or sold with any software provided that any reserved +names are not used by derivative works. The fonts and derivatives, +however, cannot be released under any other type of license. The +requirement for fonts to remain under this license does not apply +to any document created using the fonts or their derivatives. + +DEFINITIONS +"Font Software" refers to the set of files released by the Copyright +Holder(s) under this license and clearly marked as such. This may +include source files, build scripts and documentation. + +"Reserved Font Name" refers to any names specified as such after the +copyright statement(s). + +"Original Version" refers to the collection of Font Software components as +distributed by the Copyright Holder(s). + +"Modified Version" refers to any derivative made by adding to, deleting, +or substituting -- in part or in whole -- any of the components of the +Original Version, by changing formats or by porting the Font Software to a +new environment. + +"Author" refers to any designer, engineer, programmer, technical +writer or other person who contributed to the Font Software. + +PERMISSION & CONDITIONS +Permission is hereby granted, free of charge, to any person obtaining +a copy of the Font Software, to use, study, copy, merge, embed, modify, +redistribute, and sell modified and unmodified copies of the Font +Software, subject to the following conditions: + +1) Neither the Font Software nor any of its individual components, +in Original or Modified Versions, may be sold by itself. + +2) Original or Modified Versions of the Font Software may be bundled, +redistributed and/or sold with any software, provided that each copy +contains the above copyright notice and this license. These can be +included either as stand-alone text files, human-readable headers or +in the appropriate machine-readable metadata fields within text or +binary files as long as those fields can be easily viewed by the user. + +3) No Modified Version of the Font Software may use the Reserved Font +Name(s) unless explicit written permission is granted by the corresponding +Copyright Holder. This restriction only applies to the primary font name as +presented to the users. + +4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font +Software shall not be used to promote, endorse or advertise any +Modified Version, except to acknowledge the contribution(s) of the +Copyright Holder(s) and the Author(s) or with their explicit written +permission. + +5) The Font Software, modified or unmodified, in part or in whole, +must be distributed entirely under this license, and must not be +distributed under any other license. The requirement for fonts to +remain under this license does not apply to any document created +using the Font Software. + +TERMINATION +This license becomes null and void if any of the above conditions are +not met. + +DISCLAIMER +THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT +OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE +COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL +DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM +OTHER DEALINGS IN THE FONT SOFTWARE. diff --git a/rannak/mangud/direktor/loosung/fonts/bebas/bebas.ttf b/rannak/mangud/direktor/loosung/fonts/bebas/bebas.ttf new file mode 100644 index 0000000..d2190b5 Binary files /dev/null and b/rannak/mangud/direktor/loosung/fonts/bebas/bebas.ttf differ diff --git a/rannak/mangud/direktor/loosung/fonts/changa/ChangaOne-Italic.ttf b/rannak/mangud/direktor/loosung/fonts/changa/ChangaOne-Italic.ttf new file mode 100644 index 0000000..e0652fc Binary files /dev/null and b/rannak/mangud/direktor/loosung/fonts/changa/ChangaOne-Italic.ttf differ diff --git a/rannak/mangud/direktor/loosung/fonts/changa/OFL.txt b/rannak/mangud/direktor/loosung/fonts/changa/OFL.txt new file mode 100644 index 0000000..2ea25fa --- /dev/null +++ b/rannak/mangud/direktor/loosung/fonts/changa/OFL.txt @@ -0,0 +1,94 @@ +Copyright (c) 2011, Eduardo Tunni (http://www.tipo.net.ar), +with Reserved Font Name "Changa" + +This Font Software is licensed under the SIL Open Font License, Version 1.1. +This license is copied below, and is also available with a FAQ at: +http://scripts.sil.org/OFL + + +----------------------------------------------------------- +SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007 +----------------------------------------------------------- + +PREAMBLE +The goals of the Open Font License (OFL) are to stimulate worldwide +development of collaborative font projects, to support the font creation +efforts of academic and linguistic communities, and to provide a free and +open framework in which fonts may be shared and improved in partnership +with others. + +The OFL allows the licensed fonts to be used, studied, modified and +redistributed freely as long as they are not sold by themselves. The +fonts, including any derivative works, can be bundled, embedded, +redistributed and/or sold with any software provided that any reserved +names are not used by derivative works. The fonts and derivatives, +however, cannot be released under any other type of license. The +requirement for fonts to remain under this license does not apply +to any document created using the fonts or their derivatives. + +DEFINITIONS +"Font Software" refers to the set of files released by the Copyright +Holder(s) under this license and clearly marked as such. This may +include source files, build scripts and documentation. + +"Reserved Font Name" refers to any names specified as such after the +copyright statement(s). + +"Original Version" refers to the collection of Font Software components as +distributed by the Copyright Holder(s). + +"Modified Version" refers to any derivative made by adding to, deleting, +or substituting -- in part or in whole -- any of the components of the +Original Version, by changing formats or by porting the Font Software to a +new environment. + +"Author" refers to any designer, engineer, programmer, technical +writer or other person who contributed to the Font Software. + +PERMISSION & CONDITIONS +Permission is hereby granted, free of charge, to any person obtaining +a copy of the Font Software, to use, study, copy, merge, embed, modify, +redistribute, and sell modified and unmodified copies of the Font +Software, subject to the following conditions: + +1) Neither the Font Software nor any of its individual components, +in Original or Modified Versions, may be sold by itself. + +2) Original or Modified Versions of the Font Software may be bundled, +redistributed and/or sold with any software, provided that each copy +contains the above copyright notice and this license. These can be +included either as stand-alone text files, human-readable headers or +in the appropriate machine-readable metadata fields within text or +binary files as long as those fields can be easily viewed by the user. + +3) No Modified Version of the Font Software may use the Reserved Font +Name(s) unless explicit written permission is granted by the corresponding +Copyright Holder. This restriction only applies to the primary font name as +presented to the users. + +4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font +Software shall not be used to promote, endorse or advertise any +Modified Version, except to acknowledge the contribution(s) of the +Copyright Holder(s) and the Author(s) or with their explicit written +permission. + +5) The Font Software, modified or unmodified, in part or in whole, +must be distributed entirely under this license, and must not be +distributed under any other license. The requirement for fonts to +remain under this license does not apply to any document created +using the Font Software. + +TERMINATION +This license becomes null and void if any of the above conditions are +not met. + +DISCLAIMER +THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT +OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE +COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL +DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM +OTHER DEALINGS IN THE FONT SOFTWARE. diff --git a/rannak/mangud/direktor/loosung/fonts/changa/changa.ttf b/rannak/mangud/direktor/loosung/fonts/changa/changa.ttf new file mode 100644 index 0000000..3d238fc Binary files /dev/null and b/rannak/mangud/direktor/loosung/fonts/changa/changa.ttf differ diff --git a/rannak/mangud/direktor/loosung/fonts/handrawn/OFL.txt b/rannak/mangud/direktor/loosung/fonts/handrawn/OFL.txt new file mode 100644 index 0000000..33ece60 --- /dev/null +++ b/rannak/mangud/direktor/loosung/fonts/handrawn/OFL.txt @@ -0,0 +1,93 @@ +Copyright 2022 The Delicious Handrawn Project Authors (https://github.com/alphArtype/Delicious-Handrawn) + +This Font Software is licensed under the SIL Open Font License, Version 1.1. +This license is copied below, and is also available with a FAQ at: +http://scripts.sil.org/OFL + + +----------------------------------------------------------- +SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007 +----------------------------------------------------------- + +PREAMBLE +The goals of the Open Font License (OFL) are to stimulate worldwide +development of collaborative font projects, to support the font creation +efforts of academic and linguistic communities, and to provide a free and +open framework in which fonts may be shared and improved in partnership +with others. + +The OFL allows the licensed fonts to be used, studied, modified and +redistributed freely as long as they are not sold by themselves. The +fonts, including any derivative works, can be bundled, embedded, +redistributed and/or sold with any software provided that any reserved +names are not used by derivative works. The fonts and derivatives, +however, cannot be released under any other type of license. The +requirement for fonts to remain under this license does not apply +to any document created using the fonts or their derivatives. + +DEFINITIONS +"Font Software" refers to the set of files released by the Copyright +Holder(s) under this license and clearly marked as such. This may +include source files, build scripts and documentation. + +"Reserved Font Name" refers to any names specified as such after the +copyright statement(s). + +"Original Version" refers to the collection of Font Software components as +distributed by the Copyright Holder(s). + +"Modified Version" refers to any derivative made by adding to, deleting, +or substituting -- in part or in whole -- any of the components of the +Original Version, by changing formats or by porting the Font Software to a +new environment. + +"Author" refers to any designer, engineer, programmer, technical +writer or other person who contributed to the Font Software. + +PERMISSION & CONDITIONS +Permission is hereby granted, free of charge, to any person obtaining +a copy of the Font Software, to use, study, copy, merge, embed, modify, +redistribute, and sell modified and unmodified copies of the Font +Software, subject to the following conditions: + +1) Neither the Font Software nor any of its individual components, +in Original or Modified Versions, may be sold by itself. + +2) Original or Modified Versions of the Font Software may be bundled, +redistributed and/or sold with any software, provided that each copy +contains the above copyright notice and this license. These can be +included either as stand-alone text files, human-readable headers or +in the appropriate machine-readable metadata fields within text or +binary files as long as those fields can be easily viewed by the user. + +3) No Modified Version of the Font Software may use the Reserved Font +Name(s) unless explicit written permission is granted by the corresponding +Copyright Holder. This restriction only applies to the primary font name as +presented to the users. + +4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font +Software shall not be used to promote, endorse or advertise any +Modified Version, except to acknowledge the contribution(s) of the +Copyright Holder(s) and the Author(s) or with their explicit written +permission. + +5) The Font Software, modified or unmodified, in part or in whole, +must be distributed entirely under this license, and must not be +distributed under any other license. The requirement for fonts to +remain under this license does not apply to any document created +using the Font Software. + +TERMINATION +This license becomes null and void if any of the above conditions are +not met. + +DISCLAIMER +THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT +OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE +COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL +DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM +OTHER DEALINGS IN THE FONT SOFTWARE. diff --git a/rannak/mangud/direktor/loosung/fonts/handrawn/handrawn.ttf b/rannak/mangud/direktor/loosung/fonts/handrawn/handrawn.ttf new file mode 100644 index 0000000..ca25b7a Binary files /dev/null and b/rannak/mangud/direktor/loosung/fonts/handrawn/handrawn.ttf differ diff --git a/rannak/mangud/direktor/loosung/index.html b/rannak/mangud/direktor/loosung/index.html new file mode 100644 index 0000000..b3dc5d5 --- /dev/null +++ b/rannak/mangud/direktor/loosung/index.html @@ -0,0 +1,154 @@ + + + + + + Loosung + + + + + + + + + +
+

Loosung

+ +

+ Loe ja uuri alltoodud sündmuste kohta ning vali neist siis üks +
+ ja koosta selle kohta loosung. +

+ +
+ +
+ + + + +
+ +
+
+ + + + + + + + + + + + +
+ +
+ + + + + + + + + + + + +
+ +
+

Muuda loosung enda omaks!

+
+ + + +
+

Loe sündmustest Lähemalt ning vali siis üks:

+ +
+ + +
+ + + + + + + + + + diff --git a/rannak/mangud/direktor/loosung/pildid/avatar.png b/rannak/mangud/direktor/loosung/pildid/avatar.png new file mode 100644 index 0000000..94d7a31 Binary files /dev/null and b/rannak/mangud/direktor/loosung/pildid/avatar.png differ diff --git a/rannak/mangud/direktor/loosung/script.js b/rannak/mangud/direktor/loosung/script.js new file mode 100644 index 0000000..191d743 --- /dev/null +++ b/rannak/mangud/direktor/loosung/script.js @@ -0,0 +1,124 @@ +document.addEventListener('DOMContentLoaded', () => { + let btn = document.querySelector('.modalButton'); + btn.click(); +}); + + +// To Know when to move on +changedArr = new Array(); + + + + +// Loosung Font +let fontPick = document.querySelector("#fontPick"); +fontPick.addEventListener("change", () => { + + let loosung = document.querySelector("#loosung"); + let val = fontPick.value; + loosung.style.fontFamily = val; + + if (!changedArr.includes("font")) + changedArr.push("font"); + + CheckIfAllGood(); + +}); + + + +// Loosung Size +let fontSize = document.querySelector("#fontSize"); +fontSize.addEventListener("change", () => { + + + let loosung = document.querySelector("#loosung"); + let val = fontSize.value; + let newSize = parseInt(val)/10; + + + if (val > 50) + loosung.style.fontSize="5rem"; + + else if (val < 10) + loosung.style.fontSize="1rem"; + + else + loosung.style.fontSize = newSize+"rem"; + + + if (!changedArr.includes("size")) + changedArr.push("size"); + + CheckIfAllGood(); + +}); + + + + +// Loosung Color +let fontColor = document.querySelector("#fontColor"); +fontColor.addEventListener("change", () => { + + let loosung = document.querySelector("#loosung"); + let val = fontColor.value; + loosung.style.color = val; + + + if (!changedArr.includes("color")) + changedArr.push("color"); + + CheckIfAllGood(); + +}); + + + + +// Reset BTN +let resetBtn = document.querySelector("#resetBtn"); +resetBtn.addEventListener("click", () => { + + let loosung = document.querySelector("#loosung"); + loosung.style.color= "#fff"; + loosung.style.fontSize= "2rem"; + loosung.style.fontFamily= "inherit"; + + fontPick.value = "tavaline"; + fontColor.value = "#ffffff"; + fontSize.value = 20; + + loosung.innerHTML = "Muuda Loosung enda omaks!"; + changedArr = new Array(); +}); + + +document.querySelector("#loosung").addEventListener("input", () => {CheckIfAllGood()}) + + + + +// Funcs // + +function CheckIfAllGood(){ + //let radioBtn = document.querySelector("input[name='sundmuseValik']:checked"); + let loosung = document.querySelector("#loosung"); + + + if (document.querySelector("input[name='sundmuseValik']:checked") != null && + changedArr.length >= 3 && loosung.innerHTML != "Muuda loosung enda omaks!"){ + moveOnEnable(); + } + + return false +} + + +// If Done +function moveOnEnable(){ + const btn = document.querySelector(".moveOn"); + btn.disabled = false; + btn.onclick = () => location.href = ""; +} + diff --git a/rannak/mangud/direktor/loosung/style.css b/rannak/mangud/direktor/loosung/style.css new file mode 100644 index 0000000..c605ce8 --- /dev/null +++ b/rannak/mangud/direktor/loosung/style.css @@ -0,0 +1,142 @@ + @font-face { + font-family: "alkatara"; + src: url(fonts/alkatra/alkatara.ttf); +} + + @font-face { + font-family: "bebas"; + src: url(fonts/bebas/bebas.ttf); +} + + @font-face { + font-family: "changa"; + src: url(fonts/changa/changa.ttf); +} + + @font-face { + font-family: "handrawn"; + src: url(fonts/handrawn/handrawn.ttf); +} + +/*--------------------------------------*/ + +* { + box-sizing: border-box; +} + +body{ + background-color: #43464b; + color: white; +} + +h1 { + color: #ED8B00; + font-weight: bold; +} + +.moveOn{ + display: inline-block; + border: none; + padding: 6px 12px; + margin-botton: 0; + font-size: 1rem; + font-weight: normal; + text-align: center; + cursor: pointer; + border-radius: 4px; + background-color: #4BB543; + color: white; +} + +button:disabled{ + opacity: 0.5; + cursor: not-allowed; +} + + + +/* Modal Stuff */ + +.avatar { + border-radius: 20px; + width: 100%; + max-width: 15rem; +} + +.modalHeaderWrapper{ + text-align: center; + margin: 0; + width: 100%; +} + +.modalButton{ + display: inline-block; + padding: 6px 12px; + margin-left: 30px; + background-color: rgba(0,136,169,1); + border: none; + border-radius: 50px; + cursor: pointer; + transition: all 0.3 ease 0; + font-size: 1rem; +} + +.modalButton:hover{ + background-color: rgba(0,136,169,0.8); +} + + +/* Mainers */ + +.main{ + display: flex; + flex-direction: column; + justify-content: center; + align-items: center; + margin: 5% 15%; +} + +.loosungWrapper { + overflow: hidden; + overflow-wrap: break-word; +} + +#loosung{ + padding: 6rem 1rem; + font-size: 2rem; + border-top: 3px solid #fff; + border-bottom: 3px solid #fff; +} + + + +.info .innerWrapper{ + display: flex; + flex-direction: column; + justify-content: start; + align-items: start; +} + + +.info h4{ + margin-top: 2rem; + color: #ED8B00; +} + +.info a { + text-decoration: underline; + color: white; +} + + +#resetBtn{ + border: none; + border-radius: 4px; + font-size:1.3rem; + color:white; + padding: 4px; + margin: .7rem; + font-size: 0.9rem; + background-color: red; + margin-left: 3rem; +} diff --git a/rannak/mangud/index.html b/rannak/mangud/index.html index 526809b..908b763 100644 --- a/rannak/mangud/index.html +++ b/rannak/mangud/index.html @@ -64,8 +64,8 @@

Direktor

  1. Kõne
  2. -
  3. -
  4. +
  5. Baltikett
  6. +
  7. Loosung
diff --git a/rannak/mangud/kaitseliitlane/soomusmasinad/index.html b/rannak/mangud/kaitseliitlane/soomusmasinad/index.html index c94ad66..3eae230 100644 --- a/rannak/mangud/kaitseliitlane/soomusmasinad/index.html +++ b/rannak/mangud/kaitseliitlane/soomusmasinad/index.html @@ -14,11 +14,11 @@

Soomusmasinad

- Joonlauaga (vali parempoolsest menüüst joonlaua ikoon + Joonlauaga (vali parempoolsest rippmenüüst joonlaua ikoon (vasakpoolse paneeli võid ruumi tegemiseks sulgeda)) saab mitme klikiga mööda joont kaugust mõõta. Selleks, et saada võimalikult täpne tulemus, zoomi kaardile lähemale - ning liigu hiirega klõpsates mööda valitud teekonda baltiketini. + ning liigu hiirega klõpsates mööda valitud teekonda soomusmasinate teekonnani.

-- cgit v1.2.3