Refactored MCS page.
This commit is contained in:
		@@ -63,7 +63,7 @@
 | 
			
		||||
        src="https://ent.sys.reslate.xyz/rsemcs/dynmap/"
 | 
			
		||||
        class="map"
 | 
			
		||||
        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>
 | 
			
		||||
      </iframe>
 | 
			
		||||
@@ -111,7 +111,7 @@ export default {
 | 
			
		||||
    this.lastUpdate = info.last_updated;
 | 
			
		||||
  },
 | 
			
		||||
  methods: {
 | 
			
		||||
    iframeLoaded() {
 | 
			
		||||
    dynmapLoaded() {
 | 
			
		||||
      let iframe = this.$refs.dynmap;
 | 
			
		||||
      let iframeDocument = iframe.contentDocument || iframe.contentWindow.document;
 | 
			
		||||
      iframeDocument.body.style.backgroundColor = "transparent";
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user