-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
32 lines (29 loc) · 1.03 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<!DOCTYPE html>
<html>
<head>
<title>Example Index Page</title>
<link href="https://fonts.googleapis.com/css?family=Roboto:100" rel="stylesheet" />
<script type="text/javascript" src="./node_modules/@webcomponents/webcomponentsjs/webcomponents-lite.js"></script>
<script type="text/javascript" src="./scripts/test-script.js"></script>
<link rel="import" href="./node_modules/@polymer/polymer/polymer-element.html"/>
<link rel="import" href="./imports/import.html"/>
<style type="text/css">
body {
font-family: "Roboto";
text-align: center;
}
</style>
<script type="text/javascript">
console.log('index.html script executed')
</script>
</head>
<body>
<h1>My Index Page</h1>
<imported-element></imported-element>
<script type="text/javascript">
const el = document.querySelector('imported-element')
if(el) console.log('imported-element found', el)
else console.error('imported-element not found')
</script>
</body>
</html>