General Testing
test

code

View previous topic View next topic Go down

code

Post by Ange Tuteur on 1/3/2014, 06:49

Code:
$(document).ready(function() {
    $('.post .content embed').each(function() {
      var src = $(this).attr('src');
      $(this).before('<a href="'+src+'" target="_blank" id="yt_video">'+src+'</a>').remove();
    });
    $(document).on('click','#yt_video',function() {
      $('body').append('<div id="yt_filter" style="position:fixed;top:0px;left:0px;right:0px;bottom:0px;background:rgba(0,0,0, 0.5);cursor:pointer;z-index:10;"></div><div id="videoContent" style="position:fixed;top:100px;left:100px;right:100px;bottom:100px;z-index:12;"><embed allowfullscreen="true" allowscriptaccess="always" scale="exactfit" quality="high" wmode="transparent" type="application/x-shockwave-flash" src="'+$(this).attr('href')+'" pluginspage="http://www.macromedia.com/go/getflashplayer" style="width:100%;height:100%;"></div>');
      $('#yt_filter').click(function() {
          var stop = confirm('Do you wish to stop watching the video ?');
          if (stop == true) { $('#yt_filter, #videoContent').remove(); }
          else { return; }
      });
          return false;
    });
});
avatar
Ange Tuteur
Administrateur

Country :
Female
Posts : 416
Reputation : 32

View user profile http://help.forumotion.com

Back to top Go down

Re: code

Post by Ange Tuteur on 1/3/2014, 06:54

Code:
.class, #id {
color:red;
background:#00ff00;
border: 1px solid #f00; 111 The declaration has ended, but the color persists. .test
box-shadow:1px 2px 3px rgba(0,0,0,0.3);
font-size:1px;
}
avatar
Ange Tuteur
Administrateur

Country :
Female
Posts : 416
Reputation : 32

View user profile http://help.forumotion.com

Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum