From f6e1b4611e3a6dcb3156984e7a2fa32eabffb1c3 Mon Sep 17 00:00:00 2001 From: hide_d Date: Fri, 20 Aug 2021 01:31:32 +0900 Subject: [PATCH] build: install & jqValidateForm --- hwe/js/install.js | 213 +-------------------------------------- hwe/js/install.js.map | 1 + hwe/js/install_db.js | 2 +- hwe/js/install_db.js.map | 2 +- hwe/js/vendors.js | 2 +- hwe/js/vendors.js.map | 2 +- 6 files changed, 7 insertions(+), 215 deletions(-) create mode 100644 hwe/js/install.js.map diff --git a/hwe/js/install.js b/hwe/js/install.js index 293b7bd5..7cd2a10d 100644 --- a/hwe/js/install.js +++ b/hwe/js/install.js @@ -1,211 +1,2 @@ -/* -function showCityGeneral(cityIdx){ - -} -*/ -/* -function loadScenarioPreview(scenarioIdx){ - $(function(){ - reloadWorldMap({ - clickableAll:true, - selectCallback:showCityGeneral, - hrefTemplate:'#', - neutralView:true, - showMe:false, - targetJson:'j_get_scenario_map.php?scenarioIdx={0}'.format(scenarioIdx) - }); - }); -} -*/ - - - -function loadScenarios() { - $.ajax({ - method: 'post', - url: 'j_load_scenarios.php', - dataType: 'json' - }).then(function(result) { - if (!result.result) { - var deferred = $.Deferred(); - deferred.reject('fail'); - return deferred.promise(); - } - - - var list = {}; - - - $.each(result.scenario, function(idx, value) { - var title = value.title || "-"; - var pat = /【(.*?)[0-9\-_\.a-zA-Z]*】/; - var category = pat.exec(title); - category = category ? category[1] : '-'; - - value.title = title; - value.category = category; - value.idx = idx; - value.year = value.year || 180; - - if (!(category in list)) { - list[category] = {}; - } - - list[category][idx] = value; - }); - - var $select = $('#scenario_sel'); - $.each(list, function(category, items) { - var $optgroup = $('').attr('label', category); - - $.each(items, function(idx, scenario) { - var $option = $('