This repository has been archived by the owner on Aug 23, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
example.html.example
70 lines (54 loc) · 1.92 KB
/
example.html.example
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
<!DOCTYPE html>
<html>
<head>
<title>GoInstant: User List Example: defaults</title>
<script src="https://cdn.goinstant.net/v1/platform.min.js"></script>
<script src="https://cdn.goinstant.net/widgets/user-colors/latest/user-colors.min.js"></script>
<script src="http://code.jquery.com/jquery-1.10.2.js"></script>
<script src="../node_modules/lodash/lodash.js"></script>
<!-- Config -->
<script src="../config/config.js"></script>
<!-- Widget Example Page -->
<link rel="stylesheet" href="../node_modules/widget-examples/css/examples.css" />
<script src="../node_modules/widget-examples/js/template.js"></script>
<script src="../node_modules/widget-examples/js/examples.js"></script>
<!-- GoInstant Widget Build -->
<link rel="stylesheet" href="../build/build.css" />
<script src="../build/build.js"></script>
</head>
<body>
<script type="text/javascript">
// Define the example
function widgetTest(room) {
/** Initialize widget(s) for example here
*
* Also include any example specific code needed to ensure the widget
* behaves as expected.
*/
}
// Load the example test page
$(document).ready(function() {
// Replace 'Widget Name' with the widget being tested.
// Replace 'example description' with a short description of this example.
var config = {
name: 'Widget Name',
desc: 'example description',
test: widgetTest
};
var example = new Example(config);
example.load();
});
</script>
<div id="common"></div>
<div id="expected">
<p>
The expected behaviour of this page is as follows:
</p>
<ul>
<!-- Place expected results here -->
<li>Expected <strong>results</strong> go here.</li>
</ul>
</div>
<!-- Example specific HTML can go here -->
</body>
</html>