- · 97.934 Slack messages sent
- · Data, data, data (all types, even Soong-type)
- · Wish we lived on Mars, for these extra 41 minutes in every day
- · "If the cell doesn’t like it, the cell doesn’t like it."
- · Breaking into a lab is not a crime (as long as you work there)
- · Thank you "On the Edge" for all the sensational ideas
CharisKomos (Talk | contribs) |
CharisKomos (Talk | contribs) |
||
(77 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<html> | <html> | ||
<head> | <head> | ||
− | + | <style>body{ min-width: 1200px; }</style> | |
− | + | <!-- >>>>> Meta <<<<< --> | |
− | + | <meta name='viewport' content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0' /> | |
− | + | <!-- Smooth Scroling Reference --> | |
− | + | <script type='text/javascript' src='https://2017.igem.org/Template:Greece/smooth_scrolling_reference?action=raw&ctype=text/javascript'></script> | |
− | <script> | + | <!-- MathJax Library --> |
− | + | <script src="https://2015.igem.org/common/MathJax-2.5-latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script> | |
+ | |||
+ | <!-- Collapsable --> | ||
+ | <script type='text/javascript' src='https://2017.igem.org/Template:Greece/expanding_boxes_functionality?action=raw&ctype=text/javascript'></script> | ||
+ | <link href='https://2017.igem.org/Template:Greece/expanding_boxes_stylesheet?action=raw&ctype=text/css' rel='stylesheet'> | ||
+ | <!-- End of collapsable --> | ||
+ | |||
+ | <!-- Google Fonts --> | ||
+ | <link href="https://fonts.googleapis.com/css?family=Poiret+One" rel="stylesheet"> | ||
+ | |||
+ | <!-- Call Jquery --> | ||
+ | <script type="text/javascript" src="https://2017.igem.org/Template:Greece/latest_jquery?action=raw&ctype=text/javascript"></script> | ||
+ | |||
+ | <!-- >>>>> General Stylesheets <<<<< --> | ||
+ | |||
+ | <link rel="stylesheet" type="text/css" href="https://2017.igem.org/Template:Greece/CSS?action=raw&ctype=text/css" /> | ||
+ | <link rel="stylesheet" type="text/css" href="https://2017.igem.org/Template:Greece/xlarge?action=raw&ctype=text/css" /> | ||
+ | <link rel="stylesheet" type="text/css" href="https://2017.igem.org/Template:Greece/large?action=raw&ctype=text/css" /> | ||
+ | <link rel="stylesheet" type="text/css" href="https://2017.igem.org/Template:Greece/medium?action=raw&ctype=text/css" /> | ||
+ | |||
+ | <!-- >>>>> General Scripts <<<<< --> | ||
+ | |||
+ | <!-- On document.ready --> | ||
+ | <script> | ||
+ | $( document ).ready(function(){ | ||
void(window.document.title = 'TEAM'); | void(window.document.title = 'TEAM'); | ||
+ | |||
//HIDE | //HIDE | ||
− | + | setTimeout(function(){void(document.getElementById('loading-background').style.display = 'none')}, 5000); | |
− | + | ||
//SHOW | //SHOW | ||
− | void(document.getElementById('main-wraper').style.display = 'block'); | + | void(document.getElementById('main-wraper').style.display = 'block'); |
+ | void(document.getElementById('svg_graphics_box').style.display = 'block'); | ||
+ | void(document.getElementById('video').style.display = 'block'); | ||
// Change color of current link | // Change color of current link | ||
$('a[href*="' +window.location.href+'"]').each(function() { $(this).css('color', '#000000'); }); | $('a[href*="' +window.location.href+'"]').each(function() { $(this).css('color', '#000000'); }); | ||
− | } | + | /* Plugin for smooth scroll down */ |
− | </script> | + | (function($) { |
− | <script> | + | $.fn.goTo = function() { |
+ | $('html, body').animate({ | ||
+ | scrollTop: $(this).offset().top + 'px'}, 1000); | ||
+ | return this; // for chaining... | ||
+ | } | ||
+ | })(jQuery); | ||
+ | sessionStorage.setItem('KEY', 'Team'); | ||
+ | |||
+ | if(link !== master){ if(link !== null){ | ||
+ | $('#display_box').css('display', 'block'); | ||
+ | $('.display_frame').removeClass('reveal'); | ||
+ | $('#' + link).addClass('reveal'); | ||
+ | $('#footer').addClass('reveal'); | ||
+ | $('#ct1').goTo(); | ||
+ | void(document.title = link.toUpperCase()); | ||
+ | }}; | ||
+ | controllingGeneralStyle(); | ||
+ | window.location.href != 'https://2017.igem.org/Team:Greece/Team' ? $('#back_to_top').css('display', 'block') : $('#back_to_top').css('display', 'none'); | ||
+ | }); | ||
+ | </script> | ||
+ | |||
+ | <!-- Master Script --> | ||
+ | <script type="text/javascript" src="https://2017.igem.org/Template:Greece/master_script?action=raw&ctype=text/javascript"></script> | ||
+ | |||
+ | <script> | ||
+ | /* Subsection onHover Functionality */ | ||
function onHoverChanges(idz){ | function onHoverChanges(idz){ | ||
− | + | $('#'+idz).css('opacity','1'); | |
− | + | } | |
− | + | ||
− | + | function onHoverHide(idz){ | |
+ | $('.circlez').css('opacity','0.8'); | ||
+ | } | ||
+ | </script> | ||
+ | |||
+ | <!-- Display Subsection Functionality --> | ||
+ | <script> | ||
+ | |||
+ | function displayMe(idz){ | ||
+ | $('#display_box').css('display', 'block'); | ||
+ | var stateMsg; | ||
switch(idz){ | switch(idz){ | ||
case 'c_t1': stateMsg = 'TeamIntro'; | case 'c_t1': stateMsg = 'TeamIntro'; | ||
Line 38: | Line 99: | ||
break; | break; | ||
} | } | ||
− | + | window.history.replaceState(null, null, stateMsg); | |
− | + | $('.display_frame').removeClass('reveal'); | |
+ | $('#' + stateMsg).addClass('reveal'); | ||
+ | $('#footer').addClass('reveal'); | ||
+ | $('#ct1').goTo(); | ||
+ | void(document.title = stateMsg.toUpperCase()); | ||
+ | controllingGeneralStyle(); | ||
+ | $('#back_to_top').css('display', 'block'); | ||
− | + | if( stateMsg == 'Supervisors' || document.referrer == 'https://2017.igem.org/Team:Greece/Supervisors'){ $('#display_box').css('height', '1465px') } | |
− | + | else if( stateMsg == 'TeamRoster' || document.referrer == 'https://2017.igem.org/Team:Greece/TeamRoster'){ $('#display_box').css('height', '800px') } | |
− | + | ||
− | + | ||
− | } | + | |
− | + | ||
− | + | ||
− | + | else $('#display_box').css('height', '800px'); | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | |||
− | |||
− | |||
− | |||
− | + | if(stateMsg == 'Attributions') $('#display_box').css('height', '1000px'); | |
− | + | ||
} | } | ||
+ | </script> | ||
− | + | <script> | |
− | + | var str = 'https://2017.igem.org/Team:Greece/'; | |
− | + | var referrer = document.referrer; | |
− | }); | + | var check = referrer.substring(str.length, referrer.length); |
− | + | console.log(check); | |
+ | var new_height; | ||
+ | switch(check){ | ||
+ | /*Project*/ | ||
+ | case 'Attributions' : new_height = 1000; | ||
+ | break; | ||
+ | } | ||
+ | $('#display_box').css('height', new_height); | ||
</script> | </script> | ||
</head> | </head> | ||
<body> | <body> | ||
− | < | + | <span id='top_flag' style='position: absolute; z-index: -100; margin: -100px 0px 0px 0px;'></span> |
− | <img id='loading-gif' src='https:// | + | <!-- Loading Screen --> |
+ | <div id='loading-background'> | ||
+ | <img id='loading-gif' src='https://static.igem.org/mediawiki/2017/c/c6/Greekom_loading_gif.gif' alt='Loading...' /> | ||
+ | </div> | ||
+ | |||
<!-- Navigation Bar --> | <!-- Navigation Bar --> | ||
<div style='display: none;' id='main-wraper'> | <div style='display: none;' id='main-wraper'> | ||
Line 81: | Line 146: | ||
<nav class='menu'> | <nav class='menu'> | ||
<ul class='clearfix' id='list'> | <ul class='clearfix' id='list'> | ||
− | <li><a target='_self' href='https://2017.igem.org/Team:Greece | + | <li><a target='_self' href='https://2017.igem.org/Team:Greece'> |
<img class='logo' id='logo' src='https://cldup.com/0IRxBwvTKJ.png' /></a></li> | <img class='logo' id='logo' src='https://cldup.com/0IRxBwvTKJ.png' /></a></li> | ||
− | <!--<li class='li_indiv'><a target='_self' href='https://2017.igem.org/Team:Greece | + | <!--<li class='li_indiv'><a target='_self' href='https://2017.igem.org/Team:Greece'>HOME</a></li>--> |
<span id='just_to_align'> | <span id='just_to_align'> | ||
<li style='width:' class='li_indiv'><a target='_self' href='https://2017.igem.org/Team:Greece/Project'>PROJECT</a></li> | <li style='width:' class='li_indiv'><a target='_self' href='https://2017.igem.org/Team:Greece/Project'>PROJECT</a></li> | ||
<li style='width:' class='li_indiv'><a target='_self' href='https://2017.igem.org/Team:Greece/Model'>MODELING</a></li> | <li style='width:' class='li_indiv'><a target='_self' href='https://2017.igem.org/Team:Greece/Model'>MODELING</a></li> | ||
<li style='width:' class='li_indiv'><a target='_self' href='https://2017.igem.org/Team:Greece/human_practices'>HUMAN PRACTICES</a></li> | <li style='width:' class='li_indiv'><a target='_self' href='https://2017.igem.org/Team:Greece/human_practices'>HUMAN PRACTICES</a></li> | ||
− | <li style='width:' class='li_indiv'><a target='_self' href='https://2017.igem.org/Team:Greece/ | + | <li style='width:' class='li_indiv'><a target='_self' href='https://2017.igem.org/Team:Greece/Achievements'>ACHIEVEMENTS</a></li> |
<li style='width:' class='li_indiv'><a target='_self' href='https://2017.igem.org/Team:Greece/Team'>TEAM</a></li> | <li style='width:' class='li_indiv'><a target='_self' href='https://2017.igem.org/Team:Greece/Team'>TEAM</a></li> | ||
</span> | </span> | ||
Line 94: | Line 159: | ||
</nav> | </nav> | ||
</div> | </div> | ||
− | <svg style='display: | + | |
+ | <svg style='display:none; position:absolute; z-index:1000;' id='svg_graphics_box' class='responsive_box' height="580" width='99%' viewBox="0 0 800 700"> | ||
<!--min-x, min-y, width, height--> | <!--min-x, min-y, width, height--> | ||
− | <circle class='circlez' cx="-230" cy="365" r="135" stroke='#ffffff' stroke-width="0" fill="white" id='c_t1' class='svgGraphic' onclick="displayMe(this.id)" onmouseover="onHoverChanges(this.id)" /> | + | <a href='#' onmouseover="onHoverChanges( $(this).children('circle:first').attr('id') )" onmouseleave="onHoverHide($(this).children('circle:first').attr('id'))"> |
+ | <circle class='circlez' cx="-230" cy="365" r="135" stroke='#ffffff' stroke-width="0" fill="white" id='c_t1' class='svgGraphic' onclick="displayMe(this.id)" onmouseover="onHoverChanges(this.id)" /> | ||
<text class='animate_text' id='t1' x='0' y='275' text-anchor='middle' fill='#000000'> | <text class='animate_text' id='t1' x='0' y='275' text-anchor='middle' fill='#000000'> | ||
− | <tspan x="-230" dy="2.5em"> | + | <tspan x="-230" dy="2.5em" onclick="displayMe('c_t1')" id='f_circle_textA'>THE ROAD</tspan> |
− | <tspan x="-230" dy="1.5em"> | + | <tspan x="-230" dy="1.5em" onclick="displayMe('c_t1')" id='f_circle_textB'>TO</tspan> |
− | <tspan x="-230" dy="1.5em"> | + | <tspan x="-230" dy="1.5em" onclick="displayMe('c_t1')" id='f_circle_textC'>BOSTON</tspan> |
− | </text> | + | </text></a> |
− | <circle class='circlez' cx="190" cy="365" r="135" stroke='#ffffff' stroke-width="0" fill="white" id='c_t2' class='svgGraphic' onclick="displayMe(this.id)" onmouseover="onHoverChanges(this.id)" /> | + | |
+ | <a href='#' onmouseover="onHoverChanges( $(this).children('circle:first').attr('id') )" onmouseleave="onHoverHide($(this).children('circle:first').attr('id'))"> | ||
+ | <circle class='circlez' cx="190" cy="365" r="135" stroke='#ffffff' stroke-width="0" fill="white" id='c_t2' class='svgGraphic' onclick="displayMe(this.id)" onmouseover="onHoverChanges(this.id)" /> | ||
<text class='animate_text' id='t2' x='0' y='335' text-anchor='middle' fill='#000000'> | <text class='animate_text' id='t2' x='0' y='335' text-anchor='middle' fill='#000000'> | ||
− | <tspan x="195" dy="1.5em"> | + | <tspan x="195" dy="1.5em" onclick="displayMe('c_t2')" id='s_circle_textA'>MEMBERS</tspan> |
− | </text> | + | </text></a> |
− | <circle class='circlez' cx="610" cy="365" r="135" stroke='#ffffff' stroke-width="0" fill="white" id='c_t3' class='svgGraphic' onclick="displayMe(this.id)" onmouseover="onHoverChanges(this.id)" /> | + | |
+ | <a href='#' onmouseover="onHoverChanges( $(this).children('circle:first').attr('id') )" onmouseleave="onHoverHide($(this).children('circle:first').attr('id'))"> | ||
+ | <circle class='circlez' cx="610" cy="365" r="135" stroke='#ffffff' stroke-width="0" fill="white" id='c_t3' class='svgGraphic' onclick="displayMe(this.id)" onmouseover="onHoverChanges(this.id)" /> | ||
<text class='animate_text' id='t3' x='0' y='335' text-anchor='middle' fill='#000000'> | <text class='animate_text' id='t3' x='0' y='335' text-anchor='middle' fill='#000000'> | ||
− | <tspan x="615" dy="1. | + | <tspan x="615" dy="1.5em" onclick="displayMe('c_t3')" id='t_circle_textA'>SUPERVISORS</tspan> |
− | </text> | + | </text></a> |
− | <circle class='circlez' cx="1020" cy="365" r="135" stroke='#ffffff' stroke-width="0" fill="white" id='c_t4' class='svgGraphic' onclick="displayMe(this.id)" onmouseover="onHoverChanges(this.id)" /> | + | |
+ | <a href='#' onmouseover="onHoverChanges( $(this).children('circle:first').attr('id') )" onmouseleave="onHoverHide($(this).children('circle:first').attr('id'))"> | ||
+ | <circle class='circlez' cx="1020" cy="365" r="135" stroke='#ffffff' stroke-width="0" fill="white" id='c_t4' class='svgGraphic' onclick="displayMe(this.id)" onmouseover="onHoverChanges(this.id)" /> | ||
<text class='animate_text' id='t4' x='0' y='335' text-anchor='middle' fill='#000000'> | <text class='animate_text' id='t4' x='0' y='335' text-anchor='middle' fill='#000000'> | ||
− | <tspan x="1025" dy=" | + | <tspan x="1025" dy="1.5em" onclick="displayMe('c_t4')" id='fo_circle_textA'>ATTRIBUTIONS</tspan> |
− | </text> | + | </text></a> |
+ | </svg> | ||
+ | <!-- Video Background --> | ||
+ | <video id="video" autoplay="autoplay" muted="muted" preload="auto" loop="loop"> | ||
+ | <source src="https://static.igem.org/mediawiki/2017/3/3b/Greekom_team_background_video.mp4" type="video/mp4"> | ||
+ | <!--<source src="https://static.igem.org/mediawiki/2017/5/55/GreeKom_slow_wave_video_background.webm" type="video/webm">--> | ||
+ | </video> | ||
− | < | + | <!-- Subsection Box --> |
− | <div | + | <div id='display_box'> |
− | + | <div id='ct1'><div id='TeamIntro' width='100%' height='100%' class='display_frame hide'></html>{{Greece/TeamIntro}}<html></div></div> | |
− | </ | + | |
− | <div | + | |
− | < | + | <div id='TeamRoster' width='100%' height='100%' class='display_frame hide'></html>{{Greece/TeamRoster}}<html></div> |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | } | + | |
− | </ | + | |
+ | <div id='Supervisors' width='100%' height='100%' class='display_frame hide'></html>{{Greece/Supervisors}}<html></div> | ||
− | < | + | <div id='Attributions' width='100%' height='100%' class='display_frame hide'></html>{{Greece/Attributions}}<html></div> |
− | < | + | |
− | + | ||
− | + | ||
− | } | + | |
− | + | </div> | |
− | + | <div id='back_to_top' onmouseover="$(this).css('cursor', 'pointer')" onclick='backToTop()' ></div> | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | <script> | |
− | + | function backToTop(){ | |
− | + | /*$('html, body').animate({scrollTop: '-=15000px'}, 1800);*/ | |
− | + | $('#top_flag').goTo(); | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
} | } | ||
+ | </script> | ||
− | + | <!-- Footer Box --> | |
− | + | <div id='footer' style='background:#ffffff; position: absolute; width:100%; height: 220px; z-index:1000;' class='hide'> | |
− | + | <img style='position:relative; width:100%; height:100%;' src='https://static.igem.org/mediawiki/2017/3/3a/Greekom_footer_new.png' /> | |
− | + | </div> | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | position:relative; | + | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | . | + | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | <!-- Special Style --> | |
+ | <style> | ||
− | + | #svg_graphics_box{ margin: 0px 0px 0px 0px;} | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | } | + | |
− | + | .circlez{ opacity: 0.8; } | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | } | + | |
− | . | + | .animate_text{ font-size: 25px; } |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | } | + | |
− | . | + | .circlez, .animate_text{ cursor: pointer; } |
− | + | ||
− | + | ||
− | } | + | |
− | + | .opace{ opacity: 1; } | |
− | + | ||
− | } | + | |
− | . | + | .hide{ display:none;} |
− | + | ||
− | + | .reveal{ display: block; } | |
− | + | ||
− | + | ||
− | + | ||
− | } | + | |
− | + | video{ | |
− | + | position: fixed; | |
+ | display:none; | ||
+ | top: 0%; | ||
+ | left: 0%; | ||
+ | min-width: 100%; | ||
+ | min-height: 100%; | ||
+ | width: inherit; | ||
+ | height: inherit; | ||
+ | z-index: 999; | ||
+ | overflow: hidden; | ||
+ | zoom: 0.5; | ||
} | } | ||
+ | </style> | ||
− | + | <!--Styling script--> | |
− | + | <!-- This script exists due to the innability of changing the <x> attribute of <tspan> in circles --> | |
+ | <script> | ||
+ | /* Media Queries in JavaScript using nested if statements */ | ||
+ | function onWindowResize(){ | ||
− | . | + | if(window.innerWidth > 1025){ |
− | + | if(window.innerWidth < 1367){ | |
+ | $('#f_circle_textA').attr({ 'x': '-208' }); | ||
+ | $('#f_circle_textB').attr({ 'x': '-210' }); | ||
+ | $('#f_circle_textC').attr({ 'x': '-213' }); | ||
− | + | $('#s_circle_textA').attr({ 'x': '200' }); | |
− | + | ||
− | + | $('#t_circle_textA').attr({ 'x': '615' }); | |
− | + | $('#fo_circle_textB').attr({ 'x': '1020' }); | |
− | + | console.log(' 1025 < x < 1366 '); | |
+ | } | ||
+ | } | ||
+ | if(window.innerWidth >= 1367){ | ||
+ | $('#f_circle_textA').attr({ 'x': '-230' }); | ||
+ | $('#f_circle_textB').attr({ 'x': '-230' }); | ||
+ | $('#f_circle_textC').attr({ 'x': '-230' }); | ||
− | + | $('#s_circle_textA').attr({ 'x': '190' }); | |
− | + | $('#t_circle_textA').attr({ 'x': '612' }); | |
− | + | $('#fo_circle_textB').attr({ 'x': '1025' }); | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | console.log(' 1367 <= x '); | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
} | } | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
} | } | ||
+ | $(window).resize(function () { | ||
+ | onWindowResize(); | ||
+ | }); | ||
+ | onWindowResize(); | ||
+ | </script> | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
<script> | <script> | ||
//Changes shall apply under void() | //Changes shall apply under void() | ||
Line 371: | Line 312: | ||
// Same application for it's side effect (display an ugly div by default) | // Same application for it's side effect (display an ugly div by default) | ||
− | void(document.getElementById('user_item').style.display = 'none'); | + | //void(document.getElementById('user_item').style.display = 'none'); |
void(document.getElementById('sideMenu').style.display = 'none'); | void(document.getElementById('sideMenu').style.display = 'none'); | ||
var element = document.getElementById('home_logo'); | var element = document.getElementById('home_logo'); | ||
element.outerHTML = ''; | element.outerHTML = ''; | ||
delete element; | delete element; | ||
− | |||
− | |||
− | |||
</script> | </script> | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
</body> | </body> | ||
</html> | </html> |
Latest revision as of 04:05, 16 December 2017