PageSourceSearch

http://partaloa.es/Servicios/cmsdipro/index.nsf/cmsdipro.js

js partaloa.es collected 2026-09-26 01:40:32 UTC 3,904 bytes, 127 lines download raw bytes

1function createEllipsis ( containerId,textoId ) {
2	    $container = $(containerId);
3	    var containerHeight = $container.height();
4	    var $text = $container.find(textoId);
5
6	    while ( $text.outerHeight() > containerHeight ) {
7	        $text.text(function (index, text) {
8	            return text.replace(/\W*\s(\S)*$/, '...');
9	        });
10	    }
11	  }
12function createEllipsisnum ( containerId,lon ) {
13	$(containerId).each(function(){
14		var longitud=lon;
15		if($(this).text().length > longitud){
16				var texto=$(this).text().substring(0,longitud);
17					var indiceUltimoEspacio= texto.lastIndexOf(' ');
18					texto=texto.substring(0,indiceUltimoEspacio) +'...';
19
20					var primeraParte = '' + texto + '';
21					var segundaParte = '' + $(this).text().substring(indiceUltimoEspacio,$(this).text().length - 1) + '';
22
23					$(this).html(primeraParte);
24				
25
26				};
27
28				});
29  }
30
31
32jQuery(document).ready(function($) {
33//AUTOR: Antonio Restoy Carvajal
34//Detecta CTRL+FUNCIONES
35$.ctrlFXX = function(key, callback, args) {
36    var isCtrl = false;
37    $(document).keydown(function(e) {
38        if(!args) args=[]; // IE barks when args is null
39
40        if(e.ctrlKey) isCtrl = true;
41        if(e.keyCode == key && isCtrl) {
42            callback.apply(this, args);
43            return false;
44        }
45    }).keyup(function(e) {
46        if(e.ctrlKey) isCtrl = false;
47    });
48};
49
50//DETECTA CTRL+ALT+UNA LETRAS
51$.ctrlAltAz = function(key, callback, args) {
52    var isCtrl = false;
53    var isAlt = false;
54    $(document).keydown(function(e) {
55        if(!args) args=[]; // IE barks when args is null
56        //alert(e.keyCode);
57        if(e.ctrlKey) isCtrl = true;
58        if(e.altKey) isAlt = true;
59        //console.log("Salida -->"+isCtrl+" "+isAlt);
60        if(e.keyCode == key && isCtrl && isAlt) {
61            callback.apply(this, args);
62            return false;
63        }
64    }).keyup(function(e) {
65        if(e.ctrlKey) isCtrl = false;
66        if(e.altKey) isAlt = false;
67    });
68};
69
70$.ctrlFXX('123', function() {    
71	var inicio=escape(window.location.href);
72    //self.location="/Servicios/Suscripciones/htmlmime.nsf/index.html?OpenPage&origen="+inicio;
73    self.location="/Servicios/cmsdipro/cmsdipro.nsf/index.xsp?origen="+inicio;
74});
75
76//CTRL+ALT+M
77$.ctrlAltAz('77', function() {    
78	//var str=window.location.href;
79	var str=cmsxp_url;		
80	var inicio=str;
81	
82	var n = str.indexOf("#");	
83	if (n>0){
84		inicio=str.substring(0, n);
85	}
86	inicio=inicio.replace("&mod=1", "");  
87	inicio=inicio.replace("&tp=1", "");
88	
89	//self.location="/Servicios/Suscripciones/htmlmime.nsf/index.html?OpenPage&origen="+inicio
90	self.location=inicio+"&mod=1";
91});
92
93//CTRL+ALT+T
94$.ctrlAltAz('84', function() {    
95	//var str=window.location.href;
96	var str=cmsxp_url;		
97	var inicio=str;
98	var n = str.indexOf("#");	
99	if (n>0){
100		inicio=str.substring(0, n);
101	}
102	inicio=inicio.replace("&tp=1", "");
103	inicio=inicio.replace("&mod=1", "");
104	//self.location="/Servicios/Suscripciones/htmlmime.nsf/index.html?OpenPage&origen="+inicio
105	self.location=inicio+"&tp=1";
106});
107
108// CTRL+ALT+W
109$.ctrlAltAz('87', function() {    
110	var inicio=escape(window.location.href);
111	 //var URL = $(location).attr('href');
112			var vars = [], hash;
113			    var q = document.URL.split('?')[1];
114			    if(q != undefined){
115			        q = q.split('&');
116			        for(var i = 0; i < q.length; i++){
117			            hash = q[i].split('=');
118			            vars.push(hash[1]);
119			            vars[hash[0]] = hash[1];
120			        }
121			}
122	var str=cmsxp_pagina;
123	//self.location="/Servicios/Suscripciones/htmlmime.nsf/index.html?OpenPage&origen="+inicio
124	//self.location="/Servicios/cmsdipro/index.nsf/redirecttoconfi.xsp?p="+vars["p"]+"&origen="+inicio;
125	self.location="/Servicios/cmsdipro/index.nsf/redirecttoconfi.xsp?p="+str+"&origen="+inicio;
126});
127});

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.