-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.js
118 lines (117 loc) · 8.97 KB
/
main.js
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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
let icon =
'<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"\n' +
'\t viewBox="0 0 28.3 28.3" style="enable-background:new 0 0 28.3 28.3;" xml:space="preserve">\n' +
'<style type="text/css">\n' +
'\t.st0{fill:#F6F6F6;}\n' +
'\t.st1{fill:#010101;}\n' +
'\t.st2{fill:#F5F5F5;}\n' +
'\t.st3{fill:#020202;}\n' +
'\t.st4{fill:#FEFEFE;}\n' +
'\t.st5{fill:#F3F3F3;}\n' +
'\t.st6{fill:#FDFDFD;}\n' +
'\t.st7{fill:#FCFCFC;}\n' +
'\t.st8{fill:#FFFFFF;stroke:#000000;stroke-miterlimit:10;}\n' +
'\t.st9{fill:none;stroke:#000000;stroke-miterlimit:10;}\n' +
'\t.st10{fill:url(#SVGID_1_);}\n' +
'\t.st11{fill:url(#SVGID_2_);}\n' +
'\t.st12{fill:url(#SVGID_3_);}\n' +
'\t.st13{fill:url(#SVGID_4_);}\n' +
'\t.st14{fill:url(#SVGID_5_);}\n' +
'\t.st15{fill:url(#SVGID_6_);}\n' +
'\t.st16{fill:url(#SVGID_7_);}\n' +
'\t.st17{fill:url(#SVGID_8_);}\n' +
'\t.st18{fill:url(#SVGID_9_);}\n' +
'\t.st19{fill:url(#SVGID_10_);}\n' +
'\t.st20{fill:url(#SVGID_11_);}\n' +
'\t.st21{fill:url(#SVGID_12_);}\n' +
'\t.st22{fill:url(#SVGID_13_);}\n' +
'\t.st23{fill:#CA368D;}\n' +
'\t.st24{fill:#79226C;}\n' +
'\t.st25{fill:url(#SVGID_14_);}\n' +
'\t.st26{fill:url(#SVGID_15_);}\n' +
'\t.st27{fill:url(#SVGID_16_);}\n' +
'\t.st28{fill:url(#SVGID_17_);}\n' +
'\t.st29{fill:url(#SVGID_18_);}\n' +
'\t.st30{fill:url(#SVGID_19_);}\n' +
'\t.st31{fill:url(#SVGID_20_);}\n' +
'\t.st32{fill:url(#SVGID_21_);}\n' +
'\t.st33{fill:url(#SVGID_22_);}\n' +
'\t.st34{fill:url(#SVGID_23_);}\n' +
'\t.st35{fill:url(#SVGID_24_);}\n' +
'\t.st36{fill:url(#SVGID_25_);}\n' +
'\t.st37{opacity:0.8;}\n' +
'\t.st38{fill:#FFFFFF;}\n' +
'</style>\n' +
'<radialGradient id="SVGID_1_" cx="14.6777" cy="14.3128" r="12.1968" gradientUnits="userSpaceOnUse">\n' +
'\t<stop offset="0" style="stop-color:#08F5FF"/>\n' +
'\t<stop offset="1" style="stop-color:#580DBF"/>\n' +
'</radialGradient>\n' +
'<path class="st10" d="M11.1,15.8c-0.1-0.1-0.2-0.1-0.3-0.2c-0.1,0-0.2-0.1-0.3,0c-0.2,0-0.4,0.2-0.4,0.4c0,0.3,0.1,0.5,0.2,0.8\n' +
'\tc0.2,0.4,0.4,0.8,0.8,1.1c0.1,0.1,0.1,0.1,0.2,0.2c0.4,0.2,0.8,0,0.8-0.5c0-0.1,0-0.1,0-0.2C11.9,16.8,11.5,16.2,11.1,15.8z\n' +
'\t M10.6,16.1c0.4,0.2,0.9,1.1,0.9,1.5C11.2,17.5,10.6,16.5,10.6,16.1z M13.5,15.7c-0.4,0-0.8,0.3-0.8,0.8c0,0.4,0.3,0.8,0.8,0.8\n' +
'\tc0.4,0,0.8-0.3,0.8-0.8C14.3,16,14,15.7,13.5,15.7z M13.5,16.7c-0.1,0-0.3-0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-0.2-0.8c-0.3-0.1-0.5-0.2-0.8-0.2c-0.4,0-0.9,0-1.3,0.1\n' +
'\tc-0.1,0-0.3,0.1-0.4,0.2c-0.2,0.2-0.2,0.5,0,0.6c0.2,0.2,0.4,0.2,0.7,0.3c0.1,0,0.2,0,0.3,0c-2.9,0.2-5.5-1.9-5.9-4.8\n' +
'\tc-0.5-3.2,1.7-6,4.7-6.5c3.2-0.5,6,1.6,6.6,4.5C21.4,16.8,19.4,19.4,17.1,20.1z M26.2,20.3c-0.1,0.3-0.4,0.6-0.8,0.6\n' +
'\tc-0.5,0-0.8-0.4-0.8-0.9c0-0.1,0-0.1,0.1-0.1c0.1-0.1,0.1-0.1,0.1-0.2c0-0.1,0-0.1,0.1-0.1c0.3-0.2,0.6-0.3,1-0.1\n' +
'\tC26.2,19.6,26.3,20,26.2,20.3z M20.3,12.9c-0.2-0.3-0.5-0.3-0.8,0c-0.1,0.1-0.1,0.2-0.2,0.3c-0.1,0.4-0.2,0.8-0.2,1.2\n' +
'\tc0,0.1,0,0.3,0,0.4c0,0.1,0,0.2,0,0.3c0,0.2,0.1,0.5,0.3,0.7c0.2,0.3,0.5,0.3,0.8,0c0.1-0.1,0.2-0.3,0.2-0.4c0.2-0.7,0.2-1.3,0-2\n' +
'\tC20.5,13.3,20.4,13.1,20.3,12.9z M19.9,15.6c-0.3-0.4-0.3-1.8,0-2.3C20.2,14.1,20.2,14.8,19.9,15.6z"/>\n' +
'</svg>'
miro.onReady(() => {
miro.initialize({
extensionPoints: {
bottomBar: {
title: 'Pandemic Controller',
svgIcon: icon,
positionPriority: 1,
onClick: () => {
miro.board.ui.openLeftSidebar('sidebar.html')
},
},
},
})
})