1var aspRatio = 640 / 360 2var videoID = 0 3 4function initializeVimeo(video, width, height, language) { 5 aspRatio = parseFloat(height) / parseFloat(width) 6 videoID = video 7 $('.vimeo-player').attr('allow', 'autoplay') 8 $('.video-player').before( 9 '<link rel="stylesheet" href="https://melhorconversao.com.br/vimeo-player/css/style.css" />' + 10 (language 11 ? '<img src="//melhorconversao.com.br/vimeo-player/unmute/' + 12 language + 13 '.png" id="unmute" style="display: none" />' 14 : '') 15 ) 16 if (language) { 17 $('#unmute').on('click', function() { 18 vimeo_players['player1'].getPaused().then(function(paused) { 19 if (paused) { 20 vimeo_players['player1'].play() 21 } 22 }) 23 // vimeo_players['player1'].setVolume(1) 24 vimeo_players['player1'].setMuted(0) 25 $('#unmute').remove() 26 }) 27 } 28} 29 30function aspectRatio() { 31 $('.video-player').css('height', parseInt(($('.video-player').outerWidth() + 10) * aspRatio)) 32 if ($('#unmute').length) { 33 $('#unmute').css('width', $('.video-player').outerWidth()) 34 } 35} 36 37$(document).ready(function() { 38 aspectRatio() 39}) 40 41$(window).resize(function() { 42 aspectRatio() 43}) 44 45var vimeo_int, 46 vimeo_players = {} 47 48function initVimeo() { 49 var options = { 50 id: videoID, 51 background: true, 52 allowfullscreen: true 53 } 54 55 if (typeof _hasImageLink != "undefined") { 56 options.loop = false 57 } 58 59 $('.vimeo-player').each(function() { 60 vimeo_players[this.id] = new Vimeo.Player(this.id, options) 61 $('#unmute').show() 62 vimeo_players[this.id].on('play', function() { 63 $('#thumb').remove() 64 $('#frame').removeClass('nooverlay') 65 $('#frame') 66 .removeClass('pause') 67 .removeClass('pauseT') 68 $('#frame').addClass('play') 69 }) 70 vimeo_players[this.id].on('pause', function() { 71 $('#frame').removeClass('play') 72 $('#frame') 73 .addClass('pause') 74 .addClass('pauseT') 75 }) 76 vimeo_players[this.id].on('ended', function() { 77 if (typeof _hasImageLink == "undefined") return 78 vimeo_players['player1'] 79 .destroy() 80 .then(function() { 81 $('#unmute').hide() 82 $('#mainplayer').hide() 83 $('#imageLink').show() 84 document.getElementById('upwrapper').setAttribute('style', 'margin-bottom: 500px !important') 85 }) 86 .catch(function(error) {}) 87 }) 88 }) 89} 90 91$(document).ready(function() { 92 $.getScript('https://player.vimeo.com/api/player.js', function() { 93 vimeo_int = setInterval(function() { 94 if (typeof Vimeo === 'object') { 95 initVimeo() 96 clearInterval(vimeo_int) 97 } 98 }, 500) 99 }) 100 $('#frame') 101 .removeClass('pause') 102 .addClass('play') 103 $('#frame').removeClass('nooverlay') 104}) 105 106$('#frame').on('click', function() { 107 vimeo_players['player1'].getVolume().then(function(volume) { 108 if (volume === 0) { 109 // vimeo_players['player1'].setVolume(1) 110 vimeo_players['player1'].setMuted(0) 111 $('#unmute').remove() 112 } else { 113 if ($('#frame').hasClass('pause')) { 114 vimeo_players['player1'].play() 115 if (volume === 0) { 116 // vimeo_players['player1'].setVolume(1) 117 vimeo_players['player1'].setMuted(0) 118 $('#unmute').remove() 119 } 120 } else if ($('#frame').hasClass('play')) { 121 vimeo_players['player1'].pause() 122 } 123 } 124 }) 125}) 126 127$('html, body').on('click', function() { 128 vimeo_players['player1'].getVolume().then(function(volume) { 129 if (volume === 0) { 130 // vimeo_players['player1'].setVolume(1) 131 vimeo_players['player1'].setMuted(0) 132 $('#unmute').remove() 133 } 134 }) 135})
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.