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-*
app/.DS_Store
.DS_Store
enq.md

View File

@ -78,21 +78,20 @@ var tlid=0;
</button>
</div>
<!--検索-->
<div id="src-box" class="hide notf-box z-depth-4">
<div class="input-field">
<div id="src-box" class="hide notf-box z-depth-4" style="width:500px">
<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>
<input id="src" type="text" class="validate" style="width:calc( 70% - 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>
<input id="src" type="text" class="validate" style="width:calc( 60% - 40px);">
<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>検索
</button>
<br>
<br>
</div>
<div id="search">
<div id="src-contents">

View File

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