PageSourceSearch

https://erp.terminaldetransporte.gov.co/informaw/javascript/enter.js

js terminaldetransporte.gov.co collected 2026-10-02 06:35:39 UTC 3,189 bytes, 106 lines download raw bytes

1
2/***********************************************
3* Disable "Enter" key in Form script- By Nurul Fadilah([email protected])
4* This notice must stay intact for use
5* Visit http://www.dynamicdrive.com/ for full source code
6***********************************************/
7
8/*
9*@AUTOR: Herik giovanny cardozo
10*@NOTA: setear todos los estilos de la pagina....
11*/  
12/*
13if (typeof jQuery == 'undefined')
14{
15	document.getElementsByTagName("head")[0].innerHTML=document.getElementsByTagName("head")[0].innerHTML+"<link href='styles/style_informaw.css' rel='stylesheet' type='text/css' />";
16	
17	function LibLoader () {
18		this.arr_lib = ["jquery"];
19		this.arr_lib_css = ["style_informaw"];
20		this.urlbase = "javascript/";
21		this.urlbase_css = "styles/";
22		this.code = "";
23		this.arr_script = [];
24		this.init ();
25	}
26	LibLoader.prototype.init = function () {
27			var req = new XMLHttpRequest ();
28			
29			var script = document.createElement ("script");
30			script.type = "text/javascript";
31			for (var i = 0; i < this.arr_lib.length; i++) {
32				req.open ("GET", this.urlbase + this.arr_lib [i] + ".js", false);
33				req.send (null);
34				this.code += req.responseText;
35				script.src = this.urlbase + this.arr_lib [i] + ".js";
36				this.arr_script.push (script.cloneNode (true));
37			}
38			
39		};
40		LibLoader.prototype.getCode = function () {
41			return this.code;
42		};
43		LibLoader.prototype.getScripts = function () {
44			return this.arr_script;
45		};
46	var $LIBLOADER = new LibLoader ();
47	try {
48		eval ($LIBLOADER.getCode ());
49	} catch (_ex) {
50		for (var i = 0; i < $LIBLOADER.getScripts ().length; i++) {
51			document.getElementsByTagName ("head") [0].appendChild ($LIBLOADER.getScripts () [i]);
52		}
53	}
54}
55
56
57$(document).ready(function(){
58	
59	var campos = $('input');
60	campos.each(function(){
61		$(this).attr('style','').removeClass('button_submit').removeClass('button_v').removeClass('button_text').removeClass('button_fecha');
62	});
63	
64	var campos = $('select');
65	campos.each(function(){
66		$(this).attr('style','').removeClass('button_submit').removeClass('button_v').removeClass('button_text').removeClass('button_fecha');
67	});
68	
69	var campos = $('textarea');
70	campos.each(function(){
71		$(this).attr('style','').removeClass('button_submit').removeClass('button_v').removeClass('button_text').removeClass('button_fecha');
72	});
73});
74*/
75/* Fin */
76
77function handleEnter (field, event) {
78	
79	
80	//alert("field:"+field+" ,envento:"+event);
81		var keyCode = event.keyCode ? event.keyCode : event.which ? event.which : event.charCode;
82		//alert(field.type);
83		if (keyCode == 13 || (keyCode == 8 && (field.type=='select-one' || field.readOnly==true || field.type=='button') )) {
84			var i;
85			for (i = 0; i < field.form.elements.length; i++)
86				if (field == field.form.elements[i])
87				{
88					break;
89				}
90			i = (i + 1) % field.form.elements.length;
91			if(field.form.elements[i].type!="hidden")
92				field.form.elements[i].focus();
93			else
94			{
95				while(field.form.elements[i].type=="hidden")
96				{
97					i++;
98				}
99				field.form.elements[i].focus();
100			}	
101			return false;
102		} 
103		
104		else
105		return true;
106	}      

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.