Add css styling
This commit is contained in:
@@ -27,12 +27,14 @@ function inject_controls() {
|
|||||||
find_controls().then(function(controls) {
|
find_controls().then(function(controls) {
|
||||||
var speed_control = document.createElement('select');
|
var speed_control = document.createElement('select');
|
||||||
speed_control.style.cssText = `
|
speed_control.style.cssText = `
|
||||||
border:none;
|
border: none;
|
||||||
|
cursor: pointer;
|
||||||
|
background: none;
|
||||||
-moz-appearance: none;
|
-moz-appearance: none;
|
||||||
-webkit-appearance: none;
|
-webkit-appearance: none;
|
||||||
appearance: none;
|
appearance: none;
|
||||||
cursor: pointer;
|
font-size: 1.96em;
|
||||||
background: none;
|
padding-bottom: 0.84em;
|
||||||
`;
|
`;
|
||||||
speed_control.onchange = function() {
|
speed_control.onchange = function() {
|
||||||
document.querySelector('.VideoContainer video').playbackRate = this.value;
|
document.querySelector('.VideoContainer video').playbackRate = this.value;
|
||||||
|
|||||||
Reference in New Issue
Block a user