RE: Wer schreibt die wenigsten Beiträge? - snek - 16.08.2013, 14:37
(16.08.2013)rustycooley schrieb: var MyBB={init:function()
{this.detectBrowser();Event.observe(document,"dom:loaded",MyBB.pageLoaded);return true;},pageLoaded:function()
{MyBB.page_loaded=1;expandables.init();checkall=$$('input.checkall');checkall.each(function(element){Event.observe(element,"click",MyBB.checkAll.bindAsEventListener(this));});initialfocus=$$('input.initial_focus');if(initialfocus[0])
{initialfocus[0].focus();}
if(typeof(use_xmlhttprequest)!="undefined"&&use_xmlhttprequest==1)
{mark_read_imgs=$$('img.ajax_mark_read');mark_read_imgs.each(function(element){if(element.src.match("off.gif")||element.src.match("offlock.gif")||(element.title&&element.title==lang.no_new_posts))return;Event.observe(element,"click",MyBB.markForumRead.bindAsEventListener(this));element.style.cursor='pointer';if(element.title)
{element.title+=" - ";}
element.title+=lang.click_mark_read;});}},detectBrowser:function()
{this.useragent=navigator.userAgent.toLowerCase();this.useragent_version=parseInt(navigator.appVersion);if(navigator.product=="Gecko"&&navigator.vendor.indexOf("Apple Computer")!=-1)
{this.browser="safari";}
else if(this.useragent.indexOf("chrome")!=-1)
{this.browser="chrome";}
else if(navigator.product=="Gecko")
{this.browser="mozilla";}
else if(this.useragent.indexOf("opera")!=-1)
{this.browser="opera";}
else if(this.useragent.indexOf("konqueror")!=-1)
{this.browser="konqueror";}
else if(this.useragent.indexOf("msie")!=-1)
{this.browser="ie";}
else if(this.useragent.indexOf("compatible")==-1&&this.useragent.indexOf("mozilla")!=-1)
{this.browser="netscape";}
if(this.useragent.indexOf("win")!=-1)
{this.os="win";}
else if(this.useragent.indexOf("mac")!=-1)
{ this.os="mac";}},popupWindow:function(url,name,width,height)
{settings="toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes";if(width)
{settings=settings+",width="+width;}
if(height)
{settings=settings+",height="+height;}
window.open(url,name,settings);},deleteEvent:function(eid)
{confirmReturn=confirm(deleteevent_confirm);if(confirmReturn==true)
{var form=new Element("form",{method:"post",action:"calendar.php",style:"display: none;"});form.insert({bottom:new Element("input",{name:"action",type:"hidden",value:"do_editevent"})});if(my_post_key)
{form.insert({bottom:new Element("input",{name:"my_post_key",type:"hidden",value:my_post_key})});}
form.insert({bottom:new Element("input",{name:"eid",type:"hidden",value:eid})});form.insert({bottom:new Element("input",{name:"delete",type:"hidden",value:1})});$$("body")[0].insert({bottom:form});form.submit();}},checkAll:function(e)
{var allbox=Event.element(e);var form=Event.findElement(e,'FORM');if(!form)
{return false;}
form.getElements().each(function(element){if(!element.hasClassName("checkall")&&element.type=="checkbox")
{element.checked=allbox.checked;}});},reputation:function(uid,pid)
{if(!pid)
{var pid=0;}
MyBB.popupWindow("reputation.php?action=add&uid="+uid+"&pid="+pid,"reputation",400,350)},deleteReputation:function(uid,rid)
{confirmReturn=confirm(delete_reputation_confirm);if(confirmReturn==true)
{var form=new Element("form",{method:"post",action:"reputation.php?action=delete",style:"display: none;"});form.insert({bottom:new Element("input",{name:"rid",type:"hidden",value:rid})}); if(my_post_key)
{form.insert({bottom:new Element("input",{name:"my_post_key",type:"hidden",value:my_post_key})});}
form.insert({bottom:new Element("input",{name:"uid",type:"hidden",value:uid})});$$("body")[0].insert({bottom:form});form.submit();}},whoPosted:function(tid)
{MyBB.popupWindow("misc.php?action=whoposted&tid="+tid,"whoPosted",230,300)},hopPage:function(tid,page,pages)
{if(pages>1)
{defpage=page+1;}
else
{defpage=1;}
promptres=prompt("Quick Page Jump\nPlease enter a page number between 1 and "+pages+" to jump to.",defpage);if((promptres!=null)&&(promptres!="")&&(promptres>1)&&(promptres<=pages))
{window.location="showthread.php?tid="+tid+"&page"+promotres;}},markForumRead:function(event)
{element=Event.element(event);if(!element)
{return false;}
var fid=element.id.replace("mark_read_","");if(!fid)
{return false;}
new Ajax.Request('misc.php?action=markread&fid='+fid+'&ajax=1&my_post_key='+my_post_key,{method:'get',onComplete:function(request){MyBB.forumMarkedRead(fid,request);}});},forumMarkedRead:function(fid,request)
{if(request.responseText==1)
{$('mark_read_'+fid).src=$('mark_read_'+fid).src.replace("on.gif","off.gif");Event.stopObserving($('mark_read_'+fid),"click",MyBB.markForumRead.bindAsEventListener(this));$('mark_read_'+fid).style.cursor='default';$('mark_read_'+fid).title=lang.no_new_posts;}},detectDSTChange:function(timezone_with_dst)
{var date=new Date();var local_offset=date.getTimezoneOffset()/60;if(Math.abs(parseInt(timezone_with_dst)+local_offset)==1)
{if(use_xmlhttprequest!=1||!new Ajax.Request('misc.php?action=dstswitch&ajax=1',{method:'post'}))
{var form=new Element("form",{method:"post",action:"misc.php",style:"display: none;"});form.insert({bottom:new Element("input",{name:"action",type:"hidden",value:"dstswitch"})});$$("body")[0].insert({bottom:form});form.submit();}}},dismissPMNotice:function()
{if(!$('pm_notice'))
{return false;}
if(use_xmlhttprequest!=1)
{return true;}
new Ajax.Request('private.php?action=dismiss_notice',{method:'post',postBody:'ajax=1&my_post_key='+my_post_key});Element.remove('pm_notice');return false;},unHTMLchars:function(text)
{text=text.replace(/</g,"<");text=text.replace(/>/g,">");text=text.replace(/ /g," ");text=text.replace(/"/g,"\"");text=text.replace(/&/g,"&");return text;},HTMLchars:function(text)
{text=text.replace(new RegExp("&(?!#[0-9]+","g"),"&");text=text.replace(/</g,"<");text=text.replace(/>/g,">");text=text.replace(/"/g,""");return text;},changeLanguage:function()
{form=$('lang_select');if(!form)
{return false;}
form.submit();},quickLogin:function()
{if($("quick_login"))
{var form=new Element("form",{method:"post",action:"member.php"});form.insert({bottom:new Element("input",{name:"action",type:"hidden",value:"do_login"})});if(document.location.href)
{form.insert({bottom:new Element("input",{name:"url",type:"hidden",value:this.HTMLchars(document.location.href)})});}
form.insert({bottom:new Element("input",{name:"quick_login",type:"hidden",value:"1"})});form.insert({bottom:new Element("input",{name:"quick_username",id:"quick_login_username",type:"text",value:lang.username,"class":"textbox",onfocus:"if(this.value == '"+lang.username+"') { this.value=''; }",onblur:"if(this.value == '') { this.value='"+lang.username+"'; }"})}).insert({bottom:" "});form.insert({bottom:new Element("input",{name:"quick_password",id:"quick_login_password",type:"password",value:lang.password,"class":"textbox",onfocus:"if(this.value == '"+lang.password+"') { this.value=''; }",onblur:"if(this.value == '') { this.value='"+lang.password+"'; }"})}).insert({bottom:" "});form.insert({bottom:new Element("input",{name:"submit",type:"submit",value:lang.login,"class":"button"})});var span=new Element("span",{"class":"remember_me"}).insert({bottom:new Element("input",{name:"quick_remember",id:"quick_login_remember",type:"checkbox",value:"yes","class":"checkbox"})});span.innerHTML+="<label for=\"quick_login_remember\"> "+lang.remember_me+"</label>";form.insert({bottom:span});form.innerHTML+=lang.lost_password+lang.register_url;$("quick_login").innerHTML="";$("quick_login").insert({before:form});$("quick_login_remember").setAttribute("checked","checked");$('quick_login_username').focus();}
return false;}};var Cookie={get:function(name)
{cookies=document.cookie;name=cookiePrefix+name+"=";cookiePos=cookies.indexOf(name);if(cookiePos!=-1)
{cookieStart=cookiePos+name.length;cookieEnd=cookies.indexOf(";",cookieStart);if(cookieEnd==-1)
{cookieEnd=cookies.length;}
return unescape(cookies.substring(cookieStart,cookieEnd));}},set:function(name,value,expires)
{if(!expires)
{expires="; expires=Wed, 1 Jan 2020 00:00:00 GMT;"}
else
{expire=new Date();expire.setTime(expire.getTime()+(expires*1000));expires="; expires="+expire.toGMTString();}
if(cookieDomain)
{domain="; domain="+cookieDomain;}
else
{domain="";}
if(cookiePath!="")
{path=cookiePath;}
else
{path="";}
document.cookie=cookiePrefix+name+"="+escape(value)+"; path="+path+domain+expires;},unset:function(name)
{Cookie.set(name,0,-1);}};var DomLib={getPageScroll:function()
{var yScroll;if(self.pageYOffset)
{yScroll=self.pageYOffset;}
else if(document.documentElement&&document.documentElement.scrollTop)
{yScroll=document.documentElement.scrollTop;}
else if(document.body)
{yScroll=document.body.scrollTop;}
arrayPageScroll=new Array('',yScroll);return arrayPageScroll;},getPageSize:function()
{var xScroll,yScroll;if(window.innerHeight&&window.scrollMaxY)
{xScroll=document.body.scrollWidth;yScroll=window.innerHeight+window.scrollMaxY;}
else if(document.body.scrollHeight>document.body.offsetHeight)
{xScroll=document.body.scrollWidth;yScroll=document.body.scrollHeight;}
else
{xScroll=document.body.offsetWidth;yScroll=document.body.offsetHeight;}
var windowWidth,windowHeight;if(self.innerHeight)
{windowWidth=self.innerWidth;windowHeight=self.innerHeight;}
else if(document.documentElement&&document.documentElement.clientHeight)
{windowWidth=document.documentElement.clientWidth;windowHeight=document.documentElement.clientHeight;}
else if(document.body)
{windowWidth=document.body.clientWidth;windowHeight=document.body.clientHeight;}
var pageHeight,pageWidth;if(yScroll<windowHeight)
{pageHeight=windowHeight;}
else
{pageHeight=yScroll;}
if(xScroll<windowWidth)
{pageWidth=windowWidth;}
else
{pageWidth=xScroll;}
var arrayPageSize=new Array(pageWidth,pageHeight,windowWidth,windowHeight);return arrayPageSize;}};var expandables={init:function()
{expanders=$$('img.expander');if(expanders.length>0)
{expanders.each(function(expander){if(!expander.id)
{return;}
Event.observe(expander,"click",this.expandCollapse.bindAsEventListener(this));if(MyBB.browser=="ie")
{expander.style.cursor="hand";}
else
{expander.style.cursor="pointer";}
expander.controls=expander.id.replace("_img","");var row=$(expander.controls);if(row)
{Event.observe(row,"dblclick",this.expandCollapse.bindAsEventListener(this));row.controls=expander.id.replace("_img","");}}.bind(this));}},expandCollapse:function(e)
{element=Event.element(e)
if(!element||!element.controls)
{return false;}
var expandedItem=$(element.controls+"_e");var collapsedItem=$(element.controls+"_c");if(expandedItem&&collapsedItem)
{if(expandedItem.style.display=="none")
{expandedItem.show();collapsedItem.hide();this.saveCollapsed(element.controls);}
else
{expandedItem.hide();collapsedItem.show();this.saveCollapsed(element.controls,1);}}
else if(expandedItem&&!collapsedItem)
{if(expandedItem.style.display=="none")
{expandedItem.show();element.src=element.src.replace("collapse_collapsed.gif","collapse.gif");element.alt="[-]";element.title="[-]";this.saveCollapsed(element.controls);}
else
{expandedItem.hide();element.src=element.src.replace("collapse.gif","collapse_collapsed.gif");element.alt="[+]";element.title="[+]";this.saveCollapsed(element.controls,1);}}
return true;},saveCollapsed:function(id,add)
{var saved=new Array();var newCollapsed=new Array();var collapsed=Cookie.get("collapsed");if(collapsed)
{saved=collapsed.split("|");saved.each(function(item){if(item!=id&&item!="")
{newCollapsed[newCollapsed.length]=item;}});}
if(add==1)
{newCollapsed[newCollapsed.length]=id;}
Cookie.set("collapsed",newCollapsed.join("|"));}};var ActivityIndicator=Class.create();ActivityIndicator.prototype={initialize:function(owner,options)
{var image;if(options&&options.image)
{image="<img src=\""+options.image+"\" alt=\"\" />";}
else
{image="";}
this.height=options.height||150;this.width=options.width||150;if(owner=="body")
{arrayPageSize=DomLib.getPageSize();arrayPageScroll=DomLib.getPageScroll();var top=arrayPageScroll[1]+((arrayPageSize[3]-35-this.height)/2);var left=((arrayPageSize[0]-20-this.width)/2);owner=document.getElementsByTagName("body").item(0);}
else
{if($(owner))
{owner=$(owner);}
var offset=Position.positionedOffset(owner);left=offset[0];top=offset[1];}
this.spinner=document.createElement("div");this.spinner.style.border="1px solid #000000";this.spinner.style.background="#FFFFFF";this.spinner.style.color="#000000";this.spinner.style.position="absolute";this.spinner.style.zIndex=1000;this.spinner.style.textAlign="center";this.spinner.style.verticalAlign="middle";this.spinner.style.fontSize="13px";this.spinner.innerHTML="<br />"+image+"<br /><br /><strong>"+loading_text+"</strong>";this.spinner.style.width=this.width+"px";this.spinner.style.height=this.height+"px";this.spinner.style.top=top+"px";this.spinner.style.left=left+"px";this.spinner.id="spinner";owner.insertBefore(this.spinner,owner.firstChild);},destroy:function()
{Element.remove(this.spinner);}};var lang={};if(!Array.prototype.shift){Array.prototype.shift=function()
{firstElement=this[0];this.reverse();this.length=Math.max(this.length-1,0);this.reverse();return firstElement;}}
if(!Array.prototype.unshift){Array.prototype.unshift=function()
{this.reverse();for(var i=arguments.length-1;i>=0;i--){this[this.length]=arguments[i]}
this.reverse();return this.length}}
if(!Array.prototype.push){Array.prototype.push=function()
{for(var i=0;i<arguments.length;i++){this[this.length]=arguments[i]};return this.length;}}
if(!Array.prototype.pop){Array.prototype.pop=function(){lastElement=this[this.length-1];this.length=Math.max(this.length-1,0);return lastElement;}}
if(!Function.prototype.apply){Function.prototype.apply=function(oScope,args){var sarg=[];var rtrn,call;if(!oScope)oScope=window;if(!args)args=[];for(var i=0;i<args.length;i++){sarg[i]="args["+i+"]";}
call="oScope.__applyTemp__("+sarg.join(",")+");";oScope.__applyTemp__=this;rtrn=eval(call);return rtrn;}}
if(!Function.prototype.call){Function.prototype.call=function(obj,param){obj.base=this;obj.base(param);}}
MyBB.init();
RE: Wer schreibt die wenigsten Beiträge? - rustycooley - 16.08.2013, 14:40
var PopupMenu=Class.create();PopupMenu.prototype={initialize:function(id,options)
{document.currentMenu="";if(!$(id))
{return false;}
this.id=id;var element=$(id);var popupMenu=element.id+"_popup";if(!$(popupMenu))
{return false;}
this.menu=$(popupMenu);this.menu.style.display="none";element.onclick=this.openMenu.bindAsEventListener(this);},openMenu:function(e)
{Event.stop(e);if(document.currentMenu&&document.currentMenu==this.id)
{this.closeMenu();return false;}
else if(document.currentMenu!="")
{this.closeMenu();}
offsetTop=offsetLeft=0;var element=$(this.id);do
{offsetTop+=element.offsetTop||0;offsetLeft+=element.offsetLeft||0;element=element.offsetParent;if(element)
{if(Element.getStyle(element,'position')=='relative'||Element.getStyle(element,'position')=='absolute')break;}}while(element);offsetTopReal=offsetTop;offsetLeftReal=offsetLeft;if(element)
{do
{offsetTopReal+=element.offsetTop||0;offsetLeftReal+=element.offsetLeft||0;}while(element=element.offsetParent);}
element=$(this.id);element.blur();this.menu.style.position="absolute";this.menu.style.zIndex=100;this.menu.style.top=(offsetTop+element.offsetHeight-1)+"px";if(MyBB.browser=="opera"||MyBB.browser=="safari")
{this.menu.style.top=(parseInt(this.menu.style.top)-2)+"px";}
this.menu.style.left=offsetLeft+"px";this.menu.style.visibility='hidden';this.menu.style.display='block';if(this.menu.style.width)
{menuWidth=parseInt(this.menu.style.width);}
else
{menuWidth=this.menu.offsetWidth;}
pageSize=DomLib.getPageSize();if(offsetLeftReal+menuWidth>=pageSize[0])
{this.menu.style.left=(offsetLeft-menuWidth+element.offsetWidth)+"px";}
this.menu.style.display='block';this.menu.style.visibility='visible';document.currentMenu=element.id;Event.observe(document,'click',this.closeMenu.bindAsEventListener(this));},closeMenu:function()
{if(!document.currentMenu)
{return;}
var menu=document.currentMenu;menu=$(menu+"_popup");menu.style.display="none";document.currentMenu="";document.onclick=function(){};}};
RE: Wer schreibt die wenigsten Beiträge? - snek - 16.08.2013, 14:40
(16.08.2013)rustycooley schrieb: var PopupMenu=Class.create();PopupMenu.prototype={initialize:function(id,options)
{document.currentMenu="";if(!$(id))
{return false;}
this.id=id;var element=$(id);var popupMenu=element.id+"_popup";if(!$(popupMenu))
{return false;}
this.menu=$(popupMenu);this.menu.style.display="none";element.onclick=this.openMenu.bindAsEventListener(this);},openMenu:function(e)
{Event.stop(e);if(document.currentMenu&&document.currentMenu==this.id)
{this.closeMenu();return false;}
else if(document.currentMenu!="")
{this.closeMenu();}
offsetTop=offsetLeft=0;var element=$(this.id);do
{offsetTop+=element.offsetTop||0;offsetLeft+=element.offsetLeft||0;element=element.offsetParent;if(element)
{if(Element.getStyle(element,'position')=='relative'||Element.getStyle(element,'position')=='absolute')break;}}while(element);offsetTopReal=offsetTop;offsetLeftReal=offsetLeft;if(element)
{do
{offsetTopReal+=element.offsetTop||0;offsetLeftReal+=element.offsetLeft||0;}while(element=element.offsetParent);}
element=$(this.id);element.blur();this.menu.style.position="absolute";this.menu.style.zIndex=100;this.menu.style.top=(offsetTop+element.offsetHeight-1)+"px";if(MyBB.browser=="opera"||MyBB.browser=="safari")
{this.menu.style.top=(parseInt(this.menu.style.top)-2)+"px";}
this.menu.style.left=offsetLeft+"px";this.menu.style.visibility='hidden';this.menu.style.display='block';if(this.menu.style.width)
{menuWidth=parseInt(this.menu.style.width);}
else
{menuWidth=this.menu.offsetWidth;}
pageSize=DomLib.getPageSize();if(offsetLeftReal+menuWidth>=pageSize[0])
{this.menu.style.left=(offsetLeft-menuWidth+element.offsetWidth)+"px";}
this.menu.style.display='block';this.menu.style.visibility='visible';document.currentMenu=element.id;Event.observe(document,'click',this.closeMenu.bindAsEventListener(this));},closeMenu:function()
{if(!document.currentMenu)
{return;}
var menu=document.currentMenu;menu=$(menu+"_popup");menu.style.display="none";document.currentMenu="";document.onclick=function(){};}};
RE: Wer schreibt die wenigsten Beiträge? - rustycooley - 16.08.2013, 14:48
var fitonpage={init:function()
{if(fitonpage_on==1)
{if($('quick_reply_form')&&use_xmlhttprequest==1&&fitonpage_location=="showthread")
{$('posts').observe('DOMNodeInserted',fitonpage.QRdoResize);}
fitonpage.doResize(0);}},QRdoResize:function()
{fitonpage.doResize(1);},doResize:function(qr)
{if($('quick_reply_form')&&use_xmlhttprequest==1&&fitonpage_location=="showthread")
{$('posts').stopObserving('DOMNodeInserted',fitonpage.QRdoResize);}
if(fitonpage_resize=='auto')
{var resize_width=Math.ceil(document.viewport.getWidth()*(fitonpage_fluid/100));}
else
{var resize_width=fitonpage_resize;}
var resize_imgs=$$('img');var topbar_width=resize_width-23;if(fitonpage_location=="private_read")
{resize_width=resize_width-180;topbar_width=topbar_width-180;}
if(fitonpage_location=="portal")
{resize_width=resize_width-200;topbar_width=topbar_width-200;}
var count=0;resize_imgs.each(function(resize_img)
{if(((fitonpage_location=="showthread"&&resize_img.descendantOf('posts'))||(fitonpage_location=="private_read"&&resize_img.descendantOf('pid_'))||((fitonpage_location=="newreply"||fitonpage_location=="editpost"||fitonpage_location=="portal"||fitonpage_location=="mod_split"||fitonpage_location=="mod_mergeposts"||fitonpage_location=="mod_deleteposts")&&resize_img.descendantOf('content')))&&!resize_img.hasClassName('no_fop'))
{var img_dims=resize_img.getDimensions();var orig_width=img_dims.width;var orig_height=img_dims.height;if($('quick_reply_form')&&use_xmlhttprequest==1&&fitonpage_location=="showthread"&&qr==1)
{resize_img.onload=function(){orig_width=resize_img.getWidth()};}
var topbar_orig_width=orig_width-23;if(orig_width>resize_width)
{var borderRight=resize_img.getStyle('border-right-width').sub('px','').strip();borderRight=isNaN(borderRight)?0:borderRight;var borderLeft=resize_img.getStyle('border-left-width').sub('px','').strip();borderLeft=isNaN(borderLeft)?0:borderLeft;var paddingRight=resize_img.getStyle('padding-right').sub('px','').strip();paddingRight=isNaN(paddingRight)?0:paddingRight;var paddingLeft=resize_img.getStyle('padding-left').sub('px','').strip();paddingLeft=isNaN(paddingLeft)?0:paddingLeft;var borderTop=resize_img.getStyle('border-top-width').sub('px','').strip();borderTop=isNaN(borderTop)?0:borderTop;var borderBottom=resize_img.getStyle('border-bottom-width').sub('px','').strip();borderBottom=isNaN(borderBottom)?0:borderBottom;var paddingTop=resize_img.getStyle('padding-top').sub('px','').strip();paddingTop=isNaN(paddingTop)?0:paddingTop;var paddingBottom=resize_img.getStyle('padding-bottom').sub('px','').strip();paddingBottom=isNaN(paddingBottom)?0:paddingBottom;var offset_width=parseInt(borderRight)+parseInt(borderLeft)+parseInt(paddingRight)+parseInt(paddingLeft);var offset_height=parseInt(borderTop)+parseInt(borderBottom)+parseInt(paddingTop)+parseInt(paddingBottom);orig_width=img_dims.width-offset_width;orig_height=img_dims.height-offset_height;if(orig_width>resize_width)
{var resize_height=Math.ceil((orig_height/orig_width)*resize_width);var resize_percent=Math.ceil(((orig_width-resize_width)/orig_width)*100);var fitonpage_topbar_resized_wh='';var fitonpage_topbar_full_wh='';var fitonpage_divwrap='0px';if($('quick_reply_form')&&use_xmlhttprequest==1&&fitonpage_location=="showthread"&&qr==1)
{count=count+1000;}
count++;if(resize_img.up('a'))
{var img_link=resize_img.up('a');img_link.wrap('div',{'id':'fop_img'+count,'style':'width:'+resize_width+'px'});}
else
{resize_img.wrap('div',{'id':'fop_img'+count,'style':'width:'+resize_width+'px'});}
if(resize_img.up('div').getStyle('text-align')=='center')
{fitonpage_divwrap='0px auto';}
else if(resize_img.up('div').getStyle('text-align')=='right')
{fitonpage_divwrap='0px 0px 0px auto';}
fitonpage_topbar_resized_wh=fitonpage_topbar_resized.sub('%RSIZE%',resize_width+'x'+resize_height);fitonpage_topbar_resized_wh=fitonpage_topbar_resized_wh.sub('%OSIZE%',orig_width+'x'+orig_height);fitonpage_topbar_resized_wh=fitonpage_topbar_resized_wh.sub('%PERCENT%',resize_percent+'%');$('fop_img'+count).insert({'before':'<div id=\"fop_topbar'+count+'\" class=\"'+fitonpage_topbar_text_class+'\" style=\"width:'+topbar_width+'px;text-align:left;background:#'+fitonpage_topbar_bground+' url(\''+fitonpage_topbar_icon+'\') no-repeat left;padding:3px 3px 3px 20px;margin:'+fitonpage_divwrap+';\">'+fitonpage_topbar_resized_wh+'</div>'});$('fop_topbar'+count).style.cursor='pointer';$('fop_img'+count).style.cursor='pointer';var fop_topbar=$('fop_topbar'+count);var fop_img=$('fop_img'+count);fop_img.style.margin=fitonpage_divwrap;resize_img.style.width=resize_width+'px';$('fop_topbar'+count).observe('click',function(event){if(resize_img.width==resize_width)
{fop_topbar.style.width=topbar_orig_width+'px';fop_img.style.width=orig_width+'px';resize_img.style.width=orig_width+'px';if($('quick_reply_form')&&use_xmlhttprequest==1&&fitonpage_location=="showthread")
{$('posts').stopObserving('DOMNodeInserted',fitonpage.QRdoResize);}
fitonpage_topbar_full_wh=fitonpage_topbar_full.sub('%OSIZE%',orig_width+'x'+orig_height);fitonpage_topbar_full_wh=fitonpage_topbar_full_wh.sub('%RSIZE%',resize_width+'x'+resize_height);fop_topbar.update(fitonpage_topbar_full_wh);if($('quick_reply_form')&&use_xmlhttprequest==1&&fitonpage_location=="showthread")
{$('posts').observe('DOMNodeInserted',fitonpage.QRdoResize);}}
else
{fop_topbar.style.width=topbar_width+'px';fop_img.style.width=resize_width+'px';resize_img.style.width=resize_width+'px';if($('quick_reply_form')&&use_xmlhttprequest==1&&fitonpage_location=="showthread")
{$('posts').stopObserving('DOMNodeInserted',fitonpage.QRdoResize);}
fitonpage_topbar_resized_wh=fitonpage_topbar_resized.sub('%RSIZE%',resize_width+'x'+resize_height);fitonpage_topbar_resized_wh=fitonpage_topbar_resized_wh.sub('%OSIZE%',orig_width+'x'+orig_height);fitonpage_topbar_resized_wh=fitonpage_topbar_resized_wh.sub('%PERCENT%',resize_percent+'%');fop_topbar.update(fitonpage_topbar_resized_wh);if($('quick_reply_form')&&use_xmlhttprequest==1&&fitonpage_location=="showthread")
{$('posts').observe('DOMNodeInserted',fitonpage.QRdoResize);}}});$('fop_img'+count).observe('click',function(event){MyBB.popupWindow(resize_img.src,'',800,600);});}}}});if($('quick_reply_form')&&use_xmlhttprequest==1&&fitonpage_location=="showthread")
{$('posts').observe('DOMNodeInserted',fitonpage.QRdoResize);}}};Event.observe(window,'load',fitonpage.init);
Wer auch immer hinter dem Grundgerüst dieser Seite steckt, er war ein Angeber
RE: Wer schreibt die wenigsten Beiträge? - snek - 16.08.2013, 14:56
pänüs
RE: Wer schreibt die wenigsten Beiträge? - rustycooley - 16.08.2013, 15:06
RE: Wer schreibt die wenigsten Beiträge? - SnowDash - 16.08.2013, 15:11
(16.08.2013)rustycooley schrieb: var fitonpage={init:function()
{if(fitonpage_on==1)
{if($('quick_reply_form')&&use_xmlhttprequest==1&&fitonpage_location=="showthread")
{$('posts').observe('DOMNodeInserted',fitonpage.QRdoResize);}
fitonpage.doResize(0);}},QRdoResize:function()
{fitonpage.doResize(1);},doResize:function(qr)
{if($('quick_reply_form')&&use_xmlhttprequest==1&&fitonpage_location=="showthread")
{$('posts').stopObserving('DOMNodeInserted',fitonpage.QRdoResize);}
if(fitonpage_resize=='auto')
{var resize_width=Math.ceil(document.viewport.getWidth()*(fitonpage_fluid/100));}
else
{var resize_width=fitonpage_resize;}
var resize_imgs=$$('img');var topbar_width=resize_width-23;if(fitonpage_location=="private_read")
{resize_width=resize_width-180;topbar_width=topbar_width-180;}
if(fitonpage_location=="portal")
{resize_width=resize_width-200;topbar_width=topbar_width-200;}
var count=0;resize_imgs.each(function(resize_img)
{if(((fitonpage_location=="showthread"&&resize_img.descendantOf('posts'))||(fitonpage_location=="private_read"&&resize_img.descendantOf('pid_'))||((fitonpage_location=="newreply"||fitonpage_location=="editpost"||fitonpage_location=="portal"||fitonpage_location=="mod_split"||fitonpage_location=="mod_mergeposts"||fitonpage_location=="mod_deleteposts")&&resize_img.descendantOf('content')))&&!resize_img.hasClassName('no_fop'))
{var img_dims=resize_img.getDimensions();var orig_width=img_dims.width;var orig_height=img_dims.height;if($('quick_reply_form')&&use_xmlhttprequest==1&&fitonpage_location=="showthread"&&qr==1)
{resize_img.onload=function(){orig_width=resize_img.getWidth()};}
var topbar_orig_width=orig_width-23;if(orig_width>resize_width)
{var borderRight=resize_img.getStyle('border-right-width').sub('px','').strip();borderRight=isNaN(borderRight)?0:borderRight;var borderLeft=resize_img.getStyle('border-left-width').sub('px','').strip();borderLeft=isNaN(borderLeft)?0:borderLeft;var paddingRight=resize_img.getStyle('padding-right').sub('px','').strip();paddingRight=isNaN(paddingRight)?0:paddingRight;var paddingLeft=resize_img.getStyle('padding-left').sub('px','').strip();paddingLeft=isNaN(paddingLeft)?0:paddingLeft;var borderTop=resize_img.getStyle('border-top-width').sub('px','').strip();borderTop=isNaN(borderTop)?0:borderTop;var borderBottom=resize_img.getStyle('border-bottom-width').sub('px','').strip();borderBottom=isNaN(borderBottom)?0:borderBottom;var paddingTop=resize_img.getStyle('padding-top').sub('px','').strip();paddingTop=isNaN(paddingTop)?0:paddingTop;var paddingBottom=resize_img.getStyle('padding-bottom').sub('px','').strip();paddingBottom=isNaN(paddingBottom)?0:paddingBottom;var offset_width=parseInt(borderRight)+parseInt(borderLeft)+parseInt(paddingRight)+parseInt(paddingLeft);var offset_height=parseInt(borderTop)+parseInt(borderBottom)+parseInt(paddingTop)+parseInt(paddingBottom);orig_width=img_dims.width-offset_width;orig_height=img_dims.height-offset_height;if(orig_width>resize_width)
{var resize_height=Math.ceil((orig_height/orig_width)*resize_width);var resize_percent=Math.ceil(((orig_width-resize_width)/orig_width)*100);var fitonpage_topbar_resized_wh='';var fitonpage_topbar_full_wh='';var fitonpage_divwrap='0px';if($('quick_reply_form')&&use_xmlhttprequest==1&&fitonpage_location=="showthread"&&qr==1)
{count=count+1000;}
count++;if(resize_img.up('a'))
{var img_link=resize_img.up('a');img_link.wrap('div',{'id':'fop_img'+count,'style':'width:'+resize_width+'px'});}
else
{resize_img.wrap('div',{'id':'fop_img'+count,'style':'width:'+resize_width+'px'});}
if(resize_img.up('div').getStyle('text-align')=='center')
{fitonpage_divwrap='0px auto';}
else if(resize_img.up('div').getStyle('text-align')=='right')
{fitonpage_divwrap='0px 0px 0px auto';}
fitonpage_topbar_resized_wh=fitonpage_topbar_resized.sub('%RSIZE%',resize_width+'x'+resize_height);fitonpage_topbar_resized_wh=fitonpage_topbar_resized_wh.sub('%OSIZE%',orig_width+'x'+orig_height);fitonpage_topbar_resized_wh=fitonpage_topbar_resized_wh.sub('%PERCENT%',resize_percent+'%');$('fop_img'+count).insert({'before':'<div id=\"fop_topbar'+count+'\" class=\"'+fitonpage_topbar_text_class+'\" style=\"width:'+topbar_width+'px;text-align:left;background:#'+fitonpage_topbar_bground+' url(\''+fitonpage_topbar_icon+'\') no-repeat left;padding:3px 3px 3px 20px;margin:'+fitonpage_divwrap+';\">'+fitonpage_topbar_resized_wh+'</div>'});$('fop_topbar'+count).style.cursor='pointer';$('fop_img'+count).style.cursor='pointer';var fop_topbar=$('fop_topbar'+count);var fop_img=$('fop_img'+count);fop_img.style.margin=fitonpage_divwrap;resize_img.style.width=resize_width+'px';$('fop_topbar'+count).observe('click',function(event){if(resize_img.width==resize_width)
{fop_topbar.style.width=topbar_orig_width+'px';fop_img.style.width=orig_width+'px';resize_img.style.width=orig_width+'px';if($('quick_reply_form')&&use_xmlhttprequest==1&&fitonpage_location=="showthread")
{$('posts').stopObserving('DOMNodeInserted',fitonpage.QRdoResize);}
fitonpage_topbar_full_wh=fitonpage_topbar_full.sub('%OSIZE%',orig_width+'x'+orig_height);fitonpage_topbar_full_wh=fitonpage_topbar_full_wh.sub('%RSIZE%',resize_width+'x'+resize_height);fop_topbar.update(fitonpage_topbar_full_wh);if($('quick_reply_form')&&use_xmlhttprequest==1&&fitonpage_location=="showthread")
{$('posts').observe('DOMNodeInserted',fitonpage.QRdoResize);}}
else
{fop_topbar.style.width=topbar_width+'px';fop_img.style.width=resize_width+'px';resize_img.style.width=resize_width+'px';if($('quick_reply_form')&&use_xmlhttprequest==1&&fitonpage_location=="showthread")
{$('posts').stopObserving('DOMNodeInserted',fitonpage.QRdoResize);}
fitonpage_topbar_resized_wh=fitonpage_topbar_resized.sub('%RSIZE%',resize_width+'x'+resize_height);fitonpage_topbar_resized_wh=fitonpage_topbar_resized_wh.sub('%OSIZE%',orig_width+'x'+orig_height);fitonpage_topbar_resized_wh=fitonpage_topbar_resized_wh.sub('%PERCENT%',resize_percent+'%');fop_topbar.update(fitonpage_topbar_resized_wh);if($('quick_reply_form')&&use_xmlhttprequest==1&&fitonpage_location=="showthread")
{$('posts').observe('DOMNodeInserted',fitonpage.QRdoResize);}}});$('fop_img'+count).observe('click',function(event){MyBB.popupWindow(resize_img.src,'',800,600);});}}}});if($('quick_reply_form')&&use_xmlhttprequest==1&&fitonpage_location=="showthread")
{$('posts').observe('DOMNodeInserted',fitonpage.QRdoResize);}}};Event.observe(window,'load',fitonpage.init);
Wer auch immer hinter dem Grundgerüst dieser Seite steckt, er war ein Angeber
(16.08.2013)rustycooley schrieb:
RE: Wer schreibt die wenigsten Beiträge? - snek - 16.08.2013, 15:21
(16.08.2013)rustycooley schrieb:
Schatz, es tut mir so leid
Du bist nur der Trostpreis
Und immer, wenn der Mond scheint
Denk' ich, da is' noch Luft nach oben
RE: Wer schreibt die wenigsten Beiträge? - rustycooley - 16.08.2013, 15:21
Irgendwann werd ich die Seite hacken und ALLE bannen. Ich werd mehr User zerficken als Blue Sparkle
RE: Wer schreibt die wenigsten Beiträge? - snek - 16.08.2013, 15:24
du gansta rappa
RE: Wer schreibt die wenigsten Beiträge? - GoatlikeGodcow - 16.08.2013, 16:46
(16.08.2013)rustycooley schrieb: Irgendwann werd ich die Seite hacken und ALLE bannen. Ich werd mehr User zerficken als Blue Sparkle
Das packst du Anna
RE: Wer schreibt die wenigsten Beiträge? - Midori (†) - 16.08.2013, 17:52
Baum.
RE: Wer schreibt die wenigsten Beiträge? - GoatlikeGodcow - 17.08.2013, 00:01
Baseballschläger sind echt nützlich
RE: Wer schreibt die wenigsten Beiträge? - SnowDash - 17.08.2013, 00:40
Na sichi
RE: Wer schreibt die wenigsten Beiträge? - snek - 17.08.2013, 00:49
denn ein Wrack ist ein Ort an dem ein Schatz schlummert
RE: Wer schreibt die wenigsten Beiträge? - SnowDash - 17.08.2013, 01:12
rischdisch.......las drogn nhmn
RE: Wer schreibt die wenigsten Beiträge? - Midori (†) - 17.08.2013, 01:36
(17.08.2013)Alexander schrieb: denn ein Wrack ist ein Ort an dem ein Schatz schlummert
RE: Wer schreibt die wenigsten Beiträge? - rustycooley - 17.08.2013, 03:44
http://www.bronies.de/member.php?action=profile&uid=5970
RE: Wer schreibt die wenigsten Beiträge? - snek - 17.08.2013, 18:20
Bushido sieht mit dem Bart aus wie Jesus
RE: Wer schreibt die wenigsten Beiträge? - snek - 17.08.2013, 19:58
RANDOM BILDA TEIM
|