diff --git a/app/css/userdata.css b/app/css/userdata.css index 720f273f..980c14d2 100644 --- a/app/css/userdata.css +++ b/app/css/userdata.css @@ -38,10 +38,6 @@ #his-basic-prof { min-height: 130px; } -#his-matching-list { - overflow-y: scroll; - overflow-x: hidden; -} #his-field { vertical-align: baseline; text-align: center; diff --git a/app/js/userdata/his-data.js b/app/js/userdata/his-data.js index 5172dad7..3625493c 100644 --- a/app/js/userdata/his-data.js +++ b/app/js/userdata/his-data.js @@ -739,46 +739,3 @@ function udAdd(acct_id, id, start) { } }); } - -//ユーザーマッチングリスト -function showMat() { - $("#his-matching-list-contents").html(lang.lang_hisdata_taketime); - var full = $("#his-acct").attr("fullname"); - var acct_id = $("#his-data").attr("use-acct"); - full = full.split("@"); - var start = "https://vinayaka.distsn.org/cgi-bin/vinayaka-user-match-filtered-api.cgi?" + full[1] + "+" + full[0]; - fetch(start, { - method: "GET", - headers: { - "content-type": "application/json" - } - //body: JSON.stringify({}) - }) - .then(function(response) { - if (!response.ok) { - response.text().then(function(text) { - setLog(response.url, response.status, text); - }); - } - return response.json(); - }) - .catch(function(error) { - todo(error); - setLog(start, "JSON", error); - console.error(error); - }) - .then(function(json) { - var templete = ""; - Object.keys(json).forEach(function(key) { - var user = json[key]; - if (user.avatar) { - var avatar = user.avatar; - } else { - var avatar = "../../img/loading.svg"; - } - templete = templete + '
' + '
' + '
' + '
' + '
' + escapeHTML(user.screen_name) + "
" + '
@' + user.user + "@" + user.host + "
" + "
" + '
' + "
" + ""; - }); - $("#his-matching-list").css("height", $("#his-float-data").height() - $("#his-basic-prof").height() - $("#his-des").height() - $("#his-plus-action").height() + "px"); - $("#his-matching-list-contents").html(templete); - }); -}