Skip to main content

Environmental Photographer of the Year



if (window.location.toString().match(//(privacy|cookie-policy)$/)) {
document.body.className += ' reduce-consent-tile';
}

// check updated functionals
ExpressApp.Gdpr.CheckNewFunctionals();

console.info('[GDPR] Init');

// cmp oath
window.__cmp('init', {
gdprAppliesGlobally: true,
uiUrl: window.CMPUI_URL,
uiCustomParams: {
vendor: 'dx'
}
});

// when user consented
window.__cmp('getConsentData', null, function (result) {
if (!!result.consentData) {
// we check pubvendors version
ExpressApp.Gdpr.GetPubvendors(function (vendorList) {
ExpressApp.Gdpr.SetGlobalVendorListVersion(vendorList.globalVendorListVersion >>> 0);
// cast to integer
vendorList.version = vendorList.version >>> 0;
// and compare that against last stored version
if (ExpressApp.Gdpr.GetPubVendorListVersion() !== vendorList.version) {
// we need to remove cookie otherwise user will get the functional screen
$.cookie('EuConsent', null, {expires: -1000, path: '/'});

// when they are different we need to re-consent user
console.log('We need to re-consent user. pubvendors.json has changed. Latest version: ', vendorList.version);
// open the modal (should display banner)
window.__cmp('renderConsents');
}
});
}
});

*




function getCookie(cname) {
var name = cname + "=";
var ca = document.cookie.split(';');
for(var i = 0; i < ca.length; i++) {
var c = ca[i];
while (c.charAt(0) == ' ') {
c = c.substring(1);
}
if (c.indexOf(name) == 0) {
return c.substring(name.length, c.length);
}
}
return "";
}
var REFERRER = document.referrer;
var cookielaw = getCookie("cookielaw");
if (cookielaw != '') {
var returning_visitor = true;
} else {
var returning_visitor = false;
}

window.utag_data = $.extend(true, window.utag_data || {}, {"site":{"id":"Express","country_code":"Gb","version_no":"1.01","version_name":"Atlas","environment":"Live"},"ads":{"adpath":"/34722903/Express/Pictures","inskin_yes":null,"in_image":false,"show_spot_im_adverts":false,"in_text":true,"amznslots":null,"inread":true,"native":false},"ad_slots":[{"name":"div-gpt-ad150861910142802655-1","sizes":[[1,1],[728,90],[970,250],[970,90]],"targeting":{"pos":["top"],"home":["false"]},"mobile":false},{"name":"div-gpt-ad150861910142802655-2","sizes":[[300,250]],"targeting":{"pos":["right"],"home":["false"]},"mobile":false},{"name":"div-gpt-ad150861910142802655-3","sizes":[[300,250]],"targeting":{"pos":["right2"],"home":["false"]},"mobile":false},{"name":"div-gpt-ad150861910142802655-4","sizes":[[300,250]],"targeting":{"pos":["right3"],"home":["false"]},"mobile":false},{"name":"div-gpt-ad150861910142802655-6","sizes":[[1,1]],"targeting":{"pos":["middle"],"home":["false"]},"mobile":false},{"name":"div-gpt-ad150861910142802655-oop","targeting":{"pos":["outofpage"],"home":["false"]},"mobile":false}],"page":{"type":"galleries","name":["Environmental Photographer of the Year","Pictures","Pics"],"site_section":null,"site_sub_section":"","breadcrumbs":["home",null],"referrer":REFERRER,"url":"https://www.express.co.uk/pictures/pics/6391/Environmental-Photographer-of-the-Year-pictures"},"user":{"dmp_id":lotamePid,"returning":returning_visitor,"cf_country":"US"},"device":{"type":"desktop"}});

if (window.utag_data.ads.in_image) {
window.utag_data.ads.in_image = ExpressApp.Gdpr.VendorSupported(1009);
}
window.utag_data.user.obfuscated_ip = window.utag_data.user.obfuscated_ip = function() {
function getObfuscatedUserIpAddress(ip_address) {
var script = document.createElement('script');
script.src = 'https://api.ipify.org?format=jsonp&callback=window.utag_data.user.obfuscated_ip';
document.getElementsByTagName('head')[0].appendChild(script);
}
window.utag_data.user.obfuscated_ip = function(data) {
function obfuscateTheIp(ip_pieces, ip_version) {
var toreturn = '';
var separator = ip_version === 'v6' ? ':' : '.';
for (i = 0; i < ip_pieces.length - 1; i++) {
toreturn += ip_pieces[i] + separator;
}
toreturn += 'xxx' + (ip_version == 'v6' ? 'x' : '');
return toreturn;
}

var userip = data.ip;
if (!userip.length) {
return null;
}
var ip_pieces = userip.split(".");
if (ip_pieces.length) {
window.utag_data.user.obfuscated_ip= obfuscateTheIp(ip_pieces, 'v4');
} else {
var ip_pieces = userip.split(":");
if (ip_pieces.length) {
window.utag_data.user.obfuscated_ip= obfuscateTheIp(ip_pieces, 'v6');
}
}
return null;
};
getObfuscatedUserIpAddress();
}, window.utag_data.user.obfuscated_ip();

(function(a,b,c,d) { a='//tags.tiqcdn.com/utag/northern-and-shell/dx/prod/utag.js'; b=document;c='script';d=b.createElement(c);d.src=a;d.type='text/java'+c;d.async=true; a=b.getElementsByTagName(c)[0];a.parentNode.insertBefore(d,a); })();




















Express. Home of the Daily and Sunday Express.
express_logo













12°C









Environmental Photographer of the Year


Thu, June 2, 2016

The 2016 Atkins CIWEM Environmental Photographer of the Year finalists have been revealed


>













Also in this Gallery





  • Needle of the Sea, Ray Toh, Qatar - Needle of the Sea, Ray Toh, Qatar



  • Black Hill, Manaton, James Walker, Swaling in Dartmoor National Park - Black Hill, Manaton, James Walker, Swaling in Dartmoor National Park



  • Houcheraghi, Shadpoor Pooyan, Iran - Houcheraghi, Shadpoor Pooyan, Iran



  • Slamet the Survivor, Björn Vaughn, Nicosia, Cyprus - Slamet the Survivor, Björn Vaughn, Nicosia, Cyprus



  • Waste disposal gone wrong, Konstantinos Stergiopoulos, Nicosia, Cyprus - Waste disposal gone wrong, Konstantinos Stergiopoulos, Nicosia, Cyprus



  • Pollution, Praveen Singh, Indore, India - Pollution, Praveen Singh, Indore, India



  • Working on Reflections, Joesph Sim Ming Kwang, Singapore - Working on Reflections, Joesph Sim Ming Kwang, Singapore



  • Pearl Farm, Richard Sidey, Manihkik, Cook Islands - Pearl Farm, Richard Sidey, Manihkik, Cook Islands



  • Solar Portraits, Ruban Salgado Escudero, India - Solar Portraits, Ruban Salgado Escudero, India



  • Mannequins, Stepan Rudyk, Turkey - Mannequins, Stepan Rudyk, Turkey



  • Huicholes del Tabaco, César Rodríguez, Santiago, Nayarit, Mexico - Huicholes del Tabaco, César Rodríguez, Santiago, Nayarit, Mexico



  • Huicholes del Tabaco, César Rodríguez, Santiago, Nayarit, Mexico - Huicholes del Tabaco, César Rodríguez, Santiago, Nayarit, Mexico



  • A story of a dead horse, Jordi Pizarro, Series - A story of a dead horse, Jordi Pizarro, Series



  • Irrigation, Hannah Mornement, Lalibela – Ethiopia
    - Irrigation, Hannah Mornement, Lalibela – Ethiopia




  • Floods on boxing day, Steve Morgan, Hebden Bridge, West Yorkshire, UK
    - Floods on boxing day, Steve Morgan, Hebden Bridge, West Yorkshire, UK




  • Seaweed Farming, Eric Madeja, Malaysian Borneo - Seaweed Farming, Eric Madeja, Malaysian Borneo



  • Geothermal Energy, Larry Louie, Iceland - Geothermal Energy, Larry Louie, Iceland



  • Fire Burned Forest In Riau, Yt Haryono - Fire Burned Forest In Riau, Yt Haryono



  • Transhumance in Spain, Susana Girón, Ubeda (Jaen, Spain)
    - Transhumance in Spain, Susana Girón, Ubeda (Jaen, Spain)




  • Pollution in a foundry, Raju Ghosh, Howrah - Pollution in a foundry, Raju Ghosh, Howrah



  • The Masked City, Sean Gallagher, Beijing China - The Masked City, Sean Gallagher, Beijing China



  • The War of the Worlds, Anton Frolov, Lake Atitlan, Guatemala - The War of the Worlds, Anton Frolov, Lake Atitlan, Guatemala



  • Approaching Storm, Church forest, West Bengal, India - Approaching Storm, Church forest, West Bengal, India



  • Coal fueled power station and water intake on the Hoogly River in India, Stuart Chape, India - Coal fueled power station and water intake on the Hoogly River in India, Stuart Chape, India



  • Sinking Venice, Antonio Busiello, Venice - Sinking Venice, Antonio Busiello, Venice



  • Vivekananda Flyover Has Fallen Down, Dipayan Bhar Kolkata - Vivekananda Flyover Has Fallen Down, Dipayan Bhar Kolkata



  • The place I lost my leg, Davoud Ameri, Iran - The place I lost my leg, Davoud Ameri, Iran



  • Hope, Jennifer Adler, Florida - Hope, Jennifer Adler, Florida



  • Mainstream, Adak Arnab, India - Mainstream, Adak Arnab, India



  • Behind the Taj Mahal,Mustafa Abdul Hadi, Agra India - Behind the Taj Mahal,Mustafa Abdul Hadi, Agra India











{% if (!o.coverID) { %}
{%=o.galleryAlt%}
{%=o.galleryAlt%}
{% } else { %}
{%=o.galleryAlt%}
{%=o.galleryAlt%}
{% } %}



{%=o.galleryTitle%}


{%=o.galleryCreatedFormatted%}







  • Daily Star


  • OK! Magazine


  • new! Magazine


  • Star Magazine





//








var drawGigyaSocialLinks = function(link, photo, title) {
var act = new gigya.socialize.UserAction();

act.setTitle(title);
act.setLinkBack(link);
act.addActionLink("See the gallery", link);
act.addMediaItem({
type: 'image',
src: photo,
href: link
});

gigya.socialize.showShareBarUI({
containerID: 'componentDiv3',
shareButtons: [
{ // Facebook Like button
provider:'facebook',
tooltip:'Recommend this on Facebook',
action:'recommend',
font:'arial'
},
{ // Twitter Tweet button
provider:'twitter',
tooltip:'Share on Twitter',
defaultText: title + ' (via @daily_express)',
related:'Daily_Star'
},
{ // Google +1 button
provider:'googleplus-share',
tooltip:'Recommend this on Google',
size:'medium'
},
{ // Share
provider:'share',
tooltip:'Share',
userMessage:'default user message'
},
{ // Email button
provider:'email',
tooltip:'Email this',
iconOnly: true
},
{ // Email button
provider:'print',
tooltip:'Print this',
iconOnly: true
}
],
userAction: act,
action: 'recommend',
onSendDone: function(){
ExpressApp.GoogleAnalytics.TrackEvent('social', 'share', title);
},
onShareButtonClicked: function(){
ExpressApp.GoogleAnalytics.TrackEvent('social', 'intent', title);
}
});
};

drawGigyaSocialLinks('/pictures/pics/6391/Environmental-Photographer-of-the-Year-pictures', 'https://cdn.images.express.co.uk/img/dynamic/galleries/x701/139133.jpg', '');

// <![CDATA[
$.extend(ExpressApp, {
Gallery: {
galleryListShell: '#galleryListShell',
galleriesTrigger: '#galleryList',
searchFormTrigger: '#GallerySearchEngineForm_Ajax',
loadMoreTrigger: '#loadMore',
scrollLoadingLock: false,
scrollLoadingCounter: 0,
Init: function () {
ExpressApp.Gallery.Listener();
},
Listener: function () {
$(window).scroll(function() {
var galleryListShell = $(ExpressApp.Gallery.galleryListShell)[0].getBoundingClientRect();

// bottom of gallery list shell
if(galleryListShell.bottom - $(window).height() < 0 && !ExpressApp.Gallery.scrollLoadingLock && ExpressApp.Gallery.scrollLoadingCounter < 5)
{
ExpressApp.Gallery.LoadMore();
}
});

},
LoadMore: function() {
var trigger = this.loadMoreTrigger;
var target = this.galleriesTrigger+' article';
var options = {
url: $(trigger).attr('href') + '&aid',
itemTpl: 'tmpl-gallery',
limit: 12
};

var that = this;
if(ExpressApp.Gallery.scrollLoadingLock || !$(trigger).length) {
return false;
}

var offset = $(target).length;
$.ajax({
url: options.url,
dataType: "json",
success: function(data){
// change url of a trigger
var href = $(trigger).attr('href').split('?');
var deparamed = $.parseParams(href[1]);
// safe check
if(typeof deparamed.o == undefined) {
deparamed.o = 0;
}
deparamed.o = parseInt(deparamed.o) + parseInt(options.limit);

var url = href.join('?');

// change url in browser if one supports it
if(typeof window.history.pushState == 'function') {
window.history.pushState({}, '', url);
}

// Google Analytics
if (typeof _gaq === "object") {
_gaq.push(['_trackPageview'], url);
}
if (typeof ga === "function") {
ga('send', 'pageview', url);
}

(self.COMSCORE && COMSCORE.beacon({c1: "2", c2: "12961652"}));
ExpressApp.Parsely.TrackDynamicContent(url, document.referrer, "Pictures - load more");

// set new url
href[1] = $.param(deparamed);
options.url = href.join('?');
$(trigger).attr('href', options.url);

// parsing template
for (var i in data.galleries) {
$(ExpressApp.Gallery.galleriesTrigger).append(
tmpl(options.itemTpl, data.galleries[i])
);
}

var $fxDiv = $('
'); // animation queue
var $fxQueue = $fxDiv.queue();
var $el = $(target);
var count = data.galleries.length + offset;
for (var i=offset; i<count; i++){
$fxQueue.push($.proxy(function(next){
$el.eq(this.it).slideDown(100, function() {
$(this).removeAttr('class');
next();
});
},{it: i}));
}
$fxDiv.queue($fxQueue);

if (data.more === false) { // hide loadMore button if there is no more articles
$(trigger).fadeOut(100, function() {$(this).remove()})
}

$(window).trigger('scroll'); // for trigger lazy loading of images
},
beforeSend: function(){
ExpressApp.Gallery.scrollLoadingLock = true;
$(trigger).addClass('blocked');

ExpressApp.Preload.Start($(trigger), {
right: 15,
left: 'auto'
});
},
complete: function(){
ExpressApp.Preload.Stop($(trigger));
ExpressApp.Gallery.scrollLoadingCounter++;

ExpressApp.Gallery.scrollLoadingLock = false;
$(trigger).removeClass('blocked');
}
});
}
},
GalleryCarousel: {
resizeRatio: 0.78841870824053,

galleryShell: '#galleryShell',
topNaviTrigger: '#galleryTopNavi',
carouselShellTrigger: '#galleryCarouselShell',
carouselTrigger: '#galleryCarousel',
photoTrigger: '#galleryMainPhoto',
photoShellTrigger: '#galleryMainPhotoShell',
photoActionsTrigger: '#galleryMainPhotoActions',

currentPhoto: 139133,

options: {
// options
specialBehaviour: false,
initialPlayButtonState: true, // true - PAUSE, false - PLAY
// event handlers
onInit: null,
onPlaySlideShowClicked: null
},

LazyThumbLoad: function($img) {
$img.load(function(){
$img.fadeIn();
$(this).removeClass('lazy-carousel').addClass('loaded');
});
$img.attr('src', $img.attr('data-src'));
},
TopNavi: function() {
$(ExpressApp.GalleryCarousel.topNaviTrigger+' .btn.prev').click(function(e) {
ExpressApp.GalleryCarousel.ChangeMainPhoto($(ExpressApp.GalleryCarousel.carouselTrigger+' li[data-picture-id='+ExpressApp.GalleryCarousel.currentPhoto+']').attr('data-picture-prev'));
});
$(ExpressApp.GalleryCarousel.topNaviTrigger+' .btn.next').click(function(e) {
ExpressApp.GalleryCarousel.ChangeMainPhoto($(ExpressApp.GalleryCarousel.carouselTrigger+' li[data-picture-id='+ExpressApp.GalleryCarousel.currentPhoto+']').attr('data-picture-next'));
});

$(ExpressApp.GalleryCarousel.photoShellTrigger).swipe({
excludedElements: "button, input, select, textarea, .noSwipe",
swipeLeft: function(event, direction) {
$(this).find('a.next').click();
},
swipeRight: function(event, direction) {
$(this).find('a.prev').click();
}
});

},
PhotoLoaded: function(img) {
var h = img.height,
w = img.width;

$.ajax({
url: '/galleries/wh/' + $(img).attr('data-id') + '/' + w + '/' + h,
});

if ($('#galleryMainPhotoShell').width() a', function (e) {
e.preventDefault();

var id = $(this).parent().attr('data-picture-id');
ExpressApp.GalleryCarousel.ChangeMainPhoto(id);
});
},
PhotoNaviClick: function () {
$(document).on('click', ExpressApp.GalleryCarousel.photoTrigger + ' a', function (e) {
e.preventDefault();

var id = $(this).attr('data-picture-id');
ExpressApp.GalleryCarousel.ChangeMainPhoto(id);
});
},
InitCallback: function (carousel, state) {
$(ExpressApp.GalleryCarousel.carouselShellTrigger + ' .jcarousel-next').append('');
$(ExpressApp.GalleryCarousel.carouselShellTrigger + ' .jcarousel-prev').append('');
},
ItemVisibleInCallbackBeforeAnimation: function (carousel, item, idx, state) {
ExpressApp.GalleryCarousel.LazyThumbLoad($(item).find('img.lazy-carousel'));

if (state == 'init') {
return;
}

jQuery('img', item).fadeIn(200);
},
Start: function (options) {
$.extend(this.options, options);

$(ExpressApp.GalleryCarousel.carouselTrigger).jcarousel({
start: 1,
scroll: 10,
initCallback: ExpressApp.GalleryCarousel.InitCallback,
itemVisibleInCallback: {
onBeforeAnimation: ExpressApp.GalleryCarousel.ItemVisibleInCallbackBeforeAnimation
}
});
ExpressApp.GalleryCarousel.TopNavi();
ExpressApp.GalleryCarousel.ThumbClick();
ExpressApp.GalleryCarousel.PhotoNaviClick();

if (this.options.specialBehaviour) {
ExpressApp.GallerySlideshow.Slideshow.ChangeButtons(this.options.initialPlayButtonState);
}

if (typeof this.options.onPlaySlideShowClicked === 'function') {
$('[data-button="gallerySlideshow"]').on('click', this.options.onPlaySlideShowClicked);
}

typeof this.options.onInit === 'function' && this.options.onInit();
}
},
GallerySlideshow: {
initiated: false,
modal: null,
stop: false,
counter: 1,

Start: function() {
ExpressApp.GallerySlideshow.InitModal();
ExpressApp.GallerySlideshow.Listener();
},
InitModal: function() {
if (ExpressApp.GallerySlideshow.initiated) {
return;
}

ExpressApp.GallerySlideshow.modal = $('
').addClass('reveal-modal reveal-dynamic GallerySlideshowModal').appendTo('body');

var $currentPhoto = $(ExpressApp.GalleryCarousel.photoTrigger).find('img'),
$currentPhotoActions = $(ExpressApp.GalleryCarousel.photoActionsTrigger),
data = {
photoSrc: $currentPhoto.attr('src'),
photoAlt: $currentPhoto.attr('alt'),
photoDescription: $currentPhotoActions.find('.jq-photo-caption').html()
};

ExpressApp.GallerySlideshow.ReplaceModalBody(
ExpressApp.GallerySlideshow.GetModalBody(data, false, false),
false
);

ExpressApp.GallerySlideshow.modal.reveal();

ExpressApp.GallerySlideshow.Slideshow.Start();
ExpressApp.GallerySlideshow.Social.Init(window.location.href, data.photoSrc, data.photoAlt);
ExpressApp.GallerySlideshow.Ads.Init();

ExpressApp.GallerySlideshow.initiated = true;
},
ReplaceModalBody: function(modalBody, replaceOnlyContent) {
if (!ExpressApp.GallerySlideshow.modal) {
return;
}

if (replaceOnlyContent) {
ExpressApp.GallerySlideshow.modal.find('.GallerySlideshow').empty().html(modalBody);
} else {
ExpressApp.GallerySlideshow.modal.empty().html(modalBody);
}
ExpressApp.GallerySlideshow.Listener();
},
GetModalBody: function(content, isButtonPaused, getOnlyContent) {
var contentData = {
photoSrc: content.photoSrc,
photoAlt: content.photoAlt,
photoDescription: content.photoDescription,
photoCredit: content.photoCredit,
photoNo: $(ExpressApp.GalleryCarousel.topNaviTrigger + ' .jq-current-photo').text(),
isButtonPaused: isButtonPaused
};

if (contentData.photoCredit) {
contentData.photoDescription = contentData.photoDescription + " [" + contentData.photoCredit + "]";
}

if (getOnlyContent) {
return tmpl("tmpl-gallery-slideshow-content", contentData);
} else {
return tmpl("tmpl-gallery-slideshow", {
gallerySlideshowContent: tmpl("tmpl-gallery-slideshow-content", contentData)
});
}
},
GetPhotoData: function(id) {
var largestimage = $(ExpressApp.GalleryCarousel.carouselTrigger + ' li[data-picture-id=' + id + ']').attr('data-picture-largestimage'),
name = $(ExpressApp.GalleryCarousel.carouselTrigger + ' li[data-picture-id=' + id + ']').attr('data-picture-name'),
credit = $(ExpressApp.GalleryCarousel.carouselTrigger + ' li[data-picture-id=' + id + ']').attr('data-picture-credit'),
alt = $(ExpressApp.GalleryCarousel.carouselTrigger + ' [data-picture-id="' + id + '"] > a > img').attr('alt'),
description = $(ExpressApp.GalleryCarousel.carouselTrigger + ' [data-picture-id="' + id + '"] > a > img').attr('title');

return {
photoSrc: 'https://cdn.images.express.co.uk/img/dynamic/' + 'galleries/' + largestimage + '/' + ((name && name.length) ? name + '-' + id : id) + '.jpg',
photoAlt: alt,
photoCredit: credit,
photoDescription: description
};
},
Slideshow: {
sliderIntervalID: null,
interval: 5000,

Start: function(startImmediately) {
if (startImmediately) {
setTimeout(function() {
ExpressApp.GallerySlideshow.Navigation.GoNext();
}, 500);
}

ExpressApp.GallerySlideshow.Slideshow.sliderIntervalID = setInterval(function() {
ExpressApp.GallerySlideshow.Navigation.GoNext();
}, ExpressApp.GallerySlideshow.Slideshow.interval);

ExpressApp.GallerySlideshow.Slideshow.ChangeButtons(true);

ExpressApp.GallerySlideshow.modal.bind('reveal:closed', function() {
ExpressApp.GallerySlideshow.modal.remove();
ExpressApp.GallerySlideshow.Slideshow.Stop();

ExpressApp.GallerySlideshow.initiated = false;
});
},
Stop: function() {
ExpressApp.GallerySlideshow.Slideshow.ChangeButtons(false);

clearInterval(ExpressApp.GallerySlideshow.Slideshow.sliderIntervalID);
},
Restart: function() {
if ($('.GallerySlideshow [data-button="slideshow"]').data('state') === 'paused') {
return;
}

clearInterval(ExpressApp.GallerySlideshow.Slideshow.sliderIntervalID);

ExpressApp.GallerySlideshow.Slideshow.sliderIntervalID = setInterval(function() {
ExpressApp.GallerySlideshow.Navigation.GoNext();
}, ExpressApp.GallerySlideshow.Slideshow.interval);
},
ChangeButtons: function(play) {
var $button = $('.GallerySlideshow [data-button="slideshow"], [data-button="gallerySlideshow"]');

// Clicked "Play"
if (play) {
$button.data('state', 'played')
.removeClass('play')
.addClass('pause')
.text('Pause slideshow');
}
// Clicked "Pause"
else {
$button.data('state', 'paused')
.removeClass('pause')
.addClass('play')
.text('Play slideshow');
}
}
},
Navigation: {
CurrentIndex: function() {
return $('#galleryCarousel').find('li[data-picture-id="' + ExpressApp.GalleryCarousel.currentPhoto + '"]').index();
},
MoveToSlide: function(targetIndex) {
var thumbnail = $('#galleryCarousel').find('li[data-picture-position="' + targetIndex + '"]');

ExpressApp.GalleryCarousel.ChangeMainPhoto(thumbnail.attr('data-picture-next'));
},
GoNext: function() {
var newPhotoId, newLink;

$('.GallerySlideshow').removeClass('nopadding');
newPhotoId = $(ExpressApp.GalleryCarousel.photoTrigger + ' a.next').data('picture-id');
newLink = $(ExpressApp.GalleryCarousel.photoTrigger + ' a.next').attr('href');

$(ExpressApp.GalleryCarousel.photoTrigger + ' a.next').trigger('click');

var data = ExpressApp.GallerySlideshow.GetPhotoData(newPhotoId);

ExpressApp.GallerySlideshow.ReplaceModalBody(
ExpressApp.GallerySlideshow.GetModalBody(
data,
$('.GallerySlideshow [data-button="slideshow"]').data('state') === 'paused',
true
),
true
);

ExpressApp.GallerySlideshow.Social.Init(newLink, data.photoSrc, data.photoAlt);
ExpressApp.GallerySlideshow.Counter();
},
GoPrev: function() {
var newPhotoId, newLink;

$('.GallerySlideshow').removeClass('nopadding');

if ($(ExpressApp.GalleryCarousel.photoTrigger + ' a.prev:not(.dNone)').size()) {
newPhotoId = $(ExpressApp.GalleryCarousel.photoTrigger + ' a.prev').data('picture-id');
newLink = $(ExpressApp.GalleryCarousel.photoTrigger + ' a.prev').attr('href');

$(ExpressApp.GalleryCarousel.photoTrigger + ' a.prev').trigger('click');
} else {
newPhotoId = $(ExpressApp.GalleryCarousel.carouselTrigger + ' li:last-child').data('picture-id');
newLink = $(ExpressApp.GalleryCarousel.carouselTrigger + ' li:last-child a').attr('href');

$(ExpressApp.GalleryCarousel.carouselTrigger + ' li:last-child a').trigger('click');
}

var data = ExpressApp.GallerySlideshow.GetPhotoData(newPhotoId);

ExpressApp.GallerySlideshow.ReplaceModalBody(
ExpressApp.GallerySlideshow.GetModalBody(
data,
$('.GallerySlideshow [data-button="slideshow"]').data('state') === 'paused',
true
),
true
);

ExpressApp.GallerySlideshow.Social.Init(newLink, data.photoSrc, data.photoAlt);
ExpressApp.GallerySlideshow.Counter();
}
},
Social: {
Init: function(link, src, title) {
var act = new gigya.socialize.UserAction();

act.setTitle(title);
act.setLinkBack(link);
act.addActionLink("See the gallery", link);
act.addMediaItem({
type: 'image',
src: src,
href: link
});

gigya.socialize.showShareBarUI({
containerID: 'gallerySlideshowShareBar',
shareButtons: [
{
provider: 'twitter',
iconImgUp: 'https://cdn.images.express.co.uk/img/page/icons/share/twitter.png'
},
{
provider: 'facebook',
iconImgUp: 'https://cdn.images.express.co.uk/img/page/icons/share/facebook.png'
},
{
provider: 'googleplus',
iconImgUp: 'https://cdn.images.express.co.uk/img/page/icons/share/google.png'
},
{
provider: 'pinterest',
iconImgUp: 'https://cdn.images.express.co.uk/img/page/icons/share/pinterest.png'
}
],
userAction: act,
action: 'recommend',
showCounts: 'none',
noButtonBorders: true,
showTooltips: false,
iconsOnly: true,
onSendDone: function(){
ExpressApp.GoogleAnalytics.TrackEvent('social', 'share', title);
},
onShareButtonClicked: function(){
ExpressApp.GoogleAnalytics.TrackEvent('social', 'intent', title);
}
});
}
},
Ads: {
Init: function() {
googletag.cmd.push(function() {
googletag.display('div-gpt-ad-1426869221205-0');
});
},
Refresh: function() {
googletag.pubads().refresh([gptadslots[9]]);
}
},
Counter: function() {
ExpressApp.GallerySlideshow.counter++;
if (ExpressApp.GallerySlideshow.counter > 4 && ExpressApp.GallerySlideshow.counter % 5 === 1) {
ExpressApp.GallerySlideshow.Ads.Refresh();
}
},
Listener: function() {
// Click on the button "Play slideshow" in the gallery
$('[data-button="gallerySlideshow"]').click(function() {
ExpressApp.GallerySlideshow.InitModal();
ExpressApp.GallerySlideshow.Listener();
});

// Click on the big photo in modal slideshow
// Click on the "Next" button on the modal slideshow
$('.GallerySlideshow .Photo > img, .GallerySlideshow [data-navi="next"]').click(function() {
ExpressApp.GallerySlideshow.Navigation.GoNext();
ExpressApp.GallerySlideshow.Slideshow.Stop();
});

// Click on the "Prev" button on the modal slideshow
$('.GallerySlideshow [data-navi="prev"]').click(function() {
ExpressApp.GallerySlideshow.Navigation.GoPrev();
ExpressApp.GallerySlideshow.Slideshow.Stop();
});

// Click on the "Pause/Play slideshow" button on the modal slideshow
$('.GallerySlideshow [data-button="slideshow"]').click(function() {
// Clicked "Play"
if ($(this).data('state') === 'paused') {
ExpressApp.GallerySlideshow.Slideshow.Start(true);
}
// Clicked "Pause"
else {
ExpressApp.GallerySlideshow.Slideshow.Stop();
}
});

// Click on the "Close" button on the modal slideshow
$('.GallerySlideshow [data-button="close"]').click(function() {
ExpressApp.GallerySlideshow.modal.trigger('reveal:close');
});
}
}
});

ExpressApp.Gallery.Init();
ExpressApp.Social.GooglePlus(); // Google+
ExpressApp.Social.Twitter(); // Twitter
ExpressApp.Social.Facebook(); // Facebook

$(window).load(function() {
ExpressApp.GalleryCarousel.PhotoResized('#galleryMainPhotoShell img');
});
$(window).on('resize', function() {
ExpressApp.GalleryCarousel.PhotoResized('#galleryMainPhotoShell img');
});

var startGallerySlideshow = function (type) {
if (this.loaded) {
console && console.info("Slideshow already initialized. Moving along.", "Initiated by: " + type);

return;
}

this.loaded = true;

var galleryUrl = '/pictures/slideshow/6391';

// Init popup gallery
ExpressApp.EmbededGalleryV2.Initiate({
url: galleryUrl,
followRelatedGalleriesHref: true,
data: {
gallery_version: 2,
is_standalone: 1
},
openOnInit: true
});
};
var openPopupGallery = function () {
ExpressApp.EmbededGalleryV2.OpenModal(function () {
// Get carousel's current img index
var imgIndex = ExpressApp.GallerySlideshow.Navigation.CurrentIndex() + 1;
// Set this same index in the popup gallery
if (imgIndex > 1) {
ExpressApp.EmbededGalleryV2.SpecificImage(imgIndex);
}
});
};

$(document).ready(function () {
startGallerySlideshow('ready');
});
(function () {
setTimeout(function () {
startGallerySlideshow('timeout');
}, 2000);
})();

/**
* Initialization of embedded slide-show and the popup gallery
*/
$(function() {
ExpressApp.GalleryCarousel.PhotoResized('#galleryMainPhotoShell img');
ExpressApp.GalleryCarousel.Start({
specialBehaviour: true,
initialPlayButtonState: false,
onPlaySlideShowClicked: openPopupGallery,
onInit: function () {
// Set the proper active image index in the embedded gallery after closing the overlay gallery
var imgIndex = null;
$(document)
.on('gallery.beforeclose', function() {
imgIndex = ExpressApp.EmbededGalleryV2.currentImage - 1;
})
.on('gallery.afterclose', function() {
imgIndex != null && ExpressApp.GallerySlideshow.Navigation.MoveToSlide(imgIndex);
});
}
});
});
// ]]>



{%#o.gallerySlideshowContent%}






Popular posts from this blog

Full-time equivalent

Bicuculline

さくらももこ