CharisKomos (Talk | contribs) |
CharisKomos (Talk | contribs) |
||
(279 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<html> | <html> | ||
+ | <style> | ||
+ | body{ min-width:1200px; } | ||
+ | </style> | ||
+ | <!-- | ||
+ | var note = document.getElementById('expand'); | ||
+ | var screenPosition = note.getBoundingClientRect(); | ||
+ | screenPosition | ||
+ | --> | ||
<head> | <head> | ||
− | <!-- >> | + | <!-- Smooth Scroling Reference --> |
+ | <script type='text/javascript' src='https://2017.igem.org/Template:Greece/smooth_scrolling_reference?action=raw&ctype=text/javascript'></script> | ||
− | + | <!-- MathJax Library --> | |
+ | <script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.2/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"> | ||
− | <!-- >>>>> | + | <!-- >>>>> Meta <<<<< --> |
+ | <meta name='viewport' content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0' /> | ||
− | + | <!-- Call Jquery --> | |
− | + | <script type="text/javascript" src="https://2017.igem.org/Template:Greece/latest_jquery?action=raw&ctype=text/javascript"></script> | |
− | + | <!-- Start of Notebook Scripts --> | |
− | + | ||
+ | <script type="text/javascript" src="https://2017.igem.org/Template:Greece/Javascript? | ||
action=raw&ctype=text/javascript"></script> | action=raw&ctype=text/javascript"></script> | ||
+ | <script type="text/javascript" src="https://2017.igem.org/Template:Greece/Javascript1? | ||
+ | action=raw&ctype=text/javascript"></script> | ||
+ | <script type="text/javascript" src="https://2017.igem.org/Template:Greece/Javascript2? | ||
+ | action=raw&ctype=text/javascript"></script> | ||
+ | <script type="text/javascript" src="https://2017.igem.org/Template:Greece/Javascript3? | ||
+ | action=raw&ctype=text/javascript"></script> | ||
+ | <script type="text/javascript" src="https://2017.igem.org/Template:Greece/Javascript4? | ||
+ | action=raw&ctype=text/javascript"></script> | ||
+ | <script type="text/javascript" src="https://2017.igem.org/Template:Greece/Javascript5? | ||
+ | action=raw&ctype=text/javascript"></script> | ||
+ | |||
+ | <!-- End of Notebook Scripts --> | ||
+ | <!-- Start of Notebook Stylesheets --> | ||
+ | |||
+ | <link rel="stylesheet" type="text/css" href="https://2017.igem.org/Template:Greece/notebook/style?action=raw&ctype=text/css" /> | ||
+ | <link rel="stylesheet" type="text/css" href="https://2017.igem.org/Template:Greece/CSS/notebook1?action=raw&ctype=text/css" /> | ||
+ | <link rel="stylesheet" type="text/css" href="https://2017.igem.org/Template:Greece/CSS/notebook2?action=raw&ctype=text/css" /> | ||
+ | <link rel="stylesheet" type="text/css" href="https://2017.igem.org/Template:Greece/CSS/notebook3?action=raw&ctype=text/css" /> | ||
+ | |||
+ | <!-- End of Notebook Stylesheets --> | ||
+ | |||
+ | <!-- >>>>> 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 --> | <!-- On document.ready --> | ||
Line 24: | Line 69: | ||
//HIDE | //HIDE | ||
− | void(document.getElementById('loading-background').style.display = 'none'); | + | setTimeout(function(){void(document.getElementById('loading-background').style.display = 'none')}, 3000); |
//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('svg_graphics_box').style.display = 'block'); | ||
− | void(document.getElementById(' | + | 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 */ | ||
+ | (function($) { | ||
+ | $.fn.goTo = function() { | ||
+ | $('html, body').animate({ | ||
+ | scrollTop: $(this).offset().top + 'px'}, 1000); | ||
+ | return this; // for chaining... | ||
+ | } | ||
+ | })(jQuery); | ||
+ | sessionStorage.setItem('KEY', 'Project'); | ||
+ | |||
+ | 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/Project' ? $('#back_to_top').css('display', 'block') : $('#back_to_top').css('display', 'none'); | ||
}); | }); | ||
</script> | </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'); | |
− | function displayMe(idz){ | + | var stateMsg; |
− | + | switch(idz){ | |
− | + | case 'c_t1': stateMsg = 'Description'; | |
− | + | break; | |
− | } | + | case 'c_t2': stateMsg = 'Results'; |
+ | break; | ||
+ | case 'c_t3': stateMsg = 'Notebook'; | ||
+ | break; | ||
+ | case 'c_t4': stateMsg = 'ProjectDesign'; | ||
+ | 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'); | ||
+ | } | ||
</script> | </script> | ||
− | + | <script> | |
− | + | var str = 'https://2017.igem.org/Team:Greece/'; | |
− | var | + | var referrer = document.referrer; |
− | + | var check = referrer.substring(str.length, referrer.length); | |
− | + | console.log(check); | |
− | + | var new_height; | |
− | + | switch(check){ | |
+ | /*Project*/ | ||
+ | case 'Description' : new_height = 4150; | ||
+ | break; | ||
+ | case 'Results' : new_height = 8900; | ||
+ | break; | ||
+ | case 'Design' : new_height = 10350; | ||
+ | break; | ||
+ | } | ||
+ | $('#display_box').css('height', new_height); | ||
− | + | </script> | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
</head> | </head> | ||
<body> | <body> | ||
− | + | <span id='top_flag' style='position: absolute; z-index: -100; margin: -100px 0px 0px 0px;'></span> | |
<!-- Loading Screen --> | <!-- Loading Screen --> | ||
<div id='loading-background'> | <div id='loading-background'> | ||
− | <img id='loading-gif' src='https:// | + | <img id='loading-gif' src='https://static.igem.org/mediawiki/2017/c/c6/Greekom_loading_gif.gif' alt='Loading...' /> |
</div> | </div> | ||
<!-- Navigation Bar --> | <!-- Navigation Bar --> | ||
<div style='display: none;' id='main-wraper'> | <div style='display: none;' id='main-wraper'> | ||
− | |||
<div class='menu_wrap'></div> | <div class='menu_wrap'></div> | ||
<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:// | + | <img class='logo' id='logo' src='https://static.igem.org/mediawiki/2017/8/85/Greekom_logo.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 119: | Line 188: | ||
</div> | </div> | ||
− | <svg style='display:none; position:absolute; z-index:1000 | + | <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" | + | <a href='#' onmouseover="onHoverChanges( $(this).children('circle:first').attr('id') )" onmouseleave="onHoverHide($(this).children('circle:first').attr('id'))"> |
− | <text class='animate_text' id='t1' x='0' y=' | + | <circle id='c_t1' class='circlez' cx="-230" cy="365" r="135" stroke='#ffffff' stroke-width="0" fill="white" onclick="displayMe(this.id)" onmouseover="onHoverChanges(this.id)" /> |
− | <tspan x="-230" dy=" | + | <text class='animate_text' id='t1' x='0' y='335' text-anchor='middle' fill='#000000'> |
− | < | + | <tspan x="-230" dy="1.5em" onclick="displayMe('c_t1')" id='f_circle_text' >DESCRIPTION</tspan> |
− | + | </text></a> | |
− | + | ||
+ | <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' 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="193" dy="1.5em" onclick="displayMe('c_t2')"> | + | <tspan x="193" dy="1.5em" onclick="displayMe('c_t2')" id='s_circle_text'>RESULTS</tspan> |
− | </text> | + | </text></a> |
− | <circle class='circlez' cx="610" cy="365" r="135" stroke='#ffffff' stroke-width="0" fill="white" id='c_t3 | + | |
+ | <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' 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="610" dy="1.5em" onclick="displayMe('c_t3')"> | + | <tspan x="610" dy="1.5em" onclick="displayMe('c_t3')" id='t_circle_text'>NOTEBOOK</tspan> |
− | </text> | + | </text></a> |
− | <circle class='circlez' cx="1020" cy="365" r="135" stroke='#ffffff' stroke-width="0" fill="white" id='c_t4 | + | |
+ | <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' 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=" | + | <tspan x="1020" dy="1.5em" onclick="displayMe('c_t4')" id='fo_circle_text'>DESIGN</tspan> |
− | </text> | + | </text></a> |
</svg> | </svg> | ||
− | <!--Background | + | <!-- Video Background --> |
− | < | + | <video id="video" autoplay="autoplay" muted="muted" preload="auto" loop="loop"> |
− | < | + | <source src="https://static.igem.org/mediawiki/2017/e/e4/GreeKom_bacteria_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 --> | <!-- Subsection Box --> | ||
− | <div id='display_box'>< | + | |
+ | <div id='display_box'> | ||
+ | |||
+ | <div id='ct1'> | ||
+ | <div id='Description' width='100%' height='100%' class='display_frame hide'></html>{{Greece/Description}}<html></div> | ||
+ | </div> | ||
+ | |||
+ | <div id='Results' width='100%' height='100%' class='display_frame hide' ></html>{{Greece/Results}}<html></div> | ||
+ | |||
+ | <div id='Notebook' width='100%' height='100%' class='display_frame hide' ></html>{{Greece/notebook}}<html></div> | ||
+ | |||
+ | <div id='ProjectDesign' width='100%' height='100%' class='display_frame hide' ></html>{{Greece/ProjectDesign}}<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> | ||
<!-- Special Style --> | <!-- Special Style --> | ||
<style> | <style> | ||
− | .circlez{ | + | #svg_graphics_box{ margin: 0px 0px 0px 0px;} |
− | + | ||
− | } | + | .circlez{ opacity: 0.8; } |
.animate_text{ font-size: 25px; } | .animate_text{ font-size: 25px; } | ||
− | .circlez, .animate_text{cursor: pointer;} | + | .circlez, .animate_text{ cursor: pointer; } |
− | .opace{ opacity: | + | .opace{ opacity: 1; } |
− | + | .hide{ display:none;} | |
+ | .reveal{ display: block; } | ||
+ | |||
+ | .slide_out{ left: -800px; } | ||
+ | |||
+ | .slide_in{ left: 0px; } | ||
+ | |||
+ | video{ | ||
+ | position: fixed; | ||
+ | display:none; | ||
+ | top: 0%; | ||
+ | left: 0%; | ||
+ | min-width: 100%; | ||
+ | min-height: 100%; | ||
+ | width: inherit; | ||
+ | height: inherit; | ||
+ | z-index: 999; | ||
+ | overflow: hidden; | ||
+ | } | ||
</style> | </style> | ||
<!-- Styling script --> | <!-- 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(){ | ||
+ | |||
+ | console.log(innerWidth); | ||
+ | if(window.innerWidth > 1025){ | ||
+ | if(window.innerWidth < 1367){ | ||
+ | $('#f_circle_text').attr({ 'x': '-210' }); | ||
+ | |||
+ | $('#s_circle_text').attr({ 'x': '200' }); | ||
+ | |||
+ | $('#t_circle_text').attr({ 'x': '615' }); | ||
+ | |||
+ | console.log('1025 < x < 1366'); | ||
+ | } | ||
+ | } | ||
+ | |||
+ | if(window.innerWidth >= 1367){ | ||
+ | $('#f_circle_text').attr({ 'x': '-230' }); | ||
+ | |||
+ | $('#s_circle_text').attr({ 'x': '193' }); | ||
+ | |||
+ | $('#t_circle_text').attr({ 'x': '610' }); | ||
+ | |||
+ | console.log(' 1367 <= x '); | ||
+ | } | ||
+ | } | ||
+ | $(window).resize(function () { | ||
+ | onWindowResize(); | ||
+ | }); | ||
+ | onWindowResize(); | ||
+ | </script> | ||
<script> | <script> | ||
Line 182: | Line 337: | ||
// 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'); |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
</script> | </script> | ||
</body> | </body> | ||
</html> | </html> |
Latest revision as of 01:01, 17 December 2017