1// to enable the enqueue of this optional JS file, 2// you'll have to uncomment a row in the functions.php file 3// just read the comments in there mate 4 5jQuery(function ($) { 6 const player = new Plyr(".hw-09-06 video", { 7 autoplay: false, 8 hideControls: true, // Optional: Controls erst beim Play zeigen 9 }); 10 11 $(".hw-plyr").each(function () { 12 // 'this' bezieht sich hier auf das aktuelle Video-Element in der Schleife 13 const player = new Plyr(this, { 14 autoplay: false, 15 hideControls: true, 16 }); 17 18 // Optional: Du kannst die Instanz im Element speichern, 19 // falls du später darauf zugreifen musst 20 $(this).data("plyr-instance", player); 21 }); 22});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.