From 39c003d6c87760652b945bfceda6ced2c92fcb10 Mon Sep 17 00:00:00 2001 From: Harrison Deng Date: Tue, 18 Jan 2022 14:13:49 -0600 Subject: [PATCH] Map now has some form of transparency with integration. --- src/pages/MinecraftServer.vue | 19 ++++++++++++------- src/router/routes.js | 10 +++++----- 2 files changed, 17 insertions(+), 12 deletions(-) diff --git a/src/pages/MinecraftServer.vue b/src/pages/MinecraftServer.vue index 20be37d..e35a870 100644 --- a/src/pages/MinecraftServer.vue +++ b/src/pages/MinecraftServer.vue @@ -66,7 +66,7 @@ ref="dynmap" src="https:/ent.sys.reslate.xyz/resmcs/dynmap/" class="map" - allowTransparency="true" + allowtransparency="true" @load="iframeLoaded" >

Your browser does not support iframes. Visit the full dynmap page here

@@ -115,6 +115,11 @@ export default { this.lastUpdate = info.last_updated; }, methods: { + iframeLoaded() { + let iframe = this.$refs.dynmap; + let iframeDocument = iframe.contentDocument || iframe.contentWindow.document; + iframeDocument.body.style.backgroundColor = "transparent"; + } }, }; @@ -157,7 +162,6 @@ export default { } background-repeat: repeat; background-size: auto; - font-size: 1.25rem; } } @@ -180,15 +184,16 @@ export default { } .map { - width: 95%; + width: 90%; flex-grow: 1; - margin-bottom: 2.5%; - background-color: transparent; + background-image: url("@/assets/images/minecraft/textures/map_center.png"); + background-repeat: repeat; + background-clip: padding-box; + margin-bottom: 5%; - border-width: 20px; border-image-slice:27 27 27 27; - border-image-width:20px 20px 20px 20px; + border-image-width:27px 27px 27px 27px; border-image-outset:0px 0px 0px 0px; border-image-repeat:repeat repeat; border-image-source:url("@/assets/images/minecraft/textures/map.png"); diff --git a/src/router/routes.js b/src/router/routes.js index 7713e2a..8f54437 100644 --- a/src/router/routes.js +++ b/src/router/routes.js @@ -8,14 +8,14 @@ export const routes = [ name: "Home", component: OverviewInfo, }, + { + path: "/steam", + name: "Steam System", + component: SteamServer, + }, { path: "/mcs", name: "Minecraft Server", component: MinecraftServer, }, - { - path: "/steam", - name: "Steam System", - component: SteamServer, - } ]; \ No newline at end of file