+ 1

Function doesnt work after adding image

I am helping golden rockstar with adding a few apps to it, and everything works fine, but if you add a photo in the gallery, it wont show the big image anymore https://code.sololearn.com/WaS5BRKDLZEi/?ref=app

23rd Jul 2018, 12:18 AM
Roel
Roel - avatar
11 Respuestas
+ 2
In the script to add photos, I find no errors. In which line are the photos enlarged?
23rd Jul 2018, 1:48 PM
.teew
.teew - avatar
+ 2
Roel In wich line are the photos enlarged?
23rd Jul 2018, 6:43 PM
.teew
.teew - avatar
+ 1
Roel 258: [.removeClass("bigimg")]
24th Jul 2018, 7:23 AM
.teew
.teew - avatar
0
adding photos works correctly but after doing that you cant make the photos big anymore
23rd Jul 2018, 2:19 PM
Roel
Roel - avatar
0
278 - 284 works properly untill you add a photo, 262-270 i thought
23rd Jul 2018, 8:22 PM
Roel
Roel - avatar
0
$(function(){ $(".smallimg,#imgwrap").click(function(){ $("#phone").toggle(); $("#imgwrap").toggle(); $("#bigimg").attr("src",$(this).attr("src")); }); });
23rd Jul 2018, 8:22 PM
Roel
Roel - avatar
0
.teew removed it, because the class doesnt exist anymore, but the function still doesnt work :(
26th Jul 2018, 6:48 PM
Roel
Roel - avatar
0
What is life? Baby don't hurt me....
27th Jul 2018, 7:49 AM
Nommer101
Nommer101 - avatar
0
life = very good at the moment Baby dont hurt me?? what does that mean
27th Jul 2018, 12:20 PM
Roel
Roel - avatar
0
Its a song...
27th Jul 2018, 1:23 PM
Nommer101
Nommer101 - avatar
0
oh didn't know that
27th Jul 2018, 1:30 PM
Roel
Roel - avatar