-
Notifications
You must be signed in to change notification settings - Fork 2
/
demo.html
47 lines (43 loc) · 1.26 KB
/
demo.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>bmc demo</title>
<script async src="./dist/0.9.0/bmc.umd.min.js"></script>
<script>
(function(w, f) {
var l = f + 'Queue'; w[l] = w[l] || [];
w[f] = w[f] || function() { w[l].push(arguments); };
})(window, 'bmc');
</script>
<link rel="stylesheet" href="./dist/0.9.0/bmc.css">
</head>
<body>
<script>
bmc('configure', {
graphqlUri: 'https://caprica.graphql-staging.base-cms.io',
tenantKey: 'acbm_fcp',
baseApiUri: 'https://manage.forconstructionpros.com',
debug: true,
});
</script>
<div id="bmc-datetime-portal" class="bmc-portal"></div>
<h1>Scheduling</h1>
<div id="component-scheduling"></div>
<h1>Primary Section</h1>
<div id="component-primary-section"></div>
<script>
bmc('loadComponent', {
name: 'scheduling',
el: '#component-scheduling',
props: { contentId: 21091788 },
});
bmc('loadComponent', {
name: 'primary-section',
el: '#component-primary-section',
props: { sectionId: 54320 },
on: { change: (section) => console.log('primary-section change', section) }
});
</script>
</body>
</html>