Team:ATOMS-Turkiye/deneme
From 2013.igem.org
Line 33: | Line 33: | ||
} | } | ||
+ | initBillboard=function (a){ | ||
+ | a.find("li").first().addClass("rui-billboard-current"); | ||
+ | a.find(".rui-billboard-button-prev").click(function(e){ | ||
+ | b= a.find(".rui-billboard-current"); | ||
+ | b.removeClass("rui-billboard-current"); | ||
+ | b=b.prev(); | ||
+ | if(b.length<1) | ||
+ | b=a.find("li").last(); | ||
+ | b.addClass("rui-billboard-current"); | ||
+ | }); | ||
+ | a.find(".rui-billboard-button-next").click(function(e){ | ||
+ | b= a.find(".rui-billboard-current"); | ||
+ | b.removeClass("rui-billboard-current"); | ||
+ | b=b.next(); | ||
+ | if(b.length<1) | ||
+ | b=a.find("li").first(); | ||
+ | b.addClass("rui-billboard-current"); | ||
+ | }); | ||
+ | } | ||
$(document).ready(function(){ | $(document).ready(function(){ | ||
initSlideShow( $("#slideshow") ); | initSlideShow( $("#slideshow") ); | ||
$(".no-action").click(function (e){e.preventDefault();return true;}); | $(".no-action").click(function (e){e.preventDefault();return true;}); | ||
+ | initBillboard( $(".rui-billboard")); | ||
}); | }); | ||
- | |||
- | |||
- | |||
- | |||
- | |||
</script> | </script> | ||
<div style="margin:4em;"width:50%;> | <div style="margin:4em;"width:50%;> |
Revision as of 09:38, 2 October 2013