-
Notifications
You must be signed in to change notification settings - Fork 0
/
menu.html
214 lines (199 loc) · 10.7 KB
/
menu.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
<section class="menu-section" id="menu_section_id">
<div class="container">
<div class="menu-section-row row align-items-center">
<div class="logo-section col-9 col-sm-9 col-md-2">
<a id="logoLink" href="index.html?lang=">
<img src="img/logo.png" alt="">
</a>
</div>
<div class="ul-section d-none d-lg-block d-xl-block col-7 col-lg-8 col-xl-7">
<ul id="mainMenu">
<li><a id="companyNavId" data-islink="false" style="cursor:pointer;margin-right: 30px;" class="navm-company multi-lang-class " lang-id="['menu']['menu_1']['company']"></a>
<div class="menu-dropdown">
<div class="dropdown-ul-strip">
<ul id="companyUL">
<li><a href="CEO.html?lang=" class="navm-ceo multi-lang-class" lang-id="['menu']['menu_1']['sub_1']"></a></li>
<li><a href="History.html?lang=" class="navm-history multi-lang-class" lang-id="['menu']['menu_1']['sub_2']"></a></li>
<li><a href="OrganizationChart.html?lang=" class="navm-oc multi-lang-class" lang-id="['menu']['menu_1']['sub_3']"></a></li>
<li><a href="Location.html?lang=" class="navm-location multi-lang-class" lang-id="['menu']['menu_1']['sub_4']"></a></li>
</ul>
<ul id="productsUL" class="menuForceLeftRight" >
<li><a href="business.html?lang=" class="navm-motion multi-lang-class" lang-id="['menu']['menu_2']['sub_1']"></a></li>
<li><a href="stablizer.html?lang=" class="navm-stb multi-lang-class" lang-id="['menu']['menu_2']['sub_2']"></a></li>
<li><a href="usbtype.html?lang=" class="navm-usb multi-lang-class" lang-id="['menu']['menu_2']['sub_3']"></a></li>
<li><a href="arvr.html?lang=" class="navm-arvr multi-lang-class" lang-id="['menu']['menu_2']['sub_4']"></a></li>
<li><a href="MilitaryTrainingEducation.html?lang=" class="navm-mili multi-lang-class" lang-id="['menu']['menu_2']['sub_6']"></a></li>
<li><a href="smartfarm.html?lang=" class="navm-farm multi-lang-class" lang-id="['menu']['menu_2']['sub_5']"></a></li>
</ul>
</div>
</div>
</li>
<li><a id="productsNavId" style="margin-right: 30px;" href="business.html?lang=" class="navm-pro multi-lang-class" lang-id="['menu']['menu_2']['products']"></a></li>
<li><a style="margin-right: 30px;" href="testEvaluation.html?lang=" class="navm-test multi-lang-class" lang-id="['menu']['menu_3']['test']"></a></li>
<li><a style="margin-right: 30px;" href="promotion.html?lang=" class="navm-promo multi-lang-class" lang-id="['menu']['menu_4']['promotion']"></a></li>
</ul>
</div>
<div class="button-section d-none d-lg-block d-xl-block col-3 col-lg-2 col-xl-3">
<ul>
<li class="language_selector_kor" ><a href="index.html?lang=kr" class="multi-lang-class" lang-id="['header']['kr_lang_abr']"></a></li>
<li class="language_selector_eng active-lang"><a href="index.html?lang=en" class="multi-lang-class" lang-id="['header']['en_lang_abr']"></a></li>
<!-- contact us button -->
<li>
<a href="Location.html?lang=" class="multi-lang-class contactUs" lang-id="['header']['contact_us']"></a>
</li>
</ul>
</div>
<div onclick="toggleMenu();" class="responsive-menu-icon col-3 col-md-10 col-lg-10 col-sm-3 d-block d-lg-none d-xl-none">
<div id="imgBurgerMenuId" class="menu-icon"></div>
</div>
</div>
</div>
</section>
<!-- responsive menu -->
<section class="responsive-menu-section d-lg-none d-xl-none" id="res_menu_section_id">
<ul id="resMenu">
<li>
<a data-islink="false" style="cursor:pointer;">
<span class="multi-lang-class dropdown-bottom-icon" lang-id="['menu']['menu_1']['company']"></span>
<i></i>
<div class="clearfix"></div>
</a>
<ul>
<li><a href="CEO.html?lang=" class="multi-lang-class" lang-id="['menu']['menu_1']['sub_1']"></a></li>
<li><a href="History.html?lang=" class="multi-lang-class" lang-id="['menu']['menu_1']['sub_2']"></a></li>
<li><a href="OrganizationChart.html?lang=" class="multi-lang-class" lang-id="['menu']['menu_1']['sub_3']"></a></li>
<li><a href="Location.html?lang=" class="multi-lang-class" lang-id="['menu']['menu_1']['sub_4']"></a></li>
</ul>
</li>
<li>
<a data-islink="false" style="cursor:pointer;">
<span class="multi-lang-class dropdown-bottom-icon" lang-id="['menu']['menu_2']['products']"></span>
<i></i>
<div class="clearfix"></div>
</a>
<ul>
<li><a href="business.html?lang=" class="multi-lang-class" lang-id="['menu']['menu_2']['sub_1']"></a></li>
<li><a href="stablizer.html?lang=" class="multi-lang-class" lang-id="['menu']['menu_2']['sub_2']"></a></li>
<li><a href="usbtype.html?lang=" class="multi-lang-class" lang-id="['menu']['menu_2']['sub_3']"></a></li>
<li><a href="arvr.html?lang=" class="multi-lang-class" lang-id="['menu']['menu_2']['sub_4']"></a></li>
<li><a href="MilitaryTrainingEducation.html?lang=" class="multi-lang-class" lang-id="['menu']['menu_2']['sub_6']"></a></li>
<li><a href="smartfarm.html?lang=" class="multi-lang-class" lang-id="['menu']['menu_2']['sub_5']"></a></li>
</ul>
</li>
<li>
<a href="testEvaluation.html?lang=">
<span class="multi-lang-class" lang-id="['menu']['menu_3']['test']"></span>
<div class="clearfix"></div>
</a>
</li>
<li>
<a href="promotion.html?lang=">
<span class="multi-lang-class" lang-id="['menu']['menu_4']['promotion']"></span>
<div class="clearfix"></div>
</a>
</li>
<li>
<a class="contactUs" href="Location.html?lang=">
<span class="multi-lang-class" lang-id="['header']['contact_us']"></span>
<div class="clearfix"></div>
</a>
</li>
</ul>
<br>
<ol class="buttom-menu-res" style="padding:0;padding-left: 10px;padding-bottom:20px;margin: 0;">
<li class="language_selector_kor active-lang"><a href="index.html?lang=kr" class="multi-lang-class" lang-id="['header']['kr_lang_abr']"></a></li>
<li class="language_selector_eng active-lang"><a href="index.html?lang=en" class="multi-lang-class" lang-id="['header']['en_lang_abr']"></a></li>
</ol>
</section>
<script>
var _menuIsOn = "";
function toggleMenu() {
var cls = $('#imgBurgerMenuId');
if(cls.attr('class') == 'menu-icon-close'){
cls.attr('class','menu-icon');
}else{
cls.attr('class','menu-icon-close');
}
$('.responsive-menu-section').slideToggle();
}
$(document).ready(function () {
if(_currentLang == 'en')
{
$('.language_selector_eng').attr('class','language_selector_eng active-lang');
$('.language_selector_kor').attr('class','language_selector_kor');
$('.menuForceLeftRightKR').attr('class','menuForceLeftRight');
}
else
{
$('.language_selector_kor').attr('class','language_selector_kor active-lang');
$('.language_selector_eng').attr('class','language_selector_eng');
$('.menuForceLeftRight').attr('class','menuForceLeftRightKR');
}
const logoLinkElem = $('#logoLink');
logoLinkElem.attr('href', logoLinkElem.attr('href') + _currentLang);
$('#mainMenu').find('a').each(function () {
if($(this).attr('data-islink') != 'false'){
const href = $(this).attr('href');
$(this).attr('href', href + _currentLang);
}
});
$('#resMenu').find('a').each(function () {
if($(this).attr('data-islink') != 'false'){
const href = $(this).attr('href');
$(this).attr('href', href + _currentLang);
}
});
getLanguage(_currentLang, function () {
// refresh lang file
$('#menu_section_id').find('.multi-lang-class').each(function () {
const id = $(this).attr('lang-id');
if(id != null){
const str = eval("_languageObject"+ id);
$(this).html(str);
}
});
$('#res_menu_section_id').find('.multi-lang-class').each(function () {
const id = $(this).attr('lang-id');
if(id != null){
const str = eval("_languageObject"+ id);
$(this).html(str);
}
});
$('.contactUs').attr('href','Location.html?lang=' + _currentLang);
});
const compNavId = $('#companyNavId');
const proNavId = $('#productsNavId');
$('#companyUL').mouseenter(function () {
if(_menuIsOn != "company"){
_menuIsOn = "company";
if(!compNavId.hasClass('border-red-undermenuitem')){
compNavId.addClass('border-red-undermenuitem')
}
}
});
$('#companyUL').mouseleave(function () {
if(_menuIsOn != ""){
_menuIsOn = "";
if(compNavId.hasClass('border-red-undermenuitem')){
compNavId.removeClass('border-red-undermenuitem')
}
}
});
$('#productsUL').mouseenter(function () {
if(_menuIsOn != "pros"){
_menuIsOn = "pros";
if(!proNavId.hasClass('border-red-undermenuitem')){
proNavId.addClass('border-red-undermenuitem')
}
}
});
$('#productsUL').mouseleave(function () {
if(_menuIsOn != ""){
_menuIsOn = "";
if(proNavId.hasClass('border-red-undermenuitem')){
proNavId.removeClass('border-red-undermenuitem')
}
}
});
});
</script>