This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
listen 80; | |
#listen [::]:80 default_server ipv6only=on; | |
server_name api.saraiva.local; | |
root /home/grippado/www/saraivaapi; | |
index index.php; | |
error_log /var/log/nginx/api-error.log error; | |
location / { | |
if (!-e $request_filename){ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var i; | |
for (i = 0; i < data.products.length; i++) { | |
var getProducts = data.products[i]; | |
jQuery('.col-main .list-products.ajax-return').append( | |
'<li class="'+($('.toolbar .pager .view-mode .view_type.grid').hasClass('actived') ? 'col3' : 'col12')+' item">' | |
+'<a href="'+getProducts.url+'" title="'+getProducts.name+'">' | |
+'<figure>' | |
+'<span class="content_img">' | |
+'<img class="lazyload" data-original="' + getProducts.image + '140" src="' + getProducts.image + '140" alt="'+getProducts.name+'" />' | |
+(getProducts.price_block.price.discount_percent > 0 ? '<span class="tagSale lazyAtivado">-' + getProducts.price_block.price.discount_percent + '%</span>' : '') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ICÔNICOS | |
var LuisDeCamoesNome = 'Luís de Camões', | |
LuisDeCamoesAno = 'c. 1524-1580', | |
LuisDeCamoesLocal = 'Lisboa', | |
LuisDeCamoesObras = 'Os Lusíadas (1572), Sonetos (1595)', | |
LuisDeCamoesRel = 'Autores relacionados: Fernando Pessoa', | |
LuisDeCamoesResumo = 'Camões é o poeta português canônico. Os Lusíadas, em que canta os feitos heroicos de Portugal, é, ao lado das obras de Dante, Homero e Virgílio, um dos maiores poemas épicos da literatura (diz-se que ele teria salvado os originais a nado em um naufrágio). É célebre por alguns dos mais belos sonetos em português. Quem desconhece os versos “Amor é fogo que arde sem se ver?”'; | |
var EcaDeQueirozNome = 'Eça de Queiroz', | |
EcaDeQueirozAno = '1845-1900', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ICÔNICOS | |
// var Nome ='Luís de Camões | |
// c. 1524-1580 | |
// Lisboa | |
// Os Lusíadas (1572), Sonetos (1595) | |
// Autores relacionados: Fernando Pessoa | |
// | |
// Camões é o poeta português canônico. Os Lusíadas, em que canta os feitos heroicos de Portugal, é, ao lado das obras de Dante, Homero e Virgílio, um dos maiores poemas épicos da literatura (diz-se que ele teria salvado os originais a nado em um naufrágio). É célebre por alguns dos mais belos sonetos em português. Quem desconhece os versos “Amor é fogo que arde sem se ver?” | |
// | |
// var Nome ='Eça de Queiroz |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var MiguelSousaTavaresNome = 'Miguel Sousa Tavares', | |
MiguelSousaTavaresAno = '1950-', | |
MiguelSousaTavaresPais = 'Porto (Norte)', | |
MiguelSousaTavaresObras = 'Equador (2003), No Teu Deserto (2009)', | |
MiguelSousaTavaresRel = 'Autores relacionados: Sophia de Mello Breyner Andresen', | |
MiguelSousaTavaresResumo = 'Jornalista, filho de Sophia de Mello Breyner Andresen, tornou-se best-seller com o romance Equador, que virou minissérie em Portugal. Também destaca-se como autor de livros-reportagem. Defende uma literatura clara, baseada na trama. Suas obras tocam em temas relacionados à história de Portugal, antiga e recente, e ex-colônias.'; | |
var MiguelTorgaNome = 'Miguel Torga', | |
MiguelTorgaAno = '1907-1995', | |
MiguelTorgaPais = 'São Martinho de Anta (Nort)', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function($){ | |
// var XX = 'modernos'; | |
// var XX = 'presecxx'; | |
// var XX = 'iconics'; | |
// var XX = 'poscol'; | |
//code here | |
$('nav .bullet').on('mouseenter',function(){ | |
var classing = $(this).attr('data-bullet'); | |
switch(classing){ | |
case 'modernos': |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="category-products collection grid-trail"> | |
<ul class="list-products type-list"> | |
<li class="item col12"> | |
<a href="" title="Killzone 3 - Versão Totalmente Em Português - PS3"> | |
<figure> | |
<span class="content_img" style="background-image: none;"> | |
<img class="lazyload" data-original="http://images.livrariasaraiva.com.br/imagemnet/imagem.aspx/?pro_id=3411473&qld=90&l=140" src="http://images.livrariasaraiva.com.br/imagemnet/imagem.aspx/?pro_id=3411473&qld=90&l=140" alt="Killzone 3 - Versão Totalmente Em Português - PS3" width="114" style="display: inline-block;"> | |
</span> | |
</figure> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="col3 col-left sidebar"> | |
<div class="block block-layered-nav"> | |
<aside> | |
<div class="category typed"> | |
<div class="filter-title first opend "><a data-href="1228" class="categor_parent" data-facet="categories.parent.parent.id" data-label="Eletrônicos">Eletrônicos<span class="qty-children">(48)</span></a></div> | |
<ul class="filter-list"> | |
<li class="filter-title second opend "> | |
<div><a data-href="1262" data-facet="categories.parent.id" data-label="Automotivo">Automotivo<span class="qty-children">(10)</span></a></div> | |
<ul class="subs"> | |
<li class="child"><a data-href="1263" data-facet="categories.id" data-label="Som Automotivo"> - Som Automotivo <span class="qty-children">(6)</span></a></li> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
listen 80; | |
#listen [::]:80 default_server ipv6only=on; | |
server_name api.saraiva.local; | |
root /home/grippado/www/saraivaapi; | |
index index.php; | |
error_log /var/log/nginx/api-error.log error; | |
location / { | |
if (!-e $request_filename){ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
GRANT ALL PRIVILEGES ON dbTest.* To 'user'@'hostname' IDENTIFIED BY 'password'; |