PageSourceSearch

https://defesacivil.blumenau.sc.gov.br/static/imgsplay/imgsplay.js

js blumenau.sc.gov.br collected 2026-10-01 11:43:25 UTC 1,063 bytes, 53 lines download raw bytes

1var slideIndex = 1;
2showDivs(slideIndex);
3
4function plusDivs(n) {
5  showDivs(slideIndex += n);
6}
7
8function setIconBtPlay(){
9  let bt = document.getElementById('btplaysat');
10  if(idPlayer){
11    bt.className = 'fa fa-stop';
12  }else{
13    bt.className = 'fa fa-play';
14  }
15}
16
17function currentDiv(n) {
18  showDivs(slideIndex = n);
19}
20
21function showDivs(n) {
22  var i;
23  var x = document.getElementsByClassName("mySlides");
24  var dots = document.getElementsByClassName("demo");
25  if (n > x.length) {slideIndex = 1}
26  if (n < 1) {slideIndex = x.length}
27  for (i = 0; i < x.length; i++) {
28    x[i].style.display = "none";
29  }
30  for (i = 0; i < dots.length; i++) {
31    dots[i].className = dots[i].className.replace(" w3-red", "");
32  }
33  x[slideIndex-1].style.display = "block";
34  dots[slideIndex-1].className += " w3-red";
35}
36
37function getTotalImgs(){
38	return 7;
39}
40
41var idPlayer=false;
42
43function play() {
44  if(idPlayer){
45	clearInterval(idPlayer);
46	idPlayer=false;
47  }else{
48	plusDivs(1);
49	idPlayer = setInterval(function(){ plusDivs(1); }, 500);
50  }
51  setIconBtPlay();
52}
53play();

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.