From 7f93e95ffde462e8f626b3ba403455ec4727bb75 Mon Sep 17 00:00:00 2001 From: "Paul S. Owen" Date: Fri, 1 Nov 2002 14:37:53 +0000 Subject: [PATCH] Too processor intensive git-svn-id: file:///svn/phpbb/trunk@3000 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/templates/subSilver/color.js | 77 ------------------------------ 1 file changed, 77 deletions(-) delete mode 100644 phpBB/templates/subSilver/color.js diff --git a/phpBB/templates/subSilver/color.js b/phpBB/templates/subSilver/color.js deleted file mode 100644 index bd63c01743..0000000000 --- a/phpBB/templates/subSilver/color.js +++ /dev/null @@ -1,77 +0,0 @@ -// -// Made by mat100 -// -function MM_findObj(n, d) { - var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) { - d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} - if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&id.layers.length;i++) x=MM_findObj(n,d.layers[i].document); return x; -} -function insertTag(MyString) -{ -bbopen='[color=' + MyString + ']' -bbclose='[/color]' - if ((clientVer >= 4) && is_ie && is_win) { - theSelection = document.selection.createRange().text; - if (theSelection) { - document.selection.createRange().text = bbopen + theSelection + bbclose; - MM_findObj('message').focus(); - return; - } - } - if (MM_findObj('message').createTextRange && MM_findObj('message').caretPos) { - text = bbopen + bbclose ; - var caretPos = MM_findObj('message').caretPos; - caretPos.text = caretPos.text.charAt(caretPos.text.length - 1) == ' ' ? text + ' ' : text; - MM_findObj('message').focus(); - return; - } else { - MM_findObj('message').value += bbopen + bbclose; - MM_findObj('message').focus(); - return; - } -} -var base_hexa = "0123456789ABCDEF"; -function dec2Hexa(number) -{ - return base_hexa.charAt(Math.floor(number / 16)) + base_hexa.charAt(number % 16); -} - -function RGB2Hexa(TR,TG,TB) -{ - return "#" + dec2Hexa(TR) + dec2Hexa(TG) + dec2Hexa(TB); -} -function lightCase(MyObject) -{ - MM_findObj('ColorUsed').bgColor = MyObject.bgColor; -} -col = new Array; -col[0] = new Array(255,0,255,0,255,-1); -col[1] = new Array(255,-1,255,0,0,0); -col[2] = new Array(0,0,255,0,0,1); -col[3] = new Array(0,0,255,-1,255,0); -col[4] = new Array(0,1,0,0,255,0); -col[5] = new Array(255,0,0,0,255,-1); -col[6] = new Array(255,-1,0,0,0,0); - -function rgb(pas,w,h,text1,text2){ -for (j=0;j<6+1;j++){ - for (i=0;i\n'); - }}} - -function search(text,caract) -{ - for(i=0;i