You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
803 B
JavaScript
40 lines
803 B
JavaScript
class View {
|
|
constructor() {
|
|
this.init();
|
|
}
|
|
|
|
init() {
|
|
//this.colorTogglePlaySVG();
|
|
|
|
this.videoPlayer = new VideoPlayer();
|
|
|
|
|
|
/* Obarvení aktivního komentáře - dát do special metody */
|
|
var mySVG = document.getElementsByClassName("activeIcon")[0];
|
|
var svgDoc;
|
|
mySVG.addEventListener(
|
|
"load",
|
|
function () {
|
|
svgDoc = mySVG.contentDocument;
|
|
svgDoc.getElementById("path4").style.fill = "#ffa800";
|
|
},
|
|
false
|
|
);
|
|
}
|
|
|
|
|
|
|
|
/* colorTogglePlaySVG() {
|
|
var playSVG = document.getElementById("togglePlayIcon");
|
|
var svgDoc;
|
|
playSVG.addEventListener(
|
|
"load",
|
|
function () {
|
|
svgDoc = playSVG.contentDocument;
|
|
svgDoc.getElementById("path4").style.fill = "#ffa800";
|
|
},
|
|
false
|
|
);
|
|
} */
|
|
}
|