-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathstandalone.html
38 lines (33 loc) · 1006 Bytes
/
standalone.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
<html>
<head>
<title></title>
<link href="../dist/index.css" rel="stylesheet" type="text/css" />
<script src="https://unpkg.com/react@15/dist/react.js"></script>
<script src="https://unpkg.com/react-dom@15/dist/react-dom.js"></script>
<script src="../dist/index.js"></script>
</head>
<body>
<div id="oneNotePicker"></div>
<script>
var mockGlobals = {
callbacks: {
onNotebookSelected: function (value) {
console.error(value)
}
}
};
var mockNotebooks = [
{
name: "NAME",
id: "ID",
expanded: true,
sectionGroups: [],
sections: []
}
];
ReactDOM.render(
React.createElement(OneNotePicker.OneNotePicker, { globals: mockGlobals, notebooks: mockNotebooks }, null),
document.getElementById('oneNotePicker'));
</script>
</body>
</html>