1
1
< section class ="hero is-halfheight has-text-left " id ="team-showcase ">
2
- < figure class ="hero-background " id =" rotating-image " style ="background-size: cover; background-position: center; ">
2
+ < figure class ="hero-background " style ="background-image: url(https://raw.githubusercontent.com/CabrilloRoboticsClub/cabrillorobotics.github.io/41309abdbb5d93dbc6c0119bf8f97a3bb38ad743/assets/images/seahawk-II/gallery-seahawk-II/interview.webp); " id =" rotating-image ">
3
3
< div class ="overlay ">
4
- < div class ="container is-centered ">
4
+ < div class ="container is-lower-left ">
5
5
< div class ="title-text ">
6
6
< h1 class ="title has-text-white-ter is-size-1 is-uppercase has-text-weight-bold ">
7
7
Our Team
@@ -11,7 +11,7 @@ <h1 class="title has-text-white-ter is-size-1 is-uppercase has-text-weight-bold"
11
11
</ div >
12
12
</ figure >
13
13
</ section >
14
-
14
+ <!--
15
15
<script>
16
16
document.addEventListener('DOMContentLoaded', function() {
17
17
const images = [
@@ -21,18 +21,16 @@ <h1 class="title has-text-white-ter is-size-1 is-uppercase has-text-weight-bold"
21
21
"https://raw.githubusercontent.com/CabrilloRoboticsClub/cabrillorobotics.github.io/782b579c031c16835e0fee2b57a22246c1a79618/assets/images/seahawk-II/gallery-seahawk-II/product-demo-pilot-2.webp"
22
22
];
23
23
24
- let currentIndex = 0 ;
25
- const imageElement = document . getElementById ( 'rotating-image' ) ;
26
-
27
- function rotateImage ( ) {
28
- imageElement . style . backgroundImage = `url(${ images [ currentIndex ] } )` ;
29
- currentIndex = ( currentIndex + 1 ) % images . length ;
24
+ var image_element = document.getElementById("rotating-image");
25
+ let i = 0;
26
+
27
+ function rotate() {
28
+ var new_style = "background-image: url('" + images[i] + "');";
29
+ image_element.setAttribute("style", new_style);
30
+ i = (i + 1) % images.length;
30
31
}
31
32
32
- // Set the initial image
33
- rotateImage ( ) ;
34
-
35
- // Rotate the image every 5 seconds
36
- setInterval ( rotateImage , 5000 ) ;
33
+ rotate();
34
+ setInterval(rotate, 5000);
37
35
});
38
- </ script >
36
+ </script> -->
0 commit comments