Plugin Directory

Changeset 2851928


Ignore:
Timestamp:
01/20/2023 02:55:39 PM (3 years ago)
Author:
saucykiss
Message:

Обновление до 2.2.6

Location:
videoadshtml5
Files:
14 added
3 edited

Legend:

Unmodified
Added
Removed
  • videoadshtml5/trunk/HTML5/js/vastvideoplugin.js

    r2780171 r2851928  
    159159    }
    160160    if(jQuery('#example_video').get(0).currentTime < (php_vars.schet+".20")){
    161         //alert (jQuery('#example_video').get(0).currentTime);
    162         //alert(php_vars.schet);
    163         //alert("php_vars.var_1");
     161
    164162        videoTag.removeAttribute("controls");
    165163       
    166164        chet = jQuery('#example_video').get(0).currentTime;
    167165        var chetsub = Math.floor(chet);  //parseFloat(chet.substr(-10,10));
    168          //jQuery("#myDiv").css( "border","3px solid" ).text(chetsub);
    169166         jQuery("#myDiv").text(chetsub);
    170         //alert (chet);
     167
    171168    }
    172169  }, 100);
     
    236233jQuery(document).on('click','.BtnVar1', function(e){
    237234 controls='false';
    238     //if(jQuery('#example_video').get(0).currentTime < (php_vars.schet+".20")){
    239     //  return;
    240     //}
    241    
    242     videoTag.src = php_vars1.silki; //"https://yellow.garant.tv/video/2021/06/02/20210602_sizo.mp4";
    243     //alert(php_vars1.silki);
    244    
    245    
    246     videoTag.play();
    247     if(videoTag.readyState !== 4){ //HAVE_ENOUGH_DATA
    248         videoTag.addEventListener('canplaythrough', seekToOriginalPoint, false);
    249         videoTag.addEventListener('load', seekToOriginalPoint, false); //add load event as well to avoid errors, sometimes 'canplaythrough' won't dispatch.
    250         videoTag.pause();
    251         }
    252    
    253    
    254     //alert('Пример 1 сработал'); return false;resumePlayBackAfterSlotShow();
     235   
     236    videoTag.src = php_vars1.silki;
     237   
     238    videoTag.play();
     239    if(videoTag.readyState !== 4){ //HAVE_ENOUGH_DATA
     240        videoTag.addEventListener('canplaythrough', seekToOriginalPoint, false);
     241        videoTag.addEventListener('load', seekToOriginalPoint, false); //add load event as well to avoid errors, sometimes 'canplaythrough' won't dispatch.
     242        videoTag.pause();
     243        }
     244   
     245
    255246});
    256247
     
    258249jQuery(document).on('click','.BtnVar2', function(e){
    259250 controls='false';
    260     //if(jQuery('#example_video').get(0).currentTime < (php_vars.schet+".20")){
    261     //  return;
    262     //}
    263    
    264     videoTag.src = php_vars2.silki; //"https://yellow.garant.tv/video/2021/06/02/20210602_sizo.mp4";
    265     //alert(php_vars2.silki);
    266    
    267    
    268     videoTag.play();
    269     if(videoTag.readyState !== 4){ //HAVE_ENOUGH_DATA
    270         videoTag.addEventListener('canplaythrough', seekToOriginalPoint, false);
    271         videoTag.addEventListener('load', seekToOriginalPoint, false); //add load event as well to avoid errors, sometimes 'canplaythrough' won't dispatch.
    272         videoTag.pause();
    273         }
    274    
    275    
    276     //alert('Пример 1 сработал'); return false;resumePlayBackAfterSlotShow();
     251   
     252    videoTag.src = php_vars2.silki;
     253   
     254    videoTag.play();
     255    if(videoTag.readyState !== 4){ //HAVE_ENOUGH_DATA
     256        videoTag.addEventListener('canplaythrough', seekToOriginalPoint, false);
     257        videoTag.addEventListener('load', seekToOriginalPoint, false); //add load event as well to avoid errors, sometimes 'canplaythrough' won't dispatch.
     258        videoTag.pause();
     259        }
     260   
    277261});
    278262
     
    280264jQuery(document).on('click','.BtnVar3', function(e){
    281265 controls='false';
    282     //if(jQuery('#example_video').get(0).currentTime < (php_vars.schet+".20")){
    283     //  return;
    284     //}
    285    
    286     videoTag.src = php_vars3.silki; //"https://yellow.garant.tv/video/2021/06/02/20210602_sizo.mp4";
     266   
     267    videoTag.src = php_vars3.silki;
     268   
     269    videoTag.play();
     270    if(videoTag.readyState !== 4){ //HAVE_ENOUGH_DATA
     271        videoTag.addEventListener('canplaythrough', seekToOriginalPoint, false);
     272        videoTag.addEventListener('load', seekToOriginalPoint, false); //add load event as well to avoid errors, sometimes 'canplaythrough' won't dispatch.
     273        videoTag.pause();
     274        }
     275   
     276});
     277
     278jQuery(document).on('click','.BtnVar4', function(e){
     279 controls='false';
     280   
     281    videoTag.src = php_vars4.silki;
     282
     283   
     284    videoTag.play();
     285    if(videoTag.readyState !== 4){ //HAVE_ENOUGH_DATA
     286        videoTag.addEventListener('canplaythrough', seekToOriginalPoint, false);
     287        videoTag.addEventListener('load', seekToOriginalPoint, false); //add load event as well to avoid errors, sometimes 'canplaythrough' won't dispatch.
     288        videoTag.pause();
     289        }
     290   
     291
     292});
     293
     294jQuery(document).on('click','.BtnVar5', function(e){
     295 controls='false';
     296
     297   
     298    videoTag.src = php_vars5.silki;
    287299    //alert(php_vars3.silki);
    288300   
     
    295307        }
    296308   
    297    
    298     //alert('Пример 1 сработал'); return false;resumePlayBackAfterSlotShow();
    299 });
    300 
    301 jQuery(document).on('click','.BtnVar4', function(e){
    302  controls='false';
    303     //if(jQuery('#example_video').get(0).currentTime < (php_vars.schet+".20")){
    304     //  return;
    305     //}
    306    
    307     videoTag.src = php_vars4.silki; //"https://yellow.garant.tv/video/2021/06/02/20210602_sizo.mp4";
    308     //alert(php_vars3.silki);
    309    
    310    
    311     videoTag.play();
    312     if(videoTag.readyState !== 4){ //HAVE_ENOUGH_DATA
    313         videoTag.addEventListener('canplaythrough', seekToOriginalPoint, false);
    314         videoTag.addEventListener('load', seekToOriginalPoint, false); //add load event as well to avoid errors, sometimes 'canplaythrough' won't dispatch.
    315         videoTag.pause();
    316         }
    317    
    318    
    319     //alert('Пример 1 сработал'); return false;resumePlayBackAfterSlotShow();
    320 });
    321 
    322 jQuery(document).on('click','.BtnVar5', function(e){
    323  controls='false';
    324     //if(jQuery('#example_video').get(0).currentTime < (php_vars.schet+".20")){
    325     //  return;
    326     //}
    327    
    328     videoTag.src = php_vars5.silki; //"https://yellow.garant.tv/video/2021/06/02/20210602_sizo.mp4";
    329     //alert(php_vars3.silki);
    330    
    331    
    332     videoTag.play();
    333     if(videoTag.readyState !== 4){ //HAVE_ENOUGH_DATA
    334         videoTag.addEventListener('canplaythrough', seekToOriginalPoint, false);
    335         videoTag.addEventListener('load', seekToOriginalPoint, false); //add load event as well to avoid errors, sometimes 'canplaythrough' won't dispatch.
    336         videoTag.pause();
    337         }
    338    
    339    
    340     //alert('Пример 1 сработал'); return false;resumePlayBackAfterSlotShow();
     309
    341310});
    342311
     
    344313jQuery(document).on('click','.BtnVar6', function(e){
    345314 controls='false';
    346     //if(jQuery('#example_video').get(0).currentTime < (php_vars.schet+".20")){
    347     //  return;
    348     //}
    349    
    350     videoTag.src = php_vars6.silki; //"https://yellow.garant.tv/video/2021/06/02/20210602_sizo.mp4";
     315   
     316    videoTag.src = php_vars6.silki;
    351317
    352318   
  • videoadshtml5/trunk/readme.txt

    r2847936 r2851928  
    55Requires at least: 5.3
    66Tested up to: 6.1.1
    7 Stable tag: 2.2.5
     7Stable tag: 2.2.6
    88License: GPLv3 or later
    99License URI: http://www.gnu.org/licenses/gpl-3.0.html
     
    130130== Changelog ==
    131131
     132= 2.2.6 = Bug fix with 6 button
     133
    132134= 2.2.5 = Edit buttons in settings and from which version to download
    133135
  • videoadshtml5/trunk/videoadshtml5.php

    r2847936 r2851928  
    22/*
    33Plugin Name: VideoADSHtml5
    4 Version: 2.2.5
     4Version: 2.2.6
    55Plugin URI: https://sv-pt.ru/?p=858
    66Author: -sv-
     
    2222    class VIDEO_HTML5_ADS {
    2323
    24         public static $plugin_version = '2.2.5';
     24        public static $plugin_version = '2.2.6';
    2525         //var $plugin_version = '2.1.1';
    2626
     
    421421        else
    422422        {
    423         $buttons="<div class='BtnVar1'>1 видео</div><div class='BtnVar2'>2 видео</div><div class='BtnVar3'>3 видео</div><div class='BtnVar4'>4 видео</div><div class='BtnVar5'>5 видео</div><div class='BtnVar5'>6 видео</div>";
     423        $buttons="<div class='BtnVar1'>1 видео</div><div class='BtnVar2'>2 видео</div><div class='BtnVar3'>3 видео</div><div class='BtnVar4'>4 видео</div><div class='BtnVar5'>5 видео</div><div class='BtnVar6'>6 видео</div>";
    424424
    425425       
Note: See TracChangeset for help on using the changeset viewer.