-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathqrcode.html
More file actions
127 lines (111 loc) · 5.1 KB
/
qrcode.html
File metadata and controls
127 lines (111 loc) · 5.1 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
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-F9S8EDWV3S"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-F9S8EDWV3S');
</script>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1.0"/>
<title>YUITO8-22 - QRコードを表示</title>
<!-- CSS -->
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<link href="css/materialize.css" type="text/css" rel="stylesheet" media="screen,projection"/>
<link href="css/style.css" type="text/css" rel="stylesheet" media="screen,projection"/>
<link rel="icon" href="favicon.ico" type="image/x-icon">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=M+PLUS+Rounded+1c&display=swap" rel="stylesheet">
<link rel="canonical" href="https://sach-0719.github.io/yuito8-22site/qrcode.html">
</head>
<body>
<aside>
<nav class="light-blue lighten-1">
<div class="nav-wrapper container" data-nosnippet>
<a href="#" class="brand-logo">YUITO8-22</a>
<a href="#" data-target="nav-mobile" class="sidenav-trigger">
<i class="material-icons">menu</i>
</a>
</div>
</nav>
<!-- サイドナビ -->
<ul id="nav-mobile" class="sidenav" data-nosnippet>
<li><div class="user-view">
<div class="background">
<img src="menuimage (300 x 186 px).png">
</div>
<a href="#user" class="white-text"><img class="circle" src="favicon.ico"> </a>
<h5><span class="white-text">YUITO8-22</span></h5>
<a href="#email"><span class="white-text email"></span></a>
</div></li>
<script async src="https://cse.google.com/cse.js?cx=d423bc51148ec4c4b">
</script>
<div class="gcse-searchbox-only"></div>
<li><a href="index.html"><i class="material-icons">home</i>ホーム</a></li>
<li><a href="info.html"><i class="material-icons">help</i>ご利用について</a></li>
<li><a href="news.html"><i class="material-icons">list</i>スタジオ一覧</a></li>
<li><a href="guide.html"><i class="material-icons">check</i>ガイドライン</a></li>
<li><a href="video.html"><i class="material-icons">hub</i>コンテンツ集 /Contents</a></li>
<li><a href="ikenaikoto.html"><i class="material-icons">block</i>してはいけないこと</a></li>
<li><a href="qrcode.html"><i class="material-icons">smartphone</i>QRコードを表示</a></li>
<li><a href="https://scratch.mit.edu/users/YUITO8-22/"><i class="material-icons">account_circle</i>YUITO8-22 on Scratch</a></li>
<li><a href="https://note.com/sach0719"><i class="material-icons">edit</i>Note</a>
<li><a href="https://unityroom.com/users/xo1gnql0hd4y9c8sf6uz"><i class="material-icons">meeting_room</i>UnityRoom</a></li>
</li>
</ul>
</aside>
<div class="section no-pad-bot" id="index-banner">
<div id="top" class="container">
<br><br>
<i class="material-icons center green-text" style="font-size: 100px; display: block; margin-bottom: 9px;">qr_code</i>
<h1 class="header center orange-text">QRコード</h1>
<!-- 画像にIDを追加 -->
<img id="qrcodeImg" class="materialboxed qrcode" width="650" src="QR.png" alt="QRコード">
</div>
</div>
</div>
<a href="QR.png" download id="downloadbutton" class="waves-effect waves-light btn-large qrcode button_original_purple" style="top: 10px;"><i class="material-icons left">download</i>QRコードをダウンロード</a>
<!-- Modal Trigger -->
<!-- モーダル -->
<div id="modal1" class="modal">
<div class="modal-content">
<h4>リンク一覧</h4>
<p>クリックしてそのページに飛びます。</p>
<li><a href="https://scratch.mit.edu/users/YUITO8-22/">Scratch</a></li>
<li><a href="https://note.com/sach0719">Note</a></li>
</div>
</div>
<!-- Scripts-->
<script src="https://code.jquery.com/jquery-2.1.1.min.js"></script>
<script src="js/materialize.js"></script>
<script src="js/init.js"></script>
<script src="js/menu.js"></script>
<script>
document.addEventListener('DOMContentLoaded', function() {
var elems = document.querySelectorAll('.modal');
var instances = M.Modal.init(elems, options);
});
// Or with jQuery
$(document).ready(function(){
$('.modal').modal();
});
</script>
<script>
const toggle = document.getElementById('toggleSwitch');
const img = document.getElementById('qrcodeImg');
toggle.addEventListener('change', () => {
if (toggle.checked) {
img.src = "QR_icon.png"; // ON のときの画像
downloadbutton.href = "QR_icon.png"
} else {
img.src = "QR.png"; // OFF のときの画像
downloadbutton.href = "QR_.png"
}
});
</script>
</body>
</html>