This repository has been archived by the owner on Oct 11, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
136 lines (111 loc) · 4.02 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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
<style>
h1, div {
font-family: "Lucida Grande", "Lucida Sans Unicode", Verdana, Arial, Helvetica, sans-serif;
}
.statustable
{
font-size: 16pt;
font-weight: bold;
text-align: center;
}
.statustable td
{
padding: 20px;
}
</style>
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/highcharts.js"></script>
<script type="text/javascript" src="js/ratefunctions.js"></script>
<script type="text/javascript" src="js/stockchart.js"></script>
<script type="text/javascript">
var globalDataLabels = {
enabled: true,
align: 'center',
style: {
fontWeight: 'bold',
'fontSize': '12pt',
'backgroundColor': '#ffffff',
'overflow': 'visible'
},
backgroundColor: '#ffffff',
y: -30,
x: 5,
verticalAlign: 'top',
crop: true
};
$(function () {
Highcharts.setOptions({
global: {
useUTC: false
}
});
var chart;
var colors = ['#7cb5ec', '#434348', '#90ed7d', '#f7a35c', '#8085e9',
'#f15c80', '#e4d354', '#8085e8', '#8d4653', '#91e8e1'];
$('#belieber').highcharts(stockChart("Belieber", colors[0], rateFunction(20, 200, 10, 180, $('#belieber-status'))));
$('#mcdonalds').highcharts(stockChart("Mc Donalds", colors[1], rateFunction(50, 1000, 10, 600, $('#mcdonalds-status'))));
$('#planpi').highcharts(stockChart("Plan Pi", colors[2], rateFunction(800, 1000, 10, 300, $('#planpi-status'))));
$('#bobtheentrepreneur').highcharts(stockChart("Bob the Entrepreneur A/S", colors[3], rateFunction(50, 1000, 10, 600, $('#bobtheentrepreneur-status'))));
$('#turneragency').highcharts(stockChart("Turner Agency", colors[4], rateFunction(50, 1000, 10, 600, $('#turneragency-status'))));
});
</script>
<div style="width: 100%; text-align: center; font-size: 20pt;">
<h1>Aktiekurser</h1>
</div>
<table width="100%">
<tr>
<td>
<div id="planpi" style="min-width: 310px; width: 500px; height: 50%; margin: 0 auto">
</div>
</td>
<td>
<table class="statustable" width="100%">
<tr>
<td>
<div style="font-weight: normal">Plan Pi</div>
<div id="planpi-status"></div>
</td>
<td>
<img src="pi_usa%20copy.png" alt="Pi USA" />
</td>
<td>
<div style="font-weight: normal">Belieber</div>
<div id="belieber-status"></div>
</td>
</tr>
<tr>
<td>
<div style="font-weight: normal">Mc Donalds</div>
<div id="mcdonalds-status"></div>
</td>
<td>
<div style="font-weight: normal">Bob the Entrepreneur A/S</div>
<div id="bobtheentrepreneur-status"></div>
</td>
<td>
<div style="font-weight: normal">Turner Agency</div>
<div id="turneragency-status"></div>
</td>
</tr>
</table>
</td>
<td>
<div id="belieber" style="min-width: 310px; width: 500px; height: 50%; margin: 0 auto">
</div>
</td>
</tr>
<tr>
<td>
<div id="mcdonalds" style="min-width: 310px; width: 500px; height: 50%; margin: 0 auto">
</div>
</td>
<td>
<div id="bobtheentrepreneur" style="min-width: 310px; width: 500px; height: 50%; margin: 0 auto">
</div>
</td>
<td>
<div id="turneragency" style="min-width: 310px; width: 500px; height: 50%; margin: 0 auto">
</div>
</td>
</tr>
</table>