PageSourceSearch

https://www.noteboardapp.com/js/init.js?v=3

js noteboardapp.com collected 2026-10-01 13:01:26 UTC 3,408 bytes, 116 lines download raw bytes

1(function($){
2  $(function(){
3
4    $('.sidenav').sidenav();
5    initMaterializeComponents();
6    // setTimeout(activarClaseActivaInputs,2000);
7  }); // end of document ready
8})(jQuery); // end of jQuery name space
9
10$(document).ready(function() {
11  $.ajaxSetup({headers: { 'x-header': 'xx4' }});
12  $('.menu-desconectar').on('click', function() {
13    localStorage.clear();
14    window.location.href = 'salir.php';
15  });
16
17  var cookieContent = {};
18
19  if (idiomaEsp(navigator.language)) {
20    cookieContent = {
21      "message": "Esta web utiliza cookies para garantizar que obtenga la mejor experiencia.",
22      "dismiss": "Ok, no mostrar más",
23      "link": "Leer más"
24      // "href": "www.kk.com"
25    }
26  }
27
28  // https://cookieconsent.osano.com
29  window.cookieconsent.initialise({
30    "palette": {
31      "popup": {
32        "background": "#000"
33      },
34      "button": {
35        "background": "#f1d600"
36      },
37    },
38    "theme": "classic",
39    "content": cookieContent,
40    "position": "bottom"
41  });
42})
43
44
45function initMaterializeComponents() {
46  $(".dropdown-trigger").dropdown();
47  const textFields = document.querySelectorAll('.mdc-text-field');
48  const selectFields = document.querySelectorAll('.mdc-select');
49
50  for (const textField of textFields) {
51    if ($(textField).find('input').length > 0 || $(textField).find('textarea').length > 0) {
52      try {
53        mdc.textField.MDCTextField.attachTo(textField);
54      } catch (e) {
55        console.log(e)
56      }
57    }
58  }
59
60  for (const selectField of selectFields) {
61    try {
62      mdc.select.MDCSelect.attachTo(selectField);
63
64      // apaño para solucionar que la label flotante mientras no tiene el foco no tiene width
65      $(selectField).find('.mdc-notched-outline__notch').width('auto');
66      // setTimeout(function() {
67      //   var labelWidth = $(selectField).find('.mdc-notched-outline__notch .mdc-floating-label').width();
68      //   $(selectField).find('.mdc-notched-outline__notch').width(labelWidth);
69      // }, 100);
70    } catch (e) {
71      console.log(e)
72    }
73  }
74
75  activarClaseActivaInputs();
76}
77
78
79function idiomaEsp(idioma) {
80  return (navigator.language == 'es' || navigator.language == 'ca' || navigator.language == 'es-419' || navigator.language == 'es-ES')
81}
82
83function HayEspacios(pasw){
84  var cont=0;
85  while (cont<pasw.length){
86      if (pasw.charAt(cont) == ' '){
87          return true;
88      }
89      cont++;
90      }
91  return false;
92}
93
94function muestraMensajeModal(texto, textoIng) {
95if (textoIng) {
96  if (idiomaEsp(navigator.language)) {
97    $('.mensaje-modal').text(texto).fadeOut(500).fadeIn(500);
98  } else {
99    $('.mensaje-modal').text(textoIng).fadeOut(500).fadeIn(500);
100  }
101} else {
102  $('.mensaje-modal').text(texto).fadeOut(500).fadeIn(500);
103}
104}
105
106function activarClaseActivaInputs() {
107  $('input[type=text], input[type=password], input[type=email], input[type=url], input[type=tel], input[type=number], input[type=search], input[type=date], input[type=time], textarea').each(function (element, i) {
108    if ($(this).val()) {
109      $(this).parent().find('.mdc-notched-outline').addClass('mdc-notched-outline--notched');
110      $(this).parent().find('label').addClass('mdc-floating-label--float-above');
111    }
112    // else {
113    //     $(this).siblings('label').removeClass('active');
114    // }
115  });
116}

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.