gateway: 입구의 지도를 iframe으로 변경

This commit is contained in:
2021-08-20 04:58:45 +09:00
parent 56ca588c1e
commit 66c496fb10
+4 -8
View File
@@ -105,13 +105,9 @@ $(document).ready(function() {
}); });
$map.find('.map_body').data('scale', scale); $map.find('.map_body').data('scale', scale);
} }
});
reloadWorldMap({ window.fitIframe = function () {
targetJson: "{0}/j_map_recent.php".format(runningServer.name), var iframe = document.querySelector('#running_map');
reqType: 'get', iframe.style.height = iframe.contentWindow.document.body.scrollHeight + 'px';
dynamicMapTheme: true,
callback: function(data, rawObject) {
$('#running_map .card-body').html(rawObject.history);
} }
});
});