This commit is contained in:
Pachira 2021-07-29 21:58:32 +00:00
parent e7eaf80823
commit 0251176b54
15 changed files with 144 additions and 11 deletions

View file

@ -16,7 +16,7 @@ require_once 'compat.php';
require_once 'html.php';
try {
$pdo = new PDO('mysql:unix_socket=/var/run/mysqld/mysqld.sock;dbname=flash_website;charset=utf8mb4', 'flash', 'af66a6666b1c9a597063325b14c8b52d', [
$pdo = new PDO('mysql:unix_socket=/var/run/mysqld/mysqld.sock;dbname=website;charset=utf8mb4', 'website', 'A3NjVvHRkHAxiYgk8MM4ZrCwrLVyPIYX', [
PDO::ATTR_CASE => PDO::CASE_NATURAL,
PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION,
PDO::ATTR_ORACLE_NULLS => PDO::NULL_NATURAL,

View file

@ -27,11 +27,11 @@ $config['dbConnection'] = array();
// Database hostname:
$config['dbConnection']['host'] = 'localhost';
// Database username:
$config['dbConnection']['user'] = 'flash';
$config['dbConnection']['user'] = 'ajax-chat';
// Database password:
$config['dbConnection']['pass'] = 'af66a6666b1c9a597063325b14c8b52d';
$config['dbConnection']['pass'] = 'dGmOnRgOcThK2svQfHaF1WIJi7wjbDZc';
// Database name:
$config['dbConnection']['name'] = 'flash_ajaxchat';
$config['dbConnection']['name'] = 'ajax-chat';
// Database type:
$config['dbConnection']['type'] = null;
// Database link:

View file

@ -6,7 +6,7 @@ date_default_timezone_set('utc');
mb_internal_encoding('utf-8');
try {
$pdo = new PDO('mysql:unix_socket=/var/run/mysqld/mysqld.sock;dbname=flash_collection;charset=utf8mb4', 'flash', 'af66a6666b1c9a597063325b14c8b52d', [
$pdo = new PDO('mysql:unix_socket=/var/run/mysqld/mysqld.sock;dbname=game-collection;charset=utf8mb4', 'game-collection', 'NwQKuxmZbW6a91lx9VUcbpcHFKi5UhrD', [
PDO::ATTR_CASE => PDO::CASE_NATURAL,
PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION,
PDO::ATTR_ORACLE_NULLS => PDO::NULL_NATURAL,

BIN
public/signature/bg3.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 33 KiB

View file

@ -5,7 +5,7 @@ define('SIG_STATIC', 'signature.png');
define('SIG_AGE', 60);
define('FW_FONT_FAM', __DIR__ . '/../assets/Electrolize-Regular.ttf');
define('FW_FONT_SIZE', 30);
define('FW_TEXT', 'Flashwave');
define('FW_TEXT', 'flashwave');
define('FA_FONT_FAM', __DIR__ . '/../css/fa/webfonts/fa-solid-900.ttf');
define('NP_FONT_FAM', __DIR__ . '/../assets/NotoSansJP-Regular.otf');
define('NP_FONT_SIZE', 16);
@ -14,8 +14,9 @@ define('NP_URL', 'https://now.flash.moe/get.php?u=flashwave_');
define('NP_COVER', 'cover.png');
define('NP_COVER_URL', 'cover_url.txt');
define('NP_COVER_DEFAULT', '/www/now.flash.moe/public/resources/no-cover.png');
define('BG_IMAGE', 'bg3.png');
if(is_file(SIG_AGE) && time() - filemtime(SIG_STATIC) < SIG_AGE) {
if(!isset($_GET['_force']) && is_file(SIG_STATIC) && time() - filemtime(SIG_STATIC) < SIG_AGE) {
$imagick = new Imagick(SIG_STATIC);
} else {
$ip_000 = new ImagickPixel('#000');
@ -45,7 +46,7 @@ if(is_file(SIG_AGE) && time() - filemtime(SIG_STATIC) < SIG_AGE) {
$imagick = new Imagick;
$imagick->newImage(SIG_WIDTH, SIG_HEIGHT, $ip_000, 'png');
$background = new Imagick('bg2.png');
$background = new Imagick(BG_IMAGE);
$imagick->compositeImage($background, Imagick::COMPOSITE_COPY, 0, 0);
$background->destroy();

View file

View file

@ -362,7 +362,7 @@ var tmfDestroySysIcon = function() {
var tmfDragging = null, tmfDragLastX = 0, tmfDragLastY = 0;
var tmfSetDragging = function(elem) {
tmfDragging = elem;
//tmfDragging = elem;
};
var tmfStopDragging = function() {
tmfDragging = null;

BIN
public/tump/alice-blur.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 741 KiB

BIN
public/tump/alice.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 448 KiB

27
public/tump/index.php Normal file
View file

@ -0,0 +1,27 @@
<!doctype html>
<html>
<head>
<meta charset="utf-8"/>
<title>heartbeat</title>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"/>
<link href="style.css" type="text/css" rel="stylesheet"/>
</head>
<body>
<div class="container">
<div class="preload">
<div class="preload-button hidden"></div>
<noscript>Javascript required because browsers are lame and stupid and don't allow autoplay on load anymore.</noscript>
</div>
<div class="player hidden">
<div class="alice alice1"></div>
<div class="alice alice2"></div>
<div class="alice alice3"></div>
</div>
</div>
<audio loop="loop" class="moan">
<source type="audio/ogg" src="moan.opus"/>
<source type="audio/x-caf" src="moan.caf"/>
</audio>
<script type="text/javascript" src="script.js"></script>
</body>
</html>

BIN
public/tump/moan.caf Normal file

Binary file not shown.

BIN
public/tump/moan.opus Normal file

Binary file not shown.

18
public/tump/script.js Normal file
View file

@ -0,0 +1,18 @@
window.addEventListener('load', function() {
var preload = document.querySelector('.preload'),
playBtn = document.querySelector('.preload-button'),
player = document.querySelector('.player'),
aliceIn = document.querySelector('.alice1'),
aliceOut = document.querySelector('.alice3'),
moan = document.querySelector('.moan');
moan.addEventListener('playing', function() {
aliceIn.classList.add('heartbeat-in');
aliceOut.classList.add('heartbeat-out');
});
preload.addEventListener('click', function() {
preload.classList.add('hidden');
player.classList.remove('hidden');
moan.play();
});
playBtn.classList.remove('hidden');
});

87
public/tump/style.css Normal file
View file

@ -0,0 +1,87 @@
@keyframes heartbeat-in {
0% { opacity: 1; }
20% { opacity: .6; }
30% { opacity: 0; }
}
@keyframes heartbeat-out {
0% { transform: scale(1.005); opacity: 1; }
20% { transform: scale(1.004); opacity: .6; }
30% { transform: scale(1); opacity: 0; }
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
position: relative;
outline-style: none !important;
}
html,
body {
width: 100%;
height: 100%;
}
.container {
width: 100%;
height: 100%;
background-color: #000;
color: #fff;
}
.hidden {
display: none !important;
}
.preload {
width: 100%;
height: 100%;
display: flex;
justify-content: center;
align-items: center;
}
.preload-button {
width: 0;
height: 0;
border-top: 100px solid transparent;
border-bottom: 100px solid transparent;
border-left: 200px solid #fff;
}
.player {
width: 100%;
height: 100%;
}
.alice {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: url('alice.png') no-repeat center / contain;
}
.alice1 {
z-index: 300;
opacity: 0;
background-image: url('alice-blur.png');
}
.alice2 {
z-index: 200;
}
.alice3 {
z-index: 100;
opacity: 0;
background-image: url('alice-blur.png');
}
.heartbeat-in {
animation: heartbeat-in .5s infinite;
}
.heartbeat-out {
animation: heartbeat-out .5s infinite;
}

View file

@ -1,8 +1,8 @@
<?php
require_once __DIR__ . '/vendor/autoload.php';
error_reporting(0);
ini_set('display_errors', 'off');
error_reporting(-1);
ini_set('display_errors', 'on');
try {
$pdo = new PDO('mysql:unix_socket=/var/run/mysqld/mysqld.sock;dbname=flash_website;charset=utf8mb4', 'flash', 'af66a6666b1c9a597063325b14c8b52d', [