Advertisement
Guest User

Untitled

a guest
Sep 1st, 2015
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. $(document).ready(function () {
  2. $('.column').each(function (index) {
  3. $(this).delay(750 * index).fadeIn(1500);
  4. });
  5. $('.column').hide();
  6. var width = $(window).width();
  7. if (width <= 600) {
  8. $('.body').hide();
  9. $('.column').each(function () {
  10. var $toggle = $(this);
  11. $('.toggle', $toggle).click(function () {
  12. $(".toggle").removeClass("toggle-d");
  13. $(this).addClass('toggle-d');
  14. $body = $('.body', $toggle);
  15. $body.slideToggle();
  16. $('.body').not($body).hide();
  17. });
  18. });
  19. }
  20. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement