PageSourceSearch

https://drypoint.org/lr.js

js drypoint.org collected 2026-10-02 14:03:25 UTC 2,437 bytes, 73 lines download raw bytes

1//
2// LINK REDIRECTOR
3// Copyright (c)1999 by Predrag Supurovic
4// All rights reserved
5//
6
7topdir = '/html/'
8
9function ldd(url,dir) {
10	this.url = url
11	this.dir = dir
12}
13
14ld = new Array()
15ld[0] = new ldd ('http://www.datavoyage.com','dv')
16ld[1] = new ldd ('http://www.uzice.net','uzicenet')
17ld[2] = new ldd ('http://www.seval.co.yu','seval')
18ld[3] = new ldd ('http://www.bonex.co.yu','bonex')
19ld[4] = new ldd ('http://www.motomat.com','motomat')
20ld[5] = new ldd ('http://www.motomat.co.yu','motomat')
21ld[6] = new ldd ('http://www.luna.co.yu','luna')
22ld[7] = new ldd ('http://www.drypoint.org.yu','drypoint')
23ld[8] = new ldd ('http://www.tv5-ue.co.yu','tv5')
24ld[9] = new ldd ('http://www.coppersev.com','coppersev')
25ld[10] = new ldd ('http://www.uzice.org.yu','uzicenet')
26ld[11] = new ldd ('http://www.sirogojno.org.yu','sirogojno')
27ld[12] = new ldd ('http://www.zlatne-ruke.co.yu','zlatneruke')
28ld[13] = new ldd ('http://www.kondor.co.yu','kondor')
29ld[14] = new ldd ('http://www.plastikanova.com','plastika')
30ld[15] = new ldd ('http://www.seoski-prag.org.yu','seoski-prag')
31ld[16] = new ldd ('http://www.rpk-uzice.co.yu','rpkuzice')
32ld[17] = new ldd ('http://www.radio31.co.yu','radio31')
33
34function fixpath (inpath) {
35	outpath = inpath
36	if (outpath.charAt (outpath.length-1) != '/') {
37		outpath = outpath + '/'
38	}
39	return outpath
40}
41
42function cl(lnkref) {
43	var pos
44	var out
45  out = lnkref
46	if ((window.location.host.length == 0) && (out.indexOf('http:',0) > -1)) {
47		for (i = 0; i < ld.length; i++) {
48      pos = out.indexOf(ld[i].url)
49			if ( pos > -1) {
50				path = out.substring(pos + ld[i].url.length, out.length)
51				out = document.URL.substring(0, document.URL.indexOf(topdir,0) + topdir.length) + ld[i].dir + path
52				if (out.indexOf('.htm',0) == -1) {
53					out = fixpath (out)
54					out += 'index.htm'
55				}
56				break
57			}
58		}
59	}
60	return out
61}
62
63function lr(lnk) {
64  lnk.href = cl(lnk.href) 
65	if ((window.location.host.length == 0) && (lnk.href.indexOf('http:',0) > -1)) {
66		// alert ('Link pokazuje na dokument koji ne pripada ovoj prezentaciji.\nDa bi ste ga pogledali potrebno je da se povezete na Internet.')
67
68    return confirm(lnk.href + '\n\nLink pokazuje na dokument koji ne pripada ovoj prezentaciji.\nDa bi ste ga pogledali potrebno je da se povezete na Internet.\nZelite li da pristupite dokumentu na Internetu?')
69		// return false
70	}
71	return true
72}
73

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.