PageSourceSearch

https://ibispaint.com/js/wordBreak.js?dummy20170823=20260924

js ibispaint.com collected 2026-09-24 09:03:42 UTC 1,911 bytes, 64 lines download raw bytes

1/*--------------------------------------------------------------------------*
2 *
3 *  wordBreak JavaScript Library for Opera & Firefox
4 *
5 *  MIT-style license.
6 *
7 *  2008 Kazuma Nishihata
8 *  http://www.to-r.net
9 *
10 *--------------------------------------------------------------------------*/
11
12
13new function(){
14	if(window.opera || navigator.userAgent.indexOf("Firefox") != -1){
15		var wordBreak = function() {
16			var wordBreakClass = "wordBreak";
17			var table = document.getElementsByTagName("p");
18			for(var i=0,len=table.length ; i<len ; i++){
19				var tbClass = table[i].className.split(/\s+/);
20				for (var j = 0; j < tbClass.length; j++) {
21					if (tbClass[j] == wordBreakClass) {
22						recursiveParse(table[i])
23					}
24				}
25			}
26		}
27		var recursiveParse = function(pNode) {
28			var childs = pNode.childNodes;
29			for (var i = 0; i < childs.length; i++) {
30				var cNode = childs[i];
31				if (childs[i].nodeType == 1) {
32					recursiveParse(childs[i]);
33				}else if(cNode.nodeType == 3) {
34					if(cNode.nodeValue.match("[^\n ]")){
35						var plTxt = cNode.nodeValue.replace(/\t/g,"")
36						var spTxt = plTxt.split("");
37						spTxt = spTxt.join(String.fromCharCode(8203));
38						var chNode = document.createTextNode(spTxt);
39						cNode.parentNode.replaceChild(chNode,cNode)
40					}
41				}
42			}
43		}
44
45	}else{
46		var wordBreak = function() {
47			if( document.styleSheets[0].addRule ){
48				document.styleSheets[0].addRule(".wordBreak","word-break:break-all");
49			}else if( document.styleSheets[0].insertRule ){
50				document.styleSheets[0].insertRule(".wordBreak{word-break:break-all}", document.styleSheets[0].cssRules.length );
51			}else{
52				return false;
53			}
54		}
55	}
56	var addEvent = function(elm,listener,fn){
57		try{
58			elm.addEventListener(listener,fn,false);
59		}catch(e){
60			elm.attachEvent("on"+listener,fn);
61		}
62	}
63	addEvent(window,"load",wordBreak);
64}

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.