Plugin Directory

Changeset 2857705


Ignore:
Timestamp:
01/31/2023 12:22:56 PM (3 years ago)
Author:
saucykiss
Message:

Обновление до версии 2.3.1

Location:
videoadshtml5
Files:
15 added
1 deleted
3 edited

Legend:

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

    r2857058 r2857705  
    99    this.seen = false;
    1010    this.playOnce = true;   
    11     jQuery('#example_video').get(0).volume = php_vars.volume;
     11    jQuery('#videohtml5_video').get(0).volume = php_vars_vol.volume;
    1212}
    1313   
     
    154154
    155155  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);
    158158      jQuery(".skipBtn").removeClass("disabled");
    159159     
     
    161161     
    162162    }
    163     if(jQuery('#example_video').get(0).currentTime < (php_vars.schet+".20")){
     163    if(jQuery('#videohtml5_video').get(0).currentTime < (php_vars.schet+".20")){
    164164
    165165        videoTag.removeAttribute("controls");
    166166       
    167         chet = jQuery('#example_video').get(0).currentTime;
     167        chet = jQuery('#videohtml5_video').get(0).currentTime;
    168168        var chetsub = Math.floor(chet);  //parseFloat(chet.substr(-10,10));
    169169         jQuery("#myDiv").text(chetsub);
     
    226226jQuery(document).on('click','.skipBtn', function(e){
    227227 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")){
    229229        return;
    230230    }
     
    368368//Показать контекстное меню:
    369369
    370 jQuery('#example_video').ready(function() {
     370jQuery('#videohtml5_video').ready(function() {
    371371//Контекст меню
    372372//jQuery(document).on('contextmenu', function(e){
    373     jQuery('#example_video').on('contextmenu', function(e){
     373    jQuery('#videohtml5_video').on('contextmenu', function(e){
    374374
    375375    //Устанавливаем размер окна:
    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();
    378378        //Устанавливаем позицию:
    379379        var posX = e.pageX;
     
    416416
    417417    //Скрываем контекстное меню:
    418     jQuery('#example_video').click(function(){
     418    jQuery('#videohtml5_video').click(function(){
    419419    jQuery(".contextmenu").hide();
    420420    });
  • videoadshtml5/trunk/readme.txt

    r2857058 r2857705  
    55Requires at least: 5.3
    66Tested up to: 6.1.1
    7 Stable tag: 2.3
     7Stable tag: 2.3.1
    88License: GPLv3 or later
    99License URI: http://www.gnu.org/licenses/gpl-3.0.html
     
    131131== Changelog ==
    132132
     133= 2.3.1 = Editing errors with the counter and content id
     134
    133135= 2.3 = Setting the active button on the video being viewed
    134136
  • videoadshtml5/trunk/videoadshtml5.php

    r2857071 r2857705  
    22/*
    33Plugin Name: VideoADSHtml5
    4 Version: 2.3
     4Version: 2.3.1
    55Plugin URI: https://sv-pt.ru/?p=858
    66Author: -sv-
     
    2222    class VIDEO_HTML5_ADS {
    2323
    24         public static $plugin_version = '2.3';
     24        public static $plugin_version = '2.3.1';
    2525         //var $plugin_version = '2.1.1';
    2626
     
    211211         wp_enqueue_style('vast-css');
    212212         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 ) );
    215215         
    216216         
     
    396396        //echo $url1;
    397397        //$buttons="<div class='BtnVar1'>1 видео</div><div class='BtnVar2'>2 видео</div>";
    398         $buttons="<div class='BtnVar1Activ'>1 видео</div><div class='BtnVar2'>2 видео</div>";
     398        $buttons="<div class='BtnVar1'>1 видео</div><div class='BtnVar2'>2 видео</div>";
    399399       
    400400        }
     
    522522 <center>
    523523 <div>
    524     <video id="example_video" {$autoplay} {$muted} {$poster} {$loop} {$preload} src="$url" width = "100%" height="100%" controls 
     524    <video id="videohtml5_video" {$autoplay} {$muted} {$poster} {$loop} {$preload} src="$url" width = "100%" height="100%" controls 
    525525  ads = '{  "servers": [
    526526                         {
     
    535535        }' controlsList="{$SettingDownload} {$SettingSpeed}" {$SettingPict}></video>
    536536</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>
    539538   
    540539<div class="Btnw">{$buttons}</div>
     
    545544<ul class='contextmenu'><li>v. {$plugin_version}</li></ul>
    546545   
    547 <script>initAdsFor("example_video");</script>
     546<script>initAdsFor("videohtml5_video");</script>
    548547
    549548EOT;
     
    557556 <center>
    558557 <div>
    559     <video  id="example_video" {$autoplay} {$muted} {$poster} {$loop} {$preload} src="$url" width = "100%" height="100%" controls 
     558    <video  id="videohtml5_video" {$autoplay} {$muted} {$poster} {$loop} {$preload} src="$url" width = "100%" height="100%" controls 
    560559  ads = '{  "servers": [
    561560                         {
     
    570569        }' controlsList="{$SettingDownload} {$SettingSpeed}" {$SettingPict}></video>
    571570</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>
    576572<div class="Btnw">{$buttons}</div>
    577573</center>
     
    580576<ul class='contextmenu'><li>v. {$plugin_version}</li></ul>
    581577
    582 <script>initAdsFor("example_video");</script>
     578<script>initAdsFor("videohtml5_video");</script>
    583579
    584580EOT;
     
    593589 <center>
    594590 <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>
    596592</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>
    601594<div class="Btnw">{$buttons}</div>
    602595</center>
     
    605598<ul class='contextmenu'><li>v. {$plugin_version}</li></ul>
    606599
    607 <script>initAdsFor("example_video");</script>
     600<script>initAdsFor("videohtml5_video");</script>
    608601
    609602
     
    622615 <center>
    623616 <div>
    624     <video onClick="startTimer()" id="example_video" {$autoplay} {$muted} {$poster} {$loop} {$preload} src="$url" width = "100%" height="100%" controls 
     617    <video onClick="startTimer()" id="videohtml5_video" {$autoplay} {$muted} {$poster} {$loop} {$preload} src="$url" width = "100%" height="100%" controls 
    625618  ads = '{  "servers": [
    626619                         {
     
    640633</div>
    641634
    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>
    645636<div class="Btnw">{$buttons}Пропустить через</div>
    646637</center>
     
    649640<ul class='contextmenu'><li>v. {$plugin_version}</li></ul>
    650641
    651 <script>initAdsFor("example_video");</script>
     642<script>initAdsFor("videohtml5_video");</script>
    652643
    653644
Note: See TracChangeset for help on using the changeset viewer.