23
| <![CDATA[<script type="text/javascript">
// Globals
var global_ajax_url = 'https://crq12.gov.br/wp-admin/admin-ajax.php';
</script>]]>
|
30
| <![CDATA[<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-136257158-1');
</script>]]>
|
1315
| <![CDATA[<script type="text/javascript">
$('.mapa_crqs path').hover(
function () {
$(this).css('cursor','pointer');
}
);
$('.mapa_crqs path').click(function(e){
console.log ($(this).data('site'));
$('.mapa_crqs path').attr('fill','#57c17e');
$(this).attr('fill','#388053');
/*
$('.title_conselho').text('Conselho Regional de Química da '+ $(this).data('numero') +'ª Região' );
$('.estado_conselho').text($(this).data('estado'));
$('.telefone_content').text($(this).data('tel'));
$('.site_content').html('<a href="http://'+$(this).data('site')+'">'+$(this).data('site')+'</a>');
*/
var frm=document.frmMapa;
frm.target="_blank";
frm.action="http://"+$(this).data('site');
frm.submit();
});
</script>]]>
|
1374
| <![CDATA[<script type="text/javascript">
var maxLoop = 2;
var currentLoop = 0;
$(document).ready(function(){
// Mask
$(".mask_cep").mask("99.999-999");
$('.mask_phone').focusout(function(){
var phone, element;
element = $(this);
element.unmask();
phone = element.val().replace(/\D/g, '');
if(phone.length > 10) {
element.mask("(99) 99999-999?9");
} else {
element.mask("(99) 9999-9999?9");
}
}).trigger('focusout');
// Acordion geral
$('.totop .panel-default').on('show.bs.collapse', function () {
$(this).addClass('panel_collapse_active');
}).on('hide.bs.collapse', function () {
$(this).removeClass('panel_collapse_active');
});
$('.totop .panel-default').on('shown.bs.collapse', function () {
$(window).scrollTop($(this).offset().top-155);
});
$(document).on("scroll",function(){
// console.log($(document).scrollTop())
if($(document).scrollTop()>1){
$('#page').stop().animate({
'background-position-y':-500
},100);
}else{
$('#page').stop().animate({
'background-position-y':-222
},100);
}
if($(document).scrollTop()>10){
$("header").addClass("header-small");
$('#page').addClass('page_scroll');
$('.mm-page').addClass("padding-top-mmenu");
} else{
$("header").removeClass("header-small");
$('#page').removeClass('page_scroll');
$('.mm-page').removeClass("padding-top-mmenu");
}
});
/* Menu Acessibilidade */
$(document).on('click','.acessabilidade-text',function(e){
e.preventDefault();
var action = $(this).data('action');
if(action=='contraste'){
if($('body').hasClass("contraste")){
$('body').removeClass("contraste");
}else{
$('body').addClass("contraste");
}
}else{
}
});
/* MM Menu JS */
$("#menu_principal").mmenu({
extensions: ["pageshadow"],
offCanvas: {
position: 'right'
},
navbar:{
add: true,
title:'<span class="acessabilidade-text" data-action="contraste">CONTRASTE</span>'
}
});
var api = $("#menu_principal").data( "mmenu" );
api.bind( "opened", function() {
$('#menu-responsive i').css('margin-left',3).removeClass('fa-align-justify').addClass('fa-close');
});
api.bind( "closed", function() {
$('#menu-responsive i').css('margin-left',0).removeClass('fa-close').addClass('fa-align-justify');
});
/* MM Menu JS */
animateLogo(1200);
});
var animateLogo = function(time)
{
// Escondo Tudo
$('.item-c,.item-r-or-12,.first-sphere').fadeOut(time,function(){
// Mudo posição do CRQ
$('.second-sphere').css('left','0px');
//Escondo todas as palavras e mostro o Conselho .conselho_txt
$('.conselho_regional,.conselho_quimica,.conselho_12').stop().animate({'opacity':.1},time);
// Mstro o C
$('.item-c').stop().fadeIn(time,function(){
// Escondo o C
// Volto o Conselho ao normal .conselho_txt
$('.conselho_regional,.conselho_quimica,.conselho_12').stop().animate({'opacity':1},time);
$('.item-c').stop().fadeOut(time,function(){
// Mostro R
$('.conselho_quimica,.conselho_12,.conselho_txt').stop().animate({'opacity':.2},time);
$('.item-r-or-12').stop().fadeIn(time,function(){
// Escondo R
// Fica Só texto R
$('.conselho_quimica,.conselho_12,.conselho_txt').stop().animate({'opacity':1},time);
$('.item-r-or-12').stop().fadeOut(time,function(){
// Mostro Q
// Fica Só química
$('.conselho_12,.conselho_txt,.conselho_regional').stop().animate({'opacity':.2},time);
$('.item-c,.item-r-or-12').stop().fadeIn(time,function(){
// Escondo Q
$('.conselho_12,.conselho_txt,.conselho_regional').stop().animate({'opacity':1},time);
$('.item-c,.item-r-or-12').stop().fadeOut(time,function(){
// Mostro 12
$('.conselho_txt,.conselho_regional,.conselho_quimica').stop().animate({'opacity':.2},time);
$('.item-r-or-12').stop().fadeIn(time,function(){
// Escondo 12
$('.conselho_txt,.conselho_regional,.conselho_quimica').stop().animate({'opacity':1},time);
$('.item-r-or-12').stop().fadeOut(time,function(){
// Monstro Tudo
$('.item-c,.item-r-or-12').stop().fadeIn(time,function(){
// Mostro CFQ
setTimeout(function(){
// Movo o CRQ para a direita
$('.second-sphere').stop().animate({
left:53
},time,function(){
// Mostro o CFQ
$('.first-sphere').stop().fadeIn(time,function(){
currentLoop++;
if(currentLoop<maxLoop){
setTimeout(function(){animateLogo(800)},10000);
}
});
})
},800);
});
});
});
});
});
});
});
});
});
});
}
</script>]]>
|
1556
| <![CDATA[<script type="text/javascript">
var app = angular.module("PesquisaSatisfacaoApp", []);
app.controller("PesquisaSatisfacao", function($scope,$http) {
$scope.buttonDisabled = false;
setTimeout(()=>{ jQuery('#divAllToLoad').fadeOut(200) },3000);
$scope.data = {
nome :null,
email :null,
cpf :null,
question_1_1: null,
question_1_2: null,
question_1_3: null,
question_1_4: null,
question_1_5: null,
question_1_obs: null,
question_2_0: '',
question_2_1: null,
question_2_2: null,
question_2_3: null,
question_2_4: null,
question_3_1: null,
question_3_2: null,
question_3_3: null,
question_3_4: null,
question_3_5: null,
question_3_6: null,
question_3_7: null,
question_3_8: null,
question_3_9: null,
question_3_10: null,
question_3_11: null,
question_3_12: null,
question_3_13: null,
question_3_14: null,
question_3_15: null,
question_3_obs: null
}
$scope.avaliar = () => {
if($scope.data.nome == '' ||
$scope.data.nome == null ||
$scope.data.email == '' ||
$scope.data.email == null ||
$scope.data.cpf == '' ||
$scope.data.cpf == null ){
alert('Nome, email e CPF são campos obrigatórios');
return;
} else if($scope.data.question_2_0=="" || $scope.data.question_2_0==null) {
alert('Selecione o tipo do serviço que deseja avaliar');
return;
} else if(
$scope.data.question_1_1=="" || $scope.data.question_1_1==null ||
$scope.data.question_1_2=="" || $scope.data.question_1_2==null ||
$scope.data.question_1_3=="" || $scope.data.question_1_3==null ||
$scope.data.question_1_4=="" || $scope.data.question_1_4==null ||
$scope.data.question_1_5=="" || $scope.data.question_1_5==null ||
$scope.data.question_2_1=="" || $scope.data.question_2_1==null ||
$scope.data.question_2_2=="" || $scope.data.question_2_2==null ||
$scope.data.question_2_3=="" || $scope.data.question_2_3==null ||
$scope.data.question_2_4=="" || $scope.data.question_2_4==null ||
$scope.data.question_3_1=="" || $scope.data.question_3_1==null ||
$scope.data.question_3_2=="" || $scope.data.question_3_2==null ||
$scope.data.question_3_3=="" || $scope.data.question_3_3==null ||
$scope.data.question_3_4=="" || $scope.data.question_3_4==null ||
$scope.data.question_3_5=="" || $scope.data.question_3_5==null ||
$scope.data.question_3_6=="" || $scope.data.question_3_6==null ||
$scope.data.question_3_7=="" || $scope.data.question_3_7==null ||
$scope.data.question_3_8=="" || $scope.data.question_3_8==null ||
$scope.data.question_3_9=="" || $scope.data.question_3_9==null ||
$scope.data.question_3_10=="" || $scope.data.question_3_10==null ||
$scope.data.question_3_11=="" || $scope.data.question_3_11==null ||
$scope.data.question_3_12=="" || $scope.data.question_3_12==null ||
$scope.data.question_3_13=="" || $scope.data.question_3_13==null ||
$scope.data.question_3_14=="" || $scope.data.question_3_14==null ||
$scope.data.question_3_15=="" || $scope.data.question_3_15==null
){
alert('Ops! Tem alguma pergunta não marcada. Por favor verifique. Nenhuma pode ficar sem marcar uma alternativa');
return;
} else if($scope.data.question_1_obs=="" || $scope.data.question_1_obs==null ||
$scope.data.question_3_obs=="" || $scope.data.question_3_obs==null) {
alert('Ops! Tem alguma observação não informada. Por favor verifique. Nenhuma pode ficar sem responder');
return;
} else {
$scope.buttonDisabled = true;
var link = "https://crq12.gov.br/wp-admin/admin-ajax.php";
var data = {
'action': 'pesquisa_satisfacao',
'data': $scope.data
};
jQuery.ajax({
type: 'POST',
url: link,
data: data,
success: function (data){
alert("Obrigado por participar de nossa pesquisa!");
$scope.buttonDisabled = false;
},
error: function (error){
alert("Infelizmente não foi possível regitrar a pesquisa. Em breve o sistema retornará ao seu funcionamento normal!");
$scope.buttonDisabled = false;
}
});
$scope.buttonDisabled = false;
$scope.data = {
nome :null,
email :null,
cpf :null,
question_1_1: null,
question_1_2: null,
question_1_3: null,
question_1_4: null,
question_1_5: null,
question_1_obs: null,
question_2_0: '',
question_2_1: null,
question_2_2: null,
question_2_3: null,
question_2_4: null,
question_2_5: null,
question_2_6: null,
question_2_7: null,
question_2_8: null,
question_2_9: null,
question_2_10: null,
question_2_11: null,
question_2_12: null,
question_3_1: null,
question_3_2: null,
question_3_2: null,
question_3_4: null,
question_3_5: null,
question_3_6: null,
question_3_obs: null
}
}
};
});
$(document).ready(function(){
// Mask CPF
$(".mask_cpf").mask("999.999.999-99");
});
</script>]]>
|