Menu icon Foundation

Developer

My Posts


My Comments

Bartłomiej Szubert commented on Bartłomiej Szubert's post about 4 years

Heh, I don't know what to say... When I leaved my code yesterday it wasn't working. Right now it is :)
Thanks for help!

https://www.youtube.com/watch?v=0p_1QSUsbsM :)

Bartłomiej Szubert commented on Bartłomiej Szubert's post about 4 years

Well, it's something like this:
http://codepen.io/anon/pen/YXxrRW

But I'm not sure it will help, because everything works fine in codepen. And of course the script is pasted from my code.

Bartłomiej Szubert commented on Gary Spindler's post about 4 years

Maybe you didn't opened the reveal? :) Let's assume that you have a link with class 'modal-link' which should open your reveal. There shoud be a div with 'reveal-modal' class after it which is your reveal. Then you need to add this script, and it should work :)

 $('.modal-link').on('click', function(){
  $(this).next('.reveal-modal').foundation('reveal', 'open');
});

Posts Followed


Following

    No Content

Followers

My Posts

My Comments

You commented on Bartłomiej Szubert's post about 4 years

Heh, I don't know what to say... When I leaved my code yesterday it wasn't working. Right now it is :)
Thanks for help!

https://www.youtube.com/watch?v=0p_1QSUsbsM :)

You commented on Bartłomiej Szubert's post about 4 years

Well, it's something like this:
http://codepen.io/anon/pen/YXxrRW

But I'm not sure it will help, because everything works fine in codepen. And of course the script is pasted from my code.

You commented on Gary Spindler's post about 4 years

Maybe you didn't opened the reveal? :) Let's assume that you have a link with class 'modal-link' which should open your reveal. There shoud be a div with 'reveal-modal' class after it which is your reveal. Then you need to add this script, and it should work :)

 $('.modal-link').on('click', function(){
  $(this).next('.reveal-modal').foundation('reveal', 'open');
});

Posts Followed

Following

  • No Content

Followers

  • No Content