-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
89 lines (73 loc) · 3.19 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Sales Hero</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/vega-tooltip/0.4.4/vega-tooltip.min.css" />
<link rel="stylesheet" href="./src/styles/app.css" />
</head>
<body>
<div class="app-container">
<div class="header">
<h1>Sales Hero</h1>
<!-- This menu is populated by JavaScript in the app.js file -->
<div class="select-style"><select name="rep-name"></select></div>
</div>
<!-- Summary tiles are added dynamically to this container -->
<div class="container-row summary-container"></div>
<div class="container-row chart-container">
<div class="card -hero">
<div class="card-title">Sales Ranking</div>
<div class="card-content">
<!-- Chart container for Rep Ranking -->
<div class="performance-chart"></div>
</div>
</div>
<div class="card -hero">
<div class="card-title">Sales by Month</div>
<div class="card-content">
<!-- Chart container for trending sales -->
<div class="sales-chart"></div>
</div>
</div>
</div>
<div class="loader">
<div class="spinner">
<div class="rect1"></div>
<div class="rect2"></div>
<div class="rect3"></div>
<div class="rect4"></div>
<div class="rect5"></div>
</div>
</div>
</div>
<!--
Vega has become a very popular library for creating D3 visuals, but there
are many other options available. Domo doesn't recommend one library over
another. As long as it's a JavaScript library that works in the browser,
you should be OK to use it.
-->
<script src="https://cdnjs.cloudflare.com/ajax/libs/vega/3.0.5/vega.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/vega-tooltip/0.4.4/vega-tooltip.min.js"></script>
<!-- Helps with formatting numbers -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/numeral.js/2.0.6/numeral.min.js"></script>
<!--
We've loaded the Query library like this, but the recommended
approach is via NPM. See https://www.npmjs.com/package/@domoinc/query
for more details.
Using a bundler like Webpack or Browserify will also facilitate loading
node_modules into your application.
-->
<script src="./src/scripts/lib/query.js"></script>
<!--
domo.js is an optional library that is included in every "Hello World"
projects from "domo init". This can also be installed via NPM. See
https://www.npmjs.com/package/ryuu.js for more details
-->
<script src="./src/scripts/lib/domo.js"></script>
<!-- Helper services -->
<script src="./src/scripts/services/data-service.js"></script>
<script src="./src/scripts/services/chart-service.js"></script>
<!-- Main JS file -->
<script src="./src/scripts/app.js"></script>
</body>
</html>