Refactored MCS page.
This commit is contained in:
parent
7ad58ec77f
commit
82f593a582
@ -63,7 +63,7 @@
|
|||||||
src="https://ent.sys.reslate.xyz/rsemcs/dynmap/"
|
src="https://ent.sys.reslate.xyz/rsemcs/dynmap/"
|
||||||
class="map"
|
class="map"
|
||||||
allowtransparency="true"
|
allowtransparency="true"
|
||||||
@load="iframeLoaded"
|
@load="dynmapLoaded"
|
||||||
>
|
>
|
||||||
<p>Your browser does not support iframes. Visit <a href="https://ent.sys.reslate.xyz/rsemcs/dynmap/">the full dynmap page here</a></p>
|
<p>Your browser does not support iframes. Visit <a href="https://ent.sys.reslate.xyz/rsemcs/dynmap/">the full dynmap page here</a></p>
|
||||||
</iframe>
|
</iframe>
|
||||||
@ -111,7 +111,7 @@ export default {
|
|||||||
this.lastUpdate = info.last_updated;
|
this.lastUpdate = info.last_updated;
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
iframeLoaded() {
|
dynmapLoaded() {
|
||||||
let iframe = this.$refs.dynmap;
|
let iframe = this.$refs.dynmap;
|
||||||
let iframeDocument = iframe.contentDocument || iframe.contentWindow.document;
|
let iframeDocument = iframe.contentDocument || iframe.contentWindow.document;
|
||||||
iframeDocument.body.style.backgroundColor = "transparent";
|
iframeDocument.body.style.backgroundColor = "transparent";
|
||||||
|
Loading…
Reference in New Issue
Block a user