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

This commit is contained in:
Hide_D committed 2021-08-20 04:58:45 +09:00
1 parent b0e7221950
commit 6e3d3584a1
1 file changed
+4 -8
+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';
}
});
});