72
| <![CDATA[<script>
function abreiframe(id)
{
document.getElementById('divframe').src = '';
document.getElementById('divframe').src = id;
$("#vaiframe").fadeIn('fast');
scrollToElement('#vaiframe');
}
function scrollToElement(selector, time, verticalOffset) {
time = typeof (time) != 'undefined' ? time : 500;
verticalOffset = typeof (verticalOffset) != 'undefined' ? verticalOffset : 0;
element = $(selector);
offset = element.offset();
offsetTop = offset.top + verticalOffset;
$('html, body').animate({
scrollTop: offsetTop
}, time);
}
</script>]]>
|
311
| <![CDATA[<script type="text/javascript">
function googleTranslateElementInit() {
new google.translate.TranslateElement({ pageLanguage: 'pt', includedLanguages: 'en,es,pt', layout: google.translate.TranslateElement.InlineLayout.SIMPLE, autoDisplay: false }, 'google_translate_element');
}
</script>]]>
|
355
| <![CDATA[<script>
countmais = 0;
incremento = 10;
function carregamais(){
var parametros = {'id': $('#auxCategoria').val(),
'busca': $('#txtBusca').val(),
'mais': countmais,
'status': $('#txtStatus').val(),
'incremento': incremento
};
action = '/publicacoes_json.php';
$.ajax({
type: "POST",
url: action,
data: parametros,
success: function(txt) {
countmais+=incremento;
$('#divConteudo').append(txt);
$('#divBusca').fadeIn('fast');
}
});
}
function pesquisa(){
countmais=0;
carrega($('#auxCategoria').val());
}
function status(st){
$('#txtStatus').val(st);
countmais=0;
carrega($('#auxCategoria').val());
}
function carrega(id){
countmais=0;
//$('#auxCategoria').val(id);
id = $('#auxCategoria').val();
var parametros = {'id': id,
'busca': $('#txtBusca').val(),
'mais': $('#txtMais').val(),
'status': $('#txtStatus').val(),
'incremento': incremento
};
action = '/publicacoes_json.php';
$.ajax({
type: "POST",
url: action,
data: parametros,
beforeSend: function() {
$('#divConteudo').empty().append('<li><div class="post_text"><p>AGUARDE,CARREGANDO</p></div></li>');
},
success: function(txt) {
countmais+=incremento;
$('#divConteudo').empty().append(txt);
$('#divBusca').fadeIn('fast');
},
error: function(txt) {
$('#divConteudo').empty().append('<li><div class="post_text"><p>ERRO</p></div></li>');
}
});
}
function runScript(e) {
if (e.keyCode == 13) {
pesquisa();
}
}
$(document).ready(function(){
carrega(0);
$('#load_more').click(function(e){
carregamais();
});
});
</script>]]>
|
561
| <![CDATA[<script>
// flexslider-2 - galeria de fotos
// The slider being synced must be initialized first
$('#carousel').flexslider({
animation: "slide",
controlNav: false,
directionNav: false,
animationLoop: false,
slideshow: false,
prevText:'',
nextText:'',
itemWidth: 100,
asNavFor: '#slider'
});
$('#slider').flexslider({
animation: "slide",
controlNav: false,
animationLoop: false,
animationSpeed: 1000,
prevText:'',
nextText:'',
slideshow: false,
sync: "#carousel"
});
</script>]]>
|