Skip to content
lrock edited this page Sep 26, 2012 · 1 revision

Language-Switch with 'active'-Indicator

<div id='language_switch'>
  <a id='lang-de'  href='javascript:app.set_language("de")'>DE</a>
  |
  <a id='lang-en'  href='javascript:app.set_language("en")'>EN</a>
</div>
#language_switch {
 position: fixed;
 top: 20px;
 right: 400px;
 z-index: 20000;
}

body[data-lang=de] #lang-de {
 color: red; 
}

body[data-lang=en] #lang-en {
 color: red; 
}
Clone this wiki locally