Skip to content

Commit

Permalink
Rotation media added to public folder
Browse files Browse the repository at this point in the history
  • Loading branch information
s-egge committed Oct 11, 2024
1 parent 4b736d3 commit d56bb35
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
Binary file added public/images/Fall_Hiring_Poster_24.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 8 additions & 5 deletions src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export default {
inactivityTimeout: 30000, // 30 seconds of inactivity. Time in milliseconds
inactivityTimeoutDefault: 30000, // 30 seconds of inactivity. Time in milliseconds
inactivityTimer: null,
mediaList: []
mediaList: ['/images/Fall_Hiring_Poster_24.png']
}
},
methods: {
Expand Down Expand Up @@ -78,7 +78,7 @@ export default {
// creates a timer that routes to the Carousel page after time is up
createInactivityTimer () {
// refresh media
this.fetchMedia()
// this.fetchMedia()
this.inactivityTimer = setTimeout(() => {
this.$router.push({
Expand Down Expand Up @@ -117,12 +117,15 @@ export default {
}
// get media for rotation
await this.fetchMedia()
// await this.fetchMedia()
console.log('Media list:', this.mediaList)
// create a timer and click listener for media rotation
this.$el.addEventListener('click', this.navigateToHomepage)
// create a timer for media rotation
this.createInactivityTimer()
},
mounted () {
this.$el.addEventListener('click', this.navigateToHomepage)
},
beforeDestroy () {
clearInterval(this.timer)
Expand Down

0 comments on commit d56bb35

Please sign in to comment.