From a688b6fdce970dc5b320c2e1cbe39b6ed19ead84 Mon Sep 17 00:00:00 2001 From: hide_d Date: Mon, 4 May 2020 21:02:46 +0900 Subject: [PATCH] =?UTF-8?q?=EA=B1=B4=EA=B5=AD=EC=8B=9C=20=EA=B5=AD?= =?UTF-8?q?=EA=B0=80=EC=83=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hwe/js/colorSelect.js | 14 ++++++++++++++ hwe/sammo/Command/General/che_건국.php | 11 +++++++++-- 2 files changed, 23 insertions(+), 2 deletions(-) create mode 100644 hwe/js/colorSelect.js diff --git a/hwe/js/colorSelect.js b/hwe/js/colorSelect.js new file mode 100644 index 00000000..4f5d1378 --- /dev/null +++ b/hwe/js/colorSelect.js @@ -0,0 +1,14 @@ +jQuery(function($){ + function changeNationColorPlate(){ + var $this = $('#colorType'); + var $option = $this.find('option:selected'); + $this.css({ + 'background-color':$option.css('background-color'), + 'color':$option.css('color') + }); + } + $('#colorType').change(function(){ + changeNationColorPlate(); + }); + changeNationColorPlate(); +}); \ No newline at end of file diff --git a/hwe/sammo/Command/General/che_건국.php b/hwe/sammo/Command/General/che_건국.php index f3d28208..4c608bd9 100644 --- a/hwe/sammo/Command/General/che_건국.php +++ b/hwe/sammo/Command/General/che_건국.php @@ -196,6 +196,13 @@ class che_건국 extends Command\GeneralCommand return true; } + public function getJSFiles(): array + { + return [ + 'js/colorSelect.js' + ]; + } + public function getForm(): string { @@ -248,7 +255,7 @@ class che_건국 extends Command\GeneralCommand
국명 : - 색깔 : $color) : /* @@ -257,7 +264,7 @@ class che_건국 extends Command\GeneralCommand } */ ?> - + 성향 :