File tree Expand file tree Collapse file tree 9 files changed +81
-5
lines changed Expand file tree Collapse file tree 9 files changed +81
-5
lines changed Original file line number Diff line number Diff line change @@ -508,4 +508,27 @@ span.new-feature-tag.beta {
508
508
509
509
.option-selection span : last-child {
510
510
border-inline-end : none;
511
+ }
512
+
513
+ /* Support */
514
+
515
+ .support-vid {
516
+ color : # ff9f00 !important ;
517
+ opacity : .5 ;
518
+ cursor : pointer;
519
+ position : relative;
520
+ top : -.25rem ;
521
+ margin-bottom : .25rem ;
522
+ display : block;
523
+ }
524
+
525
+ .support-vid : hover {
526
+ opacity : 1 ;
527
+ }
528
+
529
+ .support-vid img {
530
+ height : 1rem ;
531
+ margin-left : .25rem ;
532
+ position : relative;
533
+ top : .3rem ;
511
534
}
Original file line number Diff line number Diff line change @@ -679,6 +679,23 @@ async function getFeatures() {
679
679
languageData [ feature . id + "/description" ] ?. message || feature . description ;
680
680
div . appendChild ( p ) ;
681
681
682
+ if ( feature . support ?. yt ) {
683
+ let span = document . createElement ( "span" )
684
+ span . textContent = "How-To Video"
685
+ span . className = "support-vid"
686
+ span . dataset . url = feature . support . yt
687
+ span . addEventListener ( "click" , function ( ) {
688
+ let url = this . dataset . url
689
+ chrome . tabs . create ( {
690
+ url,
691
+ } )
692
+ } )
693
+ span . appendChild ( Object . assign ( document . createElement ( "img" ) , {
694
+ src : "/extras/icons/external.svg"
695
+ } ) )
696
+ div . appendChild ( span )
697
+ }
698
+
682
699
if ( feature . options ) {
683
700
for ( var optionPlace in feature . options ) {
684
701
var option = feature . options [ optionPlace ] ;
Original file line number Diff line number Diff line change @@ -887,4 +887,24 @@ body {
887
887
888
888
.option-selection span : last-child {
889
889
border-inline-end : none;
890
+ }
891
+ /* Support */
892
+
893
+ .support-vid {
894
+ color : # ff9f00 !important ;
895
+ opacity : .5 ;
896
+ cursor : pointer;
897
+ position : relative;
898
+ top : -.25rem ;
899
+ }
900
+
901
+ .support-vid : hover {
902
+ opacity : 1 ;
903
+ }
904
+
905
+ .support-vid img {
906
+ height : 1rem ;
907
+ margin-left : .25rem ;
908
+ position : relative;
909
+ top : .3rem ;
890
910
}
Original file line number Diff line number Diff line change 9
9
],
10
10
"type" : [" Editor" ],
11
11
"dynamic" : true ,
12
- "scripts" : [{ "file" : " script.js" , "runOn" : " /projects/*" }]
12
+ "scripts" : [{ "file" : " script.js" , "runOn" : " /projects/*" }],
13
+ "support" : {
14
+ "yt" : " https://youtu.be/gpH3VJvDTkc"
15
+ }
13
16
}
14
17
Original file line number Diff line number Diff line change 10
10
"tags" : [],
11
11
"scripts" : [{ "file" : " script.js" , "runOn" : " /projects/*" }],
12
12
"dynamic" : true ,
13
- "type" : [" Editor" ]
13
+ "type" : [" Editor" ],
14
+ "support" : {
15
+ "yt" : " https://youtu.be/6sl-Q0ZYYyQ"
16
+ }
14
17
}
Original file line number Diff line number Diff line change 61
61
}
62
62
]
63
63
}
64
- ]
64
+ ],
65
+ "support" : {
66
+ "yt" : " https://youtu.be/QIWxCXrD2-M"
67
+ }
65
68
}
Original file line number Diff line number Diff line change 12
12
"tags" : [" New" , " Featured" ],
13
13
"scripts" : [{ "file" : " script.js" , "runOn" : " /projects/*" }],
14
14
"styles" : [{ "file" : " style.css" , "runOn" : " /projects/*" }],
15
- "resources" : [{ "name" : " more-text-icon" , "path" : " /text.svg" }]
15
+ "resources" : [{ "name" : " more-text-icon" , "path" : " /text.svg" }],
16
+ "support" : {
17
+ "yt" : " https://youtu.be/zh3zsjBcz_M"
18
+ }
16
19
}
Original file line number Diff line number Diff line change 10
10
"type" : [" Editor" ],
11
11
"dynamic" : true ,
12
12
"scripts" : [{ "file" : " script.js" , "runOn" : " /projects/*" }],
13
- "styles" : [{ "file" : " style.css" , "runOn" : " /projects/*" }]
13
+ "styles" : [{ "file" : " style.css" , "runOn" : " /projects/*" }],
14
+ "support" : {
15
+ "yt" : " https://youtu.be/5S032vWPvd0"
16
+ }
14
17
}
You can’t perform that action at this time.
0 commit comments