Home / PC Gaming / Hardware / Store / Discord

Any web developers that can help me out?


#1

I’m trying to implement this:

http://www.w3schools.com/howto/howto_css_modal_images.asp

To this:

http://vnjs.net/www/project/freewall/example/image-layout.html

As you can see, the divs are dynamically created through the script at the end of the body. I’ve tried targeting the ID’s that are on those div’s in CSS and adding something random like a red border of 15px to see if it works but it doesn’t.

How can I achieve a lightbox with freewall?


#2

I would give all the images the same class and then call it with Jquery. Could then pretty much copypasta the other code too.

Although, you do have two options.
You can do it the JQuery way, or you can do it the Angular JS way.

Angular JS uses data binding whereas Jquery uses listeners to wait and fire callbacks.

Both are valid, I sugest you take a look at both approaches.

Watch this: