Subversion Repositories SmartDukaan

Rev

Rev 18741 | Rev 19145 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 18741 Rev 19010
Line 16... Line 16...
16
  		}
16
  		}
17
  	});
17
  	});
18
  $(document).ready(function(){
18
  $(document).ready(function(){
19
  
19
  
20
    $('.uvideo').click(function(){
20
    $('.uvideo').click(function(){
-
 
21
      var href = window.location.href;
21
    window.history.pushState('forward', null, './forward');
22
      window.history.pushState('forward', null, './'+href.substr(href.lastIndexOf('/') + 1));
22
      var source= $(this).data('source');
23
      var source= $(this).data('source');
23
      // alert(source);
24
      // alert(source);
24
      $('#content-add').empty();
25
      $('#content-add').empty();
25
      var content = "<iframe width='100%' height='100%' src='http://www.youtube.com/embed/"+source+"?autoplay=1'></iframe>"
26
      var content = "<iframe width='100%' height='100%' src='http://www.youtube.com/embed/"+source+"?autoplay=1'></iframe>"
26
      $('#content-add').append(content);
27
      $('#content-add').append(content);