Changeset 2851928
- Timestamp:
- 01/20/2023 02:55:39 PM (3 years ago)
- Location:
- videoadshtml5
- Files:
-
- 14 added
- 3 edited
-
tags/2.2.6 (added)
-
tags/2.2.6/HTML5 (added)
-
tags/2.2.6/HTML5/css (added)
-
tags/2.2.6/HTML5/css/site.css (added)
-
tags/2.2.6/HTML5/href (added)
-
tags/2.2.6/HTML5/js (added)
-
tags/2.2.6/HTML5/js/vastvideoplugin.js (added)
-
tags/2.2.6/HTML5/vod (added)
-
tags/2.2.6/HTML5/vod/ads.xml (added)
-
tags/2.2.6/index.html (added)
-
tags/2.2.6/readme.txt (added)
-
tags/2.2.6/screenshot-1.png (added)
-
tags/2.2.6/screenshot-2.png (added)
-
tags/2.2.6/videoadshtml5.php (added)
-
trunk/HTML5/js/vastvideoplugin.js (modified) (6 diffs)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/videoadshtml5.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
videoadshtml5/trunk/HTML5/js/vastvideoplugin.js
r2780171 r2851928 159 159 } 160 160 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 164 162 videoTag.removeAttribute("controls"); 165 163 166 164 chet = jQuery('#example_video').get(0).currentTime; 167 165 var chetsub = Math.floor(chet); //parseFloat(chet.substr(-10,10)); 168 //jQuery("#myDiv").css( "border","3px solid" ).text(chetsub);169 166 jQuery("#myDiv").text(chetsub); 170 //alert (chet); 167 171 168 } 172 169 }, 100); … … 236 233 jQuery(document).on('click','.BtnVar1', function(e){ 237 234 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 255 246 }); 256 247 … … 258 249 jQuery(document).on('click','.BtnVar2', function(e){ 259 250 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 277 261 }); 278 262 … … 280 264 jQuery(document).on('click','.BtnVar3', function(e){ 281 265 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 278 jQuery(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 294 jQuery(document).on('click','.BtnVar5', function(e){ 295 controls='false'; 296 297 298 videoTag.src = php_vars5.silki; 287 299 //alert(php_vars3.silki); 288 300 … … 295 307 } 296 308 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 341 310 }); 342 311 … … 344 313 jQuery(document).on('click','.BtnVar6', function(e){ 345 314 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; 351 317 352 318 -
videoadshtml5/trunk/readme.txt
r2847936 r2851928 5 5 Requires at least: 5.3 6 6 Tested up to: 6.1.1 7 Stable tag: 2.2. 57 Stable tag: 2.2.6 8 8 License: GPLv3 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-3.0.html … … 130 130 == Changelog == 131 131 132 = 2.2.6 = Bug fix with 6 button 133 132 134 = 2.2.5 = Edit buttons in settings and from which version to download 133 135 -
videoadshtml5/trunk/videoadshtml5.php
r2847936 r2851928 2 2 /* 3 3 Plugin Name: VideoADSHtml5 4 Version: 2.2. 54 Version: 2.2.6 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.2. 5';24 public static $plugin_version = '2.2.6'; 25 25 //var $plugin_version = '2.1.1'; 26 26 … … 421 421 else 422 422 { 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='BtnVar 5'>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>"; 424 424 425 425
Note: See TracChangeset
for help on using the changeset viewer.