1var mobile = []; 2mobile.loaded = false; 3 4mobile.setup = function () { 5 if (mobile.loaded) { 6 return; 7 } 8 9 mobile.hideBar(); 10 mobile.showBackPage(); 11 12 mobile.hideElement(".app-section"); 13 mobile.hideElement(".fb-login-button"); 14 15 mobile.loaded = true; 16} 17 18mobile.hideElement = function(element) { 19 $(element).css('display', 'none'); 20 21 $(document).on('show.bs.modal', function () { 22 $(element).css('display', 'none'); 23 }); 24} 25 26mobile.isActive = function () { 27 if (typeof liveapp === 'undefined') { 28 return false; 29 } 30 31 if (!liveapp) { 32 return false; 33 } 34 35 return true; 36} 37 38mobile.hideBar = function () { 39 if (!$('.header-bar').length) { 40 return; 41 } 42 43 $('.header-bar').hide(); 44} 45 46mobile.showBackPage = function () { 47 $('.back-page').css('display', 'block'); 48} 49 50mobile.hideContent = function () { 51 if (!$('.mobile-body').length) { 52 return; 53 } 54 55 $('.mobile-body').hide(); 56 $('body').append('<div class="jumbotron"><p class="text-center">Baixe o material de apoio e rastreie seu pedido</p></div>'); 57} 58 59mobile.listenActiveEvent = function () { 60 $(document).on('liveapp', function () { 61 mobile.setup(); 62 }); 63} 64 65$(function (){ 66 mobile.listenActiveEvent(); 67 68 if (mobile.isActive()) { 69 mobile.setup(); 70 } 71});
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.