Michael Lando | efa037d | 2017-02-19 12:57:33 +0200 | [diff] [blame] | 1 | <!DOCTYPE html> |
| 2 | <html lang="en"> |
| 3 | <head> |
| 4 | <meta charset="UTF-8"> |
| 5 | <meta http-equiv="Content-type" content="text/html"/> |
| 6 | <link rel="SHORTCUT ICON" href="images/icons/favicon.png"/> |
| 7 | <title>Service Design & Creation</title> |
| 8 | </head> |
| 9 | <body> |
| 10 | <div id="sdc-app" class="sdc-app"></div> |
| 11 | |
| 12 | <script> |
| 13 | |
| 14 | (function(){ |
| 15 | |
| 16 | /** |
| 17 | * Bundle Import script( By Language)! |
| 18 | */ |
| 19 | |
| 20 | var DEFAULT_LANG = 'en'; |
| 21 | var lang = localStorage.getItem('user_locale') || ((navigator && (navigator.language || navigator.userLanguage)) || DEFAULT_LANG).toLowerCase(); |
| 22 | |
| 23 | function writeAppBundle() { |
| 24 | var supportedLangs = [ |
| 25 | //<!--prod:supported-langs--><!--/prod:supported-langs--> |
| 26 | ]; |
| 27 | if(-1 === supportedLangs.indexOf(lang)) { |
| 28 | lang = DEFAULT_LANG; |
| 29 | } |
| 30 | |
| 31 | var bundleScript = document.createElement('script'); |
| 32 | bundleScript.src = 'bundle_' + lang + '.js'; |
| 33 | document.write(bundleScript.outerHTML); |
| 34 | } |
| 35 | |
| 36 | writeAppBundle(); |
| 37 | |
| 38 | })() |
| 39 | </script> |
| 40 | |
| 41 | </body> |
| 42 | </html> |