1$(document).ready(function () { 2 /* */ 3 4 let dispositivoMovel = false 5 6 /* */ 7 8 if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) { 9 dispositivoMovel = true 10 } 11 12 /* */ 13 14 $('.video-youtube').attr('style', 'width:100%; margin-bottom:20px;') 15 16 if (dispositivoMovel) { 17 $('.video-youtube > iframe').attr('style', 'width:100%; height: 230px;') 18 } else { 19 $('.video-youtube > iframe').attr('style', 'width:100%; height: 440px;') 20 } 21 22 /* */ 23 24 // $('.conteudo-post').prepend($('.foto-conteudo-post:eq(0)')) 25 26 /* 27 $('.foto-conteudo-post').attr('style', 'width:100%') 28 29 $('.foto-conteudo-post > .borda-foto > img').attr('style', 'width:100%; height:auto;') 30 */ 31 32 /* */ 33 34 $('.compartilhar').click(function () { 35 // 36 var redesocial = $(this).attr('class').split(' ').pop() 37 38 // 39 if ( 40 redesocial == 'facebook' || 41 redesocial == 'gplus' || 42 redesocial == 'twitter' || 43 redesocial == 'pinterest' 44 ) { 45 // 46 var url_compartilhamento 47 48 // 49 var nome = 'redesociais' 50 var w = 600 51 var h = 380 52 var top = 0 53 54 // 55 if (redesocial == 'facebook' || redesocial == 'gplus') var url = $(this).attr('data-link') 56 else if (redesocial == 'twitter') var texto = $(this).attr('data-text') 57 58 // 59 if (redesocial == 'pinterest') { 60 // 61 var url = $('.titulo_artigo_principal > .link_artigo_principal').attr('href') 62 63 // 64 var url_foto = $(this).parent().parent().parent().attr('data-link') 65 66 // 67 var descricao_foto = $(this).parent().parent().parent().attr('data-text') 68 } 69 70 // 71 if (redesocial == 'facebook') 72 url_compartilhamento = 'https://www.facebook.com/sharer/sharer.php?u=' + url 73 else if (redesocial == 'gplus') 74 url_compartilhamento = 'https://plus.google.com/share?url=' + encodeURIComponent(url) 75 else if (redesocial == 'twitter') 76 url_compartilhamento = 'https://twitter.com/intent/tweet?' + texto 77 78 // 79 lft = screen.width ? (screen.width - w) / 2 : 0 80 top = screen.height ? (screen.height - h) / 2 : 0 81 82 // 83 configs = 'width=' + w + ', height=' + h + ', left=' + lft + ', top=' + top + '' 84 85 // 86 window.open(url_compartilhamento, nome, configs) 87 } else if (redesocial == 'whatsapp') { 88 // 89 var url = $(this).attr('data-link') 90 var texto = $(this).attr('data-text') 91 92 // 93 var mensagem = encodeURIComponent(texto) + ' - ' + encodeURIComponent(url) 94 95 // 96 var whatsapp_url = 'whatsapp://send?text=' + mensagem 97 98 // 99 window.location.href = whatsapp_url 100 } 101 102 // 103 return false 104 }) 105})
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.