Skip to content

Commit

Permalink
Updated hobbies section, size in modal still weird
Browse files Browse the repository at this point in the history
  • Loading branch information
rashelrr committed Nov 15, 2023
1 parent f409cb2 commit 51fc7a1
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 12 deletions.
18 changes: 9 additions & 9 deletions app/data.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,19 +74,19 @@
],
"hobbies" : [
{
"image" : "bellydance.png",
"hobby" : "Bellydance",
"caption": "I'm on my university's bellydancing troupe, CU Raqs! We host a variety of classes throughout the semester and host our own annual spring show where we're joined by several other dance groups."
"image" : "coding.jpeg",
"hobby" : "Coding",
"caption": "I'm always looking for new projects to work on. Currently, I'm working on this website."
},
{
"image" : "gym.jpg",
"hobby" : "Working Out",
"caption": "I enjoy strength training. My goal is to be able to do 10 pull ups one day :)"
"image" : "salsa.jpg",
"hobby" : "Salsa Dancing",
"caption": "I've always loved salsa and so this summer, I decided to take some salsa classes in my neighborhood and continue to practice at Salsa clubs!"
},
{
"image" : "coding.jpeg",
"hobby" : "Coding",
"caption": "I'm always looking for new projects to work on. Currently, I'm helping a friend develop an iOS music collaboration app."
"image" : "gym.jpeg",
"hobby" : "Working Out",
"caption": "I enjoy strength training. Currently, I can squat 100lbs - my goal is to squat my own body weight."
}
]
}
Binary file removed app/static/img/bellydance.png
Binary file not shown.
Binary file added app/static/img/gym.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed app/static/img/gym.jpg
Binary file not shown.
Binary file added app/static/img/salsa.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions app/static/scripts/modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
var modal = document.getElementById("myModal");

// Get the image and insert it inside the modal - use its "alt" text as a caption
var img = document.getElementById("Bellydance");
var img = document.getElementById("Coding");
var modalImg = document.getElementById("img01");
var captionText = document.getElementById("caption");
img.onclick = function(){
Expand All @@ -11,14 +11,14 @@ img.onclick = function(){
captionText.innerHTML = this.alt;
}

var img2 = document.getElementById("Working Out");
var img2 = document.getElementById("Salsa Dancing");
img2.onclick = function(){
modal.style.display = "block";
modalImg.src = this.src;
captionText.innerHTML = this.alt;
}

var img3 = document.getElementById("Coding");
var img3 = document.getElementById("Working Out");
img3.onclick = function(){
modal.style.display = "block";
modalImg.src = this.src;
Expand Down

0 comments on commit 51fc7a1

Please sign in to comment.