This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<input type="text" id="copy-text" value="これをコピーさせる"> <button id="bt-copy">copy</button> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<button id="bt-prac">長押しでアラート</button> | |
<p id="op-prac">.</p> | |
<script src="path/to/long-press.js"></script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.loop-area{ | |
width: 240px; | |
margin: 0 auto; | |
font-size: 0; | |
letter-spacing: 0; | |
line-height: 0; | |
overflow: hidden; | |
} | |
.loop-box{ | |
width: 480px; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#sample-img{ | |
display: block; | |
width: 60%; | |
margin: 0 auto; | |
} | |
#canvas{ | |
display: block; | |
width: 30%; | |
margin: 0 auto; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.a4-page{ | |
padding: 0 50px; | |
} | |
.a4-page+.a4-page{ | |
border-top: 1px solid #333; | |
} | |
.page-title{ | |
margin: 20px 0; | |
text-align: center; | |
font-size: 1.2rem; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#game-area{ | |
position: relative; | |
} | |
#play-area{ | |
padding: 15px 0; | |
position: relative; | |
user-select: none; | |
} | |
#play-area,#controller{ | |
background-color: #43A047; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@media print{ | |
body,article.kiji{ | |
padding: 0; | |
margin: 0; | |
} | |
.not-print{ | |
display: none; | |
} | |
.a4-page{ | |
box-sizing: border-box; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//空配列生成 | |
let arr = []; | |
let arr = new Array(); | |
//任意長の配列生成 | |
let arr = new Array(INT); | |
//一次元配列のコピー | |
let copy = arr.slice(); | |
let copy = arr.concat(); | |
//多次元配列のコピー | |
let copy = JSON.parse(JSON.stringify(arr)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<p id="output-1"></p> | |
<p><button id="bt-1">画像読み込み開始</button></p> |