PageSourceSearch

https://ctxt.es/themes/publication_1/theme_1/new/assets/js/main.js?1446

js ctxt.es collected 2026-09-24 08:50:42 UTC 1,446 bytes, 49 lines download raw bytes

1'use strict';
2
3var NUMEROS = {
4
5  anchoItem : 0,
6  cuantos : 0,
7  contenedor : null,
8  moviendo : false,
9  seleccionado : 0,
10
11  inicio : function() {
12    NUMEROS.contenedor = $('.numeros');
13    NUMEROS.cuantos = NUMEROS.contenedor.find('div li').length;
14    NUMEROS.anchoItem = NUMEROS.contenedor.find('div li').width();
15    NUMEROS.seleccionado = NUMEROS.contenedor.find('div .seleccionado').index();
16    NUMEROS.contenedor.find('div ol').width(NUMEROS.cuantos*NUMEROS.anchoItem).css('left',-(NUMEROS.seleccionado*NUMEROS.anchoItem));
17    NUMEROS.contenedor.find('> button').on('click', function() {
18      NUMEROS.mover($(this).val());
19    });
20  },
21
22  mover : function(sentido) {
23    if (!NUMEROS.moviendo) {
24      if (sentido === 'anterior') {
25        if (NUMEROS.seleccionado > 0) {
26          NUMEROS.moviendo = true;
27          NUMEROS.contenedor.find('div ol').animate({ left: '+=' + NUMEROS.anchoItem }, 400, function() {
28            NUMEROS.seleccionado--;
29            NUMEROS.moviendo = false;
30          });
31        }
32      } else if (sentido === 'siguiente') {
33        if (NUMEROS.seleccionado < (NUMEROS.cuantos-1)) {
34          NUMEROS.moviendo = true;
35          NUMEROS.contenedor.find('div ol').animate({ left: '-=' + NUMEROS.anchoItem }, 400, function() {
36            NUMEROS.seleccionado++;
37            NUMEROS.moviendo = false;
38          });
39        }
40      } 
41    }
42  }
43
44};
45
46$(document).ready(function() {
47  NUMEROS.inicio();
48});
49

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.