Deprecated: version_compare(): Passing null to parameter #1 ($version1) of type string is deprecated in /home/deborahharkness/public_html/wp-content/plugins/gravityforms/includes/addon/class-gf-addon.php on line 6014
Deprecated: Return type of GF_Field::offsetExists($offset) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/deborahharkness/public_html/wp-content/plugins/gravityforms/includes/fields/class-gf-field.php on line 84
Deprecated: Return type of GF_Field::offsetGet($offset) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/deborahharkness/public_html/wp-content/plugins/gravityforms/includes/fields/class-gf-field.php on line 90
Deprecated: Return type of GF_Field::offsetSet($offset, $data) should either be compatible with ArrayAccess::offsetSet(mixed $offset, mixed $value): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/deborahharkness/public_html/wp-content/plugins/gravityforms/includes/fields/class-gf-field.php on line 99
Deprecated: Return type of GF_Field::offsetUnset($offset) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/deborahharkness/public_html/wp-content/plugins/gravityforms/includes/fields/class-gf-field.php on line 108
Warning: Cannot modify header information - headers already sent by (output started at /home/deborahharkness/public_html/wp-content/plugins/gravityforms/includes/addon/class-gf-addon.php:6014) in /home/deborahharkness/public_html/wp-content/plugins/wp-fastest-cache/wpFastestCache.php on line 299
jQuery(document).ready(function($){
'use strict';
var $wrap=$('.eeb-form');
var $email=$wrap.find('#eeb-email');
var $display=$wrap.find('#eeb-display');
var prevEmail;
var getEncoded=function (){
if(!$email.val()){
return;
}
$wrap.find('#eeb-encoded-output').val('');
$.post(eeb_ef.ajaxurl, {
action: 'eeb_get_email_form_output',
eebsec:eeb_ef.security,
eebEmail: $email.val(),
eebDisplay: $display.val()||$email.val(),
eebMethod: $wrap.find('#eeb-encode-method').val()
}, function(response){
$wrap.find('#eeb-encoded-output').val(response);
$wrap.find('.eeb-output').fadeIn();
});
};
$wrap.find('.eeb-output').hide();
$email.keyup(function (){
var email=$email.val();
var display=$display.val();
if(!display||display===prevEmail){
$display.val(email);
}
prevEmail=email;
});
$wrap.find('#eeb-email, #eeb-display')
.keyup(function (){
if($display.val().length > 0){
$wrap.find('.eeb-example')
.html('' + $display.val() + '')
.parents('tr').fadeIn();
}else{
$wrap.find('.eeb-example').parents('tr').fadeOut();
}
$wrap.find('.eeb-output').fadeOut();
$wrap.find('#eeb-encoded-output').val('');
})
.keyup();
$wrap.find('#eeb-encode-method').bind('change keyup', function (){
getEncoded();
});
$wrap.find('#eeb-ajax-encode').click(function (){
getEncoded();
});
});
function ftg_getURLParameter(name){return decodeURIComponent((new RegExp('[?|&]'+name+'='+'([^&;]+?)(&|#|;|$)').exec(location.search)||[,""])[1].replace(/\+/g,'%20'))||null}var qualifyURL=function(url){var img=document.createElement('img');img.src=url;url=img.src;img.src=null;return url;};(function($,window,document,undefined){$.fn.visible=function(partial){if(!$(this).offset())return true;var $t=$(this),$w=$(window),viewTop=$w.scrollTop(),viewBottom=viewTop+$w.height(),_top=$t.offset().top,_bottom=_top+$t.height(),compareTop=partial===true?_bottom:_top,compareBottom=partial===true?_top:_bottom;return((compareBottom<=viewBottom)&&(compareTop>=viewTop));};var pluginName="finalTilesGallery",defaults={layout:'final',columns:[[4000,5],[1024,4],[800,3],[480,2],[320,1]],rowHeight:200,margin:10,minTileWidth:200,ignoreImageAttributes:true,imageSizeFactor:[[4000,.9],[1024,.8],[800,.7],[600,.6],[480,.5],[320,.3]],gridSize:10,disableGridSizeBelow:800,allowEnlargement:true,autoLoadURL:null,selectedFilter:'',onComplete:function(){},onUpdate:function(){},onLoading:function(){},debug:false};function Plugin(element,options){this.element=element;this.$element=$(element);this.settings=$.extend({},defaults,options);this._columnSize=0;this._defaults=defaults;this._name=pluginName;this.tiles=[];this._loadedImages=0;this._rows=[[]];this._currentRow=0;this._currentRowTile=0;this.edges=[];this.imagesData={};this.currentWidth=0;this.currentImageSizeFactor=1;this.currentColumnsCount=0;this.currentGridSize=0;this.ajaxComplete=false;this.isLoading=false;this.currentPage=1;this.init();}$.extend(Plugin.prototype,{print:function(text){if(this.settings.debug)console.log(text);},setCurrentImageSizeFactor:function(){this.currentImageSizeFactor=1;var ww=$(window).width();for(var i=0;i=ww)this.currentImageSizeFactor=this.settings.imageSizeFactor[i][1];}if(!this.currentImageSizeFactor)this.currentImageSizeFactor=1;this.print("current image size factor: "+this.currentImageSizeFactor+" ("+ww+")");},setCurrentColumnSize:function(){var ww=$(window).width();for(var i=0;i=ww)this.currentColumnsCount=this.settings.columns[i][1];}this._columnSize=Math.floor((this.currentWidth-(this.settings.margin*(this.currentColumnsCount-1)))/this.currentColumnsCount);this.print(this.currentWidth,this._columnSize);},setCurrentGridSize:function(){if(this.currentWidth=0){hash_class=hash_class.substring(1);instance.$element.find(".ftg-filters a").each(function(){if($(this).attr('href')!=ft){instance.$element.find('.item').each(function(){var img=$(this).parent().parent();if(img.hasClass(hash_class)==false){img.addClass('ftg-hidden-tile');}})
$(this).removeClass('selected');};});$('a[href="'+ft+'"]').addClass('selected');}}this.tiles=this.$element.find('.tile').not('.ftg-hidden-tile');this.currentWidth=this.$element.width();this.print("this.currentWidth: "+this.currentWidth);if(this.settings.layout!='columns'&&this.settings.layout!='rows'&&this.settings.layout!='final'){console.log("WARNING: unknown layout, falling back to 'final'.")}if(this.settings.layout=='columns'){this.setCurrentColumnSize();}var _resizeTo=0;this.setCurrentImageSizeFactor();this.setCurrentGridSize();$(window).resize(function(){_resizeTo=setTimeout(function(){if(instance.currentWidth!=instance.$element.width()){clearTimeout(_resizeTo);instance.print("this.currentWidth",this.currentWidth);instance.currentWidth=instance.$element.width();instance.setCurrentColumnSize();instance.setCurrentImageSizeFactor();instance.setCurrentGridSize();instance.refresh();}},500);});instance.isLoading=true;if(instance.settings.autoLoadURL){$(window).scroll(function(){if(!instance.ajaxComplete&&!instance.isLoading){if(instance.tiles.last().visible()){instance.isLoading=true;if(instance.settings.onLoading)instance.settings.onLoading();$.post(instance.settings.autoLoadURL,{page:++instance.currentPage,action:'load_chunk',pageSize:instance.settings.pageSize,finaltilesgallery:instance.settings.nonce,gallery:instance.settings.galleryId},function(html){if($.trim(html).length==0){instance.ajaxComplete=true;}else{instance.$element.find(".ftg-items").append(html);instance.tiles=instance.$element.find('.tile')
instance.loadImage();}});}}});}this.setupFilters();this.edges.push({left:0,top:0,width:this.currentWidth,index:0});this.loadImage();},addElements:function(html){this.$element.find(".ftg-items").append(html);this.tiles=this.$element.find('.tile')
this.loadImage();},removeAt:function(index){this.tiles[index].remove();this.refresh();},clear:function(){this.$element.find(".ftg-items").height(0).empty();this.refresh();},setupFilters:function(){var instance=this;instance.$element.find(".ftg-filters a").click(function(e){e.preventDefault();instance.$element.find(".ftg-filters a").removeClass("selected");$(this).addClass("selected");var ft=$(this).attr("href").replace("#ftg-set-","");if(ft=="ftgall"){instance.$element.find(".tile").removeClass("ftg-hidden-tile");}else{instance.$element.find(".tile").not(".ftg-set-"+ft).addClass("ftg-hidden-tile").end().filter(".ftg-set-"+ft).removeClass("ftg-hidden-tile");}instance.refresh();});},printEdges:function(){this.$element.find(".edge").remove();for(i=0;i");$e.append("top: "+this.edges[i].top+"
");$e.append("left: "+this.edges[i].left+"
");$e.append("width: "+this.edges[i].width+"
");$e.css({left:this.edges[i].left,top:this.edges[i].top,marginTop:-25,marginLeft:20});this.$element.append($e);}},printEdge:function(edge){var $e=$("");$e.append(""+edge.index+" "+edge.case+"
");$e.append("t: "+Math.round(edge.top)+" l: "+edge.left+"
");$e.append("width: "+edge.width+"
");$e.append("idx: "+edge.tileIndex+"
");$e.css({left:edge.left,top:edge.top,marginTop:-25,marginLeft:20});this.$element.append($e);},refresh:function(){this.$element.find(".edge").remove();this.edges=[{left:0,top:0,width:this.currentWidth}];this.tiles.removeClass("ftg-loaded ftg-enlarged");this.tiles=this.$element.find('.tile').not('.ftg-hidden-tile');this._loadedImages=0;this.loadImage();},getAvailableRowSpace:function(){return this.currentWidth-this.getBusyRowSpace();},getBusyRowSpace:function(){var space=0;for(var i=0;isize.width){instance.addImageToRow($item);}else{instance.fitImagesInRow();instance._currentRow++;instance._rows.push([]);instance.addImageToRow($item);}}$item.attr("src",this.src);instance.imagesData["tile"+instance._loadedImages]={width:size.width,height:size.height,owidth:img.width,oheight:img.height,src:img.src};instance.nextTile(addImage);}
img.onerror=function(){instance.print("error loading image: "+img.src);instance.nextTile(true);}
img.src=$item.data("ftg-src");$tile.data("ftg-type","image");break;case"iframe":var w=$item.attr("width")?parseInt($item.attr("width")):$item.data("width");var h=$item.attr("height")?parseInt($item.attr("height")):$item.data("height");var size={width:w,height:h,owidth:w,oheight:h};if(instance.settings.layout=="columns"){size.width=instance._columnSize;size.height=(size.width*size.oheight)/size.owidth;}instance.imagesData["tile"+instance._loadedImages]=size;$tile.data("ftg-type","iframe");instance.nextTile(true);break;default:instance.imagesData["tile"+instance._loadedImages]={width:parseInt($item.data("width")),height:parseInt($item.data("height")),owidth:parseInt($item.data("width")),oheight:parseInt($item.data("height"))};instance.nextTile(true);break;}},higherEdge:function(){var left=0;var _top=100000;var _left=0;var found=0;for(var i=0;imin){min=this.edges[i].top;}}return min;},alignEdge:function(edge,index){for(var i=0;i0){hEdge.top+=this.settings.margin;}$t.css({left:hEdge.left,top:hEdge.top,position:'absolute'});hEdge.enlarged=false;if(hEdge.widthw){this.print('tE');if(this.settings.layout=='columns'||hEdge.width-w>=this.settings.minTileWidth){hEdge.case='tE';this.print('tE1',hEdge.width,hEdge.left,this.currentWidth);var newEdge={left:hEdge.left+w+this.settings.margin,top:hEdge.top-(hEdge.top>0?this.settings.margin:0),width:hEdge.width-w-this.settings.margin,marginLeft:true,case:'NEW',index:hEdge.index+1}
this.edges.push(newEdge);}else{hEdge.case='tE2';this.print('tE2');this.print("enlargement",hEdge.width,hEdge.left,this.currentWidth);var m=hEdge.left+hEdge.width==this.currentWidth?0:this.settings.margin;var w2=hEdge.width;var h2=this.settings.allowEnlargement&&this.settings.layout!='rows'?(h/w)*w2:h;if(this.settings.allowEnlargement){$t.addClass("ftg-enlarged");hEdge.enlarged=true;}else{if(this.settings.layout!='rows')$t.find(".item").css({width:w,height:h});}w=w2;h=h2;}}hEdge.top+=h;if(this.currentGridSize){var diff=hEdge.top%this.currentGridSize;hEdge.top-=diff;h-=diff;}hEdge.left=hEdge.left;hEdge.width=w;var printEdge=true;var aligned=this.alignEdge(hEdge,tileIndex);if(aligned){if(aligned.side=='left'){this.removeEdge(hEdge);aligned.edge.width+=w+this.settings.margin;h=h-(hEdge.top-aligned.edge.top);hEdge.top-=h;printEdge=false;}else{this.removeEdge(aligned.edge);hEdge.width+=this.settings.margin+aligned.edge.width;printEdge=false;}$t.height(h);}if(this.$element.find(".ftg-items").height()0){$item.css({top:0-(hdiff/2)});}$t.addClass("ftg-loaded");}});$.fn[pluginName]=function(options){this.each(function(){if(!$.data(this,pluginName)){$.data(this,pluginName,new Plugin(this,options));}});return this;};$(function(){$(".ftg-social a").click(function(e){e.preventDefault();var social=$(this).data("social");var $tile=$(this).parents(".tile").first();var image=$tile.data("big");if(!image)image=$tile.find(".item").attr("src");var text=$.trim($tile.find(".subtitle").text());if(!text.length)text=document.title;var desc=$.trim($tile.find(".title").text());if(!desc.length)desc=document.title;if(social=="facebook"){var url="https://www.facebook.com/dialog/feed?app_id=1447224948871585&"+"link="+encodeURIComponent(location.href)+"&"+"display=popup&"+"name="+encodeURIComponent(desc)+"&"+"caption=&"+"description="+encodeURIComponent(text)+"&"+"picture="+encodeURIComponent(qualifyURL(image))+"&"+"ref=share&"+"actions={%22name%22:%22View%20the%20gallery%22,%20%22link%22:%22"+encodeURIComponent(location.href)+"%22}&"+"redirect_uri=http://www.final-tiles-gallery.com/facebook_redirect.html";var w=window.open(url,"ftgw","location=1,status=1,scrollbars=1,width=600,height=400");w.moveTo((screen.width/2)-(300),(screen.height/2)-(200));}if(social=="twitter"){var w=window.open("https://twitter.com/intent/tweet?url="+encodeURI(location.href.split('#')[0])+"&text="+encodeURI(desc+" "+text),"ftgw","location=1,status=1,scrollbars=1,width=600,height=400");w.moveTo((screen.width/2)-(300),(screen.height/2)-(200));}if(social=="pinterest"){var url="http://pinterest.com/pin/create/button/?url="+encodeURIComponent(location.href)+"&description="+encodeURI(desc+" "+text);url+=("&media="+encodeURIComponent(qualifyURL(image)));var w=window.open(url,"ftgw","location=1,status=1,scrollbars=1,width=600,height=400");w.moveTo((screen.width/2)-(300),(screen.height/2)-(200));}if(social=="google-plus"){var url="https://plus.google.com/share?url="+encodeURI(location.href);var w=window.open(url,"ftgw","location=1,status=1,scrollbars=1,width=600,height=400");w.moveTo((screen.width/2)-(300),(screen.height/2)-(200));}});});})(jQuery,window,document);