dedicated titlebar
This commit is contained in:
parent
1496aec5e4
commit
e64730652a
@ -1371,7 +1371,7 @@
|
|||||||
text = '';
|
text = '';
|
||||||
}
|
}
|
||||||
tid || (tid = g.THREAD_ID || '');
|
tid || (tid = g.THREAD_ID || '');
|
||||||
QR.qr = qr = ui.dialog('qr', 'top: 0; right: 0;', " <a class=close>X</a> <input type=checkbox id=autohide title=autohide> <div class=move> <span class=click> <button>File</button> <input form=qr_form placeholder=Name name=name> <input form=qr_form placeholder=Email name=email> <input form=qr_form placeholder=Subject name=sub> </span> </div> <div class=autohide> <textarea form=qr_form placeholder=Comment name=com></textarea> <ul id=files></ul> <form enctype=multipart/form-data method=post action=http://sys.4chan.org/" + g.BOARD + "/post target=iframe id=qr_form> <div hidden> <input name=pwd> <input name=mode value=regist> <input name=recaptcha_challenge_field id=challenge> <input name=recaptcha_response_field id=response> </div> <div id=captcha> <div><img></div> <span id=cl>120 Captchas</span> <input id=recaptcha_response_field autocomplete=off> </div> <div> <button>Submit</button> " + (g.REPLY ? "<label>[<input type=checkbox id=autopost title=autopost> Autopost]</label>" : '') + " <input form=qr_form placeholder=Thread name=resto value=" + tid + " " + (g.REPLY ? 'hidden' : '') + "> " + QR.spoiler + " </div> </form> </div> <a class=error></a> ");
|
QR.qr = qr = ui.dialog('qr', 'top: 0; right: 0;', " <div class=move> <span id=stats></span> <input type=checkbox id=autohide title=autohide> <a class=close>X</a> </div> <div> <button>File</button> <input form=qr_form placeholder=Name name=name> <input form=qr_form placeholder=Email name=email> <input form=qr_form placeholder=Subject name=sub> </div> <div class=autohide> <textarea form=qr_form placeholder=Comment name=com></textarea> <ul id=files></ul> <form enctype=multipart/form-data method=post action=http://sys.4chan.org/" + g.BOARD + "/post target=iframe id=qr_form> <div hidden> <input name=pwd> <input name=mode value=regist> <input name=recaptcha_challenge_field id=challenge> <input name=recaptcha_response_field id=response> </div> <div id=captcha> <div><img></div> <span id=cl>120 Captchas</span> <input id=recaptcha_response_field autocomplete=off> </div> <div> <button>Submit</button> " + (g.REPLY ? "<label>[<input type=checkbox id=autopost title=autopost> Autopost]</label>" : '') + " <input form=qr_form placeholder=Thread name=resto value=" + tid + " " + (g.REPLY ? 'hidden' : '') + "> " + QR.spoiler + " </div> </form> </div> <a class=error></a> ");
|
||||||
c = d.cookie;
|
c = d.cookie;
|
||||||
$('[name=name]', qr).value = (m = c.match(/4chan_name=([^;]+)/)) ? decodeURIComponent(m[1]) : '';
|
$('[name=name]', qr).value = (m = c.match(/4chan_name=([^;]+)/)) ? decodeURIComponent(m[1]) : '';
|
||||||
$('[name=email]', qr).value = (m = c.match(/4chan_email=([^;]+)/)) ? decodeURIComponent(m[1]) : '';
|
$('[name=email]', qr).value = (m = c.match(/4chan_email=([^;]+)/)) ? decodeURIComponent(m[1]) : '';
|
||||||
@ -1382,9 +1382,6 @@
|
|||||||
}
|
}
|
||||||
$.bind($('button', qr), 'click', QR.attach);
|
$.bind($('button', qr), 'click', QR.attach);
|
||||||
$.bind($('.close', qr), 'click', QR.close);
|
$.bind($('.close', qr), 'click', QR.close);
|
||||||
$.bind($('.click', qr), 'mousedown', function(e) {
|
|
||||||
return e.stopPropagation();
|
|
||||||
});
|
|
||||||
$.bind($('form', qr), 'submit', QR.submit);
|
$.bind($('form', qr), 'submit', QR.submit);
|
||||||
$.bind($('#recaptcha_response_field', qr), 'keydown', QR.keydown);
|
$.bind($('#recaptcha_response_field', qr), 'keydown', QR.keydown);
|
||||||
QR.captchaImg();
|
QR.captchaImg();
|
||||||
@ -3106,14 +3103,14 @@
|
|||||||
#qr {\
|
#qr {\
|
||||||
position: fixed;\
|
position: fixed;\
|
||||||
}\
|
}\
|
||||||
#qr #autohide, #qr .close {\
|
#qr > .move {\
|
||||||
float: right;\
|
text-align: right;\
|
||||||
}\
|
}\
|
||||||
#qr .click input {\
|
#qr input {\
|
||||||
width: 73px;\
|
width: 82;\
|
||||||
}\
|
}\
|
||||||
#qr .click * {\
|
#qr #recaptcha_response_field {\
|
||||||
float: left;\
|
width: 100%;\
|
||||||
}\
|
}\
|
||||||
#qr form {\
|
#qr form {\
|
||||||
margin: 0;\
|
margin: 0;\
|
||||||
@ -3155,10 +3152,6 @@
|
|||||||
padding: 2px;\
|
padding: 2px;\
|
||||||
position: absolute;\
|
position: absolute;\
|
||||||
}\
|
}\
|
||||||
#qr #recaptcha_response_field {\
|
|
||||||
display: inline;\
|
|
||||||
width: 100%;\
|
|
||||||
}\
|
|
||||||
#qr #files input {\
|
#qr #files input {\
|
||||||
/* cannot use `display: none;`\
|
/* cannot use `display: none;`\
|
||||||
https://bugs.webkit.org/show_bug.cgi?id=58208\
|
https://bugs.webkit.org/show_bug.cgi?id=58208\
|
||||||
|
|||||||
@ -1048,15 +1048,16 @@ QR =
|
|||||||
dialog: (text='', tid) ->
|
dialog: (text='', tid) ->
|
||||||
tid or= g.THREAD_ID or ''
|
tid or= g.THREAD_ID or ''
|
||||||
QR.qr = qr = ui.dialog 'qr', 'top: 0; right: 0;', "
|
QR.qr = qr = ui.dialog 'qr', 'top: 0; right: 0;', "
|
||||||
<a class=close>X</a>
|
|
||||||
<input type=checkbox id=autohide title=autohide>
|
|
||||||
<div class=move>
|
<div class=move>
|
||||||
<span class=click>
|
<span id=stats></span>
|
||||||
<button>File</button>
|
<input type=checkbox id=autohide title=autohide>
|
||||||
<input form=qr_form placeholder=Name name=name>
|
<a class=close>X</a>
|
||||||
<input form=qr_form placeholder=Email name=email>
|
</div>
|
||||||
<input form=qr_form placeholder=Subject name=sub>
|
<div>
|
||||||
</span>
|
<button>File</button>
|
||||||
|
<input form=qr_form placeholder=Name name=name>
|
||||||
|
<input form=qr_form placeholder=Email name=email>
|
||||||
|
<input form=qr_form placeholder=Subject name=sub>
|
||||||
</div>
|
</div>
|
||||||
<div class=autohide>
|
<div class=autohide>
|
||||||
<textarea form=qr_form placeholder=Comment name=com></textarea>
|
<textarea form=qr_form placeholder=Comment name=com></textarea>
|
||||||
@ -1092,7 +1093,6 @@ QR =
|
|||||||
QR.cooldown() if conf['Cooldown']
|
QR.cooldown() if conf['Cooldown']
|
||||||
$.bind $('button', qr), 'click', QR.attach
|
$.bind $('button', qr), 'click', QR.attach
|
||||||
$.bind $('.close', qr), 'click', QR.close
|
$.bind $('.close', qr), 'click', QR.close
|
||||||
$.bind $('.click', qr), 'mousedown', (e) -> e.stopPropagation()
|
|
||||||
$.bind $('form', qr), 'submit', QR.submit
|
$.bind $('form', qr), 'submit', QR.submit
|
||||||
$.bind $('#recaptcha_response_field', qr), 'keydown', QR.keydown
|
$.bind $('#recaptcha_response_field', qr), 'keydown', QR.keydown
|
||||||
QR.captchaImg()
|
QR.captchaImg()
|
||||||
@ -2436,14 +2436,14 @@ Main =
|
|||||||
#qr {
|
#qr {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
}
|
}
|
||||||
#qr #autohide, #qr .close {
|
#qr > .move {
|
||||||
float: right;
|
text-align: right;
|
||||||
}
|
}
|
||||||
#qr .click input {
|
#qr input {
|
||||||
width: 73px;
|
width: 82;
|
||||||
}
|
}
|
||||||
#qr .click * {
|
#qr #recaptcha_response_field {
|
||||||
float: left;
|
width: 100%;
|
||||||
}
|
}
|
||||||
#qr form {
|
#qr form {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
@ -2485,10 +2485,6 @@ Main =
|
|||||||
padding: 2px;
|
padding: 2px;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
}
|
}
|
||||||
#qr #recaptcha_response_field {
|
|
||||||
display: inline;
|
|
||||||
width: 100%;
|
|
||||||
}
|
|
||||||
#qr #files input {
|
#qr #files input {
|
||||||
/* cannot use `display: none;`
|
/* cannot use `display: none;`
|
||||||
https://bugs.webkit.org/show_bug.cgi?id=58208
|
https://bugs.webkit.org/show_bug.cgi?id=58208
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user