Team:Calgary/Sandbox

From 2013.igem.org

(Difference between revisions)
Line 1: Line 1:
-
{{Team:Calgary/Main}}
 
<html>
<html>
-
<body>
+
<head>
-
<div id="Slider">
+
<!-- Reset for BodyContent -->
-
<div id="Slide0" class="Slides"></div>
+
<style>
-
<div id="Slide1" class="Slides"></div>
+
#content{
-
<div id="Slide2" class="Slides"></div>
+
width: 100%;
-
<div id="Slide3" class="Slides"></div>
+
margin: 0;
-
<div id="Slide4" class="Slides"></div>
+
padding: 0;
-
<div id="LeftBar" class="SideBar"><div id="LeftArrow"></div></div>
+
background-color:transparent;
-
<div id="RightBar" class="SideBar"><div id="RightArrow"></div></div>
+
border: none;
-
<ul id="BottomLinks">
+
}
-
<li id="Link0" class="SlideLink">Red<!--London--></li><li id="Link1" class="SlideLink">Orange<!--Flower--></li><li id="Link2" class="SlideLink">Green<!--Blue--></li><li id="Link3" class="SlideLink">Blue<!--Tea--></li><li id="Link4" class="SlideLink">Purple<!--Macarons--></li>
+
-
</ul>
+
#bodyContent{
-
</div>
+
width: 100%;
 +
margin: 0;
 +
padding: 0;
 +
background-color:transparent;
 +
border: none;
 +
}
 +
</style>
-
<section id="Overview">
+
<!-- Fonts -->
-
<h2>Generic Title Goes Here</h2>
+
<link href='http://fonts.googleapis.com/css?family=Roboto:300,400,500' rel='stylesheet' type='text/css'>
-
<p>
+
<link href='http://fonts.googleapis.com/css?family=Raleway:400,100,200,300,500,600,700,800,900' rel='stylesheet' type='text/css'>
-
Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi. Nam liber tempor cum soluta nobis eleifend option congue nihil imperdiet doming id quod mazim placerat facer possim assum. Typi non habent claritatem insitam; est usus legentis in iis qui facit eorum claritatem. Investigationes demonstraverunt lectores legere me lius quod ii legunt saepius. Claritas est etiam processus dynamicus, qui sequitur mutationem consuetudium lectorum. Mirum est notare quam littera gothica, quam nunc putamus parum claram, anteposuerit litterarum formas humanitatis per seacula quarta decima et quinta decima. Eodem modo typi, qui nunc nobis videntur parum clari, fiant sollemnes in futurum.
+
<link href='http://fonts.googleapis.com/css?family=Josefin+Sans:700' rel='stylesheet' type='text/css'>
-
</p>
+
<link href='http://fonts.googleapis.com/css?family=Cabin:400,700,400italic,700italic' rel='stylesheet' type='text/css'>
-
<p>
+
-
Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi. Nam liber tempor cum soluta nobis eleifend option congue nihil imperdiet doming id quod mazim placerat facer possim assum. Typi non habent claritatem insitam; est usus legentis in iis qui facit eorum claritatem. Investigationes demonstraverunt lectores legere me lius quod ii legunt saepius. Claritas est etiam processus dynamicus, qui sequitur mutationem consuetudium lectorum. Mirum est notare quam littera gothica, quam nunc putamus parum claram, anteposuerit litterarum formas humanitatis per seacula quarta decima et quinta decima. Eodem modo typi, qui nunc nobis videntur parum clari, fiant sollemnes in futurum.
+
-
</p>
+
-
</section>
+
-
<section id="SectionLinks">
+
<!-- CSS -->
-
<div class="DescriptionLink">
+
<link href="https://2013.igem.org/Team:Calgary/Sandbox/StyleSheets/Reset?action=raw&ctype=text/css" rel="stylesheet">
-
<h2>Link 1</h2>
+
<link href="https://2013.igem.org/Team:Calgary/Sandbox/StyleSheets/Navigation?action=raw&ctype=text/css" rel="stylesheet">
-
<p>
+
<link href="https://2013.igem.org/Team:Calgary/Sandbox/StyleSheets/HomePage?action=raw&ctype=text/css" rel="stylesheet">
-
Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi.
+
-
</p>
+
<!-- JavaScript and JQuery -->
-
</div>
+
<script>
 +
