-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathindex.php
More file actions
182 lines (170 loc) · 6.45 KB
/
index.php
File metadata and controls
182 lines (170 loc) · 6.45 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
<!DOCTYPE HTML>
<?php
/**
* Created by PhpStorm.
* User: Amamiya Chinatsu's
* Date: 2020/6/4
* Time: 15:00
*/
include_once 'lib/config.php';
?>
<html lang="<?php echo $html_lang;?>">
<!--
Re-Edit by Amamiya Chinatsu
github.com/BakaChinatsu/uuz-h5theme | @BakaChinatsu
Identity by HTML5 UP
html5up.net | @ajlkn
Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
-->
<html>
<head>
<title><?php echo $title; ?></title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />
<!-- タグに表示するアイコン -->
<link rel="icon" sizes="48x48" type="image/png" href="images/<?php echo $tag_icon;?>">
<!-- ブラウザ要素の色 -->
<meta name="theme-color" content="<?php echo $theme_color;?>">
<link rel="stylesheet" href="assets/css/main.css" />
<noscript><link rel="stylesheet" href="assets/css/noscript.css" /></noscript>
<style type="text/css">
body {
height: 100%;
background-color: #ffffff;
background-image: url("images/overlay.png"), url("images/<?php echo $background_filename;?>");
background-repeat: repeat, no-repeat, no-repeat;
background-size: 100px 100px, cover, cover;
background-position: top left, center center, bottom center;
background-attachment: fixed, fixed, fixed;
}
body:after {
content: '';
display: block;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: inherit;
opacity: 0;
z-index: 1;
background-color: #ffffff;
background-image: url("images/overlay.png");
background-size: 100px 100px, cover;
background-position: top left, center center;
-moz-transition: opacity 1.75s ease-out;
-webkit-transition: opacity 1.75s ease-out;
-ms-transition: opacity 1.75s ease-out;
transition: opacity 1.75s ease-out;
}
body.is-preload:after {
opacity: 1;
}
p#hitokoto {
margin: 0 0 0em 0;
}
p#hitokoto_from {
margin: 0 0 -0.5em 0;
}
a#hitokoto_text {
font-size: 0.9em;
}
a#hitokoto_from_text {
font-size: 0.7em;
}
</style>
</head>
<body class="is-preload">
<!-- Wrapper -->
<div id="wrapper">
<!-- Main -->
<section id="main">
<header>
<span class="avatar"><img src="images/<?php echo $avatar_filename; ?>" height="<?php echo $avatar_height; ?>>" width="<?php echo $avatar_width; ?>" alt="" /></span>
<h1><?php echo $main_title;?></h1>
<p><?php echo $sec_title;?></p>
</header>
<!--
<hr />
<h2>Extra Stuff!</h2>
<form method="post" action="#">
<div class="fields">
<div class="field">
<input type="text" name="name" id="name" placeholder="Name" />
</div>
<div class="field">
<input type="email" name="email" id="email" placeholder="Email" />
</div>
<div class="field">
<select name="department" id="department">
<option value="">Department</option>
<option value="sales">Sales</option>
<option value="tech">Tech Support</option>
<option value="null">/dev/null</option>
</select>
</div>
<div class="field">
<textarea name="message" id="message" placeholder="Message" rows="4"></textarea>
</div>
<div class="field">
<input type="checkbox" id="human" name="human" /><label for="human">I'm a human</label>
</div>
<div class="field">
<label>But are you a robot?</label>
<input type="radio" id="robot_yes" name="robot" /><label for="robot_yes">Yes</label>
<input type="radio" id="robot_no" name="robot" /><label for="robot_no">No</label>
</div>
</div>
<ul class="actions special">
<li><a href="#" class="button">Get Started</a></li>
</ul>
</form>
<hr />
-->
<footer>
<ul class="icons">
<li><a href="<?php echo $site_url_01;?>" class="icon <?php echo $icon_style_01;?> <?php echo $site_icon_01;?>" target="_blank"><?php echo $site_name_01;?></a></li>
<li><a href="<?php echo $site_url_02;?>" class="icon <?php echo $icon_style_02;?> <?php echo $site_icon_02;?>" target="_blank"><?php echo $site_name_02;?></a></li>
<li><a href="<?php echo $site_url_03;?>" class="icon <?php echo $icon_style_03;?> <?php echo $site_icon_03;?>" target="_blank"><?php echo $site_name_02;?></a></li>
</ul>
</footer>
<ul class="actions special">
<li><a href="<?php echo $button_url;?>" class="button"><?php echo $button_name;?></a></li>
</ul>
<p id="hitokoto">
<a href="#" id="hitokoto_text" target="_blank">:D 受信中...</a>
</p>
<p id="hitokoto_from" class="small" style="text-align: right">
<a href="#" id="hitokoto_from_text" target="_blank">:D 受信中...</a>
</p>
</section>
<script>
fetch('https://v1.hitokoto.cn?c=a&c=b')
.then(response => response.json())
.then(data => {
const hitokoto = document.querySelector('#hitokoto_text')
const hitokoto_from = document.querySelector('#hitokoto_from_text')
hitokoto.href = `https://hitokoto.cn/?uuid=${data.uuid}`
hitokoto.innerText = `「${data.hitokoto}」`
hitokoto_from.innerText = `——${data.from}`
hitokoto_from.href = `https://www.google.com/search?q=${data.from}`
})
.catch(console.error)
</script>
<!-- Footer -->
<footer id="footer">
<a>© <?php echo $copyright; ?></a>
<ul class="copyright">
<li>Theme: <a href="https://github.com/BakaChinatsu/uuz-h5theme">uuz-h5theme</a></li>
<li>Powered: <a href="http://html5up.net">HTML5 UP</a></li>
</ul>
</footer>
</div>
<!-- Scripts -->
<script>
if ('addEventListener' in window) {
window.addEventListener('load', function() { document.body.className = document.body.className.replace(/\bis-preload\b/, ''); });
document.body.className += (navigator.userAgent.match(/(MSIE|rv:11\.0)/) ? ' is-ie' : '');
}
</script>
</body>
</html>