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);
}
});
reloadWorldMap({
targetJson: "{0}/j_map_recent.php".format(runningServer.name),
reqType: 'get',
dynamicMapTheme: true,
callback: function(data, rawObject) {
$('#running_map .card-body').html(rawObject.history);
window.fitIframe = function () {
var iframe = document.querySelector('#running_map');
iframe.style.height = iframe.contentWindow.document.body.scrollHeight + 'px';
}
});
});