PageSourceSearch

https://www.generacionx.es/js/LightBoxImgsArticulos.js?v=001.505

js generacionx.es collected 2026-10-03 21:42:07 UTC 2,443 bytes, 107 lines download raw bytes

1// Open the Modal
2function openModalLightBox() {
3
4    document.getElementById("LightBoxImgs").style.display = "block";
5
6    unloadScrollBars();
7}
8
9// Close the Modal
10function closeModalLightBox() {
11
12    slideIndexLightBox = 0;
13
14    document.getElementById("LightBoxImgs").style.display = "none";
15
16    reloadScrollBars();
17}
18
19
20
21function closeImgPrincipalInLightBox() {
22
23    document.getElementById("dvImgPrincipalInLightBox").style.display = "none";
24    reloadScrollBars();
25
26}
27
28
29var slideIndexLightBox = 0;
30
31// Next/previous controls
32function plusSlidesLightBox(n) {
33    showSlidesLightBox(slideIndexLightBox += n);
34}
35
36// Thumbnail image controls
37function currentSlideLightBox(n) {
38    showSlidesLightBox(slideIndexLightBox = n);
39}
40
41function showSlidesLightBox(n) {
42
43    var slidesLightBox = document.getElementsByClassName("mySlidesLightBox");
44
45    var dotsLightBox = document.getElementsByClassName("demoLightBox");
46
47    var captionTextLightBox = document.getElementById("captionLightBox");
48
49    if (n > slidesLightBox.length) {
50        slideIndexLightBox = 1
51    }
52
53    if (n < 1) {
54        slideIndexLightBox = slidesLightBox.length
55    }
56
57
58    var i;
59    for (i = 0; i < slidesLightBox.length; i++) {
60        slidesLightBox[i].style.display = "none";
61    }
62    
63
64    if (slideIndexLightBox == 0) {
65
66        slidesLightBox[n - 1].style.display = "block";
67
68        slideIndexLightBox = 1;
69    }
70    else {
71
72        slidesLightBox[slideIndexLightBox - 1].style.display = "block";
73    }
74        
75}
76
77
78
79function showImgPrincipalInLightBox() {
80
81 
82    imgLibro = document.getElementById("imgLibro").getAttribute("src");
83
84   
85    if (document.getElementById("idd").value == "40") {
86
87        if (document.getElementById("imgSecundarias") != null) {
88
89            imgLibro = document.getElementById("imgSecundarias").children[2].children[1].children[0].children[0].getAttribute("src");
90
91            document.getElementById("ImgPrincipalInLightBox").setAttribute("src", imgLibro);
92
93        }
94        else
95        {
96            document.getElementById("ImgPrincipalInLightBox").setAttribute("src", imgLibro);
97        }
98    }
99    else
100    {
101        document.getElementById("ImgPrincipalInLightBox").setAttribute("src", imgLibro);
102    }
103
104    document.getElementById("dvImgPrincipalInLightBox").style.display = "block";
105
106    unloadScrollBars();
107}

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.