Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/katsew/mlselector
https://github.com/katsew/mlselector
Last synced: 14 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/katsew/mlselector
- Owner: katsew
- Created: 2013-11-27T10:28:04.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2013-11-27T10:48:51.000Z (about 11 years ago)
- Last Synced: 2024-04-15T00:45:08.031Z (10 months ago)
- Language: JavaScript
- Size: 102 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
author: katsew
license: MITUSAGE:
```
$("your selector").mlSelector();
```
OPTIONS:mlDefault is to set default language. Which means that shows on the
root directory such as "http://example.com/example.html"other language will be shown on the URL like following...
if you choose japanese URL should be "http://example.com/ja/example.html"mlLangs is to detect languages to change with select element or browser language setting.
This option should write with regular expression like "/ja|en|zh|vi.../".```
defaults : {
"mlDefault" : "en",
"mlLangs" : "/ja|en/"
}
$("your selector").mlSelector({
"mlDefault" : "en",
"mlLangs" : "/ja|en/"
});
```MARKUP:
You should set the value attribute on option elements like this.
```
japanese
english
```COMPATIBLE:
IE+8 ( in order to use sessionStorage )
Chrome latest
Firefox latest
Safari latest