Subversion Repositories eFlore/Applications.cel

Rev

Rev 3221 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3221 Rev 3240
1
<!doctype html>
1
<!doctype html>
2
<html lang="">
2
<html lang="">
3
 
3
 
4
<head>
4
<head>
5
  <base href=".">
5
  <base href=".">
6
  <meta charset="utf-8">
6
  <meta charset="utf-8">
7
  <title>TB Geolocation</title>
7
  <title>TB Geolocation</title>
8
  <link rel="stylesheet" href="./styles.css">
8
  <link rel="stylesheet" href="./styles.css">
9
  <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
9
  <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
10
</head>
10
</head>
11
 
11
 
12
<body>
12
<body>
-
 
13
  <script src="./tb-geoloc-lib-app_.js"></script>
13
  <tb-geolocation-element
14
  <tb-geolocation-element  
14
    id="tb-geolocation">
15
  id="tb-geolocation"
-
 
16
    >
15
  </tb-geolocation-element>
17
  </tb-geolocation-element>
16
  
-
 
-
 
18
  
17
  <script src="./tb-geoloc-custom-element.js"></script>
19
  
18
  <script>
20
  <script>
19
    var tbGeolocation = document.getElementById('tb-geolocation');
21
    var tbGeolocation = document.getElementById('tb-geolocation');
20
    tbGeolocation.addEventListener("location", function(location) {
22
    tbGeolocation.addEventListener("location", function(location) {
21
  		console.log(location.detail);
23
  		console.log(location.detail);
22
    });
24
    });
23
  </script>
25
  </script>
24
 
26
 
25
</body>
27
</body>
26
 
28
 
27
</html>
29
</html>