Map integration

This commit is contained in:
MrSandMan 2022-07-31 22:37:34 +03:00
parent d2dec49dcc
commit 0dffb86577
3 changed files with 26 additions and 3 deletions

View File

@ -4034,3 +4034,22 @@ input:checked + .toggleSwitchSlider:before {
.rotating { .rotating {
animation: rotating 10s linear infinite; animation: rotating 10s linear infinite;
} }
/*******************************************************************************
* *
* Custom patches *
* *
******************************************************************************/
/* iframe patch for full size window. */
#iframecontainer {
width: 100%;
}
#dynmapiframe {
width: 100%;
height: 100%;
user-select: none;
}

View File

@ -809,6 +809,8 @@ function slide_(up){
//date.toLocaleDateString('en-US', {month: 'short', day: 'numeric', year: 'numeric', hour: 'numeric', minute: 'numeric'}) //date.toLocaleDateString('en-US', {month: 'short', day: 'numeric', year: 'numeric', hour: 'numeric', minute: 'numeric'})
//landingContainer.style.background = 'rgba(29, 29, 29, 0.55)' //landingContainer.style.background = 'rgba(29, 29, 29, 0.55)'
landingContainer.style.background = 'rgba(0, 0, 0, 0.50)' landingContainer.style.background = 'rgba(0, 0, 0, 0.50)'
//Frame bar dimming (map patch)
frameBar.style.background = 'rgba(0, 0, 0)'
setTimeout(() => { setTimeout(() => {
if(newsGlideCount === 1){ if(newsGlideCount === 1){
lCLCenter.style.transition = 'none' lCLCenter.style.transition = 'none'
@ -821,6 +823,8 @@ function slide_(up){
newsGlideCount-- newsGlideCount--
}, 2000) }, 2000)
landingContainer.style.background = null landingContainer.style.background = null
//Frame bar dimming revert (map patch)
frameBar.style.background = 'rgba(0, 0, 0, 0.50)'
lCLCenter.style.transition = null lCLCenter.style.transition = null
newsBtn.style.transition = null newsBtn.style.transition = null
newsContainer.style.top = '100%' newsContainer.style.top = '100%'

View File

@ -140,8 +140,8 @@
</div> </div>
</div> </div>
<div id="newsContainer"> <div id="newsContainer">
<div> <div id="iframecontainer">
<iframe id="dynmapIFrame" src="https://fr.wikipedia.org/wiki/Main_Page" frameborder="0"></iframe> <iframe id="dynmapiframe" src="https://minemap.gregbrzezinski.com" frameborder="0"></iframe>
</div> </div>
<!-- <div id="newsContent" article="-1" style="display: none;"> <!-- <div id="newsContent" article="-1" style="display: none;">
<div id="newsStatusContainer"> <div id="newsStatusContainer">