1$(document).ready(function(){ 2 console.log('start custom.js New!'); 3 $(document).on('click','div',function(){ 4 5 var id = $(this).attr('id'); 6 if(id) { 7 8 var exp = explode('_',id); 9 if(exp[0]=='bx') { 10 11 console.log(exp[2]); 12 counter(exp[2]); 13 } 14 } 15 return true; 16 }); 17 18 $(document).on('mouseenter', '.load', function(){ 19 var video = $(this).data('video'); 20 console.log('mouseenter'); 21 $(this).removeClass('load').html('<iframe width="100%" height="250" src="https://rutube.ru/play/embed/' + video + '" frameborder="0" allow="autoplay; clipboard-write; webkitAllowFullScreen mozallowfullscreen" allowfullscreen></iframe>'); 22 23 }).on('click', '.load', function(){ 24 var video = $(this).data('video'); 25 console.log('mouseenter'); 26 $(this).removeClass('load').html('<iframe width="100%" height="250" src="https://rutube.ru/play/embed/' + video + '" frameborder="0" allow="autoplay; clipboard-write; webkitAllowFullScreen mozallowfullscreen" allowfullscreen></iframe>'); 27 28 }).on('mouseleave', '.load', function() { 29 console.log('mouseleave'); 30 }); 31 32 33}); 34 35function counter(id) { 36 37 $.ajax({ 38 url: '/ajax/counter.php', 39 type: 'POST', 40 data: {"id": id}, 41 success: function(result) { 42 console.log(result); 43 }, 44 error: function() { 45 }, 46 complete: function() { 47 } 48 }); 49} 50 51function explode( delimiter, string ) { // Split a string by string 52 // 53 // + original by: Kevin van Zonneveld (http://kevin.vanzonneveld.net) 54 // + improved by: kenneth 55 // + improved by: Kevin van Zonneveld (http://kevin.vanzonneveld.net) 56 57 var emptyArray = { 0: '' }; 58 59 if ( arguments.length != 2 60 || typeof arguments[0] == 'undefined' 61 || typeof arguments[1] == 'undefined' ) 62 { 63 return null; 64 } 65 66 if ( delimiter === '' 67 || delimiter === false 68 || delimiter === null ) 69 { 70 return false; 71 } 72 73 if ( typeof delimiter == 'function' 74 || typeof delimiter == 'object' 75 || typeof string == 'function' 76 || typeof string == 'object' ) 77 { 78 return emptyArray; 79 } 80 81 if ( delimiter === true ) { 82 delimiter = '1'; 83 } 84 85 return string.toString().split ( delimiter.toString() ); 86}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.