-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun.html
62 lines (46 loc) · 2.4 KB
/
run.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Run | DriveWorks</title>
<link rel="icon" href="/favicon.ico" />
<link rel="stylesheet" href="css/run.css" />
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Open+Sans:400,600,700&display=swap" />
</head>
<body class="loading">
<header>
<div class="title">
DriveWorks
</div>
<div id="header-user" class="header-user">
<svg viewBox="0 0 448 512">
<path fill="currentColor" d="M313.6 304c-28.7 0-42.5 16-89.6 16-47.1 0-60.8-16-89.6-16C60.2 304 0 364.2 0 438.4V464c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48v-25.6c0-74.2-60.2-134.4-134.4-134.4zM400 464H48v-25.6c0-47.6 38.8-86.4 86.4-86.4 14.6 0 38.3 16 89.6 16 51.7 0 74.9-16 89.6-16 47.6 0 86.4 38.8 86.4 86.4V464zM224 288c79.5 0 144-64.5 144-144S303.5 0 224 0 80 64.5 80 144s64.5 144 144 144zm0-240c52.9 0 96 43.1 96 96s-43.1 96-96 96-96-43.1-96-96 43.1-96 96-96z"/>
</svg>
<div id="username"></div>
</div>
<button id="logout-button">
Logout
<svg viewBox="0 0 512 512" class="loading">
<path fill="#fff" d="M255.43 0v102.4h.57c84.76 0 153.6 68.84 153.6 153.6S340.76 409.6 256 409.6 102.4 340.76 102.4 256c0-15.93 2.28-31.86 7.4-47.22L12.52 177.5C3.98 202.52 0 229.26 0 256c0 141.08 114.92 256 256 256s256-114.92 256-256S397.08 0 255.43 0z"></path>
</svg>
</button>
</header>
<!-- Render Area -->
<div id="drive-app-output" class="output is-loading"></div>
<!-- Scripts -->
<script src="config.js"></script>
<script src="js/run.js"></script>
<!-- Option A) Directly load Client Library -->
<!-- <script src="https://YOUR-DRIVEWORKS-LIVE-SERVER-URL.COM/DriveworksLiveIntegrationClient.min.js" onload="dwClientLoaded()"></script> -->
<!-- Option B) Inject Client Library dynamically from server url in config file -->
<script>
(function(doc, script) {
script = doc.createElement("script");
script.src = config.serverUrl + "/DriveWorksLiveIntegrationClient.min.js";
script.onload = () => dwClientLoaded(); // Custom local function run when client has loaded
doc.body.appendChild(script);
}(document));
</script>
</body>
</html>