Skip to content

Commit

Permalink
Update info.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Squirrel authored Oct 5, 2024
1 parent 0ca681d commit 15e6b60
Showing 1 changed file with 19 additions and 3 deletions.
22 changes: 19 additions & 3 deletions js/info.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,26 @@
function showInfo(id) {
var para = document.getElementById('para7');
para.style.display = para.style.display === 'block' ? 'none' : 'block';
}
function showInfo(id) {
var descriptionDiv = document.getElementById('description');
var para = document.getElementById('para7');

if (!para) {
para = document.createElement('p');
para.id = 'para7';
para.textContent = 'Listen, you do not know how many times we hear this. The point of the website is just a website refering to the meme Freakybob and just having fun LMAO';
descriptionDiv.appendChild(para);
}

para.style.display = para.style.display === 'block' ? 'none' : 'block';
}
let currentIndex = 0;
const images = document.querySelectorAll('#image-track img');
const totalImages = images.length;
const modal = document.getElementById("image-modal");
const modalImage = document.getElementById("modal-image");
const descriptionDiv = document.getElementById('description');
function updateCarousel() {
const imageTrack = document.getElementById('image-track');
const width = images[0].clientWidth;
Expand All @@ -23,9 +41,7 @@ function openModal(src) {
function closeModal() {
modal.style.display = "none";
}
function showInfo() {
const point = "Listen, you do not know how many times we hear this. The point of the website is just freakybob and having fun! Simple."
}

images.forEach(image => {
image.addEventListener('click', () => openModal(image.src));
});
Expand Down

0 comments on commit 15e6b60

Please sign in to comment.