PageSourceSearch

https://www.maestrobpm.com.br/wp-content/themes/maestro/assets/js/myscripts.js?1790903878

js maestrobpm.com.br collected 2026-10-02 01:18:19 UTC 5,575 bytes, 211 lines download raw bytes

1function home_init() {
2	var home_carousel = $('#home-carosel .owl-carousel')
3	home_carousel.owlCarousel({
4		items: 1,
5		loop:true,
6		autoplaySpeed: 1000,
7		autoplay: true,
8		autoplayTimeout: 12000,
9	});
10	$(home_carousel).find('input').on('focus', function(event) {
11		home_carousel.trigger('stop.owl.autoplay');
12	});
13	$(home_carousel).find('input').on('blur', function(event) {
14		home_carousel.trigger('play.owl.autoplay');
15	});
16}
17function owncarrossel_init() {
18	var carousel = $('.owl-carousel')
19	carousel.owlCarousel({
20		items: 1,
21		loop:true,
22		dots: true,
23		nav: true,
24		smartSpeed: 1000,
25		autoplay: true
26	});
27}
28
29function anexarArquivo(){
30	if ($('.anexe').children('span').hasClass('remove-arquivo')) {
31			$('.input-file').val('');
32			$('.val').text('Anexe seu Currículo');
33			$('.ico').removeClass('remove-arquivo');
34	} else{
35		$('.input-file').click();
36	}
37}
38
39function atualizarNomeArquivo(){
40	var file = $('.input-file')[0].files[0]
41	if (file){
42		$('.val').text(file.name);
43		$('.ico').addClass('remove-arquivo');
44	}
45}
46
47function numerosRotativos() {
48	$('.numero-crescente').addClass('numero-crescente-animar')
49	numerosRotativos2();
50	$(window).scroll(function() {
51		// Carregar gr�fico
52		numerosRotativos2();
53	});
54}
55function numerosRotativos2() {
56	var separador = $.animateNumber.numberStepFactories.separator('.');
57	var deslocamento_top = $(window).scrollTop();
58	var deslocamento = $(window).scrollTop() + $(window).height();
59
60	var num = $('.numero-crescente-animar');
61	num.each(function() {
62		var dados_position = $(this).offset().top;
63
64
65		if(dados_position <= deslocamento && dados_position >= deslocamento_top) {
66			$(this).removeClass('numero-crescente-animar');
67			$(this).animateNumber({
68				number: $(this).data('total'),
69				numberStep: separador,
70				easing: 'easeInQuad'
71			},2500);
72		}
73	});
74}
75
76function segmentosNavigation() {
77	var getTop, getElem;
78	$('.nav-segmentos ul li').each(function(index){
79		$(this).on("click", function(){
80			getElem = $(".segmentos-content").get(index);
81
82			//$('#rodape').hide();
83			$('#segmentos-navigation').slideUp('fast');
84			$(".segmentos-content").removeClass('able');
85			getElem.classList.add('able')
86
87		});
88	});
89}
90
91function showNav(){
92	$(".fechar-segmento a").on("click", function(){
93		$('#segmentos-navigation').slideDown('fast');
94 	});
95}
96
97function initMap() {
98    var latitude = $('#mapa').data('latitude');
99    var longitude = $('#mapa').data('longitude');
100
101    var myLatLng = new google.maps.LatLng(latitude,longitude);
102
103    var stylez = [
104    {
105        featureType: "all",
106        elementType: "all",
107        stylers: [
108        { saturation: -100 }
109        ]
110    }
111    ];
112
113    var mapOptions = {
114        scrollwheel: false,
115        zoom: 16,
116        center: myLatLng,
117        zoomControl: true,
118        zoomControlOptions: {
119                style: google.maps.ZoomControlStyle.SMALL,
120                position: google.maps.ControlPosition.RIGHT_BOTTOM
121        },
122        streetViewControl: true,
123        streetViewControlOptions: {
124                position: google.maps.ControlPosition.RIGHT_BOTTOM
125        },
126        panControl: true,
127        panControlOptions: {
128                position: google.maps.ControlPosition.RIGHT_BOTTOM
129        }
130    };
131
132    var map = new google.maps.Map(document.getElementById('mapa'), mapOptions);
133
134    var mapType = new google.maps.StyledMapType(stylez, { name:"Grayscale" });
135    map.mapTypes.set('tehgrayz', mapType);
136    map.setMapTypeId('tehgrayz');
137
138    var image = '/wp-content/themes/maestro/assets/images/icon_maps.png';
139
140    var marker = new google.maps.Marker({
141        position: myLatLng,
142        map: map,
143        icon: image
144    });
145}
146function solicitarDemonstracaoContato() {
147	$('#frmcontato').attr('action', '/demonstracao/');
148	$('#frmcontato').submit();
149}
150function abre_menu() {
151	$('#menu-holder').addClass('menu-visivel');
152}
153function fecha_menu() {
154	$('#menu-holder').removeClass('menu-visivel');
155}
156
157function encurtarTopo() {
158	encurtarTopo2();
159	$(window).scroll(function() {
160		encurtarTopo2();
161	});
162}
163var topo_encurtado = false;
164function encurtarTopo2() {
165	var top = $(window).scrollTop();
166	if(top > 300 && !topo_encurtado) {
167		topo_encurtado = true;
168		$('#topo-site').addClass('topo-encurtado');
169	}
170	if(top <=300 && topo_encurtado) {
171		topo_encurtado = false;
172		$('#topo-site').removeClass('topo-encurtado');
173	}
174}
175function is_mobile() {
176	return window.innerWidth<500
177}
178function is_desktop() {
179	return window.innerWidth>769
180}
181
182function animacaoImagens() {
183	if(is_desktop()) {
184		if($('.img-animacao').length>0) {
185			animacaoImagens2();
186			$(window).scroll(function() {
187				animacaoImagens2();
188			});
189		}
190	}
191}
192function animacaoImagens2() {
193	var deslocamento = $(window).scrollTop();
194	var height = $(window).height();
195	var deslocamento_c_height = $(window).scrollTop() + height;
196
197	$('.img-animacao').each(function( index ) {
198		var topObj = $( this ).offset().top;
199		var heightObj = $( this ).height();
200		var altura_limite = heightObj > height / 2 ? height / 2 : heightObj;
201		if( topObj + altura_limite <= deslocamento_c_height && !$( this ).hasClass('img-animacao-start') ) {
202			$( this ).addClass('img-animacao-start').removeClass('img-animacao');
203		}
204		/*if( topObj + altura_limite >= deslocamento_c_height && $( this ).hasClass('img-animacao-start') ) {
205			$( this ).removeClass('img-animacao-start');
206		}*/
207	});
208}
209$(function() {
210	animacaoImagens();
211});

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.