4 height: 400px; /* This is your slider height */
9 margin:0 auto; /* center your carousel if other than 100% */
13 .carousel-sgn-caption {
18 padding: 0px 10px 0px 10px;
23 text-decoration: none;
24 background-color: #fff;
26 filter: alpha(opacity=80); /* For IE8 and earlier */
27 border-top-right-radius:12px;
28 border-bottom-right-radius:12px;
31 .carousel-sgn-caption a {
33 text-decoration: none;
36 .carousel-sgn-caption a:hover {
38 text-decoration: none;
50 text-decoration: none;
51 background-color: #fff;
53 filter: alpha(opacity=85); /* For IE8 and earlier */
54 border-top-left-radius:12px;
55 border-bottom-left-radius:12px;
58 .carousel-sgn-links ul {
59 padding: 10px 30px 0px 15px;
60 list-style-type: none;
63 .carousel-sgn-links a {
65 text-decoration: none;
68 .carousel-sgn-links a:hover {
70 text-decoration: none;
73 @media (min-width: 0px) and (max-width: 650px) {
75 .carousel-sgn-caption {
91 .carousel-indicators {
102 <script src="http://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.js"></script>
107 jQuery(document).ready(function() {
108 // $('.carousel').carousel({
118 var $item = $('.carousel .item');
119 var $wHeight = $(window).height();
121 var $numberofSlides = $('.item').length;
122 var $currentSlide = Math.floor((Math.random() * $numberofSlides));
124 $('.carousel-indicators li').each(function(){
125 var $slideValue = $(this).attr('data-slide-to');
126 if($currentSlide == $slideValue) {
127 $(this).addClass('active');
128 $item.eq($slideValue).addClass('active');
130 $(this).removeClass('active');
131 $item.eq($slideValue).removeClass('active');
135 $('.carousel').carousel({
142 //$("#myCarousel").swiperight(function() {
143 // $("#myCarousel").carousel('prev');
145 // $("#myCarousel").swipeleft(function() {
146 // $("#myCarousel").carousel('next');
149 $(".ui-loading").css("display","none");
150 $(".ui-loader").css("display","none");
154 <div id="myCarousel" class="carousel slide" data-ride="carousel" data-interval="false">
156 <ol class="carousel-indicators">
157 <li data-target="#myCarousel" data-slide-to="0" class="active"></li>
158 <li data-target="#myCarousel" data-slide-to="1"></li>
159 <li data-target="#myCarousel" data-slide-to="2"></li>
160 <li data-target="#myCarousel" data-slide-to="3"></li>
161 <li data-target="#myCarousel" data-slide-to="4"></li>
162 <li data-target="#myCarousel" data-slide-to="5"></li>
165 <!-- Wrapper for slides -->
166 <div class="carousel-inner" role="listbox">
169 <div style="background:url(/documents/img/homepage_carousel/carousel_slideshare.png) center center; background-size:cover;" class="slider-size">
170 <div class="carousel-sgn-caption">
171 <a href="http://www.slideshare.net/solgenomics" target="_blank">
172 <h3>SGN SlideShare</h3>
173 <p>Slides from conferences and courses</p>
177 <div class="carousel-sgn-links">
179 <li><a href="http://www.slideshare.net/solgenomics/sol-meeting-2015-sgn-workshop-introduction?related=1" target="_blank">SOL Meeting 2015</a></li>
180 <li><a href="http://www.slideshare.net/solgenomics/sgn-introduction-to-unix-commandline-2015-part-1?related=1" target="_blank">Introduction to UNIX Command-line</a></li>
190 <div style="background:url(/documents/img/homepage_carousel/sol2016.jpeg) center center; background-size:cover;" class="slider-size">
191 <div class="carousel-sgn-caption" style="opacity: 0.95; background-color: #efefef">
192 <a href="http://solgenomics2016.ucdavis.edu" target="_blank">
193 <h3 style="color: #00426c">The 13th Solanaceae Conference</h3>
194 <p style="color: #00426c"><img src="/documents/img/sgn_transparent_logo.png" width="30"> September 12-16, 2016 - Davis California USA</p>
198 <div class="carousel-sgn-links" style="background-color: #efefef">
200 <li><a href="http://solgenomics2016.ucdavis.edu/program/" target="_blank" style="color: #00426c">Preliminary Program</a></li>
201 <li><a href="http://solgenomics2016.ucdavis.edu/registration/" target="_blank" style="color: #00426c">Registration</a></li>
202 <li><a href="http://solgenomics2016.ucdavis.edu/abstract-submission-info/" target="_blank" style="color: #00426c">Abstract Submission</a></li>
203 <li><a href="http://solgenomics2016.ucdavis.edu/hotel-information/" target="_blank" style="color: #00426c">Venue Information</a></li>
214 <div style="background:url(/documents/img/homepage_carousel/tomato_diseases_2016.jpeg) center center; background-size:cover;" class="slider-size">
215 <div class="carousel-sgn-caption" style="opacity: 0.95">
216 <a href="http://www.tomatodiseases2016.es/web/" target="_blank">
217 <h3>5th International Symposium on Tomato Diseases</h3>
218 <p>Malaga, Spain June 13-16, 2016</p>
222 <div class="carousel-sgn-links">
224 <li><a href="http://www.tomatodiseases2016.es/web/index.php/tentative-programme" target="_blank">Preliminary Program</a></li>
225 <li><a href="http://www.tomatodiseases2016.es/web/index.php/important-dates" target="_blank">Important Dates</a></li>
226 <li><a href="http://www.tomatodiseases2016.es/web/index.php/registration" target="_blank">Registration</a></li>
227 <li><a href="http://www.tomatodiseases2016.es/web/index.php/accommodation" target="_blank">Accomodation</a></li>
236 <div style="background:url(/documents/img/homepage_carousel/carousel_tomato.jpg) center center; background-size:cover;" class="slider-size">
237 <div class="carousel-sgn-caption">
238 <h3><a href="/organism/Solanum_lycopersicum/genome">Tomato Genome</a></h3>
239 <p><a href="http://www.nature.com/nature/journal/v485/n7400/full/nature11119.html" target="_blank">The tomato genome sequence provides insights into fleshy fruit evolution</a></p>
242 <div class="carousel-sgn-links">
244 <li><a href="/jbrowse">Browse the tomato genome</a></li>
245 <li><a href="/tools/blast?db_id=224">Find sequences by similarity</a></li>
246 <li><a href="ftp://ftp.solgenomics.net/genomes/Solanum_lycopersicum/annotation/ITAG2.4_release/">Download the annotations</a></li>
247 <li><a href="ftp://ftp.solgenomics.net/genomes/Solanum_lycopersicum/assembly/build_2.50/">Download the Genome Sequence</a></li>
254 <div style="background:url(/documents/img/homepage_carousel/carousel_potato.jpg) center center; background-size:cover;" class="slider-size">
255 <div class="carousel-sgn-caption">
256 <h3><a href="/organism/Solanum_tuberosum/genome">Potato Genome</a></h3>
257 <p><a href="http://www.nature.com/nature/journal/v475/n7355/full/nature10158.html" target="_blank">Genome sequence and analysis of the tuber crop potato</a></p>
259 <div class="carousel-sgn-links">
261 <li><a href="/jbrowse/current/?data=data%2Fjson%2FPGSC_DM_v4.03">Browse the potato genome</a></li>
262 <li><a href="/tools/blast?db_id=262">Find sequences by similarity</a></li>
263 <li><a href="ftp://ftp.solgenomics.net/genomes/Solanum_tuberosum/annotation/">Download the annotations</a></li>
264 <li><a href="ftp://ftp.solgenomics.net/genomes/Solanum_tuberosum/assembly/PGSC_DM_v4.03/">Download the Genome Sequence</a></li>
272 <div style="background:url(/documents/img/homepage_carousel/3.jpg) center center; background-size:cover;" class="slider-size">
273 <div class="carousel-sgn-caption">
274 <h3><a href="/organism/Capsicum_annuum/genome">Pepper Genome</a></h3>
275 <p><a href="http://www.nature.com/ng/journal/v46/n3/full/ng.2877.html" target="_blank">Genome sequence of the hot pepper provides insights into the evolution of pungency in Capsicum species</a></p>
278 <div class="carousel-sgn-links">
280 <li><a href="/jbrowse/current/?data=data%2Fjson%2FPepper.v.1.55">Browse the pepper genome</a></li>
281 <li><a href="/tools/blast?db_id=217">Find sequences by similarity</a></li>
282 <li><a href="ftp://ftp.solgenomics.net/genomes/Capsicum_annuum/">Download the annotations</a></li>
283 <li><a href="ftp://ftp.solgenomics.net/genomes/Capsicum_annuum/">Download the Genome Sequence</a></li>
291 <div style="background:url(/documents/img/homepage_carousel/carousel_eggplant.jpg) center center; background-size:cover;" class="slider-size">
292 <div class="carousel-sgn-caption">
293 <h3><a href="/organism/Solanum_melongena/genome">Eggplant Genome</a></h3>
294 <p><a href="http://dnaresearch.oxfordjournals.org/content/21/6/649" target="_blank">Draft Genome Sequence of Eggplant (<i>Solanum melongena L.</i>)</a></p>
297 <div class="carousel-sgn-links">
299 <li><a href="/tools/blast?db_id=248">Find sequences by similarity</a></li>
300 <li><a href="ftp://ftp.solgenomics.net/genomes/Solanum_melongena/">Download the annotations</a></li>
301 <li><a href="ftp://ftp.solgenomics.net/genomes/Solanum_melongena/">Download the Genome Sequence</a></li>
312 <!-- Left and right controls -->
313 <!-- <a id="prev_slide" class="left carousel-control" href="#myCarousel" role="button" data-slide="prev">
314 <span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
315 <span class="sr-only">Previous</span>
317 <a id="next_slide" class="right carousel-control" href="#myCarousel" role="button" data-slide="next">
318 <span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
319 <span class="sr-only">Next</span>