jQuery(document).ready(function($){
$( window ).load(function(){
$(‘.justified-gallery a’).each(function(){
var img=$(this).find(‘img’);
if($(this).find(‘img’).attr(‘alt’)==”){
// alert(‘yo’);
img.parent().find(“.caption” ).css(‘display’,’none’);
}
})
})
})
jQuery(document).ready(function(){
jQuery(“#mygallery_6”).justifiedGallery();
});
var lightbox_transition = ‘elastic’;
var lightbox_speed = 800;
var lightbox_fadeOut = 300;
var lightbox_title = false;
var lightbox_scalePhotos = true;
var lightbox_scrolling = false;
var lightbox_opacity = 0.201;
var lightbox_open = false;
var lightbox_returnFocus = true;
var lightbox_trapFocus = true;
var lightbox_fastIframe = true;
var lightbox_preloading = true;
var lightbox_overlayClose = true;
var lightbox_escKey = false;
var lightbox_arrowKey = false;
var lightbox_loop = true;
var lightbox_closeButton = true;
var lightbox_previous = “previous”;
var lightbox_next = “next”;
var lightbox_close = “close”;
var lightbox_html = false;
var lightbox_photo = false;
var lightbox_width = ”;
var lightbox_height = ”;
var lightbox_innerWidth = ‘false’;
var lightbox_innerHeight = ‘false’;
var lightbox_initialWidth = ‘300’;
var lightbox_initialHeight = ‘100’;
var maxwidth=jQuery(window).width();
if(maxwidth>900){maxwidth=900;}
var lightbox_maxWidth = maxwidth;
var lightbox_maxHeight = 700;
var lightbox_slideshow = false;
var lightbox_slideshowSpeed = 2500;
var lightbox_slideshowAuto = true;
var lightbox_slideshowStart = “start slideshow”;
var lightbox_slideshowStop = “stop slideshow”;
var lightbox_fixed = true;
jQuery(document).ready(function(){
jQuery(‘.huge_it_gallery_like_cont_77503 .huge_it_like_count’).each(function(){
if(jQuery(this).text()3||jQuery(this).text().length>4||jQuery(this).text().length>5)&&jQuery(this).text().length6||jQuery(this).text().length>7||jQuery(this).text().length>8)&&jQuery(this).text().length9||jQuery(this).text().length>10||jQuery(this).text().length>11){
jQuery(this).text(function (_,txt)
{
return txt.slice(0, -9)+’b’
});
}
})
jQuery(‘.huge_it_gallery_like_cont_77503 .huge_it_dislike_count’).each(function(){
if(jQuery(this).text()3||jQuery(this).text().length>4||jQuery(this).text().length>5)&&jQuery(this).text().length6||jQuery(this).text().length>7||jQuery(this).text().length>8)&&jQuery(this).text().length9||jQuery(this).text().length>10||jQuery(this).text().length>11){
jQuery(this).text(function (_,txt)
{
return txt.slice(0, -9)+’b’
});
}
})
var thumbLike;
jQuery(‘.huge_it_gallery_like_cont_77503 .huge_it_like_thumb’).each(function(){
thumbLike=jQuery(this).attr(‘data-status’);
if(thumbLike==’liked’){
jQuery(this).parent().find(‘.like_thumb_up’).addClass(‘like_thumb_active’);
jQuery(this).parent().addClass(‘like_font_active’);
}
})
var thumbDislike;
jQuery(‘.huge_it_gallery_like_cont_77503 .huge_it_dislike_thumb’).each(function(){
thumbDislike=jQuery(this).attr(‘data-status’);
if(thumbDislike==’disliked’){
jQuery(this).parent().find(‘.dislike_thumb_down’).addClass(‘like_thumb_active’);
jQuery(this).parent().addClass(‘like_font_active’);
}
})
function randomString(length, chars) {
var result = ”;
for (var i = length; i > 0; –i) result += chars[Math.round(Math.random() * (chars.length – 1))];
return result;
}
jQuery(document).on(“click tap”,”.huge_it_gallery_like_cont_77503 .huge_it_gallery_like_wrapper”,function(){
var image_id=jQuery(this).parent().find(‘.huge_it_like_count’).attr(‘id’);
var status=jQuery(“span.huge_it_like_thumb[id='”+image_id+”‘]”).attr(‘data-status’);
function setCookie(name, value, expires, path, domain, secure) {
document.cookie = name + “=” + escape(value) +
((expires) ? “; expires=” + expires : “”) +
((path) ? “; path=” + path : “”) +
((domain) ? “; domain=” + domain : “”) +
((secure) ? “; secure” : “”);
}
function getCookie(name) {
var cookie = ” ” + document.cookie;
var search = ” ” + name + “=”;
var setStr = null;
var offset = 0;
var end = 0;
if (cookie.length > 0) {
offset = cookie.indexOf(search);
if (offset != -1) {
offset += search.length;
end = cookie.indexOf(“;”, offset)
if (end == -1) {
end = cookie.length;
}
setStr = unescape(cookie.substring(offset, end));
}
}
return(setStr);
}
function delCookie(name) {
document.cookie = name + “=” + “; expires=Thu, 01 Jan 1970 00:00:01 GMT”;
}
var resStatus=jQuery(this).parent().find(“span.huge_it_like_thumb[id='”+image_id+”‘]”).attr(‘data-status’);
var resStatus2=jQuery(“.huge_it_dislike_thumb[id='”+image_id+”‘]”).attr(‘data-status’);
//alert(resStatus2);
/////////////////////////////
if(resStatus2==undefined){
if(resStatus==’unliked’){
date = new Date();
date.setHours(date.getFullYear() + 1);
var cookie=setCookie(‘Like_’+image_id, randomString(10, ‘0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ’), date.toUTCString());
}else if(resStatus==’liked’){
var cookie=getCookie(‘Like_’+image_id);
}
}else{
if(resStatus==’unliked’&&resStatus2==’unliked’){
date = new Date();
date.setHours(date.getFullYear() + 1);
var cookie=setCookie(‘Like_’+image_id, randomString(10, ‘0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ’), date.toUTCString());
}else if(resStatus==’unliked’&&resStatus2==’disliked’){
date = new Date();
date.setHours(date.getFullYear() + 1);
var newCookie=getCookie(‘Dislike_’+image_id);
var cookie=setCookie(‘Like_’+image_id, newCookie , date.toUTCString());
delCookie(‘Dislike_’+image_id);
}else if(resStatus==’liked’){
var cookie=getCookie(‘Like_’+image_id);
}
}
var data={
action:’huge_it_video_gallery_ajax’,
task:’like’,
image_id:image_id,
cook:getCookie(‘Like_’+image_id),
status:status
}
jQuery.post(‘https://afsic2016.conference-websites.co.uk/wp-admin/admin-ajax.php’,data,function(response){
if(response){
response=JSON.parse(response);
if(response.like){
var likeNumber=response.like;
if((likeNumber.length>3||likeNumber.length>4||likeNumber.length>5)&&likeNumber.length6||likeNumber.length>7||likeNumber.length>8)&&likeNumber.length9||likeNumber.length>10||likeNumber.length>11){
likeNumber=likeNumber.slice(0, -9)+’b’;
}
response.like=likeNumber;
}
if(response.dislike){
var dislikeNumber=response.dislike;
if((dislikeNumber.length>3||dislikeNumber.length>4||dislikeNumber.length>5)&&dislikeNumber.length6||dislikeNumber.length>7||dislikeNumber.length>8)&&dislikeNumber.length9||dislikeNumber.length>10||dislikeNumber.length>11){
dislikeNumber=dislikeNumber.slice(0, -9)+’b’;
}
response.dislike=dislikeNumber;
}
if(response.like3||likeNumber.length>4||likeNumber.length>5)&&likeNumber.length6||likeNumber.length>7||likeNumber.length>8)&&likeNumber.length9||likeNumber.length>10||likeNumber.length>11){
likeNumber=likeNumber.slice(0, -9)+’b’;
}
response.like=likeNumber;
}
if(response.dislike){
var dislikeNumber=response.dislike;
if((dislikeNumber.length>3||dislikeNumber.length>4||dislikeNumber.length>5)&&dislikeNumber.length6||dislikeNumber.length>7||dislikeNumber.length>8)&&dislikeNumber.length9||dislikeNumber.length>10||dislikeNumber.length>11){
dislikeNumber=dislikeNumber.slice(0, -9)+’b’;
}
response.dislike=dislikeNumber;
}
if(response.like
var imagemargin=0;
var imagerandomize=false;
var imagecssAnimation=false;
var imagecssAnimationSpeed=2000;
var imageheight= 120;
var imagejustify= true;
var imageshowcaption= true;
//var imagemaxheight=;
//var imagefixed=;
.justified-gallery {
width: 100%;
position: relative;
}
.justified-gallery a{
border:none;
}
.justified-gallery > a,
.justified-gallery > div {
position: absolute;
display: inline-block;
opacity: 0;
overflow:hidden;
filter: alpha(opacity=0);
/* IE8 or Earlier */
}
.justified-gallery > a > img,
.justified-gallery > div > img {
/* width: 200px !important;*/
position: absolute;
top: 50%;
left: 50%;
padding: 0;
}
.justified-gallery > a > .caption,
.justified-gallery > div > .caption {
display: none;
position: absolute;
bottom: 0;
padding: 5px;
left: 0;
right: 0;
margin: 0;
color: #3AD6FC;
font-size: 13px;
font-weight: 300;
font-family: sans-serif;
//margin-left: px;
background:rgba(255,28,28,0.9) !important;
overflow: hidden;
text-overflow: ellipsis;
white-space:nowrap;
}
.justified-gallery > a > .caption.caption-visible,
.justified-gallery > div > .caption.caption-visible {
display: initial;
opacity: 0.7;
filter: “alpha(opacity=70)”;
/* IE8 or Earlier */
-webkit-animation: justified-gallery-show-caption-animation 500ms 0 ease;
-moz-animation: justified-gallery-show-caption-animation 500ms 0 ease;
-ms-animation: justified-gallery-show-caption-animation 500ms 0 ease;
}
.justified-gallery > .entry-visible {
opacity: 1.0;
filter: alpha(opacity=100);
/* IE8 or Earlier */
-webkit-animation: justified-gallery-show-entry-animation 300ms 0 ease;
-moz-animation: justified-gallery-show-entry-animation 300ms 0 ease;
-ms-animation: justified-gallery-show-entry-animation 300ms 0 ease;
}
.justified-gallery > .spinner {
position: absolute;
bottom: 0;
margin-left: -24px;
padding: 10px 0 10px 0;
left: 50%;
opacity: initial;
filter: initial;
overflow: initial;
}
.justified-gallery > .spinner > span {
display: inline-block;
opacity: 0;
filter: alpha(opacity=0);
/* IE8 or Earlier */
width: 8px;
height: 8px;
margin: 0 4px 0 4px;
background-color: #000;
border-top-left-radius: 6px;
border-top-right-radius: 6px;
border-bottom-right-radius: 6px;
border-bottom-left-radius: 6px;
}
.play-icon {
position:absolute;
top:0px;
left:0px;
width:100%;
height:100%;
}
.load_more2 {
margin: 10px 0;
position:relative;
text-align:center;
width:100%;
}
.load_more_button2 {
border-radius: 10px;
display:inline-block;
padding:5px 15px;
font-size:14px !important;;
color:#FF1C1C !important;;
background:#26A6FC !important;
cursor:pointer;
}
.load_more_button2:hover{
color:#FF4242 !important;
background:#0FEFFF !important;
}
.loading2 {
display:none;
}
.paginate2{
font-size:18px !important;
color:#26A6FC !important;
text-align: center;
margin-top: 25px;
}
.paginate2 a{
border-bottom: none !important;
}
.icon-style2{
font-size: 18px !important;
color:#26A6FC !important;
}
.clear{
clear:both;
}
.play-icon.youtube-icon {background:url(https://afsic2016.conference-websites.co.uk/wp-content/plugins/gallery-images/Front_end/../images/play.youtube.png) center center no-repeat;}
.play-icon.vimeo-icon {background:url(https://afsic2016.conference-websites.co.uk/wp-content/plugins/gallery-images/Front_end/../images/play.vimeo.png) center center no-repeat;}












































































































































































































































































































































































































































































































































































































































































































































































































jQuery(document).ready(function($){
$( window ).load(function(){
$(‘.justified-gallery a’).each(function(){
var img=$(this).find(‘img’);
if($(this).find(‘img’).attr(‘alt’)==”){
// alert(‘yo’);
img.parent().find(“.caption” ).css(‘display’,’none’);
}
})
})
})
jQuery(document).ready(function(){
jQuery(“#mygallery_7”).justifiedGallery();
});