mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
Add cordova boilerplate file
This commit is contained in:
32
packages/webapp/boilerplate_client.cordova.html
Normal file
32
packages/webapp/boilerplate_client.cordova.html
Normal file
@@ -0,0 +1,32 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="format-detection" content="telephone=no">
|
||||
<!-- WARNING: for iOS 7, remove the width=device-width and height=device-height attributes. See https://issues.apache.org/jira/browse/CB-4323 -->
|
||||
<meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width, height=device-height, target-densitydpi=device-dpi">
|
||||
<meta name="msapplication-tap-highlight" content="no">
|
||||
{{#each css}} <link rel="stylesheet" href="{{url}}">{{/each}}
|
||||
|
||||
<script type='text/javascript'>__meteor_runtime_config__ = {{meteorRuntimeConfig}};</script>
|
||||
|
||||
{{#each js}} <script type="text/javascript" src="{{url}}"></script>
|
||||
{{/each}}
|
||||
|
||||
{{{head}}}
|
||||
<script type="text/javascript">
|
||||
if (typeof Package === 'undefined' ||
|
||||
! Package.webapp ||
|
||||
! Package.webapp.WebApp ||
|
||||
! Package.webapp.WebApp._isCssLoaded())
|
||||
document.location.reload();
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
{{{body}}}
|
||||
THIS IS CORDOVA YAY!
|
||||
<div id="meteor-app-container"></div><div id="meteor-app-container"></div>
|
||||
{{#if includeCordova}}
|
||||
<script type="text/javascript" src="cordova.js"></script>
|
||||
{{/if}}
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user