Unilever Sustainable Living Young Entrepreneurs Awards

Christopher Heald's picture
Undefined
<iframe width="420" height="315" src="http://www.youtube.com/embed/iIKsSXz4KQU" frameborder="0" allowfullscreen></iframe> <div id="fb-root"></div> <script>(function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) return; js = d.createElement(s); js.id = id; js.src = "//connect.facebook.net/all.js#xfbml=1&appId=122805084416482"; fjs.parentNode.insertBefore(js, fjs); }(document, 'script', 'facebook-jssdk'));</script> <table align="center" cellpadding="5" cellspacing="5" style="width: 100%"> <tr> <td width="50%"><div class="fb-like-box" data-href="https://www.facebook.com/ashokaschangemakers" data-width="460" data-height="595" data-show-faces="true" data-stream="true" data-show-border="true" data-header="true"></div></td> <td><a class="twitter-timeline" href="https://twitter.com/search?q=%23sustliving" data-widget-id="372482892183502849">Tweets about "#sustliving"</a> <script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+"://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script> </td> </tr> </table>
<script> $('#ccs-header').before('<style> .nominate-button-wrapper {visibility:hidden;display:none;} .buttonText { font: 14px/1.5 "Futura Std", Helvetica, Arial, sans-serif; color: #fff; font-weight: bold; letter-spacing: 1px; text-transform: uppercase; } .buttontext a { color: #fff; text-decoration: none; } .buttontext a:hover { color: #fff; text-decoration: none; } #button1, #button2, #button3, #button4, #button5 { float: left; border: none; height: 38px; width: 181px; overflow: hidden; display: block; text-align: center; line-height: 18px; margin-left: 2.5px; margin-right: 2.5px; margin-top: 10px; /*Transition*/ -webkit-transition: All 0.5s ease; -moz-transition: All 0.5s ease; -o-transition: All 0.5s ease; -ms-transition: All 0.5s ease; transition: All 0.5s ease; } #button1 { margin-left: 10px } #button2 { } #button3 { } #button4 { } #button5 { } .SL-navbg { height: 35px; width: 940px; background: #0068B3;} .SL-topbanner .bannerlink img { width: 100%; } #button1:hover, #button2:hover, #button3:hover, #button4:hover, #button5:hover { color: #003465; } </style> <div class="SL-topbanner"><a class="bannerlink"><img src="http://cdn.changemakers.com/sites/default/files/unilever_banner_community.jpg" usemap="#unilever-map" border="0" /><map id="unilever-map" name="unilever-map"><area shape="rect" coords="70,70,170,202" href="http://unilever.com/sustainable-living/ourapproach" target="_blank" alt="Unilever: Our approach to sustainability" title="Unilever: Our approach to sustainability" /><area shape="rect" coords="474,70,660,202" href="http://www.cpsl.cam.ac.uk" target="_blank" alt="University of Cambridge Programme for Sustainability Leadership" title="University of Cambridge Programme for Sustainability Leadership" /></map></a><div class="SL-navbg"><a href="#competition" id="button1" class="buttonText" alt="Competition" title="Competition">Competition</a><a href="#blog" id="button3" class="buttonText" alt="Blog" title="Blog">Blog</a><!--<a href="#blog" id="button4" class="buttonText" alt="Blog" title="Blog">Blog</a>--><a href="#getinvolved" id="button5" class="buttonText" alt="Get involved" title="Get involved">Get involved</a></div></div><br clear="all" />'); </script> <style> .css-title { display: none; } div.ccs-logo {display: none; } .awesome-slider-block{ height:220px; } .take-action-links-share { display: none; } .take-action-list {display: none;position: relative;height: 0px;top: -64px;left: 752px;} #ccs-header li.take-action-link.join a {display:none;width: 130px;height: 20px;} .take-action-links.grid-4 {height: 0px;} #css-middle {padding-top: 0px!important;margin-top: 0px!important;} .fancybox-video-modal.unilever_teaser {float: left; margin-left: 5px;margin-top: -10px;} .slider-video {float: left; margin-left: 75px; margin-top: 30px;} .view-community-blogs-block.view-display-id-ccs_block_1 .views-field-teaser p {font-size:15px;} </style> <!--[if IE]> <style type="text/css"> .timer { display: none !important; } div.caption { background:transparent; filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#99000000,endColorstr=#99000000);zoom: 1; } </style> <![endif]--> <!-- Run the plugin --> <script type="text/javascript"> $(window).load(function() { $('#cm-slider-awesome').orbit({animation: 'horizontal-push', directionalNav: true}); }); </script> <div id="cm-slider-awesome"> <div class="content" id="unilever-slide1"> <div id="unilever-slide"> <p class="slider-body" style="font-size: 16px; padding-top: 65px; margin-left: 300px;">His Royal Highness The Prince of Wales supports the Young Sustainability Entrepreneur Prize.<br /><a href="https://static-changemakerscom.netdna-ssl.com/sites/default/files/hrh_statement_on_prize_for_website.pdf" target="_blank">Read more</a></p> </div> </div> <div class="content" id="unilever-slide2"> <div id="unilever-slide"> <p class="slider-title">Water, Sanitation and Hygiene</p> <p class="slider-body">Poor hygiene, lack of safe drinking water and poor sanitation are the cause of millions of preventable deaths. <br />Do you have an inspiring solution? <br /><a href="/node/add/competition-entry/165056">Enter it today</a></p> </div> </div> <div class="content" id="unilever-slide3"> <div id="unilever-slide"> <p class="slider-title">Nutrition</p> <p class="slider-body">People are living more sedentary lives and calorie-rich foods are more available and affordable. There is a higher incidence of obesity, while at the same time millions of people around the world remain hungry or lack sufficient essential nutrients in their diets.<br />Do you have an inspiring solution?<br /><a href="/node/add/competition-entry/165056">Enter it today</a></p> </div> </div> <div class="content" id="unilever-slide4"> <div id="unilever-slide"> <p class="slider-title">Water scarcity</p> <p class="slider-body">Water shortages are increasingly prevalent and are exacerbated by a number of factors, including climate change and population increase.<br />Do you have an inspiring solution?<br /><a href="/node/add/competition-entry/165056">Enter it today</a></p> </div> </div> <div class="content" id="unilever-slide5"> <div id="unilever-slide"> <p class="slider-title">Greenhouse Gases</p> <p class="slider-body">Extreme weather patterns, water scarcity, and their impact on agriculture and communities are affecting people everywhere, with developing countries among the most vulnerable to climate change.<br />Do you have an inspiring solution?<br /><a href="/node/add/competition-entry/165056">Enter it today</a></p> </div> </div> <div class="content" id="unilever-slide6"> <div id="unilever-slide"> <p class="slider-title">Waste</p> <p class="slider-body">Increasing scarcity of resources makes it ever more urgent to be efficient with packaging and find solutions to deal with “post-consumer waste.”<br />Do you have an inspiring solution?<br /><a href="/node/add/competition-entry/165056">Enter it today</a></p> </div> </div> <div class="content" id="unilever-slide7"> <div id="unilever-slide"> <p class="slider-title">Sustainable Agriculture</p> <p class="slider-body">Agriculture and forestry are the largest contributors to global greenhouse gas emissions, while food security is also increasingly under threat.<br />Do you have an inspiring solution?<br /><a href="/node/add/competition-entry/165056">Enter it today</a></p> </div> </div> <div class="content" id="unilever-slide8"> <div id="unilever-slide"> <p class="slider-title">Smallholder Farmers</p> <p class="slider-body" style="font-size: 12px;">World food production will have to increase 50% by 2030 to meet growing demand. The most productive agricultural areas are already used, so the focus needs to be on increasing productivity elsewhere, especially in emerging economies.<br />Do you have an inspiring solution?<br /><a href="/node/add/competition-entry/165056">Enter it today</a></p> </div> </div> <div class="content" id="unilever-slide9"> <a class="fancybox-video-modal slider-video" href="http://www.youtube.com/embed/uog84llQQn4?autoplay=1"><img src="https://static-changemakerscom.netdna-ssl.com/sites/default/files/unilever_paul_polman_video_still.jpg" /></a> <div id="unilever-slide" style="margin-left: -30px;"> <p class="slider-title" style="margin-top: 37px;">Paul Polman, CEO, Unilever</p> <p class="slider-body">Unilever’s CEO wants to hear about your scalable, sustainable solution.</p> </div> </div> </div> <a class="fancybox-video-modal unilever_teaser" href="http://www.youtube.com/embed/r_Dm9l4Zt3M?autoplay=1"><img src="https://static-changemakerscom.netdna-ssl.com/sites/default/files/unilever_video_player_still.jpg" /></a> <script type="text/javascript"> $(document).ready(function() { $(".fancybox-video-modal").fancybox({ 'width' : '75%', 'height' : '75%', 'autoScale' : false, 'transitionIn' : 'fade', 'transitionOut' : 'fade', 'type' : 'iframe' }); }); </script> <!-- <div class="unilever-teaser"><h1 style="color: #fff;font-size: 38px;line-height: 1.5;margin-left: 720px;padding-top: 30px;text-transform: uppercase;"><div style="color: #f7c785; display: inline;vertical-align: top;font-size: 14px;">You may win</div>€200,000<br /><div style="color: #f7c785; font-size: 14px;margin-left: -70px;">for your sustainable living project</div></h1> <p><a href="/node/add/competition-entry/165056"><img src="https://static-changemakerscom.netdna-ssl.com/sites/default/files/unilever_banner_enter_100.png" alt="Enter!" style="float:left;margin-left:15px;padding-top:2px;"></a><a href="https://www.facebook.com/ashokaschangemakers" target="_blank" class="unilever-social-links" id="u_fb" alt="Facebook">&nbsp;</a><a href="https://twitter.com/search?src=typd&q=%23SustLiving" target="_blank" class="unilever-social-links" id="u_tw" alt="Twitter">&nbsp;</a><a href="http://www.youtube.com/user/ChangemakersNet" target="_blank" class="unilever-social-links" id="u_yt" alt="YouTube">&nbsp;</a><a href="http://www.linkedin.com/company/ashoka" target="_blank" class="unilever-social-links" id="u_li" alt="LinkedIn"></a></div> --> <style type="text/css"> /* SLIDER CCS */ .unilever-social-links {margin-left:10px; height: 33px; display: block; width: 33px; float: left;} #u_fb { background: url(https://static-changemakerscom.netdna-ssl.com/sites/default/files/unilever_fb.png) center;} #u_fb:hover { background: url(https://static-changemakerscom.netdna-ssl.com/sites/default/files/unilever_fb_hover.png);} #u_tw { background: url(https://static-changemakerscom.netdna-ssl.com/sites/default/files/unilever_tw.png) center;} #u_tw:hover { background: url(https://static-changemakerscom.netdna-ssl.com/sites/default/files/unilever_tw_hover.png);} #u_yt { background: url(https://static-changemakerscom.netdna-ssl.com/sites/default/files/unilever_yt.png) center;} #u_yt:hover { background: url(https://static-changemakerscom.netdna-ssl.com/sites/default/files/unilever_yt_hover.png);} #u_li { background: url(https://static-changemakerscom.netdna-ssl.com/sites/default/files/unilever_li.png) center;} #u_li:hover { background: url(https://static-changemakerscom.netdna-ssl.com/sites/default/files/unilever_li_hover.png);} .unilever-teaser { position: relative; height: 220px; display: block; top: -10px; background: url(https://static-changemakerscom.netdna-ssl.com/sites/default/files/unilever_banner_base_community.png) no-repeat 630px top; } #cm-slider-awesome { width: 625px; height: 220px; background: #000 url(http://cdn.changemakers.com/sites/default/files/sliderloading.gif) no-repeat center center; overflow: hidden; } #cm-slider-awesome { margin-top:-10px; } #cm-slider-awesome .content { width:625px; height:220px; } /* SPECIFIC TO UNILEVER SLIDER */ #unilever-slide { height: 220px; margin-top: -27px; } #unilever-slide1 { background-image: url(https://static-changemakerscom.netdna-ssl.com/sites/default/files/uni_slide_hrh_cjackson.jpg); } #unilever-slide2 { background-image: url(https://static-changemakerscom.netdna-ssl.com/sites/default/files/uni_slide_water_sanitation.jpg); } #unilever-slide3 { background-image: url(https://static-changemakerscom.netdna-ssl.com/sites/default/files/uni_slide_nutrition.jpg); } #unilever-slide4 { background-image: url(https://static-changemakerscom.netdna-ssl.com/sites/default/files/uni_slide_water_scarcity.jpg); } #unilever-slide5 { background-image: url(https://static-changemakerscom.netdna-ssl.com/sites/default/files/uni_slide_industry_ghg.jpg); } #unilever-slide6 { background-image: url(https://static-changemakerscom.netdna-ssl.com/sites/default/files/uni_slide_industry_waste.jpg); } #unilever-slide7 { /* Sustainable Agriculture */ background-image: url(https://static-changemakerscom.netdna-ssl.com/sites/default/files/uni_slide_farm_2.jpg); } #unilever-slide8 { /* Smallholder Farmers */ background-image: url(https://static-changemakerscom.netdna-ssl.com/sites/default/files/uni_slide_farm_1.jpg); } #unilever-slide9 { background-image: url(https://static-changemakerscom.netdna-ssl.com/sites/default/files/uni_slide_video.jpg); } .slider-title { overflow: visible; font-family: BentonSans,Arial,sans-serif,Rockwell; font-size: 22px; line-height: 0.9; width: 250px; text-transform: uppercase; letter-spacing: -1px; color: #F7C886; margin-left: 360px; margin-bottom: 0px; padding-top: 20px; font-weight: bold; } .slider-body { font-family: BentonSans,Arial,sans-serif,Rockwell; width: 250px; font-size: 13px; color: #fff; margin-left: 360px; margin-right: 20px; line-height: 1.4; } .slider-body a {color: #FFD842;} .slider-body a:hover {color: #f07e42;} .slider-date { font-family: BentonSans,Arial,sans-serif,Rockwell; font-size: 18px; font-style: normal; font-weight: normal; text-transform: uppercase; margin-top: 10px; margin-left: 320px; color: #FFF; } /* PUT IN YOUR SLIDER ID AND SIZE TO MAKE LOAD BEAUTIFULLY ================================================== */ #cm-slider-awesome { width: 625px; height: 220px; overflow: hidden; } #cm-slider-awesome>img, #cm-slider-awesome>div, #cm-slider-awesome>a { display: none; } /* CONTAINER ================================================== */ div.orbit-wrapper { width: 1px; height: 1px; position: relative; float: left; } div.orbit { width: 1px; height: 1px; position: relative; overflow: hidden } div.orbit>img { position: absolute; top: 0; left: 0; display: none; } div.orbit>a { border: none; position: absolute; top: 0; left: 0; display: none; } .orbit>div { position: absolute; top: 0; left: 0; width: 100%; height: 100%; } /* Note: If your slider only uses content or anchors, you're going to want to put the width and height declarations on the ".orbit>div" and "div.orbit>a" tags in addition to just the .orbit-wrapper */ /* TIMER ================================================== */ div.timer { display: none!important; /* only for Unilever */ width: 40px; height: 40px; overflow: hidden; position: absolute; top: 10px; right: 10px; opacity: .6; cursor: pointer; z-index: 9; } span.rotator { display: block; width: 40px; height: 40px; position: absolute; top: 0; left: -20px; background: url(http://cdn.changemakers.com/sites/default/files/rotator-black.png) no-repeat; z-index: 3; } span.mask { display: block; width: 20px; height: 40px; position: absolute; top: 0; right: 0; z-index: 2; overflow: hidden; } span.rotator.move { left: 0 } span.mask.move { width: 40px; left: 0; background: url(http://cdn.changemakers.com/sites/default/files/timer-black.png) repeat 0 0; } span.pause { display: block; width: 40px; height: 40px; position: absolute; top: 0; left: 0; background: url(http://cdn.changemakers.com/sites/default/files/pause-black.png) no-repeat; z-index: 4; opacity: 0; } span.pause.active { background: url(http://cdn.changemakers.com/sites/default/files/pause-black.png) no-repeat 0 -40px } div.timer:hover span.pause, span.pause.active { opacity: 1 } /* CAPTIONS ================================================== */ .orbit-caption { display: none; font-family: "HelveticaNeue", "Helvetica-Neue", Helvetica, Arial, sans-serif; } .orbit-wrapper .orbit-caption { background: #000; background: rgba(0,0,0,.6); z-index: 1000; color: #fff; text-align: center; padding: 7px 0; font-size: 13px; position: absolute; right: 0; bottom: 0; width: 100%; } /* DIRECTIONAL NAV ================================================== */ div.slider-nav { display: block } div.slider-nav span { width: 45px; height: 70px; text-indent: -9999px; position: absolute; z-index: 1000; top: 55%; margin-top: -50px; cursor: pointer; } div.slider-nav span.right { background: url(http://cdn.changemakers.com/sites/default/files/uni_t_slider_right.png) no-repeat; right: -9px; top: 40px; } div.slider-nav span.left { background: url(http://cdn.changemakers.com/sites/default/files/uni_t_slider_left.png) no-repeat; top: 40px; } /* BULLET NAV ================================================== */ .orbit-bullets { position: absolute; z-index: 1000; list-style: none; bottom: -40px; left: 50%; margin-left: -50px; padding: 0; } .orbit-bullets li { float: left; margin-left: 5px; cursor: pointer; color: #999; text-indent: -9999px; background: url(http://cdn.changemakers.com/sites/default/files/bullets.jpg) no-repeat 4px 0; width: 13px; height: 12px; overflow: hidden; } .orbit-bullets li.active { color: #222; background-position: -8px 0; } .orbit-bullets li.has-thumb { background: none; width: 100px; height: 75px; } .orbit-bullets li.active.has-thumb { background-position: 0 0; border-top: 2px solid #000; } /* END SLIDER CCS */ </style> <!-- SLIDER SCRIPT --> <script type="text/javascript"> /* * jQuery Orbit Plugin 1.2.3 * www.ZURB.com/playground * Copyright 2010, ZURB * Free to use under the MIT license. * http://www.opensource.org/licenses/mit-license.php */ (function($) { $.fn.orbit = function(options) { //Defaults to extend options var defaults = { animation: 'horizontal-slide', // fade, horizontal-slide, vertical-slide, horizontal-push animationSpeed: 600, // how fast animtions are timer: true, // true or false to have the timer advanceSpeed: 10000, // if timer is enabled, time between transitions pauseOnHover: false, // if you hover pauses the slider startClockOnMouseOut: false, // if clock should start on MouseOut startClockOnMouseOutAfter: 0, // how long after MouseOut should the timer start again directionalNav: true, // manual advancing directional navs captions: false, // do you want captions? captionAnimation: 'fade', // fade, slideOpen, none captionAnimationSpeed: 600, // if so how quickly should they animate in bullets: false, // true or false to activate the bullet navigation bulletThumbs: false, // thumbnails for the bullets bulletThumbLocation: '', // location from this file where thumbs will be afterSlideChange: function(){} // empty function }; //Extend those options var options = $.extend(defaults, options); return this.each(function() { // ============== // ! SETUP // ============== //Global Variables var activeSlide = 0, numberSlides = 0, orbitWidth, orbitHeight, locked; //Initialize var orbit = $(this).addClass('orbit'), orbitWrapper = orbit.wrap('<div class="orbit-wrapper" />').parent(); orbit.add(orbitWidth).width('1px').height('1px'); //Collect all slides and set slider size of largest image var slides = orbit.children('img, a, div'); slides.each(function() { var _slide = $(this), _slideWidth = _slide.width(), _slideHeight = _slide.height(); if(_slideWidth > orbit.width()) { orbit.add(orbitWrapper).width(_slideWidth); orbitWidth = orbit.width(); } if(_slideHeight > orbit.height()) { orbit.add(orbitWrapper).height(_slideHeight); orbitHeight = orbit.height(); } numberSlides++; }); //Animation locking functions function unlock() { locked = false; } function lock() { locked = true; } //If there is only a single slide remove nav, timer and bullets if(slides.length == 1) { options.directionalNav = false; options.timer = false; options.bullets = false; } //Set initial front photo z-index and fades it in slides.eq(activeSlide) .css({"z-index" : 3}) .fadeIn(function() { //brings in all other slides IF css declares a display: none slides.css({"display":"block"}) }); // ============== // ! TIMER // ============== //Timer Execution function startClock() { if(!options.timer || options.timer == 'false') { return false; //if timer is hidden, don't need to do crazy calculations } else if(timer.is(':hidden')) { clock = setInterval(function(e){ shift("next"); }, options.advanceSpeed); //if timer is visible and working, let's do some math } else { timerRunning = true; pause.removeClass('active') clock = setInterval(function(e){ var degreeCSS = "rotate("+degrees+"deg)" degrees += 2 rotator.css({ "-webkit-transform": degreeCSS, "-moz-transform": degreeCSS, "-o-transform": degreeCSS }); if(degrees > 180) { rotator.addClass('move'); mask.addClass('move'); } if(degrees > 360) { rotator.removeClass('move'); mask.removeClass('move'); degrees = 0; shift("next"); } }, options.advanceSpeed/180); } } function stopClock() { if(!options.timer || options.timer == 'false') { return false; } else { timerRunning = false; clearInterval(clock); pause.addClass('active'); } } //Timer Setup if(options.timer) { var timerHTML = '<div class="timer"><span class="mask"><span class="rotator"></span></span><span class="pause"></span></div>' orbitWrapper.append(timerHTML); var timer = orbitWrapper.children('div.timer'), timerRunning; if(timer.length != 0) { var rotator = $('div.timer span.rotator'), mask = $('div.timer span.mask'), pause = $('div.timer span.pause'), degrees = 0, clock; startClock(); timer.click(function() { if(!timerRunning) { startClock(); } else { stopClock(); } }); if(options.startClockOnMouseOut){ var outTimer; orbitWrapper.mouseleave(function() { outTimer = setTimeout(function() { if(!timerRunning){ startClock(); } }, options.startClockOnMouseOutAfter) }) orbitWrapper.mouseenter(function() { clearTimeout(outTimer); }) } } } //Pause Timer on hover if(options.pauseOnHover) { orbitWrapper.mouseenter(function() { stopClock(); }); } // ============== // ! CAPTIONS // ============== //Caption Setup if(options.captions) { var captionHTML = '<div class="orbit-caption"></div>'; orbitWrapper.append(captionHTML); var caption = orbitWrapper.children('.orbit-caption'); setCaption(); } //Caption Execution function setCaption() { if(!options.captions || options.captions =="false") { return false; } else { var _captionLocation = slides.eq(activeSlide).data('caption'); //get ID from rel tag on image _captionHTML = $(_captionLocation).html(); //get HTML from the matching HTML entity //Set HTML for the caption if it exists if(_captionHTML) { caption .attr('id',_captionLocation) // Add ID caption .html(_captionHTML); // Change HTML in Caption //Animations for Caption entrances if(options.captionAnimation == 'none') { caption.show(); } if(options.captionAnimation == 'fade') { caption.fadeIn(options.captionAnimationSpeed); } if(options.captionAnimation == 'slideOpen') { caption.slideDown(options.captionAnimationSpeed); } } else { //Animations for Caption exits if(options.captionAnimation == 'none') { caption.hide(); } if(options.captionAnimation == 'fade') { caption.fadeOut(options.captionAnimationSpeed); } if(options.captionAnimation == 'slideOpen') { caption.slideUp(options.captionAnimationSpeed); } } } } // ================== // ! DIRECTIONAL NAV // ================== //DirectionalNav { rightButton --> shift("next"), leftButton --> shift("prev"); if(options.directionalNav) { if(options.directionalNav == "false") { return false; } var directionalNavHTML = '<div class="slider-nav"><span class="right">Right</span><span class="left">Left</span></div>'; orbitWrapper.append(directionalNavHTML); var leftBtn = orbitWrapper.children('div.slider-nav').children('span.left'), rightBtn = orbitWrapper.children('div.slider-nav').children('span.right'); leftBtn.click(function() { stopClock(); shift("prev"); }); rightBtn.click(function() { stopClock(); shift("next") }); } // ================== // ! BULLET NAV // ================== //Bullet Nav Setup if(options.bullets) { var bulletHTML = '<ul class="orbit-bullets"></ul>'; orbitWrapper.append(bulletHTML); var bullets = orbitWrapper.children('ul.orbit-bullets'); for(i=0; i<numberSlides; i++) { var liMarkup = $('<li>'+(i+1)+'</li>'); if(options.bulletThumbs) { var thumbName = slides.eq(i).data('thumb'); if(thumbName) { var liMarkup = $('<li class="has-thumb">'+i+'</li>') liMarkup.css({"background" : "url("+options.bulletThumbLocation+thumbName+") no-repeat"}); } } orbitWrapper.children('ul.orbit-bullets').append(liMarkup); liMarkup.data('index',i); liMarkup.click(function() { stopClock(); shift($(this).data('index')); }); } setActiveBullet(); } //Bullet Nav Execution function setActiveBullet() { if(!options.bullets) { return false; } else { bullets.children('li').removeClass('active').eq(activeSlide).addClass('active'); } } // ==================== // ! SHIFT ANIMATIONS // ==================== //Animating the shift! function shift(direction) { //remember previous activeSlide var prevActiveSlide = activeSlide, slideDirection = direction; //exit function if bullet clicked is same as the current image if(prevActiveSlide == slideDirection) { return false; } //reset Z & Unlock function resetAndUnlock() { slides .eq(prevActiveSlide) .css({"z-index" : 1}); unlock(); options.afterSlideChange.call(this); } if(slides.length == "1") { return false; } if(!locked) { lock(); //deduce the proper activeImage if(direction == "next") { activeSlide++ if(activeSlide == numberSlides) { activeSlide = 0; } } else if(direction == "prev") { activeSlide-- if(activeSlide < 0) { activeSlide = numberSlides-1; } } else { activeSlide = direction; if (prevActiveSlide < activeSlide) { slideDirection = "next"; } else if (prevActiveSlide > activeSlide) { slideDirection = "prev" } } //set to correct bullet setActiveBullet(); //set previous slide z-index to one below what new activeSlide will be slides .eq(prevActiveSlide) .css({"z-index" : 2}); //fade if(options.animation == "fade") { slides .eq(activeSlide) .css({"opacity" : 0, "z-index" : 3}) .animate({"opacity" : 1}, options.animationSpeed, resetAndUnlock); } //horizontal-slide if(options.animation == "horizontal-slide") { if(slideDirection == "next") { slides .eq(activeSlide) .css({"left": orbitWidth, "z-index" : 3}) .animate({"left" : 0}, options.animationSpeed, resetAndUnlock); } if(slideDirection == "prev") { slides .eq(activeSlide) .css({"left": -orbitWidth, "z-index" : 3}) .animate({"left" : 0}, options.animationSpeed, resetAndUnlock); } } //vertical-slide if(options.animation == "vertical-slide") { if(slideDirection == "prev") { slides .eq(activeSlide) .css({"top": orbitHeight, "z-index" : 3}) .animate({"top" : 0}, options.animationSpeed, resetAndUnlock); } if(slideDirection == "next") { slides .eq(activeSlide) .css({"top": -orbitHeight, "z-index" : 3}) .animate({"top" : 0}, options.animationSpeed, resetAndUnlock); } } //push-over if(options.animation == "horizontal-push") { if(slideDirection == "next") { slides .eq(activeSlide) .css({"left": orbitWidth, "z-index" : 3}) .animate({"left" : 0}, options.animationSpeed, resetAndUnlock); slides .eq(prevActiveSlide) .animate({"left" : -orbitWidth}, options.animationSpeed); } if(slideDirection == "prev") { slides .eq(activeSlide) .css({"left": -orbitWidth, "z-index" : 3}) .animate({"left" : 0}, options.animationSpeed, resetAndUnlock); slides .eq(prevActiveSlide) .animate({"left" : orbitWidth}, options.animationSpeed); } } setCaption(); } //lock }//orbit function });//each call }//orbit plugin call })(jQuery); </script>
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0