qr remix
This commit is contained in:
parent
6358f40635
commit
179c846d16
21
4chan_x.js
21
4chan_x.js
@ -1142,13 +1142,18 @@
|
||||
},
|
||||
dialog: function(link) {
|
||||
var clone, dialog, el, html, resto, script, xpath, _i, _len, _ref;
|
||||
html = "<div class=move>Quick Reply <input type=checkbox title=autohide> <a name=close title=close>X</a></div>";
|
||||
html = " <div class=move>Quick Reply <input type=checkbox title=autohide> <a name=close title=close>X</a></div> <form> <div><input name=name placeholder=name></div> <div><input name=email placeholder=email> <label><input type=checkbox>Spoiler Image?</label></div> <div><input name=sub placeholder=subject> <input value=submit type=submit></div> <div><textarea name=com placeholder=comment></textarea></div> <div id=qr_captcha></div> <div><input name=upfile type=file></div> <div><input name=pwd type=password maxlength=8 placeholder=password></div> </form> ";
|
||||
dialog = ui.dialog('qr', {
|
||||
top: '0px',
|
||||
left: '0px'
|
||||
}, html);
|
||||
el = $('input[title=autohide]', dialog);
|
||||
$.bind(el, 'click', qr.cb.autohide);
|
||||
clone = $('#recaptcha_widget_div').cloneNode(true);
|
||||
$.append($('#qr_captcha', dialog), clone);
|
||||
$('input[name=recaptcha_response_field]', clone).placeholder = 'verification';
|
||||
$.append(d.body, dialog);
|
||||
return;
|
||||
clone = $('form[name=post]').cloneNode(true);
|
||||
_ref = $$('script', clone);
|
||||
for (_i = 0, _len = _ref.length; _i < _len; _i++) {
|
||||
@ -2278,11 +2283,19 @@
|
||||
#qr > div.move {\
|
||||
text-align: right;\
|
||||
}\
|
||||
#qr > form > div, /* ad */\
|
||||
#qr #recaptcha_table td:nth-of-type(3), /* captcha logos */\
|
||||
#qr td.rules {\
|
||||
#qr #recaptcha_table td:nth-of-type(3) {/* captcha logos */\
|
||||
display: none;\
|
||||
}\
|
||||
#qr textarea {\
|
||||
width: 300px;\
|
||||
height: 100px;\
|
||||
}\
|
||||
#qr form {\
|
||||
margin: 0px;\
|
||||
}\
|
||||
#qr * {\
|
||||
padding: 0px !important;\
|
||||
}\
|
||||
#qr.auto:not(:hover) form {\
|
||||
display: none;\
|
||||
}\
|
||||
|
||||
@ -875,11 +875,29 @@ qr =
|
||||
clearInterval qr.cooldownIntervalID
|
||||
|
||||
dialog: (link) ->
|
||||
html = "<div class=move>Quick Reply <input type=checkbox title=autohide> <a name=close title=close>X</a></div>"
|
||||
html = "
|
||||
<div class=move>Quick Reply <input type=checkbox title=autohide> <a name=close title=close>X</a></div>
|
||||
<form>
|
||||
<div><input name=name placeholder=name></div>
|
||||
<div><input name=email placeholder=email> <label><input type=checkbox>Spoiler Image?</label></div>
|
||||
<div><input name=sub placeholder=subject> <input value=submit type=submit></div>
|
||||
<div><textarea name=com placeholder=comment></textarea></div>
|
||||
<div id=qr_captcha></div>
|
||||
<div><input name=upfile type=file></div>
|
||||
<div><input name=pwd type=password maxlength=8 placeholder=password></div>
|
||||
</form>
|
||||
"
|
||||
dialog = ui.dialog 'qr', top: '0px', left: '0px', html
|
||||
el = $ 'input[title=autohide]', dialog
|
||||
$.bind el, 'click', qr.cb.autohide
|
||||
|
||||
clone = $('#recaptcha_widget_div').cloneNode(true)
|
||||
$.append $('#qr_captcha', dialog), clone
|
||||
$('input[name=recaptcha_response_field]', clone).placeholder = 'verification'
|
||||
|
||||
$.append d.body, dialog
|
||||
return
|
||||
|
||||
clone = $('form[name=post]').cloneNode(true)
|
||||
for script in $$ 'script', clone
|
||||
$.remove script
|
||||
@ -1789,11 +1807,19 @@ main =
|
||||
#qr > div.move {
|
||||
text-align: right;
|
||||
}
|
||||
#qr > form > div, /* ad */
|
||||
#qr #recaptcha_table td:nth-of-type(3), /* captcha logos */
|
||||
#qr td.rules {
|
||||
#qr #recaptcha_table td:nth-of-type(3) {/* captcha logos */
|
||||
display: none;
|
||||
}
|
||||
#qr textarea {
|
||||
width: 300px;
|
||||
height: 100px;
|
||||
}
|
||||
#qr form {
|
||||
margin: 0px;
|
||||
}
|
||||
#qr * {
|
||||
padding: 0px !important;
|
||||
}
|
||||
#qr.auto:not(:hover) form {
|
||||
display: none;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user