Skip to content

Instantly share code, notes, and snippets.

.settings-row{
display: flex;
flex-direction: column;
align-items: flex-start;
row-gap: 8px;
padding: 12px;
margin: 12px 0;
background-color: #eee;
}
.label-input{
<button id="bt-start">降らせる</button>
<button id="bt-stop">止める</button>
<script src="pathto/raining-particles.js"></script>
#quiz{
display: flex;
flex-direction: column;
box-sizing: border-box;
height: 90vh;
border: 2px solid #777;
background-color: #fff;
-webkit-tap-highlight-color: transparent;
}
.settings-row{
margin: 12px 0;
}
#sel-width,#sel-height{
width: 60px;
}
#bt-make{
cursor: pointer;
}
/* */
.img-sample{
width: 150px;
border: 1px solid #777;
}
/* */
.block{
box-sizing: border-box;
padding: 16px;
margin: 20px 0;
#input{
display: block;
width: 100%;
height: 100px;
resize: vertical;
font-size: 16px;
}
.settings{
margin: 8px 0;
[
{
"question": "次のうち、あ行のひらがなはどれでしょうか?",
"answers": [
"か","そ","16","う","亜"
],
"index-answer": 3
},
{
"question": "0から100までの整数を全てかけると答えは?",
@charset "utf-8";
:root{
--main-color: #0288D1;
--sub-color: #B3E5FC;
--attention-color: #D32F2F;
--correct-color: #D32F2F;
--wrong-color: #303F9F;
}
#quiz{
width: 100%;
<!-- head内 -->
<link rel="stylesheet" href="pathto/quiz-maker.css">
<style>
#bt-start{
display: block;
margin: 30px auto;
cursor: pointer;
}
#bt-start.s-hide{
display: none;
#card{
display: grid;
grid-template-columns: repeat(3,1fr);
row-gap: 5%;
column-gap: 5%;
width: 90%;
margin: 0 auto;
padding: 5%;
position: relative;