Unshown top of ssrc-box update(For 15.8.1)

This commit is contained in:
cutls 2018-07-11 01:36:56 +09:00
parent d0af57b69d
commit 49a45f2ecf
3 changed files with 15 additions and 13 deletions

1
.gitignore vendored
View File

@ -4,3 +4,4 @@
TheDesk-* TheDesk-*
app/.DS_Store app/.DS_Store
.DS_Store .DS_Store
enq.md

View File

@ -78,21 +78,20 @@ var tlid=0;
</button> </button>
</div> </div>
<!--検索--> <!--検索-->
<div id="src-box" class="hide notf-box z-depth-4"> <div id="src-box" class="hide notf-box z-depth-4" style="width:500px">
<div class="input-field"> <div class="input-field">
<select id="src-acct-sel" class="acct-sel" onchange="trend()"></select>
</div><div class="input-field">
<i class="material-icons prefix">search</i> <i class="material-icons prefix">search</i>
<input id="src" type="text" class="validate" style="width:calc( 70% - 40px);"> <input id="src" type="text" class="validate" style="width:calc( 60% - 40px);">
<br><span data-trans="src_tip">ハッシュタグを検索するときは#を抜いてください。</span>
<br><span data-trans="src_acct_sel">検索に使用するアカウントを選択</span>
<br>
<div class="input-field">
<select id="src-acct-sel" class="acct-sel" onchange="trend()"></select>
<label></label>
</div>
<label for="src" data-trans="src">検索</label> <label for="src" data-trans="src">検索</label>
<button class="btn waves-effect indigo" style="width:calc( 60% - 40px);" onclick="src()" data-trans-i="src"> <button class="btn waves-effect indigo" style="width:calc( 40% - 40px);" onclick="src()" data-trans-i="src">
<i class="material-icons left">search</i>検索 <i class="material-icons left">search</i>検索
</button> </button>
<br>
<br>
</div> </div>
<div id="search"> <div id="search">
<div id="src-contents"> <div id="src-contents">

View File

@ -6,8 +6,8 @@ function srcToggle() {
if($("#src-box").hasClass("show")){ if($("#src-box").hasClass("show")){
trend(); trend();
} }
$("#src-box").css("top",$('#src-tgl').offset().top-$("#src-box").height()/2+"px"); $("#src-box").css("top",$('#src-tgl').offset().top+"px");
$("#src-box").css("left",$('#src-tgl').offset().left-410+"px"); $("#src-box").css("left",$('#src-tgl').offset().left-510+"px");
$('ul.tabs').tabs('select_tab', 'src-sta'); $('ul.tabs').tabs('select_tab', 'src-sta');
$("#src-contents").html(""); $("#src-contents").html("");
} }
@ -24,6 +24,8 @@ function src(mode) {
localStorage.setItem("last-use", acct_id); localStorage.setItem("last-use", acct_id);
var domain = localStorage.getItem("domain_" + acct_id); var domain = localStorage.getItem("domain_" + acct_id);
var at = localStorage.getItem("acct_"+ acct_id + "_at"); var at = localStorage.getItem("acct_"+ acct_id + "_at");
var m = q.match(/^#(.+)$/);
if(m){q=m[1];}
if (user == "--now") { if (user == "--now") {
var user = $('#his-data').attr("user-id"); var user = $('#his-data').attr("user-id");
} }