PageSourceSearch

https://www.turkishclass.com/static/js/double_click.js?1637729438

js turkishclass.com collected 2026-10-03 17:37:35 UTC 1,785 bytes, 48 lines download raw bytes

1function addChar(chr) {
2	document.dictionaryModuleForm.word.value += chr;
3	document.dictionaryModuleForm.word.focus();
4}
5
6var highlightedText = '';
7var timeid;
8
9function getHighlighted(e) {
10	highlightedText = (document.all) ? document.selection.createRange().text : document.getSelection();
11	highlightedText += '';
12	if(highlightedText.length > 0) {
13		var i = 0;
14		var temp = '';
15		for(i=0; i<highlightedText.length; i++) {
16			if (highlightedText.charCodeAt(i) == 304) {
17				// we have an i
18				highlightedText = highlightedText.substring(0, i) + '%DD' + highlightedText.substring(i+1, highlightedText.length);
19			}
20			else if (highlightedText.charCodeAt(i) == 350) {
21				// we have a S
22				highlightedText = highlightedText.substring(0, i) + '%DE' + highlightedText.substring(i+1, highlightedText.length);
23			}
24			else if (highlightedText.charCodeAt(i) == 286) {
25				// we have a G
26				highlightedText = highlightedText.substring(0, i) + '%D0' + highlightedText.substring(i+1, highlightedText.length);
27			}
28			else if (highlightedText.charCodeAt(i) == 287) {
29				// we have a G
30				highlightedText = highlightedText.substring(0, i) + '%F0' + highlightedText.substring(i+1, highlightedText.length);
31			}
32			else if (highlightedText.charCodeAt(i) == 351) {
33				// we have a S
34				highlightedText = highlightedText.substring(0, i) + '%FE' + highlightedText.substring(i+1, highlightedText.length);
35			}
36			else if (highlightedText.charCodeAt(i) == 305) {
37				// we have an I
38				highlightedText = highlightedText.substring(0, i) + '%FD' + highlightedText.substring(i+1, highlightedText.length);
39			}
40		}
41		window.open( "http://www.turkishdictionary.net/?word="+highlightedText+"", "turkish_dictionary");
42		return true;
43	} else {
44		return false;
45	}
46}
47
48document.ondblclick = getHighlighted;

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.