js2ts: hallOfFame
This commit is contained in:
@@ -52,9 +52,7 @@ else{
|
||||
<?=WebUtil::printCSS('css/hallOfFame.css')?>
|
||||
<?=WebUtil::printJS('../d_shared/common_path.js')?>
|
||||
<?=WebUtil::printJS('dist_js/vendors.js')?>
|
||||
<?=WebUtil::printJS('dist_js/common.js')?>
|
||||
<?=WebUtil::printJS('../e_lib/jquery.redirect.js')?>
|
||||
<?=WebUtil::printJs('js/hallOfFame.js')?>
|
||||
<?=WebUtil::printJs('dist_js/hallOfFame.js')?>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
@@ -1,10 +0,0 @@
|
||||
jQuery(function($){
|
||||
$('#by_scenario').change(function(){
|
||||
var $this = $(this);
|
||||
var scenarioIdx = $this.val();
|
||||
var seasonIdx = $(this).find('option:selected').data('season');
|
||||
|
||||
|
||||
$.redirect('a_hallOfFame.php', {scenarioIdx:scenarioIdx, seasonIdx:seasonIdx}, 'get');
|
||||
})
|
||||
});
|
||||
@@ -199,7 +199,6 @@ export function initTooltip($obj?: JQuery<HTMLElement>): void {
|
||||
} else if (!$obj.hasClass('obj_tooltip')) {
|
||||
$obj = $obj.find('.obj_tooltip');
|
||||
}
|
||||
console.log($obj);
|
||||
|
||||
$obj.each(function () {
|
||||
const $target = $(this);
|
||||
|
||||
@@ -0,0 +1,26 @@
|
||||
import $ from 'jquery';
|
||||
import { stringifyUrl } from 'query-string';
|
||||
import { initTooltip } from './common_legacy';
|
||||
import Popper from 'popper.js';
|
||||
exportWindow(Popper, 'Popper');
|
||||
import 'bootstrap';
|
||||
import { exportWindow } from './util/exportWindow';
|
||||
|
||||
$(function ($) {
|
||||
$('#by_scenario').on('change', function (e) {
|
||||
e.preventDefault();
|
||||
|
||||
const $this = $(this);
|
||||
const scenarioIdx = $this.val();
|
||||
const seasonIdx = $(this).find('option:selected').data('season');
|
||||
|
||||
document.location.href = stringifyUrl({
|
||||
url: 'a_hallOfFame.php',
|
||||
query: {
|
||||
scenarioIdx: scenarioIdx, seasonIdx: seasonIdx
|
||||
}
|
||||
});
|
||||
})
|
||||
|
||||
initTooltip();
|
||||
});
|
||||
@@ -37,6 +37,7 @@ module.exports = (env, argv) => {
|
||||
dipcenter: '@/dipcenter.ts',
|
||||
diplomacy: '@/diplomacy.ts',
|
||||
currentCity: '@/currentCity.ts',
|
||||
hallOfFame: '@/hallOfFame.ts',
|
||||
|
||||
|
||||
//FORM 입력용, frontend 변경후 제거
|
||||
|
||||
Reference in New Issue
Block a user