Team:AUC TURKEY/Test
From 2013hs.igem.org
(Difference between revisions)
(Undo revision 11771 by Alihancelikcan (talk)) |
|||
Line 3: | Line 3: | ||
<html> | <html> | ||
<head> | <head> | ||
- | <script type="text/javascript" src="http://www.twospy.com/galleriffic/js/jquery.galleriffic.js"></script>< | + | <script type="text/javascript" src="http://www.twospy.com/galleriffic/js/jquery.galleriffic.js"></script> |
- | + | <style type="text/css"> | |
- | + | .gallery-pager | |
+ | {html, body { | ||
+ | margin:0; | ||
+ | padding:0; | ||
+ | } | ||
+ | body{ | ||
+ | text-align: center; | ||
+ | font-family: "Lucida Grande", "Lucida Sans Unicode", Verdana, Helvetica, Arial, sans-serif; | ||
+ | background-color: #eee; | ||
+ | color: #444; | ||
+ | font-size: 75%; | ||
+ | } | ||
+ | a{ | ||
+ | color: #27D; | ||
+ | text-decoration: none; | ||
+ | } | ||
+ | a:focus, a:hover, a:active { | ||
+ | text-decoration: underline; | ||
+ | } | ||
+ | p, li { | ||
+ | line-height: 1.8em; | ||
+ | } | ||
+ | h1, h2 { | ||
+ | font-family: "Trebuchet MS", Verdana, sans-serif; | ||
+ | margin: 0 0 10px 0; | ||
+ | letter-spacing:-1px; | ||
+ | } | ||
+ | h1 { | ||
+ | padding: 0; | ||
+ | font-size: 3em; | ||
+ | color: #333; | ||
+ | } | ||
+ | h2 { | ||
+ | padding-top: 10px; | ||
+ | font-size:2em; | ||
+ | } | ||
+ | pre { | ||
+ | font-size: 1.2em; | ||
+ | line-height: 1.2em; | ||
+ | overflow-x: auto; | ||
+ | } | ||
+ | div#page { | ||
+ | width: 900px; | ||
+ | background-color: #fff; | ||
+ | margin: 0 auto; | ||
+ | text-align: left; | ||
+ | border-color: #ddd; | ||
+ | border-style: none solid solid; | ||
+ | border-width: medium 1px 1px; | ||
+ | } | ||
+ | div#container { | ||
+ | padding: 20px; | ||
+ | } | ||
+ | div#ads { | ||
+ | clear: both; | ||
+ | padding: 12px 0 12px 66px; | ||
+ | } | ||
+ | div#footer { | ||
+ | clear: both; | ||
+ | color: #777; | ||
+ | margin: 0 auto; | ||
+ | padding: 20px 0 40px; | ||
+ | text-align: center; | ||
+ | } | ||
+ | div.content { | ||
+ | /* The display of content is enabled using jQuery so that the slideshow content won't display unless javascript is enabled. */ | ||
+ | display: none; | ||
+ | float: right; | ||
+ | width: 550px; | ||
+ | } | ||
+ | div.content a, div.navigation a { | ||
+ | text-decoration: none; | ||
+ | color: #777; | ||
+ | } | ||
+ | div.content a:focus, div.content a:hover, div.content a:active { | ||
+ | text-decoration: underline; | ||
+ | } | ||
+ | div.controls { | ||
+ | margin-top: 5px; | ||
+ | height: 23px; | ||
+ | } | ||
+ | div.controls a { | ||
+ | padding: 5px; | ||
+ | } | ||
+ | div.ss-controls { | ||
+ | float: left; | ||
+ | } | ||
+ | div.nav-controls { | ||
+ | float: right; | ||
+ | } | ||
+ | div.slideshow-container { | ||
+ | position: relative; | ||
+ | clear: both; | ||
+ | height: 502px; /* This should be set to be at least the height of the largest image in the slideshow */ | ||
+ | } | ||
+ | div.loader { | ||
+ | position: absolute; | ||
+ | top: 0; | ||
+ | left: 0; | ||
+ | background-image: url('loader.gif'); | ||
+ | background-repeat: no-repeat; | ||
+ | background-position: center; | ||
+ | width: 550px; | ||
+ | height: 502px; /* This should be set to be at least the height of the largest image in the slideshow */ | ||
+ | } | ||
+ | div.slideshow { | ||
+ | |||
+ | } | ||
+ | div.slideshow span.image-wrapper { | ||
+ | display: block; | ||
+ | position: absolute; | ||
+ | top: 0; | ||
+ | left: 0; | ||
+ | } | ||
+ | div.slideshow a.advance-link { | ||
+ | display: block; | ||
+ | width: 550px; | ||
+ | height: 502px; /* This should be set to be at least the height of the largest image in the slideshow */ | ||
+ | line-height: 502px; /* This should be set to be at least the height of the largest image in the slideshow */ | ||
+ | text-align: center; | ||
+ | } | ||
+ | div.slideshow a.advance-link:hover, div.slideshow a.advance-link:active, div.slideshow a.advance-link:visited { | ||
+ | text-decoration: none; | ||
+ | } | ||
+ | div.slideshow img { | ||
+ | vertical-align: middle; | ||
+ | border: 1px solid #ccc; | ||
+ | } | ||
+ | div.download { | ||
+ | float: right; | ||
+ | } | ||
+ | div.caption-container { | ||
+ | position: relative; | ||
+ | clear: left; | ||
+ | height: 75px; | ||
+ | } | ||
+ | span.image-caption { | ||
+ | display: block; | ||
+ | position: absolute; | ||
+ | width: 550px; | ||
+ | top: 0; | ||
+ | left: 0; | ||
+ | } | ||
+ | div.caption { | ||
+ | padding: 12px; | ||
+ | } | ||
+ | div.image-title { | ||
+ | font-weight: bold; | ||
+ | font-size: 1.4em; | ||
+ | } | ||
+ | div.image-desc { | ||
+ | line-height: 1.3em; | ||
+ | padding-top: 12px; | ||
+ | } | ||
+ | div.navigation { | ||
+ | /* The navigation style is set using jQuery so that the javascript specific styles won't be applied unless javascript is enabled. */ | ||
+ | } | ||
+ | ul.thumbs { | ||
+ | clear: both; | ||
+ | margin: 0; | ||
+ | padding: 0; | ||
+ | } | ||
+ | ul.thumbs li { | ||
+ | float: left; | ||
+ | padding: 0; | ||
+ | margin: 5px 10px 5px 0; | ||
+ | list-style: none; | ||
+ | } | ||
+ | a.thumb { | ||
+ | padding: 2px; | ||
+ | display: block; | ||
+ | border: 1px solid #ccc; | ||
+ | } | ||
+ | ul.thumbs li.selected a.thumb { | ||
+ | background: #000; | ||
+ | } | ||
+ | a.thumb:focus { | ||
+ | outline: none; | ||
+ | } | ||
+ | ul.thumbs img { | ||
+ | border: none; | ||
+ | display: block; | ||
+ | } | ||
+ | div.pagination { | ||
+ | clear: both; | ||
+ | } | ||
+ | div.navigation div.top { | ||
+ | margin-bottom: 12px; | ||
+ | height: 11px; | ||
+ | } | ||
+ | div.navigation div.bottom { | ||
+ | margin-top: 12px; | ||
+ | } | ||
+ | div.pagination a, div.pagination span.current, div.pagination span.ellipsis { | ||
+ | display: block; | ||
+ | float: left; | ||
+ | margin-right: 2px; | ||
+ | padding: 4px 7px 2px 7px; | ||
+ | border: 1px solid #ccc; | ||
+ | } | ||
+ | div.pagination a:hover { | ||
+ | background-color: #eee; | ||
+ | text-decoration: none; | ||
+ | } | ||
+ | div.pagination span.current { | ||
+ | font-weight: bold; | ||
+ | background-color: #000; | ||
+ | border-color: #000; | ||
+ | color: #fff; | ||
+ | } | ||
+ | div.pagination span.ellipsis { | ||
+ | border: none; | ||
+ | padding: 5px 0 3px 2px; | ||
+ | } | ||
+ | div#page { | ||
+ | width:750px; | ||
+ | border-style:none; | ||
+ | background:none; | ||
+ | } | ||
+ | } | ||
+ | </style> | ||
<script type="text/javascript"> | <script type="text/javascript"> | ||
;(function($) { | ;(function($) { | ||
- | |||
- | |||
$.fn.opacityrollover = function(settings) { | $.fn.opacityrollover = function(settings) { | ||
Line 354: | Line 572: | ||
jQuery(document).ready(function($) { | jQuery(document).ready(function($) { | ||
// We only want these styles applied when javascript is enabled | // We only want these styles applied when javascript is enabled | ||
- | $('div.navigation').css({'width' : ' | + | $('div.navigation').css({'width' : '150px', 'float' : 'left'}); |
$('div.content').css('display', 'block'); | $('div.content').css('display', 'block'); | ||
// Initially set opacity on thumbs and add | // Initially set opacity on thumbs and add | ||
// additional styling for hover effect on thumbs | // additional styling for hover effect on thumbs | ||
- | var onMouseOutOpacity = | + | var onMouseOutOpacity = 1.0; |
$('#thumbs ul.thumbs li').opacityrollover({ | $('#thumbs ul.thumbs li').opacityrollover({ | ||
mouseOutOpacity: onMouseOutOpacity, | mouseOutOpacity: onMouseOutOpacity, |
Revision as of 05:29, 21 June 2013