first commit
This commit is contained in:
18
templates/instytut_dendrologii_/js/mod3.js
Normal file
18
templates/instytut_dendrologii_/js/mod3.js
Normal file
@@ -0,0 +1,18 @@
|
||||
window.addEventListener('load', () => {
|
||||
playVideo();
|
||||
})
|
||||
|
||||
function playVideo(){
|
||||
|
||||
document.querySelector('.green-buttons .ogladaj1').addEventListener('click', () => {
|
||||
var link1=document.querySelector('.green-buttons .ogladaj1 a').getAttribute('href');
|
||||
console.log('To link video'+link1);
|
||||
})
|
||||
|
||||
document.querySelector('.green-buttons .ogladaj2').addEventListener('click', () => {
|
||||
var link=document.querySelector('.green-buttons .ogladaj2 a').getAttribute('href');
|
||||
console.log('To link video'+link);
|
||||
})
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user