Changeset 2857705
- Timestamp:
- 01/31/2023 12:22:56 PM (3 years ago)
- Location:
- videoadshtml5
- Files:
-
- 15 added
- 1 deleted
- 3 edited
-
tags/2.3.1 (added)
-
tags/2.3.1/HTML5 (added)
-
tags/2.3.1/HTML5/css (added)
-
tags/2.3.1/HTML5/css/videoadshtml5.css (added)
-
tags/2.3.1/HTML5/href (added)
-
tags/2.3.1/HTML5/js (added)
-
tags/2.3.1/HTML5/js/vastvideoplugin.js (added)
-
tags/2.3.1/HTML5/vod (added)
-
tags/2.3.1/HTML5/vod/ads.xml (added)
-
tags/2.3.1/index.html (added)
-
tags/2.3.1/readme.txt (added)
-
tags/2.3.1/screenshot-1.png (added)
-
tags/2.3.1/screenshot-2.png (added)
-
tags/2.3.1/screenshot-3.png (added)
-
tags/2.3.1/videoadshtml5.php (added)
-
trunk/HTML5/css/site.css (deleted)
-
trunk/HTML5/js/vastvideoplugin.js (modified) (6 diffs)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/videoadshtml5.php (modified) (15 diffs)
Legend:
- Unmodified
- Added
- Removed
-
videoadshtml5/trunk/HTML5/js/vastvideoplugin.js
r2857058 r2857705 9 9 this.seen = false; 10 10 this.playOnce = true; 11 jQuery('# example_video').get(0).volume = php_vars.volume;11 jQuery('#videohtml5_video').get(0).volume = php_vars_vol.volume; 12 12 } 13 13 … … 154 154 155 155 var intervalAd = setInterval(function(){ 156 if(jQuery('# example_video').get(0).currentTime > (php_vars.schet+".20")){157 //alert (jQuery('# example_video').get(0).currentTime);156 if(jQuery('#videohtml5_video').get(0).currentTime > (php_vars.schet+".20")){ 157 //alert (jQuery('#videohtml5_video').get(0).currentTime); 158 158 jQuery(".skipBtn").removeClass("disabled"); 159 159 … … 161 161 162 162 } 163 if(jQuery('# example_video').get(0).currentTime < (php_vars.schet+".20")){163 if(jQuery('#videohtml5_video').get(0).currentTime < (php_vars.schet+".20")){ 164 164 165 165 videoTag.removeAttribute("controls"); 166 166 167 chet = jQuery('# example_video').get(0).currentTime;167 chet = jQuery('#videohtml5_video').get(0).currentTime; 168 168 var chetsub = Math.floor(chet); //parseFloat(chet.substr(-10,10)); 169 169 jQuery("#myDiv").text(chetsub); … … 226 226 jQuery(document).on('click','.skipBtn', function(e){ 227 227 controls='false'; 228 if(jQuery('# example_video').get(0).currentTime < (php_vars.schet+".20")){228 if(jQuery('#videohtml5_video').get(0).currentTime < (php_vars.schet+".20")){ 229 229 return; 230 230 } … … 368 368 //Показать контекстное меню: 369 369 370 jQuery('# example_video').ready(function() {370 jQuery('#videohtml5_video').ready(function() { 371 371 //Контекст меню 372 372 //jQuery(document).on('contextmenu', function(e){ 373 jQuery('# example_video').on('contextmenu', function(e){373 jQuery('#videohtml5_video').on('contextmenu', function(e){ 374 374 375 375 //Устанавливаем размер окна: 376 var winWidth = jQuery('# example_video').width();377 var winHeight = jQuery('# example_video').height();376 var winWidth = jQuery('#videohtml5_video').width(); 377 var winHeight = jQuery('#videohtml5_video').height(); 378 378 //Устанавливаем позицию: 379 379 var posX = e.pageX; … … 416 416 417 417 //Скрываем контекстное меню: 418 jQuery('# example_video').click(function(){418 jQuery('#videohtml5_video').click(function(){ 419 419 jQuery(".contextmenu").hide(); 420 420 }); -
videoadshtml5/trunk/readme.txt
r2857058 r2857705 5 5 Requires at least: 5.3 6 6 Tested up to: 6.1.1 7 Stable tag: 2.3 7 Stable tag: 2.3.1 8 8 License: GPLv3 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-3.0.html … … 131 131 == Changelog == 132 132 133 = 2.3.1 = Editing errors with the counter and content id 134 133 135 = 2.3 = Setting the active button on the video being viewed 134 136 -
videoadshtml5/trunk/videoadshtml5.php
r2857071 r2857705 2 2 /* 3 3 Plugin Name: VideoADSHtml5 4 Version: 2.3 4 Version: 2.3.1 5 5 Plugin URI: https://sv-pt.ru/?p=858 6 6 Author: -sv- … … 22 22 class VIDEO_HTML5_ADS { 23 23 24 public static $plugin_version = '2.3 ';24 public static $plugin_version = '2.3.1'; 25 25 //var $plugin_version = '2.1.1'; 26 26 … … 211 211 wp_enqueue_style('vast-css'); 212 212 wp_localize_script('vast', 'php_vars', array( 'schet' => $schet ) ); 213 /*wp_localize_script('vast', 'php_volume', array( 'volume' => $volume ) );*/214 wp_localize_script('vast', 'php_vars', array( 'volume' => $volume ) );213 wp_localize_script('vast', 'php_vars_vol', array( 'volume' => $volume ) ); 214 //wp_localize_script('vast', 'php_vars', array( 'volume' => $volume ) ); 215 215 216 216 … … 396 396 //echo $url1; 397 397 //$buttons="<div class='BtnVar1'>1 видео</div><div class='BtnVar2'>2 видео</div>"; 398 $buttons="<div class='BtnVar1 Activ'>1 видео</div><div class='BtnVar2'>2 видео</div>";398 $buttons="<div class='BtnVar1'>1 видео</div><div class='BtnVar2'>2 видео</div>"; 399 399 400 400 } … … 522 522 <center> 523 523 <div> 524 <video id=" example_video" {$autoplay} {$muted} {$poster} {$loop} {$preload} src="$url" width = "100%" height="100%" controls524 <video id="videohtml5_video" {$autoplay} {$muted} {$poster} {$loop} {$preload} src="$url" width = "100%" height="100%" controls 525 525 ads = '{ "servers": [ 526 526 { … … 535 535 }' controlsList="{$SettingDownload} {$SettingSpeed}" {$SettingPict}></video> 536 536 </div> 537 <!--<span class="skipBtn"><div class="divleft">Пропустить через</div> <div id="myDiv">замена</div> из $chet</span>--> 538 <span class="skipBtn"><div class="divleft">Пропустить через</div> $chet</span> 537 <span class="skipBtn"><div class="divleft">Пропустить через</div> <div id="myDiv">замена</div> из $chet</span> 539 538 540 539 <div class="Btnw">{$buttons}</div> … … 545 544 <ul class='contextmenu'><li>v. {$plugin_version}</li></ul> 546 545 547 <script>initAdsFor(" example_video");</script>546 <script>initAdsFor("videohtml5_video");</script> 548 547 549 548 EOT; … … 557 556 <center> 558 557 <div> 559 <video id=" example_video" {$autoplay} {$muted} {$poster} {$loop} {$preload} src="$url" width = "100%" height="100%" controls558 <video id="videohtml5_video" {$autoplay} {$muted} {$poster} {$loop} {$preload} src="$url" width = "100%" height="100%" controls 560 559 ads = '{ "servers": [ 561 560 { … … 570 569 }' controlsList="{$SettingDownload} {$SettingSpeed}" {$SettingPict}></video> 571 570 </div> 572 573 <!--<span class="skipBtn"><div class="divleft">Пропустить через</div> <div id="myDiv">замена</div> из $chet</span>--> 574 <span class="skipBtn"><div class="divleft">Пропустить через</div> $chet</span> 575 571 <span class="skipBtn"><div class="divleft">Пропустить через</div> <div id="myDiv">замена</div> из $chet</span> 576 572 <div class="Btnw">{$buttons}</div> 577 573 </center> … … 580 576 <ul class='contextmenu'><li>v. {$plugin_version}</li></ul> 581 577 582 <script>initAdsFor(" example_video");</script>578 <script>initAdsFor("videohtml5_video");</script> 583 579 584 580 EOT; … … 593 589 <center> 594 590 <div> 595 <video id=" example_video" {$autoplay} {$muted} {$poster} {$loop} {$preload} src="$url" width = "100%" height="100%" ></video>591 <video id="videohtml5_video" {$autoplay} {$muted} {$poster} {$loop} {$preload} src="$url" width = "100%" height="100%" ></video> 596 592 </div> 597 598 <!--<span class="skipBtn"><div class="divleft">Пропустить через</div> <div id="myDiv">замена</div> из $chet</span>--> 599 <span class="skipBtn"><div class="divleft">Пропустить через</div> $chet</span> 600 593 <span class="skipBtn"><div class="divleft">Пропустить через</div> <div id="myDiv">замена</div> из $chet</span> 601 594 <div class="Btnw">{$buttons}</div> 602 595 </center> … … 605 598 <ul class='contextmenu'><li>v. {$plugin_version}</li></ul> 606 599 607 <script>initAdsFor(" example_video");</script>600 <script>initAdsFor("videohtml5_video");</script> 608 601 609 602 … … 622 615 <center> 623 616 <div> 624 <video onClick="startTimer()" id=" example_video" {$autoplay} {$muted} {$poster} {$loop} {$preload} src="$url" width = "100%" height="100%" controls617 <video onClick="startTimer()" id="videohtml5_video" {$autoplay} {$muted} {$poster} {$loop} {$preload} src="$url" width = "100%" height="100%" controls 625 618 ads = '{ "servers": [ 626 619 { … … 640 633 </div> 641 634 642 <!--<span class="skipBtn"><div class="divleft">Пропустить через</div> <div id="myDiv">замена</div> из $chet</span>--> 643 <span class="skipBtn"><div class="divleft">Пропустить через</div> $chet</span> 644 635 <span class="skipBtn"><div class="divleft">Пропустить через</div> <div id="myDiv">замена</div> из $chet</span> 645 636 <div class="Btnw">{$buttons}Пропустить через</div> 646 637 </center> … … 649 640 <ul class='contextmenu'><li>v. {$plugin_version}</li></ul> 650 641 651 <script>initAdsFor(" example_video");</script>642 <script>initAdsFor("videohtml5_video");</script> 652 643 653 644
Note: See TracChangeset
for help on using the changeset viewer.