Archived
1
0

update css and position for reply box

This commit is contained in:
Jeff Becker 2016-04-30 13:00:27 -04:00
parent dabbf4d143
commit d55716dc9b
No known key found for this signature in database
GPG Key ID: AB950234D6EA286B
3 changed files with 4 additions and 5 deletions

View File

@ -140,7 +140,7 @@ DynReply.prototype.show = function() {
console.log("show dynreply"); console.log("show dynreply");
this.update(); this.update();
this.elem.style.display = 'inline'; this.elem.style.display = 'inline';
this.elem.style.position = "absolute"; this.elem.style.position = "fixed";
this.elem.style.right = "0px"; this.elem.style.right = "0px";
this.elem.style.top = "25px"; this.elem.style.top = "25px";
} }

View File

@ -20,7 +20,7 @@ var elem=document.createElement("div");elem.setAttribute("id","postform_containe
elem=document.createElement("input");elem.setAttribute("name","subject");elem.setAttribute("value","");var submit=document.createElement("input");submit.setAttribute("type","submit");submit.setAttribute("value","reply");submit.setAttribute("class","button");table_insert_row(tbody,document.createTextNode("Subject"),[elem,submit]);elem=document.createElement("textarea");elem.setAttribute("id","postform_message");elem.setAttribute("name","message");elem.setAttribute("cols","40");elem.setAttribute("rows","5");table_insert_row(tbody,document.createTextNode("Comment"),[elem]);elem=document.createElement("input");elem.setAttribute("class","postform_attachment");elem.setAttribute("id","postform_attachments");elem.setAttribute("type","file");elem.setAttribute("name","attachment_uploaded");elem.setAttribute("multiple","multiple");table_insert_row(tbody,document.createTextNode("Files"),[elem]);elem=document.createElement("input");elem.setAttribute("type","checkbox");elem.setAttribute("name","dubs");table_insert_row(tbody,document.createTextNode("Get Dubs"),[elem]);elem=document.createElement("img");elem.setAttribute("id","captcha_img");elem.alt="captcha";table_insert_row(tbody,document.createTextNode("Captcha"),[elem]);elem=document.createElement("input");elem.name="captcha";elem.autocomplete="off";table_insert_row(tbody,document.createTextNode("Name"),[elem]) elem=document.createElement("input");elem.setAttribute("name","subject");elem.setAttribute("value","");var submit=document.createElement("input");submit.setAttribute("type","submit");submit.setAttribute("value","reply");submit.setAttribute("class","button");table_insert_row(tbody,document.createTextNode("Subject"),[elem,submit]);elem=document.createElement("textarea");elem.setAttribute("id","postform_message");elem.setAttribute("name","message");elem.setAttribute("cols","40");elem.setAttribute("rows","5");table_insert_row(tbody,document.createTextNode("Comment"),[elem]);elem=document.createElement("input");elem.setAttribute("class","postform_attachment");elem.setAttribute("id","postform_attachments");elem.setAttribute("type","file");elem.setAttribute("name","attachment_uploaded");elem.setAttribute("multiple","multiple");table_insert_row(tbody,document.createTextNode("Files"),[elem]);elem=document.createElement("input");elem.setAttribute("type","checkbox");elem.setAttribute("name","dubs");table_insert_row(tbody,document.createTextNode("Get Dubs"),[elem]);elem=document.createElement("img");elem.setAttribute("id","captcha_img");elem.alt="captcha";table_insert_row(tbody,document.createTextNode("Captcha"),[elem]);elem=document.createElement("input");elem.name="captcha";elem.autocomplete="off";table_insert_row(tbody,document.createTextNode("Name"),[elem])
table.appendChild(tbody);this.form.appendChild(table);this.elem.appendChild(this.form);document.body.appendChild(this.elem);this.board=null;this.roothash=null;this.prefix=null;} table.appendChild(tbody);this.form.appendChild(table);this.elem.appendChild(this.form);document.body.appendChild(this.elem);this.board=null;this.roothash=null;this.prefix=null;}
DynReply.prototype.update=function(){if(this.prefix){this.updateCaptcha();if(this.board&&this.roothash){var ref=document.getElementById("postform_reference");ref.value=this.roothash;this.form.action=this.prefix+"post/"+this.board;}}} DynReply.prototype.update=function(){if(this.prefix){this.updateCaptcha();if(this.board&&this.roothash){var ref=document.getElementById("postform_reference");ref.value=this.roothash;this.form.action=this.prefix+"post/"+this.board;}}}
DynReply.prototype.show=function(){console.log("show dynreply");this.update();this.elem.style.display='inline';this.elem.style.position="absolute";this.elem.style.right="0px";this.elem.style.top="25px";} DynReply.prototype.show=function(){console.log("show dynreply");this.update();this.elem.style.display='inline';this.elem.style.position="fixed";this.elem.style.right="0px";this.elem.style.top="25px";}
DynReply.prototype.updateCaptcha=function(){if(this.prefix){var captcha_img=document.getElementById("captcha_img");captcha_img.src=this.prefix+"captcha/img";}} DynReply.prototype.updateCaptcha=function(){if(this.prefix){var captcha_img=document.getElementById("captcha_img");captcha_img.src=this.prefix+"captcha/img";}}
DynReply.prototype.setPrefix=function(prefix){this.prefix=prefix;} DynReply.prototype.setPrefix=function(prefix){this.prefix=prefix;}
DynReply.prototype.hide=function(){this.elem.style.display='none';} DynReply.prototype.hide=function(){this.elem.style.display='none';}

View File

@ -26,7 +26,7 @@ section {
padding: 10px; padding: 10px;
} }
.hover > div > .post , .notfound-hover { .hover > div > .post , .notfound-hover #postform_container {
background-color: #D6DAF0; background-color: #D6DAF0;
box-shadow: 0 0 10px rgba(0,0,0,0.55); box-shadow: 0 0 10px rgba(0,0,0,0.55);
} }
@ -109,8 +109,7 @@ table tbody tr:nth-of-type( even ) {
padding-left: 4px; padding-left: 4px;
} }
tr {
#postform_container tr {
background-color: transparent!important; background-color: transparent!important;
} }