$(document).ready(function() {
 +
if ($('body').width() > 868) {
 +
$('#TopBar').css('padding-left', Math.floor(($('body').width() - 868) / 2));
 +
$('#LogoItem').css('display', 'block');
 +
}
 +
else if ($('body').width() <= 868) {
 +
if ($('body').width() > 744) {
 +
$('#TopBar').css('padding-left', Math.floor(($('body').width() - 744) / 2));
 +
$('#LogoItem').css('display', 'none');
 +
}
 +
}
 +
var ScreenWidth = $('body').width();
 +
if (ScreenWidth > 1007) {
 +
var Margins = Math.floor(ScreenWidth * .086666);
 +
var ElementWidth = Math.floor(ScreenWidth * .37);
 +
 +
$('#SectionLinks').css('padding-left', Margins);
 +
$('#SectionLinks').css('padding-top', Margins);
 +
$('#SectionLinks .DescriptionLink').css('margin-right', Margins);
 +
$('#SectionLinks .DescriptionLink').css('margin-bottom', Margins);
 +
$('#SectionLinks .DescriptionLink').css('width', ElementWidth);
 +
}
-
<div class="DescriptionLink">
+
$(window).resize(function() {
-
<h2>Link 2</h2>
+
if ($('body').width() > 868) {
-
<p>
+
$('#TopBar').css('padding-left', Math.floor(($('body').width() - 868) / 2));
-
Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi.
+
$('#LogoItem').css('display', 'block');
-
</p>
+
}
-
</div>
+
else if ($('body').width() <= 868) {
 +
if ($('body').width() > 744) {
 +
$('#TopBar').css('padding-left', Math.floor(($('body').width() - 744) / 2));
 +
$('#LogoItem').css('display', 'none');
 +
}
 +
}
 +
 
 +
var ScreenWidth = $('body').width();
 +
if (ScreenWidth > 1007) {
 +
var Margins = Math.floor(ScreenWidth * .086666);
 +
var ElementWidth = Math.floor(ScreenWidth * .37);
 +
 +
$('#SectionLinks').css('padding-left', Margins);
 +
$('#SectionLinks').css('padding-top', Margins);
 +
$('#SectionLinks .DescriptionLink').css('margin-right', Margins);
 +
$('#SectionLinks .DescriptionLink').css('margin-bottom', Margins);
 +
$('#SectionLinks .DescriptionLink').css('width', ElementWidth);
 +
}
 +
 
 +
});
 +
});
 +
</script>
 +
<script>
 +
$(document).ready(function() {
 +
//Set height of slider (12/7 ratio)
 +
$('#Slider').css('height', ($('body').width() / 2.4));
-
<div class="DescriptionLink">
+
//Position right/left arrows
-
<h2>Link 3</h2>
+
var BarHeight = $('#Slider').height() -  $('#BottomLinks').height();
-
<p>
+
$('#LeftBar, #RightBar').css('height', BarHeight);
-
Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi.
+
$('#LeftArrow, #RightArrow').css('top', (BarHeight-60)/2);
-
</p>
+
 
-
</div>
+
//Repeats for window resize
 +
$(window).resize(function() {
 +
$('#Slider').css('height', ($('body').width() / 2.4));
 +
 +
var BarHeight = $('#Slider').height() -  $('#BottomLinks').height();
 +
$('#LeftBar, #RightBar').css('height', BarHeight);
 +
$('#LeftArrow, #RightArrow').css('top', (BarHeight-60)/2);
 +
});
 +
 
 +
// var preloadImages = ['TestSlide0.jpg','TestSlide1.jpg','TestSlide2.jpg','TestSlide3.jpg','TestSlide4.jpg'];
 +
// var images = [];
 +
// for (var count = 0; count < preloadImages.length; count++) {
 +
// images[count] = new Image();
 +
// images[count].src = preloadImages[count];
 +
// }
-
<div class="DescriptionLink">
+
var TotalSlides = $('.Slides').length
-
<h2>Link 4</h2>
+
var CurrentSlide = 0;
-
<p>
+
 
-
Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi.
+
$('#RightArrow').click(function() {
-
</p>
+
CurrentSlide = ++CurrentSlide % TotalSlides;
-
</div>
+
$('.Slides').css('display', 'none');
-
</section>
+
SlideID = '#Slide' + CurrentSlide;
 +
$(SlideID).css('display', 'block');
 +
 
 +
});
 +
 +
$('#LeftArrow').click(function() {
 +
CurrentSlide = (CurrentSlide + TotalSlides - 1) % TotalSlides;
 +
$('.Slides').css('display', 'none');
 +
SlideID = '#Slide' + CurrentSlide;
 +
$(SlideID).css('display', 'block');
 +
 
 +
});
 +
 +
$('.SlideLink').click(function() {
 +
var ClickedSlide = $(this).attr('id');
 +
CurrentSlide = parseInt(ClickedSlide.replace('Link', ''));
 +
$('.Slides').css('display', 'none');
 +
SlideID = '#Slide' + CurrentSlide;
 +
$(SlideID).css('display', 'block');
 +
 
 +
});
 +
});
 +
</script>
 +
</head>
 +
 
 +
<body>
 +
<header id="TopBar">
 +
<ul id="TopLvlNav">
 +
<li><a href="https://2013.igem.org/Team:Calgary/Sandbox/">Home</a></li>
 +
<li>
 +
<a href="https://2013.igem.org/Team:Calgary/Sandbox/Project">Project</a>
 +
<ul>
 +
<li><a href="https://2013.igem.org/Team:Calgary/Sandbox/Project/Tales">Tales</a>
 +
<ul>
 +
<li><a href="#">Sub-Page</a></li>
 +
<li><a href="#">Sub-Page</a></li>
 +
