53
| <![CDATA[<script>
//Google Analytics
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-40755062-1', 'sp.gov.br');
ga('require', 'displayfeatures');
ga('send', 'pageview');
</script>]]>
|
64
| <![CDATA[<script type="text/javascript">
const mototaxiJSONPath = 'arquivos/downloads/mobilidade-urbana-transporte-publico/mototaxi.json';
const taxiJSONPath = 'arquivos/downloads/mobilidade-urbana-transporte-publico/taxi.json';
var mototaxis = [];
var taxis = [];
$.getJSON(mototaxiJSONPath, function(jsonFile){
mototaxis = jsonFile;
});
$.getJSON(taxiJSONPath, function(jsonFile){
taxis = jsonFile;
});
</script>]]>
|
352
| <![CDATA[<script>
$(function(){
var $form = $('#cadnewsletter');
$form.submit(function(){
var $data = $form.serialize();
$form.find('span').children().hide();
$form.find('span').append('<img src="img/interface/loading.gif" alt="">');
$.ajax({
type : 'POST',
url : 'controllers/newsletter.con.php',
data : $data
}).done(function(data){
if(data == "1"){
data = "Cadastro efetuado com sucesso.";
modal(data, 'Sucesso!');
$form[0].reset();
}else{
modal(data, 'Atenção!');
}
$form.find('span').children().show();
$form.find('img').remove();
});
return false;
});
});
</script>]]>
|
465
| <![CDATA[<script type="text/javascript">
$('.openmenu').on('click', 'a', function (e) {
e.preventDefault();
var $nav = $('nav'),
$this = $(this);
if ($this.hasClass('close')) {
$nav.removeClass('open');
$this.removeClass('close');
} else {
$nav.addClass('open');
$this.addClass('close');
}
});
$(window).load(function () {
$('#bannerTopo').nivoSlider({
effect: 'sliceDown',
pauseTime: 5000,
directionNav: false
});
});
//Checa campo de busca
function checkquery() {
$val = $('#query').val();
if ($val.length < 3) {
$('#search').find('span').text('Termo muito curto.').show().animate({
top: '10px'
}, 100);
return false;
}
return true;
}
$('#query').on('focus', function () {
$('#search').find('span').hide().animate({
top: 0
}, 100);
});
//Fixed Menu
$nav = $('nav');
$navHeight = $nav.height();
$vdistance = $nav.offset().top;
$(window).on('scroll', function () {
if ($(window).scrollTop() >= ($vdistance) && $('.openmenu').is(':hidden')) {
$('#navDecoi').css({'height': $navHeight + 'px'});
$nav.addClass('fixedNav');
} else {
$('#navDecoi').css({'height': '0px'});
$nav.removeClass('fixedNav');
}
});
$(function () {
//Back to Top
$('#backTop').on('click', function (e) {
e.preventDefault();
$('html, body').animate({scrollTop: 0}, 600);
});
});
</script>]]>
|
540
| <![CDATA[<script async type="text/javascript">
var mototaxiPNG = 'img/mobilidade-urbana-transporte-publico/pin-mototaxi.png';
var taxiPNG = 'img/mobilidade-urbana-transporte-publico/pin-taxi.png';
var mapOptions = {
center: new google.maps.LatLng('-22.603482', '-48.802461'),
zoom: 12,
};
var infoWindow = new google.maps.InfoWindow();
var map = new google.maps.Map(document.getElementById("map_canvas"), mapOptions);
$(function () {
for (i = 0; i < mototaxis.length; i++)
{
MarcadorMototaxi(mototaxis[i]);
}
for (i = 0; i < taxis.length; i++)
{
MarcadorTaxi(taxis[i]);
}
});
function MarcadorMototaxi(data)
{
var myLatlng = new google.maps.LatLng(data.lat, data.lng);
var marker = new google.maps.Marker({
position: myLatlng,
map: map,
title: data.title,
animation: google.maps.Animation.DROP,
icon: mototaxiPNG
});
(function (marker, data) {
google.maps.event.addListener(marker, "click", function (e) {
var link = 'https://www.google.com.br/maps/place/' + data.lat +',' + data.lng;
var content = '<strong>'+ data.title +'</strong><br/><br/><a href="'+ link +'" target="_blank">Visualize no Google Maps</a>';
infoWindow.setContent(content);
infoWindow.open(map, marker);
});
})(marker, data);
}
function MarcadorTaxi(data)
{
var myLatlng = new google.maps.LatLng(data.lat, data.lng);
var marker = new google.maps.Marker({
position: myLatlng,
map: map,
title: data.title,
animation: google.maps.Animation.DROP,
icon: taxiPNG
});
(function (marker, data) {
google.maps.event.addListener(marker, "click", function (e) {
var link = 'https://www.google.com.br/maps/place/' + data.lat +',' + data.lng;
var content = '<strong>'+ data.title +'</strong><br/><p>'+ data.description +'</p><br/><a href="'+ link +'" target="_blank">Visualize no Google Maps</a>';
infoWindow.setContent(content);
infoWindow.open(map, marker);
});
})(marker, data);
}
</script>]]>
|