Tip: Click lines to highlight, hold ctrl/cmd to multi-select

http://codedumper.com/apiwa (6-Aug @ 18:45)

Syntax Highlighted Code

  1. $(document).ready(function(){
  2.         $('#video_box').hide();
  3.         $('a.video-link', this).click(function(){
  4.             $(this).next('#video_box').slideToggle();
  5.             return false;
  6.         });
  7.         $('a.video-close', this).click(function(){
  8.             $(this).parent('#video_box').hide();
  9.             return false;
  10.         }, function(){
  11.             $(this).siblings('#video_frame').empty();
  12.         })
  13.     });

Plain Code

$(document).ready(function(){
        $('#video_box').hide();
        $('a.video-link', this).click(function(){
            $(this).next('#video_box').slideToggle();
            return false;
        });
        $('a.video-close', this).click(function(){
            $(this).parent('#video_box').hide();
            return false;
        }, function(){
            $(this).siblings('#video_frame').empty();
        })
    });

Permalink: http://codedumper.com/apiwa