mirror of
https://github.com/Daichimarukana/uwuzu.git
synced 2026-06-04 19:14:41 +00:00
uwuzu version 1.2.22
This commit is contained in:
@@ -85,6 +85,7 @@ $pdo = null;
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<link rel="stylesheet" href="../css/style.css">
|
||||
<script src="../js/console_notice.js"></script>
|
||||
<link rel="apple-touch-icon" type="../image/png" href="../favicon/apple-touch-icon-180x180.png">
|
||||
<link rel="icon" type="image/png" href="../favicon/icon-192x192.png">
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1">
|
||||
|
||||
@@ -80,6 +80,7 @@ if(!(empty($_SESSION['backupcode']))){
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<link rel="stylesheet" href="../css/style.css">
|
||||
<script src="../js/console_notice.js"></script>
|
||||
<link rel="apple-touch-icon" type="image/png" href="../favicon/apple-touch-icon-180x180.png">
|
||||
<link rel="icon" type="image/png" href="../favicon/icon-192x192.png">
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1">
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
--main-color: #FFC832;
|
||||
--sub-color: #FFFAE6;
|
||||
--background-color: #f5f5f5;
|
||||
--tl-color: #F7F7F7;
|
||||
--ueuse-color:#f5f5f5;
|
||||
--text-color: #252525;
|
||||
--subtext-color: #999;
|
||||
--link-color: #4e4428;
|
||||
|
||||
+54
-5
@@ -463,7 +463,7 @@ main{
|
||||
margin-left: 12px;
|
||||
margin-right: 12px;
|
||||
width: 62%;
|
||||
background-color: var(--background-color);
|
||||
background-color: var(--tl-color-color);
|
||||
box-shadow:0 0px 48px 0 rgba(0, 0, 0, .05);
|
||||
border: 1px solid var(--main-color);
|
||||
}
|
||||
@@ -923,7 +923,7 @@ main h1{
|
||||
padding-right: 24px;
|
||||
padding-top: 16px;
|
||||
padding-bottom: 16px;
|
||||
background-color: var(--background-color);
|
||||
background-color: var(--ueuse-color);
|
||||
border: 1px solid var(--border-color);
|
||||
width: auto;
|
||||
}
|
||||
@@ -1850,7 +1850,7 @@ main h1{
|
||||
padding-left: 32px;
|
||||
padding-right: 32px;
|
||||
border-radius: 15px;
|
||||
background-color: var(--background-color)fff;
|
||||
background-color: var(--tl-color);
|
||||
box-shadow:none;
|
||||
text-align: left;
|
||||
}
|
||||
@@ -3671,7 +3671,7 @@ summary {
|
||||
margin-left: 0px;
|
||||
margin-right: 0px;
|
||||
width: auto;
|
||||
background-color: var(--background-color);
|
||||
background-color: var(--tl-color);
|
||||
box-shadow:0 0px 48px 0 rgba(0, 0, 0, .05);
|
||||
box-shadow:0 0px 48px 0 rgba(0, 0, 0, .05);
|
||||
border: none;
|
||||
@@ -4057,7 +4057,7 @@ summary {
|
||||
padding-right: 12px;
|
||||
padding-top: 12px;
|
||||
padding-bottom: 12px;
|
||||
background-color: var(--background-color);
|
||||
background-color: var(--ueuse-color);
|
||||
border: 1px solid var(--border-color);
|
||||
width: auto;
|
||||
}
|
||||
@@ -4806,6 +4806,46 @@ summary {
|
||||
width:75%;
|
||||
}
|
||||
|
||||
.bot_menu_area{
|
||||
display: flex;
|
||||
flex-wrap : wrap;
|
||||
width: 100%;
|
||||
}
|
||||
.menubutton{
|
||||
display: block;
|
||||
background-color: var(--background-color);
|
||||
color: var(--main-color);
|
||||
border-radius: 10px;
|
||||
width: 25%;
|
||||
height: 10dvh;
|
||||
padding:0px;
|
||||
text-align: center;
|
||||
transition: all 250ms ease-out;
|
||||
text-decoration: none;
|
||||
}
|
||||
.menubutton:hover{
|
||||
background-color: var(--sub-color);
|
||||
color: var(--main-color);
|
||||
}
|
||||
.menubutton svg {
|
||||
width: 40%;
|
||||
height: 40%;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
margin-top: 15%;
|
||||
margin-bottom: 0px;
|
||||
vertical-align: middle;
|
||||
fill: currentColor;
|
||||
}
|
||||
.menubutton div{
|
||||
font-family: 'BIZ UDPGothic', sans-serif;
|
||||
word-wrap: break-word;
|
||||
font-size: 12px;
|
||||
line-height: 22px;
|
||||
font-weight: bold;
|
||||
text-align: center;
|
||||
margin-bottom: 15%;
|
||||
}
|
||||
}
|
||||
|
||||
/*------------------------------------------------------------------------------------------------------------*/
|
||||
@@ -5416,4 +5456,13 @@ summary {
|
||||
.error p{
|
||||
color: var(--background-color);
|
||||
}
|
||||
|
||||
.menubutton{
|
||||
background-color: var(--dark-sub-color);
|
||||
color: var(--main-color);
|
||||
}
|
||||
.menubutton:hover{
|
||||
background-color: var(--dark-background-color);
|
||||
color: var(--main-color);
|
||||
}
|
||||
}
|
||||
@@ -308,6 +308,9 @@ $pdo = null;
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<link rel="stylesheet" href="../css/home.css">
|
||||
<script src="../js/console_notice.js"></script>
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1">
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.0/jquery.min.js"></script>
|
||||
<link rel="apple-touch-icon" type="image/png" href="../favicon/apple-touch-icon-180x180.png">
|
||||
<link rel="icon" type="image/png" href="../favicon/icon-192x192.png">
|
||||
<title>絵文字登録 - <?php echo file_get_contents($servernamefile);?></title>
|
||||
|
||||
@@ -172,6 +172,8 @@ $pdo = null;
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.0/jquery.min.js"></script>
|
||||
<script src="../js/console_notice.js"></script>
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1">
|
||||
<link rel="apple-touch-icon" type="image/png" href="../favicon/apple-touch-icon-180x180.png">
|
||||
<link rel="icon" type="image/png" href="../favicon/icon-192x192.png">
|
||||
<link rel="stylesheet" href="../css/home.css">
|
||||
|
||||
@@ -20,6 +20,7 @@ $termsdata = file_get_contents($termsfile);
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<link rel="stylesheet" href="/css/home.css">
|
||||
<script src="../js/console_notice.js"></script>
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1">
|
||||
<title>400 Bad Request - <?php echo file_get_contents($servernamefile);?></title>
|
||||
</head>
|
||||
|
||||
@@ -20,6 +20,7 @@ $termsdata = file_get_contents($termsfile);
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<link rel="stylesheet" href="/css/home.css">
|
||||
<script src="../js/console_notice.js"></script>
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1">
|
||||
<title>401 Unauthorized - <?php echo file_get_contents($servernamefile);?></title>
|
||||
</head>
|
||||
|
||||
@@ -20,6 +20,7 @@ $termsdata = file_get_contents($termsfile);
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<link rel="stylesheet" href="/css/home.css">
|
||||
<script src="../js/console_notice.js"></script>
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1">
|
||||
<title>403 Forbidden - <?php echo file_get_contents($servernamefile);?></title>
|
||||
</head>
|
||||
|
||||
@@ -24,6 +24,7 @@ $termsdata = file_get_contents($termsfile);
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<link rel="stylesheet" href="/css/home.css">
|
||||
<script src="../js/console_notice.js"></script>
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1">
|
||||
<title>404 Not found - <?php echo file_get_contents($servernamefile);?></title>
|
||||
</head>
|
||||
|
||||
@@ -20,6 +20,7 @@ $termsdata = file_get_contents($termsfile);
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<link rel="stylesheet" href="/css/home.css">
|
||||
<script src="../js/console_notice.js"></script>
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1">
|
||||
<title>500 Internal Server Error - <?php echo file_get_contents($servernamefile);?></title>
|
||||
</head>
|
||||
|
||||
@@ -25,6 +25,7 @@ $termsdata = file_get_contents($termsfile);
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<link rel="stylesheet" href="/css/home.css">
|
||||
<script src="../js/console_notice.js"></script>
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1">
|
||||
<title>503 Service Unavailable - <?php echo file_get_contents($servernamefile);?></title>
|
||||
</head>
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<link rel="stylesheet" href="home.css">
|
||||
<script src="../js/console_notice.js"></script>
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1">
|
||||
<title>サーバー停止 - ゆずさば</title>
|
||||
</head>
|
||||
|
||||
+3
-2
@@ -431,6 +431,7 @@ $pdo = null;
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.0/jquery.min.js"></script>
|
||||
<script src="../js/console_notice.js"></script>
|
||||
<link rel="manifest" href="../manifest/manifest.json" />
|
||||
<script>
|
||||
if ("serviceWorker" in navigator) {
|
||||
@@ -648,10 +649,10 @@ $(document).on('click', '.favbtn, .favbtn_after', function(event) {
|
||||
// いいね成功時の処理
|
||||
if (isLiked) {
|
||||
$this.removeClass('favbtn_after'); // クラスを削除していいねを取り消す
|
||||
$this.find('img').attr('src', '../img/sysimage/favorite_1.svg'); // 画像を元の画像に戻す
|
||||
$this.find('use').attr('xlink:href', '../img/sysimage/favorite_1.svg#favorite'); // 画像を元の画像に戻す
|
||||
} else {
|
||||
$this.addClass('favbtn_after'); // クラスを追加していいねを追加する
|
||||
$this.find('img').attr('src', '../img/sysimage/favorite_2.svg'); // 画像を新しい画像に置き換える
|
||||
$this.find('use').attr('xlink:href', '../img/sysimage/favorite_2.svg#favorite'); // 画像を新しい画像に置き換える
|
||||
}
|
||||
|
||||
var newFavoriteList = response.newFavorite.split(',');
|
||||
|
||||
+1
-6
@@ -425,18 +425,13 @@ require('../logout/logout.php');
|
||||
// データベースの接続を閉じる
|
||||
$pdo = null;
|
||||
|
||||
if(isset($_GET['text'])){
|
||||
$ueuse = $_GET['text'];
|
||||
}else{
|
||||
$ueuse = "";
|
||||
}
|
||||
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="ja">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.0/jquery.min.js"></script>
|
||||
<script src="../js/console_notice.js"></script>
|
||||
<link rel="manifest" href="../manifest/manifest.json" />
|
||||
<script>
|
||||
if ("serviceWorker" in navigator) {
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
<svg version="1.1" id="menu" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 1024 1024" style="fill-rule:evenodd;stroke:none" xml:space="preserve">
|
||||
<g>
|
||||
<path d="M 135.10014 261.76584 C 135.88863 281.9272 143.10472 302.10645 158.23271 315.7327 C 172.61064 330.8369 193.77208 337.93262 214.2589 337.0 C 339.75922 337.0 465.30118 337.0 590.8015 337.0 C 653.5447 337.0 716.3296 337.0 779.07275 337.0 C 794.18414 336.49866 812.05054 337.75153 825.85876 336.2494 C 846.2525 332.55884 865.39734 320.66638 876.54706 302.8964 C 888.4119 284.9397 891.546 262.0605 885.84174 241.45285 C 878.5426 216.8039 858.16205 195.88255 832.9972 189.4408 C 820.6477 185.68124 807.4179 187.51292 794.75134 187.0 C 598.49036 187.0817 402.22546 186.90038 205.97005 187.0538 C 166.96121 187.98091 135.5205 223.65862 135.10014 261.76584 Z M 135.10014 511.76584 C 135.88863 531.9272 143.10472 552.10645 158.23271 565.7327 C 172.61064 580.8369 193.77208 587.9326 214.2589 587.0 C 339.7672 587.0 465.30917 587.0 590.8015 587.0 C 653.5586 587.0 716.3157 587.0 779.07275 587.0 C 794.18414 586.49866 812.05054 587.7515 825.85876 586.2494 C 846.2525 582.55884 865.39734 570.6664 876.54706 552.89636 C 888.4119 534.9397 891.546 512.0605 885.84174 491.45285 C 878.5426 466.8039 858.16205 445.88257 832.9972 439.4408 C 820.6477 435.68124 807.4179 437.51294 794.75134 437.0 C 598.49036 437.0817 402.22546 436.90036 205.97005 437.0538 C 166.96121 437.9809 135.5205 473.65863 135.10014 511.76584 Z M 135.10014 761.7658 C 135.88863 781.9272 143.10472 802.10645 158.23271 815.7327 C 172.61064 830.8369 193.77208 837.9326 214.2589 837.0 C 339.7672 837.0 465.30917 837.0 590.8015 837.0 C 653.5586 837.0 716.3157 837.0 779.07275 837.0 C 794.18414 836.49866 812.05054 837.7515 825.85876 836.2494 C 846.2525 832.55884 865.39734 820.6664 876.54706 802.89636 C 888.4119 784.9397 891.546 762.0605 885.84174 741.4528 C 878.5426 716.8039 858.16205 695.88257 832.9972 689.4408 C 820.6477 685.6812 807.4179 687.51294 794.75134 687.0 C 598.49036 687.0817 402.22546 686.9004 205.97005 687.0538 C 166.96121 687.9809 135.5205 723.6586 135.10014 761.7658 Z " />
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 2.1 KiB |
@@ -0,0 +1,28 @@
|
||||
console.log(
|
||||
"%c警告!!!%c\nもし誰かにここに%cコピペ%cしろと言われたりCookieというものをコピーしろなどと言われているのであればその行為は%c今すぐやめて%cください。",
|
||||
"color:white; background-color:#FF4848; padding:4px; border-radius:4px; font-weight: bold; font-size: 16pt",
|
||||
"",
|
||||
"color:#FF4848; font-size: 16pt; font-weight: bold;",
|
||||
"",
|
||||
"color:#FF4848; font-size: 16pt; font-weight: bold;",
|
||||
"",
|
||||
);
|
||||
console.log(
|
||||
"ここに何かを貼り付けてしまうと%c悪意のあるユーザー%cにより%cあなたのアカウントが乗っ取られる%c可能性が大いにあります。",
|
||||
"color:#FF4848; font-weight: bold;",
|
||||
"",
|
||||
"color:#FF4848; font-weight: bold;",
|
||||
"",
|
||||
);
|
||||
console.log(
|
||||
"自分で意図して行っていないのであれば%c今直ぐにこのツールを閉じて%cログアウトもしくはCookieとセッションの削除をするべきです。",
|
||||
"color:#FF4848; font-weight: bold;",
|
||||
"",
|
||||
);
|
||||
console.log(
|
||||
"%cMessage by uwuzu%c\n%cこのメッセージはuwuzu開発者であるだいちまるによって書き込まれたものです。%c",
|
||||
"color:white; background-color:#FFC832; padding:4px; border-radius:4px; font-size: 12pt",
|
||||
"",
|
||||
"color:#000;",
|
||||
"",
|
||||
);
|
||||
@@ -31,6 +31,7 @@ if (isset($_SERVER['HTTP_COOKIE'])) {
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<link rel="stylesheet" href="../css/style.css">
|
||||
<script src="../js/console_notice.js"></script>
|
||||
<link rel="apple-touch-icon" type="image/png" href="../favicon/apple-touch-icon-180x180.png">
|
||||
<link rel="icon" type="image/png" href="../favicon/icon-192x192.png">
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1">
|
||||
|
||||
@@ -6,6 +6,12 @@
|
||||
"display": "standalone",
|
||||
"start_url": "../index.php",
|
||||
"icons": [
|
||||
{
|
||||
"src": "icon-512x512.png",
|
||||
"sizes": "512x512",
|
||||
"type": "image/png",
|
||||
"purpose": "any"
|
||||
},
|
||||
{
|
||||
"src": "icon-512x512.png",
|
||||
"sizes": "512x512",
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
|
||||
<?php
|
||||
function processMarkdownAndWrapEmptyLines($markdownText){
|
||||
|
||||
$markdownText = preg_replace('/^\[\[buruburu (.+)\]\]/m', '<p class="buruburu">$1</p>', $markdownText);//←ここ!!!!!!!!!!!!!!
|
||||
// コード(#code)をHTMLのdiv class="code"タグに変換
|
||||
$markdownText = preg_replace('/^#code (.+)/m', '<div class="code"><p>$1</p></div>', $markdownText);
|
||||
|
||||
@@ -267,7 +267,10 @@ $pdo = null;
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<link rel="stylesheet" href="../css/home.css">
|
||||
<script src="../js/console_notice.js"></script>
|
||||
<link rel="apple-touch-icon" type="image/png" href="../favicon/apple-touch-icon-180x180.png">
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.0/jquery.min.js"></script>
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1">
|
||||
<link rel="icon" type="image/png" href="../favicon/icon-192x192.png">
|
||||
<title>お知らせ配信 - <?php echo file_get_contents($servernamefile);?></title>
|
||||
|
||||
|
||||
@@ -165,6 +165,7 @@ $pdo = null;
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.0/jquery.min.js"></script>
|
||||
<script src="../js/console_notice.js"></script>
|
||||
<link rel="stylesheet" href="../css/home.css">
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1">
|
||||
<link rel="apple-touch-icon" type="image/png" href="../favicon/apple-touch-icon-180x180.png">
|
||||
|
||||
@@ -428,7 +428,9 @@ require('../logout/logout.php');
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<link rel="stylesheet" href="../css/home.css">
|
||||
<script src="../js/console_notice.js"></script>
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1">
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.0/jquery.min.js"></script>
|
||||
<link rel="apple-touch-icon" type="image/png" href="../favicon/apple-touch-icon-180x180.png">
|
||||
<link rel="icon" type="image/png" href="../favicon/icon-192x192.png">
|
||||
<title>その他の項目 - <?php echo file_get_contents($servernamefile);?></title>
|
||||
|
||||
@@ -159,6 +159,7 @@ require('../logout/logout.php');
|
||||
<meta charset="utf-8">
|
||||
<link rel="stylesheet" href="../css/home.css">
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1">
|
||||
<script src="../js/console_notice.js"></script>
|
||||
<link rel="apple-touch-icon" type="image/png" href="../favicon/apple-touch-icon-180x180.png">
|
||||
<link rel="icon" type="image/png" href="../favicon/icon-192x192.png">
|
||||
<title>アクセストークン発行完了 - <?php echo file_get_contents($servernamefile);?></title>
|
||||
|
||||
@@ -167,7 +167,6 @@ $pdo = null;
|
||||
<label for="userid">ユーザーID</label>
|
||||
<input onInput="checkForm(this)" id="userid" class="inbox" type="text" name="userid" value="<?php if( !empty($_SESSION['userid']) ){ echo htmlentities( $_SESSION['userid'], ENT_QUOTES, 'UTF-8'); } ?>">
|
||||
</div>
|
||||
<!--個人情報関係-->
|
||||
|
||||
<!--アカウント関連-->
|
||||
<div>
|
||||
|
||||
+42
-4
@@ -8,10 +8,48 @@
|
||||
<a href="/notification" class="btmbutton"><svg><use xlink:href="../img/sysimage/menuicon/notification.svg#notification"></use></svg></a>
|
||||
<?php }?>
|
||||
<a href="/search" class="btmbutton"><svg><use xlink:href="../img/sysimage/menuicon/search.svg#search"></use></svg></a>
|
||||
<a href="/settings" class="btmbutton"><svg><use xlink:href="../img/sysimage/menuicon/settings.svg#settings"></use></svg></a>
|
||||
<?php if($res["admin"] === "yes"){?>
|
||||
<a href="/settings_admin/serveradmin" class="btmbutton"><svg><use xlink:href="../img/sysimage/menuicon/server.svg#server"></use></svg></a>
|
||||
<?php }?>
|
||||
<button id="openmenu" class="btmbutton"><svg><use xlink:href="../img/sysimage/menuicon/menu.svg#menu"></use></svg></button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="bot_box_Modal" class="modal">
|
||||
<div class="modal-content">
|
||||
<p>メニュー</p>
|
||||
<div class="bot_menu_area">
|
||||
<a href="/emoji" class="menubutton"><svg><use xlink:href="../img/sysimage/menuicon/emoji.svg#emoji"></use></svg><div>絵文字</div></a>
|
||||
<a href="/@<?php echo $userid; ?>" class="menubutton"><svg><use xlink:href="../img/sysimage/menuicon/profile.svg#profile"></use></svg><div>プロフィール</div></a>
|
||||
<a href="/settings" class="menubutton"><svg><use xlink:href="../img/sysimage/menuicon/settings.svg#settings"></use></svg><div>設定</div></a>
|
||||
<a href="/others" class="menubutton"><svg><use xlink:href="../img/sysimage/menuicon/others.svg#others"></use></svg><div>その他</div></a>
|
||||
|
||||
<?php if($res["admin"] === "yes"){?>
|
||||
<a href="/emoji/addemoji" class="menubutton"><svg><use xlink:href="../img/sysimage/menuicon/addemoji.svg#addemoji"></use></svg><div>絵文字登録</div></a>
|
||||
<a href="/notice/addnotice" class="menubutton"><svg><use xlink:href="../img/sysimage/menuicon/addnotice.svg#addnotice"></use></svg><div>お知らせ配信</div></a>
|
||||
<a href="/settings_admin/serveradmin" class="menubutton"><svg><use xlink:href="../img/sysimage/menuicon/server.svg#server"></use></svg><div>サーバー設定</div></a>
|
||||
<?php }?>
|
||||
|
||||
</div>
|
||||
<input type="button" id="bot_cancelButton" class="fbtn" value="とじる">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
var bot_modal = document.getElementById('bot_box_Modal');
|
||||
var bot_cancelButton = document.getElementById('bot_cancelButton'); // 追加
|
||||
var modalMain = $('.modal-content');
|
||||
|
||||
document.getElementById("openmenu").addEventListener('click', function(){
|
||||
bot_modal.style.display = 'block';
|
||||
modalMain.addClass("slideUp");
|
||||
modalMain.removeClass("slideDown");
|
||||
|
||||
bot_cancelButton.addEventListener('click', () => { // 追加
|
||||
modalMain.removeClass("slideUp");
|
||||
modalMain.addClass("slideDown");
|
||||
window.setTimeout(function(){
|
||||
bot_modal.style.display = 'none';
|
||||
}, 150);
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
<?php ?>
|
||||
+33
-34
@@ -174,6 +174,7 @@ $pdo = null;
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.0/jquery.min.js"></script>
|
||||
<script src="../js/console_notice.js"></script>
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1">
|
||||
<link rel="apple-touch-icon" type="image/png" href="../favicon/apple-touch-icon-180x180.png">
|
||||
<link rel="icon" type="image/png" href="../favicon/icon-192x192.png">
|
||||
@@ -277,8 +278,6 @@ $(document).ready(function() {
|
||||
// 前回の検索結果をクリア
|
||||
$('#postContainer').empty();
|
||||
|
||||
console.log(keyword)
|
||||
|
||||
// 新しいキーワードで検索を実行
|
||||
$.ajax({
|
||||
url: '../nextpage/searchpage.php', // PHPファイルへのパス
|
||||
@@ -302,45 +301,45 @@ $(document).ready(function() {
|
||||
|
||||
$(document).on('click', '.favbtn, .favbtn_after', function(event) {
|
||||
|
||||
event.preventDefault();
|
||||
event.preventDefault();
|
||||
|
||||
var postUniqid = $(this).data('uniqid');
|
||||
var userid = '<?php echo $userid; ?>';
|
||||
var account_id = '<?php echo $loginid; ?>';
|
||||
var likeCountElement = $(this).find('.like-count'); // いいね数を表示する要素
|
||||
var postUniqid = $(this).data('uniqid');
|
||||
var userid = '<?php echo $userid; ?>';
|
||||
var account_id = '<?php echo $loginid; ?>';
|
||||
var likeCountElement = $(this).find('.like-count'); // いいね数を表示する要素
|
||||
|
||||
var isLiked = $(this).hasClass('favbtn_after'); // 現在のいいねの状態を判定
|
||||
var isLiked = $(this).hasClass('favbtn_after'); // 現在のいいねの状態を判定
|
||||
|
||||
var $this = $(this); // ボタン要素を変数に格納
|
||||
var $this = $(this); // ボタン要素を変数に格納
|
||||
|
||||
$.ajax({
|
||||
url: '../favorite/favorite.php',
|
||||
method: 'POST',
|
||||
data: { uniqid: postUniqid, userid: userid, account_id: account_id }, // ここに自分のユーザーIDを指定
|
||||
dataType: 'json',
|
||||
success: function(response) {
|
||||
if (response.success) {
|
||||
// いいね成功時の処理
|
||||
if (isLiked) {
|
||||
$this.removeClass('favbtn_after'); // クラスを削除していいねを取り消す
|
||||
$this.find('img').attr('src', '../img/sysimage/favorite_1.svg'); // 画像を元の画像に戻す
|
||||
} else {
|
||||
$this.addClass('favbtn_after'); // クラスを追加していいねを追加する
|
||||
$this.find('img').attr('src', '../img/sysimage/favorite_2.svg'); // 画像を新しい画像に置き換える
|
||||
}
|
||||
|
||||
var newFavoriteList = response.newFavorite.split(',');
|
||||
var likeCount = newFavoriteList.length - 1;
|
||||
likeCountElement.text(likeCount); // いいね数を更新
|
||||
$.ajax({
|
||||
url: '../favorite/favorite.php',
|
||||
method: 'POST',
|
||||
data: { uniqid: postUniqid, userid: userid, account_id: account_id }, // ここに自分のユーザーIDを指定
|
||||
dataType: 'json',
|
||||
success: function(response) {
|
||||
if (response.success) {
|
||||
// いいね成功時の処理
|
||||
if (isLiked) {
|
||||
$this.removeClass('favbtn_after'); // クラスを削除していいねを取り消す
|
||||
$this.find('use').attr('xlink:href', '../img/sysimage/favorite_1.svg#favorite'); // 画像を元の画像に戻す
|
||||
} else {
|
||||
// いいね失敗時の処理
|
||||
$this.addClass('favbtn_after'); // クラスを追加していいねを追加する
|
||||
$this.find('use').attr('xlink:href', '../img/sysimage/favorite_2.svg#favorite'); // 画像を新しい画像に置き換える
|
||||
}
|
||||
}.bind(this), // コールバック内でthisが適切な要素を指すようにbindする
|
||||
error: function() {
|
||||
// エラー時の処理
|
||||
|
||||
var newFavoriteList = response.newFavorite.split(',');
|
||||
var likeCount = newFavoriteList.length - 1;
|
||||
likeCountElement.text(likeCount); // いいね数を更新
|
||||
} else {
|
||||
// いいね失敗時の処理
|
||||
}
|
||||
});
|
||||
});
|
||||
}.bind(this), // コールバック内でthisが適切な要素を指すようにbindする
|
||||
error: function() {
|
||||
// エラー時の処理
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
uwuzu
|
||||
1.2.21
|
||||
2023/09/11
|
||||
1.2.22
|
||||
2023/09/12
|
||||
daichimarukana,putonfps
|
||||
@@ -1,6 +1,15 @@
|
||||
## リリースノートだぜぇぇぇぇぇぇい!!!!!!!
|
||||
ここにはuwuzuの更新情報を載せてくぜぇ~!(いやまてテンションおかしいだろ...)
|
||||
|
||||
## Version 1.2.22
|
||||
リリース日:2023/09/12
|
||||
カスタマイズ機能を微調整しました。
|
||||
PWAのエラーを修正しました。
|
||||
スマホ向けメニューを追加しました。
|
||||
ユーザーに脆弱性に対しての注意喚起をする機能を追加しました。
|
||||
投稿をuniqidだけでも閲覧できるようにしました。([domain]/![uniqid]で閲覧できます。)
|
||||
いいねボタンの見た目が変わらないバグを修正しました。
|
||||
|
||||
## Version 1.2.21
|
||||
リリース日:2023/09/11
|
||||
PC向けUIを若干変更しました!
|
||||
|
||||
@@ -240,7 +240,9 @@ $pdo = null;
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<link rel="stylesheet" href="../css/home.css">
|
||||
<script src="../js/console_notice.js"></script>
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1">
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.0/jquery.min.js"></script>
|
||||
<link rel="apple-touch-icon" type="image/png" href="../favicon/apple-touch-icon-180x180.png">
|
||||
<link rel="icon" type="image/png" href="../favicon/icon-192x192.png">
|
||||
<title>設定 - <?php echo file_get_contents($servernamefile);?></title>
|
||||
|
||||
@@ -704,7 +704,9 @@ $pdo = null;
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<link rel="stylesheet" href="../css/home.css">
|
||||
<script src="../js/console_notice.js"></script>
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1">
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.0/jquery.min.js"></script>
|
||||
<link rel="apple-touch-icon" type="image/png" href="../favicon/apple-touch-icon-180x180.png">
|
||||
<link rel="icon" type="image/png" href="../favicon/icon-192x192.png">
|
||||
<title>設定 - <?php echo file_get_contents($servernamefile);?></title>
|
||||
|
||||
@@ -158,7 +158,9 @@ require('../logout/logout.php');
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<link rel="stylesheet" href="../css/home.css">
|
||||
<script src="../js/console_notice.js"></script>
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1">
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.0/jquery.min.js"></script>
|
||||
<link rel="apple-touch-icon" type="image/png" href="../favicon/apple-touch-icon-180x180.png">
|
||||
<link rel="icon" type="image/png" href="../favicon/icon-192x192.png">
|
||||
<title>設定 - <?php echo file_get_contents($servernamefile);?></title>
|
||||
|
||||
@@ -300,6 +300,7 @@ if (!empty($pdo)) {
|
||||
<meta charset="utf-8">
|
||||
<link rel="stylesheet" href="../css/home.css">
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.0/jquery.min.js"></script>
|
||||
<script src="../js/console_notice.js"></script>
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1">
|
||||
<link rel="apple-touch-icon" type="image/png" href="../favicon/apple-touch-icon-180x180.png">
|
||||
<link rel="icon" type="image/png" href="../favicon/icon-192x192.png">
|
||||
|
||||
@@ -269,6 +269,7 @@ require('../logout/logout.php');
|
||||
<meta charset="utf-8">
|
||||
<link rel="stylesheet" href="../css/home.css">
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.0/jquery.min.js"></script>
|
||||
<script src="../js/console_notice.js"></script>
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1">
|
||||
<link rel="apple-touch-icon" type="image/png" href="../favicon/apple-touch-icon-180x180.png">
|
||||
<link rel="icon" type="image/png" href="../favicon/icon-192x192.png">
|
||||
|
||||
@@ -235,6 +235,7 @@ require('../logout/logout.php');
|
||||
<meta charset="utf-8">
|
||||
<link rel="stylesheet" href="../css/home.css">
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.0/jquery.min.js"></script>
|
||||
<script src="../js/console_notice.js"></script>
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1">
|
||||
<link rel="apple-touch-icon" type="image/png" href="../favicon/apple-touch-icon-180x180.png">
|
||||
<link rel="icon" type="image/png" href="../favicon/icon-192x192.png">
|
||||
|
||||
@@ -254,6 +254,7 @@ require('../logout/logout.php');
|
||||
<meta charset="utf-8">
|
||||
<link rel="stylesheet" href="../css/home.css">
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.0/jquery.min.js"></script>
|
||||
<script src="../js/console_notice.js"></script>
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1">
|
||||
<link rel="apple-touch-icon" type="image/png" href="../favicon/apple-touch-icon-180x180.png">
|
||||
<link rel="icon" type="image/png" href="../favicon/icon-192x192.png">
|
||||
|
||||
@@ -360,6 +360,7 @@ if (!empty($pdo)) {
|
||||
<meta charset="utf-8">
|
||||
<link rel="stylesheet" href="../css/home.css">
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.0/jquery.min.js"></script>
|
||||
<script src="../js/console_notice.js"></script>
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1">
|
||||
<link rel="apple-touch-icon" type="image/png" href="../favicon/apple-touch-icon-180x180.png">
|
||||
<link rel="icon" type="image/png" href="../favicon/icon-192x192.png">
|
||||
|
||||
@@ -320,6 +320,7 @@ require('../logout/logout.php');
|
||||
<meta charset="utf-8">
|
||||
<link rel="stylesheet" href="../css/home.css">
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.0/jquery.min.js"></script>
|
||||
<script src="../js/console_notice.js"></script>
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1">
|
||||
<link rel="apple-touch-icon" type="image/png" href="../favicon/apple-touch-icon-180x180.png">
|
||||
<link rel="icon" type="image/png" href="../favicon/icon-192x192.png">
|
||||
|
||||
@@ -286,6 +286,7 @@ if (!empty($pdo)) {
|
||||
<meta charset="utf-8">
|
||||
<link rel="stylesheet" href="../css/home.css">
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.0/jquery.min.js"></script>
|
||||
<script src="../js/console_notice.js"></script>
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1">
|
||||
<link rel="apple-touch-icon" type="image/png" href="../favicon/apple-touch-icon-180x180.png">
|
||||
<link rel="icon" type="image/png" href="../favicon/icon-192x192.png">
|
||||
@@ -371,4 +372,5 @@ if (!empty($pdo)) {
|
||||
<?php require('../require/botbox.php');?>
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -480,6 +480,7 @@ require('../logout/logout.php');
|
||||
<meta charset="utf-8">
|
||||
<link rel="stylesheet" href="../css/home.css">
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.0/jquery.min.js"></script>
|
||||
<script src="../js/console_notice.js"></script>
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1">
|
||||
<link rel="apple-touch-icon" type="image/png" href="../favicon/apple-touch-icon-180x180.png">
|
||||
<link rel="icon" type="image/png" href="../favicon/icon-192x192.png">
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
var CACHE_NAME = "app_uwuzu";
|
||||
var urlsToCache = [
|
||||
"home/index.php",
|
||||
"home/ftl.php",
|
||||
"notification/index.php",
|
||||
"search/index.php",
|
||||
"require/botbox.php",
|
||||
"require/leftbox.php",
|
||||
@@ -16,6 +18,7 @@ var urlsToCache = [
|
||||
"new.php",
|
||||
"check.php",
|
||||
"success.php",
|
||||
"img/",
|
||||
];
|
||||
|
||||
self.addEventListener('install', function(event) {
|
||||
|
||||
+114
-98
@@ -161,8 +161,13 @@ $notiData = $notiQuery->fetch(PDO::FETCH_ASSOC);
|
||||
|
||||
$notificationcount = $notiData['notification_count'];
|
||||
|
||||
$ueuseid = htmlentities(str_replace('!', '', $_GET['ueuseid']));
|
||||
$touserid = htmlentities(str_replace('~', '', $_GET['touser']));
|
||||
if(isset($_GET['ueuseid']) && isset($_GET['touser'])) {
|
||||
$ueuseid = htmlentities(str_replace('!', '', $_GET['ueuseid']));
|
||||
$touserid = htmlentities(str_replace('~', '', $_GET['touser']));
|
||||
}elseif(isset($_GET['ueuseid'])){
|
||||
$ueuseid = htmlentities(str_replace('!', '', $_GET['ueuseid']));
|
||||
$touserid = null;
|
||||
}
|
||||
|
||||
|
||||
function get_mentions_userid($postText) {
|
||||
@@ -191,6 +196,9 @@ function get_mentions_userid($postText) {
|
||||
|
||||
return $mentionedUsers;
|
||||
}
|
||||
|
||||
|
||||
|
||||
if( !empty($_POST['btn_submit']) ) {
|
||||
|
||||
|
||||
@@ -475,6 +483,7 @@ $pdo = null;
|
||||
<meta charset="utf-8">
|
||||
<link rel="stylesheet" href="../css/home.css">
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.0/jquery.min.js"></script>
|
||||
<script src="../js/console_notice.js"></script>
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1">
|
||||
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
|
||||
<link rel="apple-touch-icon" type="image/png" href="../favicon/apple-touch-icon-180x180.png">
|
||||
@@ -495,82 +504,87 @@ $pdo = null;
|
||||
<?php endif; ?>
|
||||
|
||||
<div class="emojibox">
|
||||
<h1>返信</h1>
|
||||
</div>
|
||||
<?php if(!($role ==="ice")){?>
|
||||
<form method="post" enctype="multipart/form-data">
|
||||
<div class="sendbox">
|
||||
<textarea id="ueuse" placeholder="へんし~ん!!!" name="ueuse"><?php if( !empty($_SESSION['ueuse']) ){ echo htmlentities( $_SESSION['ueuse'], ENT_QUOTES, 'UTF-8'); } ?></textarea>
|
||||
<p>画像のEXIF情報(位置情報など)は削除されません。<br>情報漏洩に気をつけてくださいね…</p>
|
||||
<div class="fxbox">
|
||||
<label for="upload_images" id="images">
|
||||
<img src="../img/sysimage/image_1.svg">
|
||||
<input type="file" name="upload_images" id ="upload_images" accept="image/*">
|
||||
</label>
|
||||
<label for="upload_images2" id="images2">
|
||||
<img src="../img/sysimage/image_1.svg">
|
||||
<input type="file" name="upload_images2" id ="upload_images2" accept="image/*">
|
||||
</label>
|
||||
<label for="upload_videos1" id="videos1">
|
||||
<img src="../img/sysimage/video_1.svg">
|
||||
<input type="file" name="upload_videos1" id ="upload_videos1" accept="video/*">
|
||||
</label>
|
||||
<?php if(!empty($touserid)){?>
|
||||
<h1>返信</h1>
|
||||
</div>
|
||||
<?php if(!($role ==="ice")){?>
|
||||
<form method="post" enctype="multipart/form-data">
|
||||
<div class="sendbox">
|
||||
<textarea id="ueuse" placeholder="へんし~ん!!!" name="ueuse"><?php if( !empty($_SESSION['ueuse']) ){ echo htmlentities( $_SESSION['ueuse'], ENT_QUOTES, 'UTF-8'); } ?></textarea>
|
||||
<p>画像のEXIF情報(位置情報など)は削除されません。<br>情報漏洩に気をつけてくださいね…</p>
|
||||
<div class="fxbox">
|
||||
<label for="upload_images" id="images">
|
||||
<img src="../img/sysimage/image_1.svg">
|
||||
<input type="file" name="upload_images" id ="upload_images" accept="image/*">
|
||||
</label>
|
||||
<label for="upload_images2" id="images2">
|
||||
<img src="../img/sysimage/image_1.svg">
|
||||
<input type="file" name="upload_images2" id ="upload_images2" accept="image/*">
|
||||
</label>
|
||||
<label for="upload_videos1" id="videos1">
|
||||
<img src="../img/sysimage/video_1.svg">
|
||||
<input type="file" name="upload_videos1" id ="upload_videos1" accept="video/*">
|
||||
</label>
|
||||
|
||||
<input type="submit" class="ueusebtn" name="btn_submit" value="返信する">
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
<input type="submit" class="ueusebtn" name="btn_submit" value="返信する">
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
<?php }?>
|
||||
<script>
|
||||
document.getElementById("upload_videos1").addEventListener('change', function(e){
|
||||
var file_reader = new FileReader();
|
||||
// ファイルの読み込みを行ったら実行
|
||||
file_reader.addEventListener('load', function(e) {
|
||||
console.log(e.target.result);
|
||||
const element = document.querySelector('#videos1');
|
||||
const createElement = '<p>動画を選択しました。</p>';
|
||||
element.insertAdjacentHTML('afterend', createElement);
|
||||
});
|
||||
file_reader.readAsText(e.target.files[0]);
|
||||
});
|
||||
document.getElementById("upload_images2").addEventListener('change', function(e){
|
||||
var file_reader = new FileReader();
|
||||
// ファイルの読み込みを行ったら実行
|
||||
file_reader.addEventListener('load', function(e) {
|
||||
console.log(e.target.result);
|
||||
const element = document.querySelector('#images2');
|
||||
const createElement = '<p>画像を選択しました。</p>';
|
||||
element.insertAdjacentHTML('afterend', createElement);
|
||||
});
|
||||
file_reader.readAsText(e.target.files[0]);
|
||||
});
|
||||
document.getElementById("upload_images").addEventListener('change', function(e){
|
||||
var file_reader = new FileReader();
|
||||
// ファイルの読み込みを行ったら実行
|
||||
file_reader.addEventListener('load', function(e) {
|
||||
console.log(e.target.result);
|
||||
const element = document.querySelector('#images');
|
||||
const createElement = '<p>画像を選択しました。</p>';
|
||||
element.insertAdjacentHTML('afterend', createElement);
|
||||
});
|
||||
file_reader.readAsText(e.target.files[0]);
|
||||
});
|
||||
</script>
|
||||
<?php }else{?>
|
||||
<h1>ユーズ</h1>
|
||||
</div>
|
||||
<?php }?>
|
||||
<script>
|
||||
document.getElementById("upload_videos1").addEventListener('change', function(e){
|
||||
var file_reader = new FileReader();
|
||||
// ファイルの読み込みを行ったら実行
|
||||
file_reader.addEventListener('load', function(e) {
|
||||
console.log(e.target.result);
|
||||
const element = document.querySelector('#videos1');
|
||||
const createElement = '<p>動画を選択しました。</p>';
|
||||
element.insertAdjacentHTML('afterend', createElement);
|
||||
});
|
||||
file_reader.readAsText(e.target.files[0]);
|
||||
});
|
||||
document.getElementById("upload_images2").addEventListener('change', function(e){
|
||||
var file_reader = new FileReader();
|
||||
// ファイルの読み込みを行ったら実行
|
||||
file_reader.addEventListener('load', function(e) {
|
||||
console.log(e.target.result);
|
||||
const element = document.querySelector('#images2');
|
||||
const createElement = '<p>画像を選択しました。</p>';
|
||||
element.insertAdjacentHTML('afterend', createElement);
|
||||
});
|
||||
file_reader.readAsText(e.target.files[0]);
|
||||
});
|
||||
document.getElementById("upload_images").addEventListener('change', function(e){
|
||||
var file_reader = new FileReader();
|
||||
// ファイルの読み込みを行ったら実行
|
||||
file_reader.addEventListener('load', function(e) {
|
||||
console.log(e.target.result);
|
||||
const element = document.querySelector('#images');
|
||||
const createElement = '<p>画像を選択しました。</p>';
|
||||
element.insertAdjacentHTML('afterend', createElement);
|
||||
});
|
||||
file_reader.readAsText(e.target.files[0]);
|
||||
});
|
||||
</script>
|
||||
|
||||
<section class="inner">
|
||||
<div id="postContainer">
|
||||
<section class="inner">
|
||||
<div id="postContainer">
|
||||
|
||||
</div>
|
||||
</section>
|
||||
|
||||
|
||||
<div id="loading" class="loading" style="display: none;">
|
||||
🤔
|
||||
</div>
|
||||
<div id="error" class="error" style="display: none;">
|
||||
<h1>エラー</h1>
|
||||
<p>サーバーの応答がなかったか不完全だったようです。<br>ネットワークの接続が正常かを確認の上再読み込みしてください。</p>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
|
||||
<div id="loading" class="loading" style="display: none;">
|
||||
🤔
|
||||
</div>
|
||||
<div id="error" class="error" style="display: none;">
|
||||
<h1>エラー</h1>
|
||||
<p>サーバーの応答がなかったか不完全だったようです。<br>ネットワークの接続が正常かを確認の上再読み込みしてください。</p>
|
||||
</div>
|
||||
|
||||
|
||||
<div id="myDelModal" class="modal">
|
||||
@@ -604,6 +618,7 @@ $pdo = null;
|
||||
</body>
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
|
||||
loadPosts();
|
||||
|
||||
var pageNumber = 1;
|
||||
@@ -649,6 +664,7 @@ $(document).ready(function() {
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
$(document).on('click', '.favbtn, .favbtn_after', function(event) {
|
||||
|
||||
event.preventDefault();
|
||||
@@ -662,33 +678,33 @@ $(document).ready(function() {
|
||||
|
||||
var $this = $(this); // ボタン要素を変数に格納
|
||||
|
||||
$.ajax({
|
||||
url: '../favorite/favorite.php',
|
||||
method: 'POST',
|
||||
data: { uniqid: postUniqid, userid: userid, account_id: account_id }, // ここに自分のユーザーIDを指定
|
||||
dataType: 'json',
|
||||
success: function(response) {
|
||||
if (response.success) {
|
||||
// いいね成功時の処理
|
||||
if (isLiked) {
|
||||
$this.removeClass('favbtn_after'); // クラスを削除していいねを取り消す
|
||||
$this.find('img').attr('src', '../img/sysimage/favorite_1.svg'); // 画像を元の画像に戻す
|
||||
} else {
|
||||
$this.addClass('favbtn_after'); // クラスを追加していいねを追加する
|
||||
$this.find('img').attr('src', '../img/sysimage/favorite_2.svg'); // 画像を新しい画像に置き換える
|
||||
}
|
||||
$.ajax({
|
||||
url: '../favorite/favorite.php',
|
||||
method: 'POST',
|
||||
data: { uniqid: postUniqid, userid: userid, account_id: account_id }, // ここに自分のユーザーIDを指定
|
||||
dataType: 'json',
|
||||
success: function(response) {
|
||||
if (response.success) {
|
||||
// いいね成功時の処理
|
||||
if (isLiked) {
|
||||
$this.removeClass('favbtn_after'); // クラスを削除していいねを取り消す
|
||||
$this.find('use').attr('xlink:href', '../img/sysimage/favorite_1.svg#favorite'); // 画像を元の画像に戻す
|
||||
} else {
|
||||
$this.addClass('favbtn_after'); // クラスを追加していいねを追加する
|
||||
$this.find('use').attr('xlink:href', '../img/sysimage/favorite_2.svg#favorite'); // 画像を新しい画像に置き換える
|
||||
}
|
||||
|
||||
var newFavoriteList = response.newFavorite.split(',');
|
||||
var likeCount = newFavoriteList.length - 1;
|
||||
likeCountElement.text(likeCount); // いいね数を更新
|
||||
} else {
|
||||
// いいね失敗時の処理
|
||||
var newFavoriteList = response.newFavorite.split(',');
|
||||
var likeCount = newFavoriteList.length - 1;
|
||||
likeCountElement.text(likeCount); // いいね数を更新
|
||||
} else {
|
||||
// いいね失敗時の処理
|
||||
}
|
||||
}.bind(this), // コールバック内でthisが適切な要素を指すようにbindする
|
||||
error: function() {
|
||||
// エラー時の処理
|
||||
}
|
||||
}.bind(this), // コールバック内でthisが適切な要素を指すようにbindする
|
||||
error: function() {
|
||||
// エラー時の処理
|
||||
}
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
|
||||
+35
-32
@@ -404,6 +404,7 @@ $pdo = null;
|
||||
<html lang="ja">
|
||||
<head>
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.0/jquery.min.js"></script>
|
||||
<script src="../js/console_notice.js"></script>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1">
|
||||
<link rel="stylesheet" href="../css/home.css">
|
||||
@@ -588,6 +589,7 @@ $pdo = null;
|
||||
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
|
||||
loadPosts();
|
||||
|
||||
var pageNumber = 1;
|
||||
@@ -759,47 +761,48 @@ $(document).ready(function() {
|
||||
});
|
||||
|
||||
|
||||
|
||||
$(document).on('click', '.favbtn, .favbtn_after', function(event) {
|
||||
|
||||
event.preventDefault();
|
||||
event.preventDefault();
|
||||
|
||||
var postUniqid = $(this).data('uniqid');
|
||||
var userid = '<?php echo $userid; ?>';
|
||||
var account_id = '<?php echo $loginid; ?>';
|
||||
var likeCountElement = $(this).find('.like-count'); // いいね数を表示する要素
|
||||
var postUniqid = $(this).data('uniqid');
|
||||
var userid = '<?php echo $userid; ?>';
|
||||
var account_id = '<?php echo $loginid; ?>';
|
||||
var likeCountElement = $(this).find('.like-count'); // いいね数を表示する要素
|
||||
|
||||
var isLiked = $(this).hasClass('favbtn_after'); // 現在のいいねの状態を判定
|
||||
var isLiked = $(this).hasClass('favbtn_after'); // 現在のいいねの状態を判定
|
||||
|
||||
var $this = $(this); // ボタン要素を変数に格納
|
||||
var $this = $(this); // ボタン要素を変数に格納
|
||||
|
||||
$.ajax({
|
||||
url: '../favorite/favorite.php',
|
||||
method: 'POST',
|
||||
data: { uniqid: postUniqid, userid: userid, account_id: account_id }, // ここに自分のユーザーIDを指定
|
||||
dataType: 'json',
|
||||
success: function(response) {
|
||||
if (response.success) {
|
||||
// いいね成功時の処理
|
||||
if (isLiked) {
|
||||
$this.removeClass('favbtn_after'); // クラスを削除していいねを取り消す
|
||||
$this.find('img').attr('src', '../img/sysimage/favorite_1.svg'); // 画像を元の画像に戻す
|
||||
} else {
|
||||
$this.addClass('favbtn_after'); // クラスを追加していいねを追加する
|
||||
$this.find('img').attr('src', '../img/sysimage/favorite_2.svg'); // 画像を新しい画像に置き換える
|
||||
}
|
||||
|
||||
var newFavoriteList = response.newFavorite.split(',');
|
||||
var likeCount = newFavoriteList.length - 1;
|
||||
likeCountElement.text(likeCount); // いいね数を更新
|
||||
$.ajax({
|
||||
url: '../favorite/favorite.php',
|
||||
method: 'POST',
|
||||
data: { uniqid: postUniqid, userid: userid, account_id: account_id }, // ここに自分のユーザーIDを指定
|
||||
dataType: 'json',
|
||||
success: function(response) {
|
||||
if (response.success) {
|
||||
// いいね成功時の処理
|
||||
if (isLiked) {
|
||||
$this.removeClass('favbtn_after'); // クラスを削除していいねを取り消す
|
||||
$this.find('use').attr('xlink:href', '../img/sysimage/favorite_1.svg#favorite'); // 画像を元の画像に戻す
|
||||
} else {
|
||||
// いいね失敗時の処理
|
||||
$this.addClass('favbtn_after'); // クラスを追加していいねを追加する
|
||||
$this.find('use').attr('xlink:href', '../img/sysimage/favorite_2.svg#favorite'); // 画像を新しい画像に置き換える
|
||||
}
|
||||
}.bind(this), // コールバック内でthisが適切な要素を指すようにbindする
|
||||
error: function() {
|
||||
// エラー時の処理
|
||||
|
||||
var newFavoriteList = response.newFavorite.split(',');
|
||||
var likeCount = newFavoriteList.length - 1;
|
||||
likeCountElement.text(likeCount); // いいね数を更新
|
||||
} else {
|
||||
// いいね失敗時の処理
|
||||
}
|
||||
});
|
||||
});
|
||||
}.bind(this), // コールバック内でthisが適切な要素を指すようにbindする
|
||||
error: function() {
|
||||
// エラー時の処理
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -357,6 +357,7 @@ $pdo = null;
|
||||
<html lang="ja">
|
||||
<head>
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.0/jquery.min.js"></script>
|
||||
<script src="../js/console_notice.js"></script>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1">
|
||||
<link rel="stylesheet" href="../css/home.css">
|
||||
|
||||
@@ -154,6 +154,7 @@ require('../logout/logout.php');
|
||||
<meta charset="utf-8">
|
||||
<link rel="stylesheet" href="../css/home.css">
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1">
|
||||
<script src="../js/console_notice.js"></script>
|
||||
<link rel="apple-touch-icon" type="image/png" href="../favicon/apple-touch-icon-180x180.png">
|
||||
<link rel="icon" type="image/png" href="../favicon/icon-192x192.png">
|
||||
<title>設定 - <?php echo file_get_contents($servernamefile);?></title>
|
||||
|
||||
Reference in New Issue
Block a user