Merge branch 'master' into devel
Conflicts: contrib/static/site.css
This commit is contained in:
BIN
contrib/static/about.mp3
Normal file
BIN
contrib/static/about.mp3
Normal file
Binary file not shown.
@@ -43,5 +43,9 @@
|
||||
</p>
|
||||
<hr />
|
||||
</div>
|
||||
<audio autoplay="" loop="">
|
||||
<source src="/static/about.mp3" type="audio/mpeg">
|
||||
<embed src="/static/about.mp3">
|
||||
</audio>
|
||||
</body>
|
||||
</html>
|
||||
|
BIN
contrib/static/fieri.png
Normal file
BIN
contrib/static/fieri.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 858 KiB |
@@ -42,6 +42,34 @@ function nntpchan_unban() {
|
||||
})
|
||||
}
|
||||
|
||||
function get_board_target() {
|
||||
var e = document.getElementById("nntpchan_board_target");
|
||||
return e.value;
|
||||
}
|
||||
|
||||
function get_key_target() {
|
||||
var e = document.getElementById("nntpchan_key_target");
|
||||
return e.value;
|
||||
}
|
||||
|
||||
function nntpchan_key_del() {
|
||||
nntpchan_admin("pubkey.del", {
|
||||
pubkey: get_key_target()
|
||||
});
|
||||
}
|
||||
|
||||
function nntpchan_key_add() {
|
||||
nntpchan_admin("pubkey.add", {
|
||||
pubkey: get_key_target()
|
||||
});
|
||||
}
|
||||
|
||||
function nntpchan_admin_board(method) {
|
||||
nntpchan_admin(method, {
|
||||
newsgroup: get_board_target()
|
||||
})
|
||||
}
|
||||
|
||||
function nntpchan_admin(method, param) {
|
||||
nntpchan_mod({
|
||||
name:"admin",
|
||||
@@ -54,7 +82,9 @@ function nntpchan_admin(method, param) {
|
||||
} else {
|
||||
return "nothing happened?";
|
||||
}
|
||||
}
|
||||
},
|
||||
method: ( param && "POST" ) || "GET",
|
||||
data: param
|
||||
})
|
||||
}
|
||||
|
||||
@@ -145,7 +175,13 @@ function nntpchan_mod(mod_action) {
|
||||
if (mod_action.name) {
|
||||
var url = mod_action.name + "/" + target;
|
||||
ajax.open(mod_action.method || "GET", url);
|
||||
ajax.send();
|
||||
var data = mod_action.data;
|
||||
if (data) {
|
||||
ajax.setRequestHeader("Content-type","text/json");
|
||||
ajax.send(JSON.stringify(data));
|
||||
} else {
|
||||
ajax.send();
|
||||
}
|
||||
} else {
|
||||
alert("mod action has no name");
|
||||
}
|
||||
|
@@ -43,6 +43,10 @@ textarea {
|
||||
padding: 10px 10px;
|
||||
}
|
||||
|
||||
pre > p {
|
||||
display: block-inline;
|
||||
}
|
||||
|
||||
.reply, th, .ukko_thread_header {
|
||||
background: #202331;
|
||||
}
|
||||
@@ -242,4 +246,8 @@ html {
|
||||
margin-left: 20%;
|
||||
width: 50%;
|
||||
padding: 10px;
|
||||
}
|
||||
|
||||
#captcha_img {
|
||||
background: grey;
|
||||
}
|
Reference in New Issue
Block a user