-
Notifications
You must be signed in to change notification settings - Fork 0
/
array.html
107 lines (100 loc) · 2.35 KB
/
array.html
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<style>
body{
margin: 0;
/* background-color: currentColor; */
}
section{
width: 50vw;
height: 70vh;
animation: carousel;
/* position: relative;
left: 50%; */
}
img{
width: 100%;
height: 85%;
}
.pics-container{
display: flex;
flex-wrap: wrap;
margin: 100px auto;
background-color: whitesmoke;
height: 70vh;
width: 60vw;
}
figcaption{
background-color: black;
color: white;
padding: 5px;
font-size: 1rem;
}
figure{
transform: translateX(-20%);
position: relative;
left: 20%;
}
.previous,.next{
background-color: red;
height: 100px;
width: 200px;
z-index: 100;
}
@keyframes carousel {
from{}
}
</style>
<body>
<h1>matt</h1>
<body>
<div class="pics-container">
<figure>
<div class="previous"></div>
<section>
<img src="../Dribble.com/dribbleimages/seventh.jpg" alt="">
<figcaption>Img 1</figcaption>
</section>
<div class="next"></div>
</figure>
<!-- <figure>
<img src="../Dribble.com/dribbleimages/nineth.png" alt="">
<figcaption>Img 2</figcaption>
</figure>
<figure>
<img src="../Dribble.com/dribbleimages/tenth.jpg" alt="">
<figcaption>Img 3</figcaption>
</figure>
<figure>
<img src="../Dribble.com/dribbleimages/fifth.jpg" alt="">
<figcaption>Img 4</figcaption>
</figure> -->
</div>
</body>
<script>
// minimum number
function minNumber(){
const checkMinNum=[50,20,30,40,60,70,80,90,100]
let minNum=checkMinNum.sort((a,b)=>{
return a-b;
})
console.log(minNum[0]);
}
minNumber();
// maximum number
function maxNumber(){
const checkMaxNum=[10,20,30,40,50,60,70,80,90,100]
let maxNum=checkMaxNum.sort((a,b)=>{
return b-a;
})
console.log(maxNum[0]);
}
maxNumber();
</script>
</html>