1var cargo_video = false; 2 3function actualizarVideo(menor,mayor) { 4if (cargo_video==false) 5{ 6 var width = window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth; 7 var video = document.getElementById('miVideo'); 8 if (width < 768) { // Por ejemplo, para pantallas pequeñas 9 video.src = menor; 10 } else { // Para pantallas más grandes 11 video.src = mayor; 12 } 13 14 video.load(); 15 video.play(); 16 cargo_video=true; 17 console.log(video.src); 18} 19 20 21} 22 23 24 25document.addEventListener('DOMContentLoaded', function() { 26 var toggleButton = document.getElementById('toggleButton'); 27 toggleButton.addEventListener('click', function() { 28 var fullWidthMenu = document.querySelector('.aside'); 29 fullWidthMenu.style.display = (fullWidthMenu.style.display === 'none' || fullWidthMenu.style.display === '') ? 'block' : 'none'; 30 /* 31 var chatsuggest1 = document.querySelector('.chatsuggest1'); 32 var rowpregunta = document.querySelector('.rowpregunta'); 33 var barra = document.querySelector('.barra'); 34 35 if (fullWidthMenu.style.display ==='block') 36 { 37 chatsuggest1.style.position = "relative"; 38 rowpregunta.style.position = "relative"; 39 barra.style.position = "relative"; 40 chatsuggest1.style.left = "230px"; 41 rowpregunta.style.left = "230px"; 42 barra.style.left = "230px"; 43 } 44 else 45 { 46 chatsuggest1.style.position = "relative"; 47 rowpregunta.style.position = "relative"; 48 barra.style.position = "relative"; 49 chatsuggest1.style.left = "0px"; 50 rowpregunta.style.left = "0px"; 51 barra.style.left = "0px"; 52 } 53 */ 54 }); 55}); 56 57/* 58 59document.addEventListener('DOMContentLoaded', function() { 60 var toggleButton = document.getElementById('toggleButton'); 61 var grayScreen = document.getElementById('gray-screen'); 62 var mobileMenu = document.getElementById('mobile-menu'); 63 var fullWidthMenu = document.querySelector('.full-width-menu'); 64 65 toggleButton.addEventListener('click', function() { 66 // Alternar la visibilidad del menú al hacer clic en el botón 67 fullWidthMenu.style.display = (fullWidthMenu.style.display === 'none' || fullWidthMenu.style.display === '') ? 'block' : 'none'; 68 grayScreen.style.display = (grayScreen.style.display === 'none' || grayScreen.style.display === '') ? 'block' : 'none'; 69 }); 70 grayScreen.addEventListener('click', function() { 71 // Alternar la visibilidad del menú al hacer clic en el botón 72 fullWidthMenu.style.display = (fullWidthMenu.style.display === 'none' || fullWidthMenu.style.display === '') ? 'block' : 'none'; 73 grayScreen.style.display = (grayScreen.style.display === 'none' || grayScreen.style.display === '') ? 'block' : 'none'; 74 }); 75}); 76*/
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.