/packages/boilerplate-generator/boilerplate_web.cordova.html
HTML | 43 lines | 38 code | 5 blank | 0 comment | 0 complexity | 0389dcf365c1fc34e8c79aea77fe3715 MD5 | raw file
Possible License(s): BSD-3-Clause
- <html>
- <head>
- <meta charset="utf-8">
- <meta name="format-detection" content="telephone=no">
- <meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width, height=device-height">
- <meta name="msapplication-tap-highlight" content="no">
- {{#each css}} <link rel="stylesheet" type="text/css" class="__meteor-css__" href="{{../bundledJsCssPrefix}}{{url}}">{{/each}}
- <script type='text/javascript'>
- __meteor_runtime_config__ = {{meteorRuntimeConfig}};
- if (/Android/i.test(navigator.userAgent)) {
- // When Android app is emulated, it cannot connect to localhost,
- // instead it should connect to 10.0.2.2
- // (unless we're using an http proxy; then it works!)
- if (!__meteor_runtime_config__.httpProxyPort) {
- __meteor_runtime_config__.ROOT_URL = (__meteor_runtime_config__.ROOT_URL || '').replace(/localhost/i, '10.0.2.2');
- __meteor_runtime_config__.DDP_DEFAULT_CONNECTION_URL = (__meteor_runtime_config__.DDP_DEFAULT_CONNECTION_URL || '').replace(/localhost/i, '10.0.2.2');
- }
- }
- </script>
- <script type="text/javascript" src="/cordova.js"></script>
- {{#each js}} <script type="text/javascript" src="{{../bundledJsCssPrefix}}{{url}}"></script>
- {{/each}}
- {{#each additionalStaticJs}}
- {{#if ../inlineScriptsAllowed}}
- <script type='text/javascript'>
- {{contents}}
- </script>
- {{else}}
- <script type='text/javascript'
- src='{{rootUrlPathPrefix}}{{pathname}}'></script>
- {{/if}}
- {{/each}}
- {{{head}}}
- </head>
- <body>
- {{{body}}}
- </body>
- </html>