-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathshow.php
More file actions
executable file
·247 lines (204 loc) · 4.87 KB
/
Copy pathshow.php
File metadata and controls
executable file
·247 lines (204 loc) · 4.87 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
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
<?php include "assets/php/functions.php"; ?>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Tutor Piles - Remote Control</title>
<meta name="author" content="impshum">
<meta name="description" content="Slideshow software for programming tutors">
<link rel="stylesheet" href="assets/css/bulma.min.css">
<link rel="stylesheet" href="assets/css/styles.css">
<link rel="stylesheet" href="assets/css/ani.css">
<script defer src="https://use.fontawesome.com/releases/v5.3.1/js/all.js"></script>
<link rel="shortcut icon" type="image/png" href="assets/img/favicon.png">
<style>
html,
body {
overflow: hidden;
}
.button {
padding: 40px;
border-radius: 0 !important;
}
.menou {
margin-top: 2em;
height: 200px;
overflow-y: scroll;
}
html,
body {
height: 100%;
display: block;
}
body {
font-family: "Raleway", sans-serif;
}
h1 {
text-align: center;
letter-spacing: 2px;
font-weight: 300;
font-size: 70px;
}
.button {
font-size: 20px;
text-align: center;
display: block;
width: 300px;
margin: auto;
padding: 15px 0px;
text-decoration: none;
letter-spacing: 2px;
font-weight: 300;
margin-bottom: 40px;
overflow: hidden;
position: relative;
border-radius: 3px;
transition: box-shadow 0.3s;
-webkit-box-shadow: 0px 5px 8px rgba(0, 0, 0, 0.2);
}
.button span {
display: block;
border-radius: 50%;
width: 50px;
height: 50px;
margin-left: -25px;
margin-top: -25px;
position: absolute;
-webkit-animation: effect-animation 2s;
}
.button:hover {
-webkit-box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.6);
}
.button-black {
background: #000;
color: #fff;
}
.button-black span {
background: #fff;
left: 50%;
top: 50%;
}
.button-white {
background: #fff;
color: #000;
border: 2px solid #000;
}
.button-white span {
background: #000;
}
@-webkit-keyframes effect-animation {
from {
-webkit-transform: scale(1);
opacity: 0.4;
}
to {
-webkit-transform: scale(100);
opacity: 0;
}
}
.menu-list a:hover {
color: #363636 !important;
}
.menou::-webkit-scrollbar-track
{
background-color: #0a0a0a;
}
.menou::-webkit-scrollbar
{
width: 6px;
background-color: #0a0a0a;
}
.menou::-webkit-scrollbar-thumb
{
background-color: #fff;
}
</style>
</head>
<body>
<section class="hero is-black is-fullheight">
<div class="hero-body">
<div class="container has-text-centered">
<div class="content">
<h2 id='page-title'></h2>
</div>
<div class="columns is-mobile">
<div class="column is-half">
<a class="button button-white js-touch-effect ani is-large is-fullwidth" onClick="up();">BACK</a>
</div>
<div class="column is-half">
<a class="button button-white js-touch-effect ani is-large is-fullwidth" onClick="down();">NEXT</a>
</div>
</div>
<div class="menou">
<aside class="menu">
<p class="menu-label">Slides</p>
<ul class="menu-list">
<?php get_dirs(); ?>
</ul>
</aside>
</div>
</div>
</div>
</section>
<script src="assets/js/jquery-3.3.1.min.js"></script>
<script>
$(document).ready(function() {
var page = window.opener.location.search;
var thing = page.substring(page.indexOf('-') + 1);
var that = thing.replace('-', ' ');
$('#page-title').text(that);
});
$('html').keydown(function(event) {
if (event.keyCode == 40) {
window.opener.$.fn.pagepiling.moveSectionDown();
} else if (event.keyCode == 38) {
window.opener.$.fn.pagepiling.moveSectionUp();
}
});
function down() {
window.opener.$.fn.pagepiling.moveSectionDown();
};
function up() {
window.opener.$.fn.pagepiling.moveSectionUp();
};
//変数定義
var $window = window;
//black
function buttonEffect(){
var $buttonEffect = $('.js-effect');
//button押した時の挙動
$buttonEffect.on('click',function(e){
e.preventDefault();
$(this).append('<span></span>');
var $span = $(this).find('span');
$window.setTimeout(function(){
$span.remove();
},1800);
});
}
buttonEffect();
//white
function buttonTouchEffect(){
var $buttonTouchEffect = $('.js-touch-effect');
//button押した時の挙動
$buttonTouchEffect.on('click',function(e){
e.preventDefault();
$(this).append('<span></span>');
var $span = $(this).find('span'),
offSet = $(this).offset(),
offSetY = event.pageY-offSet.top,
offSetX = event.pageX-offSet.left;
console.log(offSetY,offSetX)
$span.css({
top:offSetY,
left:offSetX
});
$window.setTimeout(function(){
$span.remove();
},1800);
});
}
buttonTouchEffect();
</script>
</body>
</html>