1
0
mirror of https://github.com/Daichimarukana/uwuzu.git synced 2026-06-05 03:24:41 +00:00

uwuzu version 1.2.22

This commit is contained in:
daichimarukana
2023-09-12 22:55:41 +09:00
parent 86e172e90c
commit 4c588a6903
45 changed files with 376 additions and 183 deletions
+1
View File
@@ -85,6 +85,7 @@ $pdo = null;
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<link rel="stylesheet" href="../css/style.css"> <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="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="icon" type="image/png" href="../favicon/icon-192x192.png">
<meta name="viewport" content="width=device-width,initial-scale=1"> <meta name="viewport" content="width=device-width,initial-scale=1">
+1
View File
@@ -80,6 +80,7 @@ if(!(empty($_SESSION['backupcode']))){
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<link rel="stylesheet" href="../css/style.css"> <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="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="icon" type="image/png" href="../favicon/icon-192x192.png">
<meta name="viewport" content="width=device-width,initial-scale=1"> <meta name="viewport" content="width=device-width,initial-scale=1">
+2
View File
@@ -2,6 +2,8 @@
--main-color: #FFC832; --main-color: #FFC832;
--sub-color: #FFFAE6; --sub-color: #FFFAE6;
--background-color: #f5f5f5; --background-color: #f5f5f5;
--tl-color: #F7F7F7;
--ueuse-color:#f5f5f5;
--text-color: #252525; --text-color: #252525;
--subtext-color: #999; --subtext-color: #999;
--link-color: #4e4428; --link-color: #4e4428;
+54 -5
View File
@@ -463,7 +463,7 @@ main{
margin-left: 12px; margin-left: 12px;
margin-right: 12px; margin-right: 12px;
width: 62%; width: 62%;
background-color: var(--background-color); background-color: var(--tl-color-color);
box-shadow:0 0px 48px 0 rgba(0, 0, 0, .05); box-shadow:0 0px 48px 0 rgba(0, 0, 0, .05);
border: 1px solid var(--main-color); border: 1px solid var(--main-color);
} }
@@ -923,7 +923,7 @@ main h1{
padding-right: 24px; padding-right: 24px;
padding-top: 16px; padding-top: 16px;
padding-bottom: 16px; padding-bottom: 16px;
background-color: var(--background-color); background-color: var(--ueuse-color);
border: 1px solid var(--border-color); border: 1px solid var(--border-color);
width: auto; width: auto;
} }
@@ -1850,7 +1850,7 @@ main h1{
padding-left: 32px; padding-left: 32px;
padding-right: 32px; padding-right: 32px;
border-radius: 15px; border-radius: 15px;
background-color: var(--background-color)fff; background-color: var(--tl-color);
box-shadow:none; box-shadow:none;
text-align: left; text-align: left;
} }
@@ -3671,7 +3671,7 @@ summary {
margin-left: 0px; margin-left: 0px;
margin-right: 0px; margin-right: 0px;
width: auto; 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);
box-shadow:0 0px 48px 0 rgba(0, 0, 0, .05); box-shadow:0 0px 48px 0 rgba(0, 0, 0, .05);
border: none; border: none;
@@ -4057,7 +4057,7 @@ summary {
padding-right: 12px; padding-right: 12px;
padding-top: 12px; padding-top: 12px;
padding-bottom: 12px; padding-bottom: 12px;
background-color: var(--background-color); background-color: var(--ueuse-color);
border: 1px solid var(--border-color); border: 1px solid var(--border-color);
width: auto; width: auto;
} }
@@ -4806,6 +4806,46 @@ summary {
width:75%; 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{ .error p{
color: var(--background-color); 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);
}
} }
+3
View File
@@ -308,6 +308,9 @@ $pdo = null;
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<link rel="stylesheet" href="../css/home.css"> <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="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="icon" type="image/png" href="../favicon/icon-192x192.png">
<title>絵文字登録 - <?php echo file_get_contents($servernamefile);?></title> <title>絵文字登録 - <?php echo file_get_contents($servernamefile);?></title>
+2
View File
@@ -172,6 +172,8 @@ $pdo = null;
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.0/jquery.min.js"></script> <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="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="icon" type="image/png" href="../favicon/icon-192x192.png">
<link rel="stylesheet" href="../css/home.css"> <link rel="stylesheet" href="../css/home.css">
+1
View File
@@ -20,6 +20,7 @@ $termsdata = file_get_contents($termsfile);
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<link rel="stylesheet" href="/css/home.css"> <link rel="stylesheet" href="/css/home.css">
<script src="../js/console_notice.js"></script>
<meta name="viewport" content="width=device-width,initial-scale=1"> <meta name="viewport" content="width=device-width,initial-scale=1">
<title>400 Bad Request - <?php echo file_get_contents($servernamefile);?></title> <title>400 Bad Request - <?php echo file_get_contents($servernamefile);?></title>
</head> </head>
+1
View File
@@ -20,6 +20,7 @@ $termsdata = file_get_contents($termsfile);
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<link rel="stylesheet" href="/css/home.css"> <link rel="stylesheet" href="/css/home.css">
<script src="../js/console_notice.js"></script>
<meta name="viewport" content="width=device-width,initial-scale=1"> <meta name="viewport" content="width=device-width,initial-scale=1">
<title>401 Unauthorized - <?php echo file_get_contents($servernamefile);?></title> <title>401 Unauthorized - <?php echo file_get_contents($servernamefile);?></title>
</head> </head>
+1
View File
@@ -20,6 +20,7 @@ $termsdata = file_get_contents($termsfile);
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<link rel="stylesheet" href="/css/home.css"> <link rel="stylesheet" href="/css/home.css">
<script src="../js/console_notice.js"></script>
<meta name="viewport" content="width=device-width,initial-scale=1"> <meta name="viewport" content="width=device-width,initial-scale=1">
<title>403 Forbidden - <?php echo file_get_contents($servernamefile);?></title> <title>403 Forbidden - <?php echo file_get_contents($servernamefile);?></title>
</head> </head>
+1
View File
@@ -24,6 +24,7 @@ $termsdata = file_get_contents($termsfile);
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<link rel="stylesheet" href="/css/home.css"> <link rel="stylesheet" href="/css/home.css">
<script src="../js/console_notice.js"></script>
<meta name="viewport" content="width=device-width,initial-scale=1"> <meta name="viewport" content="width=device-width,initial-scale=1">
<title>404 Not found - <?php echo file_get_contents($servernamefile);?></title> <title>404 Not found - <?php echo file_get_contents($servernamefile);?></title>
</head> </head>
+1
View File
@@ -20,6 +20,7 @@ $termsdata = file_get_contents($termsfile);
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<link rel="stylesheet" href="/css/home.css"> <link rel="stylesheet" href="/css/home.css">
<script src="../js/console_notice.js"></script>
<meta name="viewport" content="width=device-width,initial-scale=1"> <meta name="viewport" content="width=device-width,initial-scale=1">
<title>500 Internal Server Error - <?php echo file_get_contents($servernamefile);?></title> <title>500 Internal Server Error - <?php echo file_get_contents($servernamefile);?></title>
</head> </head>
+1
View File
@@ -25,6 +25,7 @@ $termsdata = file_get_contents($termsfile);
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<link rel="stylesheet" href="/css/home.css"> <link rel="stylesheet" href="/css/home.css">
<script src="../js/console_notice.js"></script>
<meta name="viewport" content="width=device-width,initial-scale=1"> <meta name="viewport" content="width=device-width,initial-scale=1">
<title>503 Service Unavailable - <?php echo file_get_contents($servernamefile);?></title> <title>503 Service Unavailable - <?php echo file_get_contents($servernamefile);?></title>
</head> </head>
+1
View File
@@ -4,6 +4,7 @@
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<link rel="stylesheet" href="home.css"> <link rel="stylesheet" href="home.css">
<script src="../js/console_notice.js"></script>
<meta name="viewport" content="width=device-width,initial-scale=1"> <meta name="viewport" content="width=device-width,initial-scale=1">
<title>サーバー停止 - ゆずさば</title> <title>サーバー停止 - ゆずさば</title>
</head> </head>
+3 -2
View File
@@ -431,6 +431,7 @@ $pdo = null;
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.0/jquery.min.js"></script> <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" /> <link rel="manifest" href="../manifest/manifest.json" />
<script> <script>
if ("serviceWorker" in navigator) { if ("serviceWorker" in navigator) {
@@ -648,10 +649,10 @@ $(document).on('click', '.favbtn, .favbtn_after', function(event) {
// いいね成功時の処理 // いいね成功時の処理
if (isLiked) { if (isLiked) {
$this.removeClass('favbtn_after'); // クラスを削除していいねを取り消す $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 { } else {
$this.addClass('favbtn_after'); // クラスを追加していいねを追加する $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(','); var newFavoriteList = response.newFavorite.split(',');
+1 -6
View File
@@ -425,18 +425,13 @@ require('../logout/logout.php');
// データベースの接続を閉じる // データベースの接続を閉じる
$pdo = null; $pdo = null;
if(isset($_GET['text'])){
$ueuse = $_GET['text'];
}else{
$ueuse = "";
}
?> ?>
<!DOCTYPE html> <!DOCTYPE html>
<html lang="ja"> <html lang="ja">
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.0/jquery.min.js"></script> <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" /> <link rel="manifest" href="../manifest/manifest.json" />
<script> <script>
if ("serviceWorker" in navigator) { if ("serviceWorker" in navigator) {
+5
View File
@@ -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

+28
View File
@@ -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;",
"",
);
+1
View File
@@ -31,6 +31,7 @@ if (isset($_SERVER['HTTP_COOKIE'])) {
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<link rel="stylesheet" href="../css/style.css"> <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="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="icon" type="image/png" href="../favicon/icon-192x192.png">
<meta name="viewport" content="width=device-width,initial-scale=1"> <meta name="viewport" content="width=device-width,initial-scale=1">
+6
View File
@@ -6,6 +6,12 @@
"display": "standalone", "display": "standalone",
"start_url": "../index.php", "start_url": "../index.php",
"icons": [ "icons": [
{
"src": "icon-512x512.png",
"sizes": "512x512",
"type": "image/png",
"purpose": "any"
},
{ {
"src": "icon-512x512.png", "src": "icon-512x512.png",
"sizes": "512x512", "sizes": "512x512",
+1
View File
@@ -1,6 +1,7 @@
<?php <?php
function processMarkdownAndWrapEmptyLines($markdownText){ function processMarkdownAndWrapEmptyLines($markdownText){
$markdownText = preg_replace('/^\[\[buruburu (.+)\]\]/m', '<p class="buruburu">$1</p>', $markdownText);//←ここ!!!!!!!!!!!!!! $markdownText = preg_replace('/^\[\[buruburu (.+)\]\]/m', '<p class="buruburu">$1</p>', $markdownText);//←ここ!!!!!!!!!!!!!!
// コード(#code)をHTMLのdiv class="code"タグに変換 // コード(#code)をHTMLのdiv class="code"タグに変換
$markdownText = preg_replace('/^#code (.+)/m', '<div class="code"><p>$1</p></div>', $markdownText); $markdownText = preg_replace('/^#code (.+)/m', '<div class="code"><p>$1</p></div>', $markdownText);
+3
View File
@@ -267,7 +267,10 @@ $pdo = null;
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<link rel="stylesheet" href="../css/home.css"> <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"> <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"> <link rel="icon" type="image/png" href="../favicon/icon-192x192.png">
<title>お知らせ配信 - <?php echo file_get_contents($servernamefile);?></title> <title>お知らせ配信 - <?php echo file_get_contents($servernamefile);?></title>
+1
View File
@@ -165,6 +165,7 @@ $pdo = null;
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.0/jquery.min.js"></script> <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"> <link rel="stylesheet" href="../css/home.css">
<meta name="viewport" content="width=device-width,initial-scale=1"> <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="apple-touch-icon" type="image/png" href="../favicon/apple-touch-icon-180x180.png">
+2
View File
@@ -428,7 +428,9 @@ require('../logout/logout.php');
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<link rel="stylesheet" href="../css/home.css"> <link rel="stylesheet" href="../css/home.css">
<script src="../js/console_notice.js"></script>
<meta name="viewport" content="width=device-width,initial-scale=1"> <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="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="icon" type="image/png" href="../favicon/icon-192x192.png">
<title>その他の項目 - <?php echo file_get_contents($servernamefile);?></title> <title>その他の項目 - <?php echo file_get_contents($servernamefile);?></title>
+1
View File
@@ -159,6 +159,7 @@ require('../logout/logout.php');
<meta charset="utf-8"> <meta charset="utf-8">
<link rel="stylesheet" href="../css/home.css"> <link rel="stylesheet" href="../css/home.css">
<meta name="viewport" content="width=device-width,initial-scale=1"> <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="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="icon" type="image/png" href="../favicon/icon-192x192.png">
<title>アクセストークン発行完了 - <?php echo file_get_contents($servernamefile);?></title> <title>アクセストークン発行完了 - <?php echo file_get_contents($servernamefile);?></title>
-1
View File
@@ -167,7 +167,6 @@ $pdo = null;
<label for="userid">ユーザーID</label> <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'); } ?>"> <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>
<!--個人情報関係-->
<!--アカウント関連--> <!--アカウント関連-->
<div> <div>
+42 -4
View File
@@ -8,10 +8,48 @@
<a href="/notification" class="btmbutton"><svg><use xlink:href="../img/sysimage/menuicon/notification.svg#notification"></use></svg></a> <a href="/notification" class="btmbutton"><svg><use xlink:href="../img/sysimage/menuicon/notification.svg#notification"></use></svg></a>
<?php }?> <?php }?>
<a href="/search" class="btmbutton"><svg><use xlink:href="../img/sysimage/menuicon/search.svg#search"></use></svg></a> <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> <button id="openmenu" class="btmbutton"><svg><use xlink:href="../img/sysimage/menuicon/menu.svg#menu"></use></svg></button>
<?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 }?>
</div> </div>
</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 ?> <?php ?>
+3 -4
View File
@@ -174,6 +174,7 @@ $pdo = null;
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.0/jquery.min.js"></script> <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"> <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="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="icon" type="image/png" href="../favicon/icon-192x192.png">
@@ -277,8 +278,6 @@ $(document).ready(function() {
// 前回の検索結果をクリア // 前回の検索結果をクリア
$('#postContainer').empty(); $('#postContainer').empty();
console.log(keyword)
// 新しいキーワードで検索を実行 // 新しいキーワードで検索を実行
$.ajax({ $.ajax({
url: '../nextpage/searchpage.php', // PHPファイルへのパス url: '../nextpage/searchpage.php', // PHPファイルへのパス
@@ -323,10 +322,10 @@ $(document).ready(function() {
// いいね成功時の処理 // いいね成功時の処理
if (isLiked) { if (isLiked) {
$this.removeClass('favbtn_after'); // クラスを削除していいねを取り消す $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 { } else {
$this.addClass('favbtn_after'); // クラスを追加していいねを追加する $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(','); var newFavoriteList = response.newFavorite.split(',');
+2 -2
View File
@@ -1,4 +1,4 @@
uwuzu uwuzu
1.2.21 1.2.22
2023/09/11 2023/09/12
daichimarukana,putonfps daichimarukana,putonfps
+9
View File
@@ -1,6 +1,15 @@
## リリースノートだぜぇぇぇぇぇぇい!!!!!!! ## リリースノートだぜぇぇぇぇぇぇい!!!!!!!
ここにはuwuzuの更新情報を載せてくぜぇ~!(いやまてテンションおかしいだろ...) ここにはuwuzuの更新情報を載せてくぜぇ~!(いやまてテンションおかしいだろ...)
## Version 1.2.22
リリース日:2023/09/12
カスタマイズ機能を微調整しました。
PWAのエラーを修正しました。
スマホ向けメニューを追加しました。
ユーザーに脆弱性に対しての注意喚起をする機能を追加しました。
投稿をuniqidだけでも閲覧できるようにしました。([domain]/![uniqid]で閲覧できます。)
いいねボタンの見た目が変わらないバグを修正しました。
## Version 1.2.21 ## Version 1.2.21
リリース日:2023/09/11 リリース日:2023/09/11
PC向けUIを若干変更しました! PC向けUIを若干変更しました!
+2
View File
@@ -240,7 +240,9 @@ $pdo = null;
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<link rel="stylesheet" href="../css/home.css"> <link rel="stylesheet" href="../css/home.css">
<script src="../js/console_notice.js"></script>
<meta name="viewport" content="width=device-width,initial-scale=1"> <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="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="icon" type="image/png" href="../favicon/icon-192x192.png">
<title>設定 - <?php echo file_get_contents($servernamefile);?></title> <title>設定 - <?php echo file_get_contents($servernamefile);?></title>
+2
View File
@@ -704,7 +704,9 @@ $pdo = null;
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<link rel="stylesheet" href="../css/home.css"> <link rel="stylesheet" href="../css/home.css">
<script src="../js/console_notice.js"></script>
<meta name="viewport" content="width=device-width,initial-scale=1"> <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="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="icon" type="image/png" href="../favicon/icon-192x192.png">
<title>設定 - <?php echo file_get_contents($servernamefile);?></title> <title>設定 - <?php echo file_get_contents($servernamefile);?></title>
+2
View File
@@ -158,7 +158,9 @@ require('../logout/logout.php');
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<link rel="stylesheet" href="../css/home.css"> <link rel="stylesheet" href="../css/home.css">
<script src="../js/console_notice.js"></script>
<meta name="viewport" content="width=device-width,initial-scale=1"> <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="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="icon" type="image/png" href="../favicon/icon-192x192.png">
<title>設定 - <?php echo file_get_contents($servernamefile);?></title> <title>設定 - <?php echo file_get_contents($servernamefile);?></title>
+1
View File
@@ -300,6 +300,7 @@ if (!empty($pdo)) {
<meta charset="utf-8"> <meta charset="utf-8">
<link rel="stylesheet" href="../css/home.css"> <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="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"> <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="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="icon" type="image/png" href="../favicon/icon-192x192.png">
+1
View File
@@ -269,6 +269,7 @@ require('../logout/logout.php');
<meta charset="utf-8"> <meta charset="utf-8">
<link rel="stylesheet" href="../css/home.css"> <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="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"> <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="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="icon" type="image/png" href="../favicon/icon-192x192.png">
+1
View File
@@ -235,6 +235,7 @@ require('../logout/logout.php');
<meta charset="utf-8"> <meta charset="utf-8">
<link rel="stylesheet" href="../css/home.css"> <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="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"> <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="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="icon" type="image/png" href="../favicon/icon-192x192.png">
+1
View File
@@ -254,6 +254,7 @@ require('../logout/logout.php');
<meta charset="utf-8"> <meta charset="utf-8">
<link rel="stylesheet" href="../css/home.css"> <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="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"> <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="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="icon" type="image/png" href="../favicon/icon-192x192.png">
+1
View File
@@ -360,6 +360,7 @@ if (!empty($pdo)) {
<meta charset="utf-8"> <meta charset="utf-8">
<link rel="stylesheet" href="../css/home.css"> <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="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"> <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="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="icon" type="image/png" href="../favicon/icon-192x192.png">
+1
View File
@@ -320,6 +320,7 @@ require('../logout/logout.php');
<meta charset="utf-8"> <meta charset="utf-8">
<link rel="stylesheet" href="../css/home.css"> <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="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"> <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="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="icon" type="image/png" href="../favicon/icon-192x192.png">
+2
View File
@@ -286,6 +286,7 @@ if (!empty($pdo)) {
<meta charset="utf-8"> <meta charset="utf-8">
<link rel="stylesheet" href="../css/home.css"> <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="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"> <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="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="icon" type="image/png" href="../favicon/icon-192x192.png">
@@ -371,4 +372,5 @@ if (!empty($pdo)) {
<?php require('../require/botbox.php');?> <?php require('../require/botbox.php');?>
</body> </body>
</html> </html>
+1
View File
@@ -480,6 +480,7 @@ require('../logout/logout.php');
<meta charset="utf-8"> <meta charset="utf-8">
<link rel="stylesheet" href="../css/home.css"> <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="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"> <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="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="icon" type="image/png" href="../favicon/icon-192x192.png">
+3
View File
@@ -1,6 +1,8 @@
var CACHE_NAME = "app_uwuzu"; var CACHE_NAME = "app_uwuzu";
var urlsToCache = [ var urlsToCache = [
"home/index.php", "home/index.php",
"home/ftl.php",
"notification/index.php",
"search/index.php", "search/index.php",
"require/botbox.php", "require/botbox.php",
"require/leftbox.php", "require/leftbox.php",
@@ -16,6 +18,7 @@ var urlsToCache = [
"new.php", "new.php",
"check.php", "check.php",
"success.php", "success.php",
"img/",
]; ];
self.addEventListener('install', function(event) { self.addEventListener('install', function(event) {
+20 -4
View File
@@ -161,8 +161,13 @@ $notiData = $notiQuery->fetch(PDO::FETCH_ASSOC);
$notificationcount = $notiData['notification_count']; $notificationcount = $notiData['notification_count'];
$ueuseid = htmlentities(str_replace('!', '', $_GET['ueuseid'])); if(isset($_GET['ueuseid']) && isset($_GET['touser'])) {
$touserid = htmlentities(str_replace('~', '', $_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) { function get_mentions_userid($postText) {
@@ -191,6 +196,9 @@ function get_mentions_userid($postText) {
return $mentionedUsers; return $mentionedUsers;
} }
if( !empty($_POST['btn_submit']) ) { if( !empty($_POST['btn_submit']) ) {
@@ -475,6 +483,7 @@ $pdo = null;
<meta charset="utf-8"> <meta charset="utf-8">
<link rel="stylesheet" href="../css/home.css"> <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="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"> <meta name="viewport" content="width=device-width,initial-scale=1">
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet"> <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"> <link rel="apple-touch-icon" type="image/png" href="../favicon/apple-touch-icon-180x180.png">
@@ -495,6 +504,7 @@ $pdo = null;
<?php endif; ?> <?php endif; ?>
<div class="emojibox"> <div class="emojibox">
<?php if(!empty($touserid)){?>
<h1>返信</h1> <h1>返信</h1>
</div> </div>
<?php if(!($role ==="ice")){?> <?php if(!($role ==="ice")){?>
@@ -556,6 +566,10 @@ $pdo = null;
file_reader.readAsText(e.target.files[0]); file_reader.readAsText(e.target.files[0]);
}); });
</script> </script>
<?php }else{?>
<h1>ユーズ</h1>
</div>
<?php }?>
<section class="inner"> <section class="inner">
<div id="postContainer"> <div id="postContainer">
@@ -604,6 +618,7 @@ $pdo = null;
</body> </body>
<script> <script>
$(document).ready(function() { $(document).ready(function() {
loadPosts(); loadPosts();
var pageNumber = 1; var pageNumber = 1;
@@ -649,6 +664,7 @@ $(document).ready(function() {
} }
} }
}); });
$(document).on('click', '.favbtn, .favbtn_after', function(event) { $(document).on('click', '.favbtn, .favbtn_after', function(event) {
event.preventDefault(); event.preventDefault();
@@ -672,10 +688,10 @@ $(document).ready(function() {
// いいね成功時の処理 // いいね成功時の処理
if (isLiked) { if (isLiked) {
$this.removeClass('favbtn_after'); // クラスを削除していいねを取り消す $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 { } else {
$this.addClass('favbtn_after'); // クラスを追加していいねを追加する $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(','); var newFavoriteList = response.newFavorite.split(',');
+5 -2
View File
@@ -404,6 +404,7 @@ $pdo = null;
<html lang="ja"> <html lang="ja">
<head> <head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.0/jquery.min.js"></script> <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 charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1"> <meta name="viewport" content="width=device-width,initial-scale=1">
<link rel="stylesheet" href="../css/home.css"> <link rel="stylesheet" href="../css/home.css">
@@ -588,6 +589,7 @@ $pdo = null;
<script> <script>
$(document).ready(function() { $(document).ready(function() {
loadPosts(); loadPosts();
var pageNumber = 1; var pageNumber = 1;
@@ -759,6 +761,7 @@ $(document).ready(function() {
}); });
$(document).on('click', '.favbtn, .favbtn_after', function(event) { $(document).on('click', '.favbtn, .favbtn_after', function(event) {
event.preventDefault(); event.preventDefault();
@@ -782,10 +785,10 @@ $(document).ready(function() {
// いいね成功時の処理 // いいね成功時の処理
if (isLiked) { if (isLiked) {
$this.removeClass('favbtn_after'); // クラスを削除していいねを取り消す $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 { } else {
$this.addClass('favbtn_after'); // クラスを追加していいねを追加する $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(','); var newFavoriteList = response.newFavorite.split(',');
+1
View File
@@ -357,6 +357,7 @@ $pdo = null;
<html lang="ja"> <html lang="ja">
<head> <head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.0/jquery.min.js"></script> <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 charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1"> <meta name="viewport" content="width=device-width,initial-scale=1">
<link rel="stylesheet" href="../css/home.css"> <link rel="stylesheet" href="../css/home.css">
+1
View File
@@ -154,6 +154,7 @@ require('../logout/logout.php');
<meta charset="utf-8"> <meta charset="utf-8">
<link rel="stylesheet" href="../css/home.css"> <link rel="stylesheet" href="../css/home.css">
<meta name="viewport" content="width=device-width,initial-scale=1"> <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="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="icon" type="image/png" href="../favicon/icon-192x192.png">
<title>設定 - <?php echo file_get_contents($servernamefile);?></title> <title>設定 - <?php echo file_get_contents($servernamefile);?></title>