Commit 344a9374 by Ye Eun Choi

week 4 slider

parent 7e163e16
Pipeline #63295 passed with stage
in 18 seconds
......@@ -6,10 +6,116 @@
<link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css">
<link href="https://fonts.googleapis.com/css?family=Aleo" rel="stylesheet">
<link href="http://fonts.googleapis.com/earlyaccess/hanna.css" rel="stylesheet">
<link href="style.css" type="text/css" rel="stylesheet">
<style>
* {box-sizing:border-box}
/* Hide the images by default */
.mySlides1, .mySlides2 {display: none;}
img {vertical-align: middle;}
/* Slideshow container */
.slideshow-container {
max-width: 700px;
position: relative;
margin: auto;
}
/* Next & previous buttons */
.prev, .next {
cursor: pointer;
position: absolute;
top: 50%;
width: auto;
margin-top: -22px;
padding: 10px;
color: black;
font-weight: bold;
font-size: 18px;
transition: 0.6s ease;
border-radius: 0 3px 3px 0;
user-select: none;
}
/* Position the "next button" to the right */
.next {
right: 0;
border-radius: 3px 0 0 3px;
}
.prev {
left: 0;
border-radius: 3px 0 0 3px;
}
/* On hover, add a black background color with a little bit see-through */
.prev:hover, .next:hover {
background-color: rgba(0,0,0,0.5);
}
/* Caption text */
.text {
background-color: rgba(0,0,0,0.5);
color: #f2f2f2;
font-size: 21px;
padding: 20px 20px;
position: absolute;
bottom: 20px;
width: 530px;
text-align: center;
}
/* Number text (1/3 etc) */
.numbertext {
background-color: rgba(0,0,0,0.5);
color: #f2f2f2;
font-size: 15px;
padding: 8px 12px;
position: absolute;
top: 5px;
}
/* The dots/bullets/indicators */
.dot {
cursor: pointer;
height: 15px;
width: 15px;
margin: 0 2px;
background-color: #bbb;
border-radius: 50%;
display: inline-block;
transition: background-color 0.6s ease;
}
.active, .dot:hover {
background-color: #717171;
}
/* Fading animation */
.fade {
-webkit-animation-name: fade;
-webkit-animation-duration: 1.5s;
animation-name: fade;
animation-duration: 1.5s;
}
@-webkit-keyframes fade {
from {opacity: .4}
to {opacity: 1}
}
@keyframes fade {
from {opacity: .4}
to {opacity: 1}
}
/* Other Codes */
body,h1,h2 {font-family: 'Hanna', sans serif;}
h3,h4,h5,h6,p {font-family: "Aleo", serif;}
......@@ -59,10 +165,21 @@ p.d {margin:150px 0;}
#main {
box-sizing: content-box;
width: 600px;
height: 50px;
padding: 10px;
border: none;
}
#slider {
box-sizing: border-box;
width: 600px;
height: 600px;
padding: 20px;
border: 10px solid #ffeab9;
border-top-left-radius: 25px;
border-bottom-left-radius: 25px;
border-top-right-radius: 25px;
border-bottom-right-radius: 25px
}
h4.a {text-decoration-line: underline;
}
......@@ -70,6 +187,9 @@ h4.a {text-decoration-line: underline;
h2.a{color:#eb583a;
}
</style>
<body>
......@@ -121,66 +241,63 @@ h2.a{color:#eb583a;
<!---------!BRAINSTORMING! ------->
<h2 class="w3-text-green" style=margin-left:50px;>Brainstorm</h2>
<p class="a"></p>
<h4 style=margin-left:100px> Vinyl cutter</h4>
<p class="a"></p>
<h5 style=margin-left:120px>
Cameo Silhouette 3
<p class="a"></p>
<h2 class="a" style=margin-left:50px; id="vinyl">Vinyl Cutter</h2>
<p class="a"></p>
<img src="week/4/vinyl1.png" style="width:500px">
<!-- Slideshow container -->
<div class="slideshow-container" id="slider">
<center>
<!-- Full-width images with number and caption text -->
<div class="mySlides fade">
<div class="numbertext">1 / 5</div>
<img src="week/4/vinyl1.png" style="width:100%">
<div class="text">The vinyl cutter at Fab Lab Seoul is a Silhouette Cameo 3... I've used it a few times before.</div>
</div>
<p class="a"> </p>
<div class="mySlides fade">
<div class="numbertext">2 / 5</div>
<img src="week/4/vinyl6.png" style="width:100%">
<div class="text"> It's more tricky because the one in the lab doesn't have the mat to help hold materials in place during fabrication.</div>
</div>
2. Music box <img src="week/1/pic2.jpg" style="width:650px"> Maybe smaller </h5>
<p class="a"> </p>
<div class="mySlides fade">
<div class="numbertext">3 / 5</div>
<img src="week/4/laser8.jpg" style="width:100%">
<div class="text">these are the machines that go with laser cutter</div>
</div>
<h5 style=margin-left:200px>
3. Electric-longboard <img src="week/1/pic3.jpg" style="width:650px"> It might be better to just get a kit.</h5>
<p class="a"> </p>
<div class="mySlides fade">
<div class="numbertext">4 / 5</div>
<img src="week/4/laser4.jpg" style="width:100%">
<div class="text">Laser is a powerful, concentrated beam of light</div>
</div>
<h5 style=margin-left:200px>
4. Board game <img src="week/1/pic4.jpg" style="width:650px"> Looks like a lot of fun, quite unecessary </h5>
<p class="a"> </p>
<div class="mySlides fade">
<div class="numbertext">5 / 5</div>
<img src="week/4/laser7.jpg" style="width:100%">
<div class="text">It comes from a tube at the back of the maching, reflected off of mirrors into the focusing lense.</div>
</div>
</center>
<!-- Next and previous buttons -->
<a class="prev" onclick="plusSlides(-1)">&#10094;</a>
<a class="next" onclick="plusSlides(1)">&#10095;</a>
</div>
<h5 style=margin-left:200px>
5. MIDI drum pad <img src="week/1/pic5.jpg" style="width:650px"> Super cool, perhaps I can add it to the music box.</h5>
<p class="b"> </p>
<p id="git"> </p>
<div style="text-align:center">
<span class="dot" onclick="currentSlide(1)"></span>
<span class="dot" onclick="currentSlide(2)"></span>
<span class="dot" onclick="currentSlide(3)"></span>
<span class="dot" onclick="currentSlide(4)"></span>
<span class="dot" onclick="currentSlide(5)"></span>
</div>
<!-------------!MAIN CONTENT!--------->
<h2 class="w3-text-green" style=margin-left:50px;> Learning Git </h2>
<p class="b"></p>
<p class="c"> </p>
<h4 style=margin-left:100px> MUSICBOX</h4>
<h2 class="w3-text-blue" style=margin-left:50px; id="laser">Laser cutter</h2>
<p class="a"></p>
<h5 style=margin-left:200px>
Using IR LED</h5>
<h5 style=margin-left:200px>
Adafruit?</h5>
<h5 style=margin-left:200px>
What kind of sensors will I use?</h5>
<h6 style=margin-left:200px>
I will draw a better, more detailed sketch later</h6>
<h5 style=margin-left:200px>
<img src="week/1/final1.JPG" style="width:650px"> </h5>
<h5 style=margin-left:200px>
<img src="week/1/final2.jpg" style="width:650px"> </h5>
<h5 style=margin-left:200px>
<img src="week/1/final3.jpg" style="width:650px"> </h5>
<p class="c"></p>
<!----------!FINISHING NOTE!------------>
<h2 class="w3-text-red" style=margin-left:50px;> WARNING </h2>
......@@ -241,6 +358,34 @@ function w3_open() {
function w3_close() {
document.getElementById("mySidebar").style.display = "none";
}
<!--SLIDESCRIPT!---->
var slideIndex = 1;
showSlides(slideIndex);
function plusSlides(n) {
showSlides(slideIndex += n);
}
function currentSlide(n) {
showSlides(slideIndex = n);
}
function showSlides(n) {
var i;
var slides = document.getElementsByClassName("mySlides");
var dots = document.getElementsByClassName("dot");
if (n > slides.length) {slideIndex = 1}
if (n < 1) {slideIndex = slides.length}
for (i = 0; i < slides.length; i++) {
slides[i].style.display = "none";
}
for (i = 0; i < dots.length; i++) {
dots[i].className = dots[i].className.replace(" active", "");
}
slides[slideIndex-1].style.display = "block";
dots[slideIndex-1].className += " active";
}
</script>
</body>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment