-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathindex.html
41 lines (35 loc) · 1.11 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
33
34
35
36
37
38
39
40
41
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Example</title>
<style>
html, body {
margin: 5px;
padding: 0;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
</style>
<link rel="stylesheet" href="docs/css/c3.min.css">
<link rel="stylesheet" href="dist/powercalculator.css">
</head>
<body>
<div class="power-calculator"></div>
<script src="docs/js/d3.min.js"></script>
<script src="docs/js/c3.min.js"></script>
<script src="docs/js/vue.2.5.13.js"></script>
<script src="docs/js/vuex.3.0.1.js"></script>
<script src="docs/js/almond.js"></script>
<script src="dist/powercalculator.js"></script>
<script>
// flag to debug
Vue.config.devtools = true;
let { powerCalculator, store } = require('powercalculator');
const storeInstance = new Vuex.Store(store)
new Vue(Object.assign({
store: storeInstance,
el: '.power-calculator',
}, powerCalculator));
</script>
</body>
</html>