PageSourceSearch

http://deexpedicion.com/lenin2010/es/js/switchStyle.js

js deexpedicion.com collected 2026-10-02 14:26:28 UTC 766 bytes, 21 lines download raw bytes

1function estilo(titulo) {
2var arrayLink = document.getElementsByTagName('link');
3for(var i = 0; i < arrayLink.length; i++) {
4// Sólo aquellas etiquetas link que hacen referencia a un estilo
5// y que no sea para impresión
6if(arrayLink[i].getAttribute('rel') != null &&
7arrayLink[i].getAttribute('rel').indexOf('stylesheet') != -1 &&
8arrayLink[i].getAttribute('media') != 'print') {
9// Si tiene título es un estilo preferido o alternativo,
10// si no tiene título es un estilo
11// predeterminado y siempre tiene que utilizarse
12if(arrayLink[i].getAttribute('title') != null &&
13arrayLink[i].getAttribute('title').length > 0) {
14if(arrayLink[i].getAttribute('title') == titulo)
15arrayLink[i].disabled = false;
16else
17arrayLink[i].disabled = true;
18}
19}
20}
21}

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.