mirror of
https://github.com/dscalzi/HeliosLauncher.git
synced 2024-10-31 19:36:39 -07:00
ec9e95c130
Separate views are stored in an ejs file. When the app starts, each file will be loaded, with the DOM elements hidden. Based on the state of the application, a specific view will be fadded in. Switching between views will use this principle. Moved contents of index.ejs to landing.ejs to make it compatible with the new format. As a result, index.ejs is deprecated and will be removed once it is no longer needed for reference.
34 lines
1.6 KiB
Plaintext
34 lines
1.6 KiB
Plaintext
<div id="welcomeContainer" style="display: none;">
|
|
<div class="cloudDiv">
|
|
<div class="cloudTop"></div>
|
|
<div class="cloudBottom"></div>
|
|
</div>
|
|
<div id="welcomeContent">
|
|
<img id="welcomeImageSeal" src="assets/images/WesterosSealCircle.png"/>
|
|
<span id="welcomeHeader">WELCOME TO WESTEROSCRAFT</span>
|
|
<span id="welcomeDescription">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</span>
|
|
<button id="welcomeButton">
|
|
<div id="welcomeButtonContent">
|
|
CONTINUE
|
|
<svg id="welcomeSVG" viewBox="0 0 24.87 13.97">
|
|
<defs>
|
|
<style>.arrowLine{fill:none;stroke:#FFF;stroke-width:2px;transition: 0.25s ease;}</style>
|
|
</defs>
|
|
<polyline class="arrowLine" points="0.71 13.26 12.56 1.41 24.16 13.02"/>
|
|
</svg>
|
|
</div>
|
|
</button>
|
|
</div>
|
|
<script type="application/javascript">
|
|
|
|
// DOM cache.
|
|
const welcomeButton = document.getElementById('welcomeButton')
|
|
|
|
welcomeButton.addEventListener('click', e => {
|
|
$('#welcomeContainer').fadeOut(250, () => {
|
|
$('#loginContainer').fadeIn(250)
|
|
})
|
|
})
|
|
|
|
</script>
|
|
</div> |