Changeset 2790474
- Timestamp:
- 09/26/2022 08:38:21 PM (3 years ago)
- Location:
- bg-rutube-embed/trunk
- Files:
-
- 3 edited
-
bg-rutube.php (modified) (3 diffs)
-
css/bg_rutube.css (modified) (2 diffs)
-
js/bg_rutube.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
bg-rutube-embed/trunk/bg-rutube.php
r2789869 r2790474 4 4 Plugin URI: http://bogaiskov.ru/plugin-bg-rutube-embed/ 5 5 Description: The plugin is the easiest way to embed RuTube videos in WordPress. 6 Version: 1.4. 26 Version: 1.4.3 7 7 Author: VBog 8 8 Author URI: http://bogaiskov.ru … … 39 39 die( 'Sorry, you are not allowed to access this page directly.' ); 40 40 } 41 define('BG_RUTUBE_VERSION', '1.4. 2');41 define('BG_RUTUBE_VERSION', '1.4.3'); 42 42 43 43 // Подключаем CSS и JS … … 329 329 <table id="bg_rutube_nav<?php echo esc_attr($uuid); ?>" class="bg_rutube_nav_movies"> 330 330 <tr> 331 <td id="bg_rutube_prev_movie<?php echo esc_attr($uuid); ?>" align="left">331 <td id="bg_rutube_prev_movie<?php echo esc_attr($uuid); ?>" class="bg_rutube_navLeft"> 332 332 <span class="bg_rutube_navButton">⏴ <?php _e( 'Previous', 'bg-rutube-embed'); ?><span> 333 333 </td> 334 <td id="bg_rutube_next_movie<?php echo esc_attr($uuid); ?>" align="right">334 <td id="bg_rutube_next_movie<?php echo esc_attr($uuid); ?>" class="bg_rutube_navRight"> 335 335 <span class="bg_rutube_navButton"><?php _e( 'Next', 'bg-rutube-embed'); ?> ⏵</span> 336 336 </td> -
bg-rutube-embed/trunk/css/bg_rutube.css
r2765913 r2790474 26 26 } 27 27 28 div.bg_rutube_videoPlay {29 position:absolute;30 top: calc(50% - 1.5em);31 left: calc(50% - 1.5em);32 width: 3em;33 height: 3em;34 display: block;35 cursor: pointer;36 background-image: url(play.svg);37 }38 28 39 29 /* ============================ … … 87 77 } 88 78 79 td.bg_rutube_navLeft { 80 text-align: left; 81 } 82 td.bg_rutube_navRight { 83 text-align: right; 84 } 85 89 86 @media screen and (max-width: 960px) { 90 87 table.bg_rutube_videoPlayListInfo td:first-child -
bg-rutube-embed/trunk/js/bg_rutube.js
r2789869 r2790474 11 11 var movieID = jQuery(this).attr('data-movie'); 12 12 // Вставляем первое видео во фрейм после клика на заставку 13 jQuery('iframe#bg_rutube_player'+uuid).on("load", function(){ 14 var iframe = jQuery(this); 15 iframe.contents().on('mousedown, mouseup, click', function(e){ 16 e.preventDefault(); 17 iframe.attr('src',rutube_url+movieID); 18 bg_rutube_play(uuid); 19 }); 13 var iframe = jQuery('iframe#bg_rutube_player'+uuid); 14 iframe.contents().on('mousedown, mouseup, click', function(e){ 15 e.preventDefault(); 16 iframe.attr('src',rutube_url+movieID); 17 bg_rutube_play(uuid); 20 18 }); 21 19
Note: See TracChangeset
for help on using the changeset viewer.