Advertisement
Guest User

Untitled

a guest
Mar 23rd, 2017
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.11 KB | None | 0 0
  1. /*
  2. * Licensed to the Apache Software Foundation (ASF) under one
  3. * or more contributor license agreements. See the NOTICE file
  4. * distributed with this work for additional information
  5. * regarding copyright ownership. The ASF licenses this file
  6. * to you under the Apache License, Version 2.0 (the
  7. * "License"); you may not use this file except in compliance
  8. * with the License. You may obtain a copy of the License at
  9. *
  10. * http://www.apache.org/licenses/LICENSE-2.0
  11. *
  12. * Unless required by applicable law or agreed to in writing,
  13. * software distributed under the License is distributed on an
  14. * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  15. * KIND, either express or implied. See the License for the
  16. * specific language governing permissions and limitations
  17. * under the License.
  18. */
  19. * {
  20. -webkit-tap-highlight-color: rgba(0,0,0,0); /* make transparent link selection, adjust last value opacity 0 to 1.0 */
  21. }
  22.  
  23. body {
  24. -webkit-touch-callout: none; /* prevent callout to copy image, etc when tap to hold */
  25. -webkit-text-size-adjust: none; /* prevent webkit from resizing text to fit */
  26. -webkit-user-select: none; /* prevent copy paste, to allow, change 'none' to 'text' */
  27. background-color:#E4E4E4;
  28. background-image:linear-gradient(top, #A7A7A7 0%, #E4E4E4 51%);
  29. background-image:-webkit-linear-gradient(top, #A7A7A7 0%, #E4E4E4 51%);
  30. background-image:-ms-linear-gradient(top, #A7A7A7 0%, #E4E4E4 51%);
  31. background-image:-webkit-gradient(
  32. linear,
  33. left top,
  34. left bottom,
  35. color-stop(0, #A7A7A7),
  36. color-stop(0.51, #E4E4E4)
  37. );
  38. background-attachment:fixed;
  39. font-family:'HelveticaNeue-Light', 'HelveticaNeue', Helvetica, Arial, sans-serif;
  40. font-size:12px;
  41. height:100%;
  42. margin:0px;
  43. padding:0px;
  44. text-transform:uppercase;
  45. width:100%;
  46. }
  47.  
  48. /* Portrait layout (default) */
  49. .app {
  50. background:url(../img/logo.png) no-repeat center top; /* 170px x 200px */
  51. position:absolute; /* position in the center of the screen */
  52. left:50%;
  53. top:50%;
  54. height:50px; /* text area height */
  55. width:225px; /* text area width */
  56. text-align:center;
  57. padding:180px 0px 0px 0px; /* image height is 200px (bottom 20px are overlapped with text) */
  58. margin:-115px 0px 0px -112px; /* offset vertical: half of image height and text area height */
  59. /* offset horizontal: half of text area width */
  60. }
  61.  
  62. /* Landscape layout (with min-width) */
  63. @media screen and (min-aspect-ratio: 1/1) and (min-width:400px) {
  64. .app {
  65. background-position:left center;
  66. padding:75px 0px 75px 170px; /* padding-top + padding-bottom + text area = image height */
  67. margin:-90px 0px 0px -198px; /* offset vertical: half of image height */
  68. /* offset horizontal: half of image width and text area width */
  69. }
  70. }
  71.  
  72. h1 {
  73. font-size:24px;
  74. font-weight:normal;
  75. margin:0px;
  76. overflow:visible;
  77. padding:0px;
  78. text-align:center;
  79. }
  80.  
  81. .event {
  82. border-radius:4px;
  83. -webkit-border-radius:4px;
  84. color:#FFFFFF;
  85. font-size:12px;
  86. margin:0px 30px;
  87. padding:2px 0px;
  88. }
  89.  
  90. .event.listening {
  91. background-color:#333333;
  92. display:block;
  93. }
  94.  
  95. .event.received {
  96. background-color:#4B946A;
  97. display:none;
  98. }
  99.  
  100. @keyframes fade {
  101. from { opacity: 1.0; }
  102. 50% { opacity: 0.4; }
  103. to { opacity: 1.0; }
  104. }
  105.  
  106. @-webkit-keyframes fade {
  107. from { opacity: 1.0; }
  108. 50% { opacity: 0.4; }
  109. to { opacity: 1.0; }
  110. }
  111.  
  112. .blink {
  113. animation:fade 3000ms infinite;
  114. -webkit-animation:fade 3000ms infinite;
  115. }
  116.  
  117. .container {
  118. margin: 10vh;
  119. overflow-y: scroll;
  120. -webkit-overflow-scrolling:touch;
  121. border-style: solid;
  122. height: 10vh;
  123. }
  124.  
  125. .content {
  126. height: 20vh;
  127. }
  128.  
  129. <!DOCTYPE html>
  130. <!--
  131. Licensed to the Apache Software Foundation (ASF) under one
  132. or more contributor license agreements. See the NOTICE file
  133. distributed with this work for additional information
  134. regarding copyright ownership. The ASF licenses this file
  135. to you under the Apache License, Version 2.0 (the
  136. "License"); you may not use this file except in compliance
  137. with the License. You may obtain a copy of the License at
  138.  
  139. http://www.apache.org/licenses/LICENSE-2.0
  140.  
  141. Unless required by applicable law or agreed to in writing,
  142. software distributed under the License is distributed on an
  143. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  144. KIND, either express or implied. See the License for the
  145. specific language governing permissions and limitations
  146. under the License.
  147. -->
  148. <html>
  149. <head>
  150. <!--
  151. Customize this policy to fit your own app's needs. For more guidance, see:
  152. https://github.com/apache/cordova-plugin-whitelist/blob/master/README.md#content-security-policy
  153. Some notes:
  154. * gap: is required only on iOS (when using UIWebView) and is needed for JS->native communication
  155. * https://ssl.gstatic.com is required only on Android and is needed for TalkBack to function properly
  156. * Disables use of inline scripts in order to mitigate risk of XSS vulnerabilities. To change this:
  157. * Enable inline JS: add 'unsafe-inline' to default-src
  158. -->
  159. <meta http-equiv="Content-Security-Policy" content="default-src 'self' data: gap: https://ssl.gstatic.com 'unsafe-eval'; style-src 'self' 'unsafe-inline'; media-src *; img-src 'self' data: content:;">
  160. <meta name="format-detection" content="telephone=no">
  161. <meta name="msapplication-tap-highlight" content="no">
  162. <meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width">
  163. <link rel="stylesheet" type="text/css" href="css/index.css">
  164. <title>Hello World</title>
  165. </head>
  166. <body>
  167. <div class="container">
  168. <div class="content">
  169. testtest
  170. </div>
  171. </div>
  172. <script type="text/javascript" src="cordova.js"></script>
  173. <script type="text/javascript" src="js/index.js"></script>
  174. </body>
  175. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement