-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.html
45 lines (37 loc) · 1.4 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
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="css/main.css">
<script src="angular.min.js"></script>
<script src="/socket.io/socket.io.js"></script>
<script src="http://code.jquery.com/jquery-1.11.1.js"></script>
<script> var socket = io(); </script>
</head>
<body>
<div>
<!-- Replace the variable 'src' with "logos/hpe_helion_blk_pos_rgb.png" or "logos/hpe_helion_grn_pos_rgb.png" to change the displayed logo-->
<img src="logos/hpe_helion_grn_pos_rgb.png" alt="Hewlett-Packard Enterprise Helion Logo" style="width:377px;height:104px;">
</div>
<!-- Feel free to edit the text below! -->
<div id="subtitle">
An HPE Stackato Demo Application
</div>
<div ng-app="envVarApp" ng-controller="ServiceController">
<p> This is instance number: <b>{{ envVariables.CF_INSTANCE_INDEX }}</b><br/>of the App <b>{{ envVariables.STACKATO_APP_NAME }}</b>. <br/>It is listening on port: <b>{{ envVariables.PORT }}</b>
</p>
</div>
<br>
<div>
<button class="btn green" id="buttons">
Produce Load
</button>
</div>
<!-- Împort the app.js with the appropriate controller -->
<script src="app.js"></script>
<script >
$("#buttons").click(function() {
socket.emit('produceLoad');
});
</script>
</body>
</html>