diff --git a/css/main.css b/css/main.css
index 1a30253..4883870 100644
--- a/css/main.css
+++ b/css/main.css
@@ -69,18 +69,49 @@ div#header {
margin-left: 20px;
}
-.select-wrap {
- display: inline-block;
- overflow: hidden;
+.customSelect {
height: 20px;
}
-select.menuBtn {
- color: #666;
- border: none;
- cursor: pointer;
- margin: -1px -20px 0 0;
- background: transparent;
+span.customSelectOptions {
+ margin: 0;
+ width: 80px;
+}
+
+.customSelectOptions > ul {
+ max-height: 20px;
+ width: 80px;
+ overflow: hidden;
+ -webkit-transition: max-height 1s;
+ transition: max-height 1s;
+ padding: 0;
+ margin: 0;
+ bottom: 0;
+ position: absolute;
+ right: 0;
+}
+
+.customSelectOptions > ul:hover {
+ max-height: 400px;
+}
+
+.customSelectOptions > ul > li {
+ padding: 0 0 3px 0;
+ list-style-type: none;
+ height: 20px;
+}
+
+.customSelectOptions > ul > li:last-child {
+ padding: 0;
+}
+
+.customSelectOptions > ul > li:hover {
+ text-decoration: underline;
+}
+
+.customSelectOptions > ul > li:first-child:hover {
+ cursor: default;
+ text-decoration: none;
}
.menu span:hover {
diff --git a/index.html b/index.html
index f7b312d..b88475c 100644
--- a/index.html
+++ b/index.html
@@ -72,7 +72,7 @@
-
diff --git a/lang/langs.js b/lang/langs.js
index 06f246e..476523b 100644
--- a/lang/langs.js
+++ b/lang/langs.js
@@ -1,14 +1,13 @@
var langs = {
- 'en':'english',
- 'fr':'français',
- 'de':'deutsch',
'cn':'简体中文',
+ 'de':'deutsch',
+ 'en':'english',
'es': 'español',
- 'uk':'українська',
- //'jp':'日本語',
+ 'fr':'français',
+ 'kr':'한국어',
+ 'pl':'polski',
'ru':'русский',
'sv':'svenska',
- 'pl':'polski',
'tr':'türkçe',
- 'kr':'한국어'
+ 'uk':'українська'
};
diff --git a/script/engine.js b/script/engine.js
index e87b0e1..5cdcc35 100644
--- a/script/engine.js
+++ b/script/engine.js
@@ -116,17 +116,25 @@
.appendTo('body');
if(typeof langs != 'undefined'){
- var selectWrap = $('')
- .addClass('select-wrap')
- .appendTo(menu);
- var select = $('