Files
core/hwe/ts/recent_map.ts
T
Hide_D 3d1f16bfc2 feat(WIP): bootstrap 5 tooltip 적용
- bootstrap4 용의 popper.js 제거
- jquery기반 bootstrap tooltip 제거
2021-12-10 02:26:08 +09:00

30 lines
682 B
TypeScript

import $ from 'jquery';
import 'bootstrap';
import { reloadWorldMap } from './map';
declare global{
interface Window{
fitIframe:()=>void;
}
}
$(function($){
void reloadWorldMap({
targetJson: "j_map_recent.php",
reqType: 'get',
dynamicMapTheme: true,
callback: function(data, rawObject) {
const historyRaw = rawObject as unknown as {
history: string
};
$('.card-body').html(historyRaw.history);
if(window.parent !== window){
setTimeout(()=>{
window.parent.fitIframe();
}, 1);
}
}
});
});