Repositorio del curso CCOM4030 el semestre B91 del proyecto Artesanías con el Instituto de Cultura

index.html 2.2KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <!DOCTYPE HTML>
  2. <!--
  3. Licensed to the Apache Software Foundation (ASF) under one
  4. or more contributor license agreements. See the NOTICE file
  5. distributed with this work for additional information
  6. regarding copyright ownership. The ASF licenses this file
  7. to you under the Apache License, Version 2.0 (the
  8. "License"); you may not use this file except in compliance
  9. with the License. You may obtain a copy of the License at
  10. http://www.apache.org/licenses/LICENSE-2.0
  11. Unless required by applicable law or agreed to in writing,
  12. software distributed under the License is distributed on an
  13. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  14. KIND, either express or implied. See the License for the
  15. specific language governing permissions and limitations
  16. under the License.
  17. -->
  18. <html>
  19. <head>
  20. <meta name="viewport" content="width=320, user-scalable=no" />
  21. <meta http-equiv="Content-type" content="text/html; charset=utf-8">
  22. <title>Cordova Tests</title>
  23. <link rel="stylesheet" href="../master.css" type="text/css" media="screen" title="no title">
  24. <script type="text/javascript" charset="utf-8" src="../cordova.js"></script>
  25. <script type="text/javascript" charset="utf-8" src="../main.js"></script>
  26. <script>
  27. function loadUrl(url) {
  28. document.getElementById('iframe').src = url;
  29. }</script>
  30. </head>
  31. <body onload="init();" id="stage" class="theme">
  32. <h1>IFrame</h1>
  33. <div id="info">
  34. <h4>Cordova: <span id="cordova"> &nbsp;</span></h4>
  35. <h4>Deviceready: <span id="deviceready"> &nbsp;</span></h4>
  36. </div>
  37. <div id="info">
  38. Press the two buttons:<br>
  39. 1. Google Maps should display in iframe.<br>
  40. 2. Page 2 replaces current page.<br>
  41. (NOTE: THIS BEHAVIOR IS WRONG - AND NEEDS TO BE FIXED IN FUTURE RELEASE.)
  42. </div>
  43. <iframe id="iframe" src="" width="90%" height="200px"></iframe>
  44. <a id="google_maps" href="javascript:" class="btn large" onclick="loadUrl('http://maps.google.com/maps?output=embed');">Google Maps</a>
  45. <a id="javascript_load" href="javascript:" class="btn large" onclick="loadUrl('index2.html');">Page 2</a>
  46. </body>
  47. </html>