<li><a href="#">Sub-Page</a></li>
 +
</ul>
 +
</li>
 +
<li><a href="https://2013.igem.org/Team:Calgary/Sandbox/Project/Ferritin">Ferritin</a>
 +
<ul>
 +
<li><a href="#">Sub-Page</a></li>
 +
<li><a href="#">Sub-Page</a></li>
 +
<li><a href="#">Sub-Page</a></li>
 +
</ul>
 +
</li>
 +
<li><a href="https://2013.igem.org/Team:Calgary/Sandbox/Project/Linker">Linker</a>
 +
<ul>
 +
<li><a href="#">Sub-Page</a></li>
 +
<li><a href="#">Sub-Page</a></li>
 +
<li><a href="#">Sub-Page</a></li>
 +
</ul>
 +
</li>
 +
<li><a href="https://2013.igem.org/Team:Calgary/Sandbox/Project/Engineering">Engineering</a>
 +
<ul>
 +
<li><a href="#">Sub-Page</a></li>
 +
<li><a href="#">Sub-Page</a></li>
 +
<li><a href="#">Sub-Page</a></li>
 +
</ul>
 +
</li>
 +
<li><a href="https://2013.igem.org/Team:Calgary/Sandbox/Project/HumanPractices">Human Practices</a>
 +
<ul>
 +
<li><a href="#">Sub-Page</a></li>
 +
<li><a href="#">Sub-Page</a></li>
 +
<li><a href="#">Sub-Page</a></li>
 +
</ul>
 +
</li>
 +
<li><a href="https://2013.igem.org/Team:Calgary/Sandbox/Project/References">References</a></li>
 +
<li><a href="https://2013.igem.org/Team:Calgary/Sandbox/Project/Attributions">Attributions</a></li>
 +
<li><a href="https://2013.igem.org/Team:Calgary/Sandbox/Project/Sponsors">Sponsors</a></li>
 +
</ul>
 +
</li>
 +
<li>
 +
<a href="https://2013.igem.org/Team:Calgary/Sandbox/OurTeam">Our Team</a>
 +
<ul>
 +
<li><a href="https://2013.igem.org/Team:Calgary/Sandbox/OurTeam/TeamMembers">Team Members</a></li>
 +
<li><a href="https://igem.org/Team.cgi?id=1189" target="_blank">Our Profile</a></li>
 +
<li><a href="https://2013.igem.org/Team:Calgary/Sandbox/OurTeam/TheUniversity">The<br>University</a></li>
 +
<li><a href="https://2013.igem.org/Team:Calgary/Sandbox/OurTeam/ContactUs">Contact Us</a></li>
 +
</ul>
 +
</li>
 +
<li id="LogoItem"><img id="NavLogo" src="HexLogo.png"></li>
 +
<li>
 +
<a href="https://2013.igem.org/Team:Calgary/Sandbox/Notebook">Notebook</a>
 +
<ul>
 +
<li><a href="https://2013.igem.org/Team:Calgary/Sandbox/Notebook/Journal">Journal</a>
 +
<ul>
 +
<li><a href="https://2013.igem.org/Team:Calgary/Sandbox/Notebook/Journal/TalesJournal">Tales</a></li>
 +
<li><a href="https://2013.igem.org/Team:Calgary/Sandbox/Notebook/Journal/FerritinJournal">Ferritin</a></li>
 +
<li><a href="https://2013.igem.org/Team:Calgary/Sandbox/Notebook/Journal/LinkerJournal">Linker</a></li>
 +
<li><a href="https://2013.igem.org/Team:Calgary/Sandbox/Notebook/Journal/EngineeringJournal">Engineering</a></li>
 +
<li><a href="https://2013.igem.org/Team:Calgary/Sandbox/Notebook/Journal/HumanPracticesJournal">Human Practices</a></li>
 +
</ul>
 +
</li>
 +
<li><a href="https://2013.igem.org/Team:Calgary/Sandbox/Notebook/Protocols">Protocols</a>
 +
<ul>
 +
<li><a href="#">Sub-Page</a></li>
 +
<li><a href="#">Sub-Page</a></li>
 +
<li><a href="#">Sub-Page</a></li>
 +
</ul>
 +
</li>
 +
<li><a href="https://2013.igem.org/Team:Calgary/Sandbox/Notebook/Parts">Parts</a></li>
 +
</ul>
 +
</li>
 +
<li>
 +
<a href="https://2013.igem.org/Team:Calgary/Sandbox/Outreach">Outreach</a>
 +
<ul>
 +
<li><a href="#">Sub-Page</a></li>
 +
<li><a href="#">Sub-Page</a></li>
 +
<li><a href="#">Sub-Page</a></li>
 +
</ul>
 +
</li>
 +
<li>
 +
<a href="https://2013.igem.org" target="_blank">iGEM</a>
 +
</li>
 +
</ul>
 +
</header>
 +
 +
<div id="NavHeight"></div>
</body>
</body>
</html>
</html>

Revision as of 22:26, 16 August 2013