forked from microsoft/FluidFramework
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
89 lines (88 loc) · 2.78 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
<!-- Copyright (c) Microsoft Corporation and contributors. All rights reserved. -->
<!-- Licensed under the MIT License. -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Fluid Document Loader</title>
<style>
body {
background: lightgray;
display: flex;
flex-direction: column;
height: 100%;
margin: 0px;
padding: 10px;
}
.toolbar {
align-items: flex-start;
background-color: #f1f1f1;
display: flex;
flex-direction: column;
margin: 2px;
max-height: 0;
overflow: hidden;
padding: 0 18px;
transition: max-height 0.2s ease-out;
}
.collapsible {
background-color: gray;
border: none;
cursor: pointer;
font-size: 14px;
outline: none;
padding: 10px;
text-align: left;
}
.active,
.collapsible:hover {
background-color: gray;
}
.collapsible:after {
color: white;
content: "➕";
float: right;
font-size: 10px;
margin-left: 5px;
}
.active:after {
content: "➖";
}
</style>
</head>
<body>
<button type="button" class="collapsible">Code Details</button>
<div class="toolbar">
<br />
<label for="container-package">Loaded code:</label>
<input
type="text"
id="container-package"
value="Loading..."
size="40"
title="Package ID currently loaded in container context"
disabled
/>
<br />
<input
id="upgrade-btn"
type="button"
value="Upgrade to 2.0.0"
title="Upgrade container code via submitting new major version proposal"
/>
<br />
</div>
<div id="content"></div>
<script>
var expandBtn = document.getElementsByClassName("collapsible")[0];
expandBtn.addEventListener("click", function () {
this.classList.toggle("active");
var content = this.nextElementSibling;
content.style.maxHeight = content.style.maxHeight
? null
: content.scrollHeight + "px";
});
</script>
<script src="/dist/main.bundle.js"></script>
</body>
</html>