PageRenderTime 60ms CodeModel.GetById 34ms RepoModel.GetById 0ms app.codeStats 0ms

/packages/boilerplate-generator/boilerplate_web.cordova.html

https://github.com/CulturalMe/meteor
HTML | 43 lines | 38 code | 5 blank | 0 comment | 0 complexity | 0389dcf365c1fc34e8c79aea77fe3715 MD5 | raw file
Possible License(s): BSD-3-Clause
  1. <html>
  2. <head>
  3. <meta charset="utf-8">
  4. <meta name="format-detection" content="telephone=no">
  5. <meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width, height=device-height">
  6. <meta name="msapplication-tap-highlight" content="no">
  7. {{#each css}} <link rel="stylesheet" type="text/css" class="__meteor-css__" href="{{../bundledJsCssPrefix}}{{url}}">{{/each}}
  8. <script type='text/javascript'>
  9. __meteor_runtime_config__ = {{meteorRuntimeConfig}};
  10. if (/Android/i.test(navigator.userAgent)) {
  11. // When Android app is emulated, it cannot connect to localhost,
  12. // instead it should connect to 10.0.2.2
  13. // (unless we're using an http proxy; then it works!)
  14. if (!__meteor_runtime_config__.httpProxyPort) {
  15. __meteor_runtime_config__.ROOT_URL = (__meteor_runtime_config__.ROOT_URL || '').replace(/localhost/i, '10.0.2.2');
  16. __meteor_runtime_config__.DDP_DEFAULT_CONNECTION_URL = (__meteor_runtime_config__.DDP_DEFAULT_CONNECTION_URL || '').replace(/localhost/i, '10.0.2.2');
  17. }
  18. }
  19. </script>
  20. <script type="text/javascript" src="/cordova.js"></script>
  21. {{#each js}} <script type="text/javascript" src="{{../bundledJsCssPrefix}}{{url}}"></script>
  22. {{/each}}
  23. {{#each additionalStaticJs}}
  24. {{#if ../inlineScriptsAllowed}}
  25. <script type='text/javascript'>
  26. {{contents}}
  27. </script>
  28. {{else}}
  29. <script type='text/javascript'
  30. src='{{rootUrlPathPrefix}}{{pathname}}'></script>
  31. {{/if}}
  32. {{/each}}
  33. {{{head}}}
  34. </head>
  35. <body>
  36. {{{body}}}
  37. </body>
  38. </html>