Switch to unified view

a b/compass-app/plugins/org.apache.cordova.splashscreen/test/splashscreen/index.html
1
<!DOCTYPE html>
2
<!--
3
4
 Licensed to the Apache Software Foundation (ASF) under one
5
 or more contributor license agreements.  See the NOTICE file
6
 distributed with this work for additional information
7
 regarding copyright ownership.  The ASF licenses this file
8
 to you under the Apache License, Version 2.0 (the
9
 "License"); you may not use this file except in compliance
10
 with the License.  You may obtain a copy of the License at
11
12
   http://www.apache.org/licenses/LICENSE-2.0
13
14
 Unless required by applicable law or agreed to in writing,
15
 software distributed under the License is distributed on an
16
 "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17
 KIND, either express or implied.  See the License for the
18
 specific language governing permissions and limitations
19
 under the License.
20
21
-->
22
23
24
<html>
25
  <head>
26
    <meta name="viewport" content="width=device-width,user-scalable=no,maximum-scale=1.0,initial-scale=1.0" />
27
    <meta http-equiv="Content-type" content="text/html; charset=utf-8"> <!-- ISO-8859-1 -->
28
    <title>Cordova Mobile Spec</title>
29
    <link rel="stylesheet" href="../master.css" type="text/css" media="screen" title="no title" charset="utf-8">
30
    <script type="text/javascript" charset="utf-8" src="../cordova-incl.js"></script>
31
32
<script type="text/javascript" charset="utf-8">
33
  function showFor(duration) {
34
      navigator.splashscreen.show();
35
      window.setTimeout(function() {
36
          navigator.splashscreen.hide();
37
      }, 1000 * duration);
38
  }
39
</script>
40
  </head>
41
  <body id="stage" class="theme">
42
    <h1>Splashscreen</h1>
43
    <h2>Action</h2>
44
    <div class="btn large" onclick="showFor(1)">Show for 1 second</div>
45
    <div class="btn large" onclick="showFor(5)">Show for 5 seconds</div>
46
    <h2> </h2><div class="backBtn" onclick="backHome();">Back</div>
47
  </body>
48
</html>