New file |
0,0 → 1,27 |
<!doctype html> |
<html lang=""> |
|
<head> |
<base href="."> |
<meta charset="utf-8"> |
<title>TB Geolocation</title> |
<link rel="stylesheet" href="./styles.css"> |
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet"> |
</head> |
|
<body> |
<tb-geolocation-element |
id="tb-geolocation"> |
</tb-geolocation-element> |
|
<script src="./tb-geoloc-custom-element.js"></script> |
<script> |
var tbGeolocation = document.getElementById('tb-geolocation'); |
tbGeolocation.addEventListener("location", function(location) { |
console.log(location.detail); |
}); |
</script> |
|
</body> |
|
</html> |