From f23dc928b2c756e5d01151b12e1dc3f8527d3648 Mon Sep 17 00:00:00 2001 From: Cutls Date: Tue, 4 Jun 2019 01:26:00 +0900 Subject: [PATCH] WIP: Now Usamin (18.5.1) --- app/css/master.css | 2 +- app/js/common/version.js | 32 +++++++++++++++++++++++++++++++- app/js/login/login.js | 2 ++ app/view/en/index.html | 20 +++++++------------- app/view/ja/index.html | 20 +++++++------------- app/view/make/index.sample.html | 18 ++++++------------ app/view/make/make.js | 2 +- app/view/ps/index.html | 20 +++++++------------- 8 files changed, 62 insertions(+), 54 deletions(-) diff --git a/app/css/master.css b/app/css/master.css index a00a3aaf..6ee84bbd 100644 --- a/app/css/master.css +++ b/app/css/master.css @@ -414,7 +414,7 @@ blockquote:before, } #support-btm { position: fixed; - bottom: 0; + bottom: -300px; width: 100vw; background-color: var(--box); z-index: 9999; diff --git a/app/js/common/version.js b/app/js/common/version.js index 28a78175..ea05863c 100644 --- a/app/js/common/version.js +++ b/app/js/common/version.js @@ -1,8 +1,11 @@ //バージョンチェッカー function verck(ver) { console.log("%c Welcome😊", "color: red;font-size:200%;") + var date = new Date(); + var show = false if (localStorage.getItem("ver") != ver) { localStorage.setItem("ver", ver); + show = true console.log("%c Thank you for your update🎉", "color: red;font-size:200%;"); $(document).ready(function () { $('#releasenote').modal('open'); @@ -22,11 +25,28 @@ function verck(ver) { }); } + if (!show) { + console.log(show) + if (date.getMonth() + 1 == localStorage.getItem("showSupportMe") || !localStorage.getItem("showSupportMe")) { + if (date.getMonth() == 11) { + var nextmonth = 1 + } else { + var nextmonth = date.getMonth() + 2 + } + localStorage.setItem("showSupportMe", nextmonth) + $("#support-btm").removeClass("hide") + $("#support-btm").animate({ + 'bottom': '0' + }, { + 'duration': 300 + }); + } + } var electron = require("electron"); var remote = electron.remote; var dialog = remote.dialog; var platform = remote.process.platform; - console.log("Your platform:"+remote.process.platform) + console.log("Your platform:" + remote.process.platform) if (platform == "win32") { const options = { type: 'info', @@ -272,4 +292,14 @@ function openRN() { } else { $("#release-en").show(); } +} +function closeSupport() { + $("#support-btm").animate({ + 'bottom': '-300px' + }, { + 'duration': 300, + 'complete': function () { + $("#support-btm").addClass("hide") + } + }); } \ No newline at end of file diff --git a/app/js/login/login.js b/app/js/login/login.js index 8379e79c..86eb21c8 100644 --- a/app/js/login/login.js +++ b/app/js/login/login.js @@ -26,6 +26,8 @@ function ck() { } var multi = localStorage.getItem("multi"); if (!multi || multi == "[]") { + var date = new Date(); + localStorage.setItem("showSupportMe", date.getMonth() + 2) location.href = "acct.html?mode=first&code=true" } else { var obj = JSON.parse(multi); diff --git a/app/view/en/index.html b/app/view/en/index.html index bd64633f..16b1f169 100644 --- a/app/view/en/index.html +++ b/app/view/en/index.html @@ -36,7 +36,7 @@