TheDesk Akane beta-phase:1

This commit is contained in:
cutls
2018-07-28 06:25:12 +09:00
parent 5473c22fe5
commit 7f64bd6d2a
29 changed files with 1449 additions and 691 deletions

View File

@@ -135,6 +135,10 @@ function emojiInsert(code, del) {
}
//改行挿入
function brInsert(code) {
if(!$('#post-box').hasClass("appear")){
localStorage.setItem("nohide",true);
show();
}
var now = $("#textarea").val();
$("#textarea").val(now + code);
$("#textarea").focus();

View File

@@ -66,6 +66,9 @@ function post() {
httpreq.send(JSON.stringify(toot));
httpreq.onreadystatechange = function() {
if (httpreq.readyState == 4) {
if(str.indexOf(localStorage.getItem("stable"))==-1){
localStorage.removeItem("stable")
}
var json = httpreq.response;
console.log(json);
var box = localStorage.getItem("box");
@@ -85,6 +88,9 @@ function post() {
//クリア(Shift+C)
function clear() {
$("#textarea").val("");
if(localStorage.getItem("stable")){
$("#textarea").val(localStorage.getItem("stable"));
}
$("#textarea").attr("placeholder", "");
$("#reply").val("");
$("#media").val("");

View File

@@ -1,5 +1,6 @@
/*リプライ*/
function re(id,at,acct_id,mode){
localStorage.setItem("nohide",true);
show();
$("#reply").val(id);
var te=$("#textarea").val();
@@ -21,6 +22,7 @@ function reEx(id){
}
//引用
function qt(id,acct_id,at,url){
localStorage.setItem("nohide",true);
var qt = localStorage.getItem("quote");
if(!qt){
var qt="simple";