// source --> https://revista.vixicasei.com.br/wp-content/plugins/disqus-comment-system/media/js/disqus.js?ver=e401f0e1fe7438350ef3bbbfc11ab94f var disqus_url = embedVars.disqusUrl; var disqus_identifier = embedVars.disqusIdentifier; var disqus_container_id = 'disqus_thread'; var disqus_shortname = embedVars.disqusShortname; var disqus_title = embedVars.disqusTitle; var disqus_config_custom = window.disqus_config; var disqus_config = function () { /* All currently supported events: onReady: fires when everything is ready, onNewComment: fires when a new comment is posted, onIdentify: fires when user is authenticated */ if (typeof embedVars.disqusConfig.remote_auth_s3 !== 'undefined') { this.page.remote_auth_s3 = embedVars.disqusConfig.remote_auth_s3; } if (typeof embedVars.disqusConfig.api_key !== 'undefined') { this.page.api_key = embedVars.disqusConfig.api_key; } if (typeof embedVars.disqusConfig.sso !== 'undefined') { this.sso = { name: embedVars.disqusConfig.sso.name, button: embedVars.disqusConfig.sso.button, url: embedVars.disqusConfig.sso.url, logout: embedVars.disqusConfig.sso.logout, width: embedVars.disqusConfig.sso.width, height: embedVars.disqusConfig.sso.height }; } this.language = embedVars.disqusConfig.language; this.callbacks.onReady.push(function () { if (!embedVars.options.manualSync) { // sync comments in the background so we don't block the page var script = document.createElement('script'); script.async = true; script.src = '?cf_action=sync_comments&post_id=' + embedVars.postId; var firstScript = document.getElementsByTagName('script')[0]; firstScript.parentNode.insertBefore(script, firstScript); } }); if (disqus_config_custom) { disqus_config_custom.call(this); } }; (function() { var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true; dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js'; (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq); })(); // source --> https://revista.vixicasei.com.br/wp-content/plugins/alpine-photo-tile-for-pinterest/js/AlpinePhotoTiles_script.js?ver=1.2.6 /* * Alpine PhotoTile : jQuery Tile Display Functions * By: Eric Burger, http://thealpinepress.com * Version: 1.0.4 * Updated: December 2013 * */ (function( w, s, d ) { s.fn.AlpinePhotoTilesPlugin = function( options ) { options = s.extend( {}, s.fn.AlpinePhotoTilesPlugin.options, options ); // IE 7 fallback /*if(!d.querySelector){ if('windows' != options.style){ options.style = 'rift'; } }*/ return this.each(function() { var parent = s(this), imageList = s(".AlpinePhotoTiles_image_list_class",parent), images = s('.AlpinePhotoTiles-image',imageList), allPerms = s('.AlpinePhotoTiles-link',imageList), width = parent.width(), currentRow,img,newDiv,newDivContainer,src,url,height,theClasses,theHeight,theWidth,perm,nextHeight,tempW,tempH, imageRow=[],row,currentImage,sumWidth=0,maxHeight=0,pos,normalWidth,normalHeight; if( 'square' == options.shape && 'windows' == options.style ){ s.each(images, function(i){ img = this; src = img.src; url = 'url("'+src+'")'; perm = allPerms[i]; if(i%3 == 0){ theClasses = "AlpinePhotoTiles-tile"; theWidth = (width-8); theHeight = theWidth; newRow( theHeight, i ); addDiv(i); }else if(i%3 == 1){ theClasses = "AlpinePhotoTiles-tile AlpinePhotoTiles-half-tile AlpinePhotoTiles-half-tile-first"; theWidth = (width/2-4-4/2); theHeight = theWidth; newRow( theHeight, i ); addDiv(i); }else if(i%3 == 2){ theClasses = "AlpinePhotoTiles-tile AlpinePhotoTiles-half-tile AlpinePhotoTiles-half-tile-last"; theWidth = (width/2-4-4/2); theHeight = theWidth; addDiv(i); } }); } else if( 'rectangle' == options.shape && 'windows' == options.style ){ s.each(images, function(i){ img = this; src = img.src; url = 'url("'+src+'")'; perm = allPerms[i]; if(i%3 == 0){ theWidth = (width-8); height = theWidth*img.naturalHeight/img.naturalWidth; height = (height?height:width); newRow( height, i ); theClasses = "AlpinePhotoTiles-tile AlpinePhotoTiles-tile-rectangle"; theHeight = (height); addDiv(i); }else if(i%3 == 1){ theWidth = (width/2-4-4/2); height = theWidth*img.naturalHeight/img.naturalWidth; height = (height?height:width); newRow( height, i ); theClasses = "AlpinePhotoTiles-tile AlpinePhotoTiles-half-tile AlpinePhotoTiles-half-tile-first AlpinePhotoTiles-tile-rectangle"; theHeight = (height); theWidth = (width/2-4-4/2); addDiv(i); }else if(i%3 == 2){ theWidth = (width/2-4-4/2); nextHeight = theWidth*img.naturalHeight/img.naturalWidth; nextHeight = (nextHeight?nextHeight:theWidth); if(nextHeight && nextHeight maxHeight ){ maxHeight = normalHeight; currentRow.css({'height':normalHeight+"px"}); } img = this.img; url = this.url; perm = this.perm; src = this.src; theClasses = "AlpinePhotoTiles-book"; theWidth = (normalWidth-4-4/options.perRow); theHeight = normalHeight; addDiv(i); newDivContainer.css({ 'left':pos+'px' }); pos += normalWidth; }); imageRow=[];sumWidth=0;maxHeight=0; } }); } else if( 'rift' == options.style ){ parent.css({'width':'100%'}); width = parent.width(); imageRow=[];sumWidth=0;maxHeight=0;row=0; s.each(images, function(i){ img = this; src = img.src; url = 'url("'+src+'")'; perm = allPerms[i]; tempW = (img.naturalWidth?img.naturalWidth:width); tempH = (img.naturalHeight?img.naturalHeight:width); currentImage = { "width":tempW, "height":tempH, "url":url, "perm":perm, "src":src, "img":img } sumWidth += tempW; imageRow[imageRow.length] = currentImage; if(i%options.perRow == (options.perRow -1) || (images.length-1)==i ){ if( (images.length-1)==i ){ sumWidth += (options.perRow - i%options.perRow -1)*imageRow[imageRow.length-1].width; } newRow( 10, i ); currentRow.addClass('AlpinePhotoTiles-riftline'); pos = 0; s.each(imageRow,function(){ normalWidth = this.width/sumWidth*width; normalHeight = normalWidth*this.height/this.width; if( normalHeight > maxHeight ){ maxHeight = normalHeight; currentRow.css({'height':normalHeight+"px"}); } img = this.img; url = this.url; perm = this.perm; src = this.src; theClasses = 'AlpinePhotoTiles-rift AlpinePhotoTiles-float-'+row; theWidth = (normalWidth-4-4/options.perRow); theHeight = normalHeight; addDiv(i); newDivContainer.css({ 'left':pos+'px' }); pos += normalWidth; }); imageRow=[];sumWidth=0;maxHeight=0,row=(row?0:1); } }); } else if( 'gallery' == options.style ){ parent.css({'width':'100%','opacity':0}); width = parent.width(); var originalImages = s('img.AlpinePhotoTiles-original-image',parent); var gallery,galleryContainer,galleryHeight; theWidth = (width/options.perRow-4-4/options.perRow); theHeight = (width/options.perRow); s.each(images, function(i){ img = this; src = img.src; url = 'url("'+src+'")'; perm = allPerms[i]; if( 0 == i ){ if( options.galleryHeight ){ // Keep for compatibility galleryHeight = width/options.perRow*options.galleryHeight; }else if( options.galRatioHeight && options.galRatioWidth ){ galleryHeight = width*options.galRatioHeight/options.galRatioWidth; }else{ galleryHeight = width*600/800; } newRow( galleryHeight, i ); galleryContainer = s(''); galleryContainer.css({ "height":galleryHeight+"px", "width":(width-8)+"px" }); currentRow.append(galleryContainer); if(options.imageBorder){ galleryContainer.addClass('AlpinePhotoTiles-border-div'); galleryContainer.width( galleryContainer.width()-10 ); galleryContainer.height( galleryContainer.height()-10 ); } if(options.imageShadow){ galleryContainer.addClass('AlpinePhotoTiles-shadow-div'); } if(options.imageCurve){ galleryContainer.addClass('AlpinePhotoTiles-curve-div'); } } if(i%options.perRow == 0){ newRow( width/options.perRow, i ); theClasses = "AlpinePhotoTiles-tile AlpinePhotoTiles-half-tile AlpinePhotoTiles-half-tile-first"; addDiv(i); }else if(i%options.perRow == (options.perRow -1) ){ theClasses = "AlpinePhotoTiles-tile AlpinePhotoTiles-half-tile AlpinePhotoTiles-half-tile-last"; addDiv(i); }else{ theClasses = "AlpinePhotoTiles-tile AlpinePhotoTiles-half-tile"; addDiv(i); } var storeUrl = url; if( originalImages[i] ){ if( originalImages[i].src ){ storeUrl = 'url("'+originalImages[i].src+'")'; } } gallery = s(''); gallery.css({ 'background-image':storeUrl }); if( 0 != i ){ gallery.hide(); } galleryContainer.append(gallery); // Prevent Right-Click if( img.oncontextmenu ){ gallery.attr("oncontextmenu","return false;"); } }); var allThumbs = s('.AlpinePhotoTiles-image-div',parent); var allGalleries = s('.AlpinePhotoTiles-image-gallery',parent); s.each(allThumbs,function(){ var theThumb = s(this); if( !theThumb.hasClass('AlpinePhotoTiles-image-gallery') ){ theThumb.hover(function() { allGalleries.hide(); s("#"+theThumb.attr('id')+"-gallery").show(); }); } }); parent.ready(function(){ parent.css({'opacity':1}); }); } // Lastly, call lighbox if applicable if(options.callback){ options.callback(); } function newRow(height,i){ if(!s.support.leadingWhitespace && !d.querySelector){ currentRow = s('
'); currentRow.css({'height':height+'px'}); parent.append(currentRow); }else{ currentRow = s('
'); currentRow.css({'height':height+'px'}); parent.append(currentRow); } } function addDiv(i){ if(!s.support.leadingWhitespace && !d.querySelector){ newDiv = s('
'); }else{ newDiv = s('
'); newDiv.css({ 'background-image':url }); } // Prevent Right-Click if( img.oncontextmenu ){ newDiv.attr("oncontextmenu","return false;"); } newDivContainer = s('
'); if(!s.support.leadingWhitespace && !d.querySelector){ newDivContainer.css({ "height":(theHeight*0.99)+"px", "width":(theWidth)+"px", "overflow":"hidden" }); }else{ newDivContainer.css({ "height":theHeight+"px", "width":theWidth+"px" }); } currentRow.append(newDivContainer); newDivContainer.append(newDiv); if(perm){ if(options.lightbox){ newDiv.wrap(''); s(perm).removeClass( 'AlpinePhotoTiles-lightbox' ); }else{ newDiv.wrap(''); } } /*if( img.title ){ newDivContainer.append('
'+img.title+'
'); }*/ if(options.imageBorder){ newDivContainer.addClass('AlpinePhotoTiles-border-div'); newDivContainer.width( newDivContainer.width()-10 ); newDivContainer.height( newDivContainer.height()-10 ); } if(options.imageHighlight){ if(!options.imageBorder){ newDivContainer.addClass('AlpinePhotoTiles-highlight-div'); newDivContainer.width( newDivContainer.width()-4 ); newDivContainer.height( newDivContainer.height()-4 ); } newDivContainer.hover(function(){ s(this).css({ "background": options.highlight }); },function(){ if( options.imageBorder ){ s(this).css({ 'background-color': '#fff' }); }else{ s(this).css({ 'background-color': '' }); } }); } if(options.imageShadow){ newDivContainer.addClass('AlpinePhotoTiles-shadow-div'); } if(options.imageCurve){ newDivContainer.addClass('AlpinePhotoTiles-curve-div'); } if(options.pinIt){ var media = s(img).attr('data-original'); media = (media?media:src); newDiv.addClass('AlpinePhotoTiles-pinterest-container'); var link = s('
'); newDiv.append(link); } } function updateHeight(aDiv,aHeight){ aDiv.height(aHeight); if(options.imageBorder){ aDiv.height( aDiv.height()-10 ); } } }); } s.fn.AlpinePhotoTilesPlugin.options = { id: 'AlpinePress', pinIt: false, lightbox:false } })( window, jQuery, document ); (function( w, s ) { s.fn.AlpineAdjustBordersPlugin = function( options ) { return this.each(function() { var parent = s(this),images = s('img',parent); s.each(images,function(){ var currentImg = s(this); var width = currentImg.parent().width(); var wBorder = false; // Remove and replace ! important classes if( currentImg.hasClass('AlpinePhotoTiles-img-border') ){ width -= 10; currentImg.removeClass('AlpinePhotoTiles-img-border'); currentImg.css({ 'max-width':(width)+'px', 'padding':'4px', 'margin-left': '1px', 'margin-right': '1px', 'background-color':'#fff' }); wBorder = true; }else if( currentImg.hasClass('AlpinePhotoTiles-img-noborder') ){ currentImg.removeClass('AlpinePhotoTiles-img-noborder'); currentImg.css({ 'max-width':(width)+'px', 'padding':'0px' }); } if( currentImg.hasClass('AlpinePhotoTiles-img-shadow') ){ width -= 2; currentImg.removeClass('AlpinePhotoTiles-img-shadow'); currentImg.css({ "box-shadow": "0 1px 3px rgba(34, 25, 25, 0.4)", "margin-left": "1px", "margin-right": "1px", 'max-width':(width)+'px' }); }else if( currentImg.hasClass('AlpinePhotoTiles-img-noshadow') ){ currentImg.removeClass('AlpinePhotoTiles-img-noshadow'); currentImg.css({ 'max-width':(width)+'px', "box-shadow":"none" }); } if( currentImg.hasClass('AlpinePhotoTiles-img-highlight') ){ currentImg.removeClass('AlpinePhotoTiles-img-highlight'); if( '4px' != currentImg.css('padding-right') ){ width -= 6; currentImg.css({ 'max-width':(width)+'px', 'padding':'2px', "margin-left": "1px", "margin-right": "1px" }); } currentImg.hover(function(){ s(this).css({ "background-color": options.highlight }); },function(){ if( wBorder ){ s(this).css({ 'background-color': '#fff' }); }else{ s(this).css({ 'background-color': '' }); } }); } }); }); } })( window, jQuery );