File tree Expand file tree Collapse file tree 3 files changed +31
-3
lines changed Expand file tree Collapse file tree 3 files changed +31
-3
lines changed Original file line number Diff line number Diff line change 6
6
}
7
7
var cardsView = document . getElementById ( 'cards-view' ) ;
8
8
9
+ var icon = '<svg' +
10
+ ' xmlns="http://www.w3.org/2000/svg"' +
11
+ ' viewBox="0 0 256 256"' +
12
+ ' height="100%"' +
13
+ ' width="100%">' +
14
+ ' <rect' +
15
+ ' style="fill:#ffffff"' +
16
+ ' width="54.468082"' +
17
+ ' height="176.65498"' +
18
+ ' x="0"' +
19
+ ' y="79.345016" />' +
20
+ ' <rect' +
21
+ ' style="fill:#ffffff"' +
22
+ ' width="54.468082"' +
23
+ ' height="176.65498"' +
24
+ ' x="201.53192"' +
25
+ ' y="7.6293945e-06" />' +
26
+ ' <rect' +
27
+ ' style="fill:#ffffff"' +
28
+ ' width="54.468082"' +
29
+ ' height="176.65498"' +
30
+ ' x="99.858162"' +
31
+ ' y="37.42691" />' +
32
+ ' </g>' +
33
+ '</svg>' ;
34
+
9
35
var button = document . createElement ( 'button' ) ;
10
36
// set it as type to prevent form submit.
11
37
button . type = 'button' ;
12
- button . textContent = '🈳' ;
13
- button . style . background = 'none ' ;
38
+ button . innerHTML = icon ;
39
+ button . style . background = '#0095DD ' ;
14
40
button . style . border = 'none' ;
41
+ button . style . borderRadius = '1.5rem' ;
15
42
button . style . outline = 'none' ;
16
- button . style . fontSize = '3rem' ;
43
+ button . style . width = '3rem' ;
44
+ button . style . height = '3rem' ;
17
45
button . style . position = 'fixed' ;
18
46
button . style . top = '3rem' ;
19
47
button . style . right = '3rem' ;
You can’t perform that action at this time.
0 commit comments