-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathreservation.html
More file actions
285 lines (243 loc) · 8.55 KB
/
Copy pathreservation.html
File metadata and controls
285 lines (243 loc) · 8.55 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
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>K.Code</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="K.Code">
<meta name="keywords" content="K.Code,プログラミング,プログラミングスクール,学生,学生から始めるプログラミング,学生から始められるプログラミングスクール,学生用プログラミングスクール,学生向けのプログラミングスクール,中学,高校,大学">
<link rel="stylesheet" href="css/style_reservation.css">
<link rel="stylesheet" href="css/slide_reservation.css">
<script src="js/openclose.js"></script>
<script src="js/fixmenu.js"></script>
<script src="js/scroll.js"></script>
<script src="js/fixmenu_pagetop.js"></script>
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<script>
$(function(){
$('a[href^="#"]').click(function() {
var speed = 800;
var href= $(this).attr("href");
var target = $(href == "#" || href == "" ? 'html' : href);
var position = target.offset().top;
$('body,html').animate({scrollTop:position}, speed, 'swing');
return false;
});
});
</script>
<script src='lib/locales/ja.js'></script>
<link href='lib/main.css' rel='stylesheet'>
<script src='lib/main.js'></script>
<script>
document.addEventListener('DOMContentLoaded', function() {
var calendarEl = document.getElementById('calendar');
var calendar = new FullCalendar.Calendar(calendarEl, {
headerToolbar: {
left: 'prev,next today',
center: 'title',
right: 'dayGridMonth,listYear'
},
displayEventTime: false, // don't show the time column in list view
// THIS KEY WON'T WORK IN PRODUCTION!!!
// To make your own Google API key, follow the directions here:
// http://fullcalendar.io/docs/google_calendar/
googleCalendarApiKey: 'AIzaSyAuXbrQpAZi5SIFDx8feT7vWzGqgj-LmI4',
// US Holidays
events: '58ojvctnarkdrvsgarq7525jjk@group.calendar.google.com',
eventClick: function(arg) {
// opens events in a popup window
window.open(arg.event.url, 'google-calendar-event', 'width=700,height=600');
arg.jsEvent.preventDefault() // don't navigate in main tab
},
loading: function(bool) {
document.getElementById('loading').style.display =
bool ? 'block' : 'none';
}
});
calendar.render();
});
</script>
<style>
body {
margin: 40px 10px;
padding: 0;
font-family: Arial, Helvetica Neue, Helvetica, sans-serif;
font-size: 14px;
}
#loading {
display: none;
position: absolute;
top: 10px;
right: 10px;
}
#calendar {
max-width: 1300px;
margin: 0 auto;
}
</style>
</head>
<body>
<div id="container">
<header>
<h1 id="logo"><a href="index.html"><img src="images/K_Code_label(black_transparency).png" alt="K.Code"></a></h1>
</header>
<div id="container">
<div id="contents">
<section class="bg1">
<h5 class="img"><a href="index.html"><img src="images/SwiftUI.png" alt="About"></a></h5>
<h6>SwiftUI</h6>
<p>iPhoneのアプリを作る言語です。<br>
作成するコードの意味を理解し、自ら実装までできるようになることが目標です!<br>
<対象: 中学1年生~><br>
<テキスト><br>
・組み込み式ジャンケンアプリ <全12回><br>
・カフェラテ注文アプリ Coming soon...
</p>
<p></p>
<p></p>
<p></p>
<h6>Timetable</h6>
<div id='loading'></div>
<div id="calendar"></div>
<p></p>
<p></p>
<p></p>
<p></p>
<p></p>
<div id="smart-button-container">
<div style="text-align: center;">
<div style="margin-bottom: 1.25rem;">
<p>SwiftUI授業料</p>
<select id="item-options"><option value="オンライン授業のみ" price="2000">オンライン授業のみ - 2000 JPY</option><option value="オンライン授業 + テキスト" price="2500">オンライン授業 + テキスト - 2500 JPY</option></select>
<select style="visibility: hidden" id="quantitySelect"><option value="1">1</option><option value="2">2</option><option value="3">3</option><option value="4">4</option><option value="5">5</option><option value="6">6</option><option value="7">7</option><option value="8">8</option><option value="9">9</option><option value="10">10</option><option value="11">11</option><option value="12">12</option><option value="13">13</option><option value="14">14</option><option value="15">15</option><option value="16">16</option><option value="17">17</option><option value="18">18</option><option value="19">19</option><option value="20">20</option></select>
</div>
<div id="paypal-button-container"></div>
</div>
</div>
<script src="https://www.paypal.com/sdk/js?client-id=AZv9teuB2p8fqxCinHEZNuWhxcxGzsX2b6KMMkOpkN_nTK3W-DD2pZjXVNc0kKSA3d5SBlsAcUDey_j8¤cy=JPY" data-sdk-integration-source="button-factory"></script>
<script>
function initPayPalButton() {
var shipping = 0;
var itemOptions = document.querySelector("#smart-button-container #item-options");
var quantity = parseInt(20);
var quantitySelect = document.querySelector("#smart-button-container #quantitySelect");
if (!isNaN(quantity)) {
quantitySelect.style.visibility = "visible";
}
var orderDescription = 'SwiftUI授業料';
if(orderDescription === '') {
orderDescription = 'Item';
}
paypal.Buttons({
style: {
shape: 'rect',
color: 'black',
layout: 'vertical',
label: 'paypal',
},
createOrder: function(data, actions) {
var selectedItemDescription = itemOptions.options[itemOptions.selectedIndex].value;
var selectedItemPrice = parseFloat(itemOptions.options[itemOptions.selectedIndex].getAttribute("price"));
var tax = (10 === 0) ? 0 : (selectedItemPrice * (parseFloat(10)/100));
if(quantitySelect.options.length > 0) {
quantity = parseInt(quantitySelect.options[quantitySelect.selectedIndex].value);
} else {
quantity = 1;
}
tax *= quantity;
tax = Math.round(tax * 100) / 100;
var priceTotal = quantity * selectedItemPrice + parseFloat(shipping) + tax;
priceTotal = Math.round(priceTotal * 100) / 100;
var itemTotalValue = Math.round((selectedItemPrice * quantity) * 100) / 100;
return actions.order.create({
purchase_units: [{
description: orderDescription,
amount: {
currency_code: 'JPY',
value: priceTotal,
breakdown: {
item_total: {
currency_code: 'JPY',
value: itemTotalValue,
},
shipping: {
currency_code: 'JPY',
value: shipping,
},
tax_total: {
currency_code: 'JPY',
value: tax,
}
}
},
items: [{
name: selectedItemDescription,
unit_amount: {
currency_code: 'JPY',
value: selectedItemPrice,
},
quantity: quantity
}]
}]
});
},
onApprove: function(data, actions) {
return actions.order.capture().then(function(details) {
alert('Transaction completed by ' + details.payer.name.given_name + '!');
});
},
onError: function(err) {
console.log(err);
},
}).render('#paypal-button-container');
}
initPayPalButton();
</script>
</section>
<section id="contact">
<p></p>
<p></p>
<p></p>
<p></p>
<p></p>
<h6>Contact</h6>
<p></p>
<p></p>
<p></p>
<p></p>
<p></p>
<p></p>
<p></p>
<p></p>
<p></p>
<p class="c"><a href="index.html"><img src="images/K_Code(black_transparency).png" alt="" width="150px"></a></p>
<p></p>
<p></p>
<p></p>
<p></p>
<p></p>
<p></p>
<p class="c">
Mail: kaito_narimoto@icloud.com<br>
対応時間: AM9:00〜PM8:00</p>
<p></p>
<p></p>
<p></p>
</section>
<!--/#contact-->
</div>
<!--/#contents-->
</div>
<!--/#container-->
<footer>
<small>Copyright© <a href="index.html">K.Code</a> All Rights Reserved.</small>
<span class="pr">《<a href="https://template-party.com/" target="_blank">Web Design: Kaito Narimoto</a>》</span>
</footer>
<!--ページの上部に戻る「↑」ボタン-->
</body>
</html>