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
국명 :
- 색깔 :