$(document).ready(function(){
$('.item.contact-item').after('
');
});
$(function(){
$('.figure.category-banner > .row > .col-1 > img').attr('id', 'img-categoria');
});
setTimeout(function(){
$('#header > div > div.col-10.col-logo > div > div > h1 > a').attr('href', 'https://loja.letraseversos.com.br/loja/selfpublish/');
$('#header > div > div.col-10.col-logo > div > div > span > a').attr('href', 'https://loja.letraseversos.com.br/loja/selfpublish/');}, 1000)
var intervalId = null;
function BlockContent(classe,where){
if($("#custom-blocks").length ==0){
$("#main").append('');
}
$("#custom-blocks").append('');
}
function btnSolic() {
$('#innerProdutosDestaques > .row > .product > .dt-table > .sub.clearfix > a').text("SOLICITAR");
clearInterval(intervalId);
}
$(document).ready(function(){
if (document.URL.indexOf('/home/selfpublish/') > 0) {
$.colorbox({html:"", width:
531, height:565});
}
document.addEventListener("mouseleave", function(event){
if(event.clientY <= 0 || event.clientX <= 0 || (event.clientX >= window.innerWidth || event.clientY >= window.innerHeight)){
if ($("#colorbox").css("display")!="block") {
if (document.URL.indexOf('carrinho-compras/') > 0) {
$.colorbox({ iframe: true, href: 'https://loja.letraseversos.com.br/loja/pop-ups_2021-09-13/popup1/', fixed: true, opacity: 0.3, width: 600, innerHeight: '50%', height: '100%' });
}
else if (document.URL.indexOf('/carrinho-compras-finalizar-pagamento/') > 0) {
$.colorbox({ iframe: true, href: 'https://loja.letraseversos.com.br/loja/pop-ups_2021-09-13/popup2/', fixed: true, opacity: 0.3, width: 600, innerHeight: '50%', height: '100%' });
}
}
}});
if (document.URL.indexOf('/home/') > 0) {
document.location.href = "http://loja.letraseversos.com.br/loja/selfpublish/";
}
setTimeout(function(){$('span:contains("P/C")').text('Página Colorida');}, 700);
$('#img-categoria').on('click', function(){
window.location = "https://loja.letraseversos.com.br//loja/pagina/4NPKPKNJ/Letras-e-Versos-%20-%20-Grafica-e-Editora-focada-na-impressao-de-livros-em-pequenas-tiragens";
});
if($('.logo.logo-image').length){
//$('#produto-descricao-reduzida .min-descricao').append('Imagem meramente ilustrativa a fim de preservar a imagem do aluno
');
}
$('#innerServicosExtras_0IRFQMNJ .options-box').append('');
$('#innerServicosExtras_8NRFMNNJ .options-box').append('');
$('#innerServicosExtras_8HORRQNJ .options-box').append('');
$('#upper-header').prepend('');
setTimeout(function(){$('#menu-categoria').append('Publique Seu Livro');}, 2000)
//$('#innerQuantidades h2').text('Selecione a quantidade(páginas) desejada')
BlockContent(1,'last');
BlockContent(7,'facebook');
BlockContent(7,'first');
if(typeof(Depoimento)=="function") Depoimento('first');
if(typeof(BibliotecaImagens)=="function") BibliotecaImagens('last');
if(typeof(Facebook)=="function") Facebook('facebook');
setTimeout(function(){
$('#box-depoimentos h2').text('Faça Parte desse Time de Autores');
},1000);
$('#innerQuantidades #innerListaQTDs .add-qty .price').not('.hide').text('Clique e insira a quantidade');
if($('#innerQuantidades h2').text().indexOf('Avulsa') > -1){
$('#innerQuantidades h2').text($('#innerQuantidades h2').text()+' - PB')
}
if($('#innerServicosExtras_0IRFQMNJ h2').text().indexOf('ISBN') > -1){
$('#innerServicosExtras_0IRFQMNJ input.itensQTD').change(function(e){
if($(this).val()==1){
$('#innerServicosExtras_0IRFQMNJ .panel-body').append('Faça o download do formulário clicando aqui e envie preenchido para adm@letraseversos.com.br.');
}else{
$('#innerServicosExtras_0IRFQMNJ .panel-body .download-formulario-isbn').remove()
}
});
}
if($('#innerQuantidades h2:contains("Unitário")').length || $('#innerQuantidades h2:contains("Unitario")').length){
$('#innerQuantidades #innerListaQTDs .dt-table-cell:first-child').show();
}
if($('body').hasClass('page-home')){
$('#sidebar').next('.col-1').find('h2.normal').text('Monte seu Livro On-line');
$('.product .dt-table a.button').text('Consultar');
}
if($('#main > .row > .col-3.col-page > .inner-content.products.inner-rows > .title-bdb:contains("Monte seu Livro On-line")').length){
setInterval(btnSolic, 100);
//$('#innerProdutosDestaques > .row > .product > .dt-table > .sub.clearfix > a').text("SOLICITAR");
// .product .sub > .button{text-indent:-9999px;line-height:0;}
//.product .sub > .button:after{content:"SAIBA MAIS";display:block;text-indent:0;line-height:1;}
//$('#main > .row > .col-3.col-page > .inner-content.products.inner-rows > .title-bdb:contains("Monte seu Livro On-line")').hide();
}
var objSSLSpan = document.createElement('span'); objSSLSpan.setAttribute('id','ss_img_wrapper_115-55_image_en');
var objSSLA = document.createElement('a'); objSSLA.setAttribute('target','_blank'); objSSLA.setAttribute('title','Certificates'); objSSLA.setAttribute('target','_blank'); objSSLA.setAttribute('href','http://www.alphassl.com/ssl-certificates/wildcard-ssl.html');
var objSSLIMG = document.createElement('img'); objSSLIMG.setAttribute('alt','Wildcard SSL Certificates'); objSSLIMG.setAttribute('title','SSL Certificate'); objSSLIMG.setAttribute('border','0'); objSSLIMG.setAttribute('id','ss_img'); objSSLIMG.setAttribute('src','//seal.alphassl.com/SiteSeal/images/alpha_noscript_115-55_en.gif');
var objSSLScript = document.createElement('script'); objSSLScript.setAttribute('charset', 'utf-8'); objSSLScript.async=0; objSSLScript.src='//seal.alphassl.com/SiteSeal/alpha_image_115-55_en.js'; objSSLScript.type='text/javascript';
$(objSSLA).append(objSSLIMG); $(objSSLSpan).append(objSSLA);
$("DIV#innerTrustSign").append(objSSLSpan); $("DIV#innerTrustSign").append(objSSLScript);
});