|
|
(147 intermediate revisions by the same user not shown) |
Line 1: |
Line 1: |
| <html> | | <html> |
| <head> | | <head> |
| + | <!-- Google fonts --> |
| + | <link href='http://fonts.googleapis.com/css?family=Open+Sans:400,300' rel='stylesheet' type='text/css'> |
| + | <link href='https://fonts.googleapis.com/css?family=Raleway' rel='stylesheet' type='text/css'> |
| + | |
| + | <!-- D3.js--> |
| + | <script src="https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.6/d3.min.js" charset="utf-8"></script> |
| + | |
| + | <style>body{ min-width: 1200px; }</style> |
| <!-- >>>>> Meta <<<<< --> | | <!-- >>>>> Meta <<<<< --> |
| + | <meta name='viewport' content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0' /> |
| | | |
− | <meta name="viewport" content="width=device-width, initial-scale=1.0">
| + | <!-- Smooth Scroling Reference --> |
| + | <script type='text/javascript' src='https://2017.igem.org/Template:Greece/smooth_scrolling_reference?action=raw&ctype=text/javascript'></script> |
| | | |
− | <!-- >>>>> Link References <<<<< --> | + | <!-- MathJax Library --> |
| + | <script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.2/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script> |
| | | |
− | <link rel="stylesheet" type="text/css" href="https://2017.igem.org/Template:Greece/CSS?action=raw&ctype=text/css" />
| + | <!-- 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 --> |
| | | |
− | <!-- >>>>> Scripts <<<<< --> | + | <!-- Google Fonts --> |
| + | <link href="https://fonts.googleapis.com/css?family=Poiret+One" rel="stylesheet"> |
| | | |
− | <!-- Call Jquery -->
| + | <!-- Call Jquery --> |
− | <script src='https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js'></script>
| + | <script type="text/javascript" src="https://2017.igem.org/Template:Greece/latest_jquery?action=raw&ctype=text/javascript"></script> |
| + | |
| + | <!-- Risk Map Chart --> |
| + | <script type="text/javascript" src="https://www.gstatic.com/charts/loader.js?action=raw&ctype=text/javascript"></script> |
| + | <script type="text/javascript" src='https://2017.igem.org/Template:Greece/RiskMap_functionality_script?action=raw&ctype=text/javascript'></script> |
| + | <!-- End of Risk Map Chart --> |
| + | |
| + | <!-- >>>>> 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" /> |
| | | |
− | <!-- Call Template Scrips -->
| + | <!-- >>>>> General Scripts <<<<< --> |
− | <script type="text/javascript" src="https://2017.igem.org/Template:Greece/Javascript?
| + | |
− | action=raw&ctype=text/javascript"></script>
| + | |
| | | |
| <!-- On document.ready --> | | <!-- On document.ready --> |
Line 24: |
Line 49: |
| | | |
| //HIDE | | //HIDE |
− | void(document.getElementById('loading-background').style.display = 'none'); | + | 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('svg_graphics_box').style.display = 'block'); |
− | void(document.getElementById('background_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 */ |
| + | (function($) { |
| + | $.fn.goTo = function() { |
| + | $('html, body').animate({ |
| + | scrollTop: $(this).offset().top + 'px'}, 1000); |
| + | return this; // for chaining... |
| + | } |
| + | })(jQuery); |
| + | sessionStorage.setItem('KEY', 'human_practices'); |
| + | |
| + | 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()); |
| + | if( window.location.href == 'https://2017.igem.org/Team:Greece/HP_Silver'){ history.replaceState(null, null, 'HP/Silver'); void(document.title = 'HP/SILVER'); } |
| + | if( window.location.href == 'https://2017.igem.org/Team:Greece/HP_Gold_Integrated'){ history.replaceState(null, null, 'HP/Gold_Integrated'); void(document.title = 'HP/GOLD_INTEGRATED'); } |
| + | }}; |
| + | controllingGeneralStyle(); |
| + | window.location.href != 'https://2017.igem.org/Team:Greece/human_practices' ? $('#back_to_top').css('display', 'block') : $('#back_to_top').css('display', 'none'); |
| }); | | }); |
| </script> | | </script> |
| | | |
− | <!-- Subsection onHover Functionality -->
| + | |
− | <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){ |
− | $('.circlez').removeClass('opace');
| + | $('#'+idz).css('opacity','1'); |
− | $('#'+idz).addClass('opace');
| + | } |
− |
| + | |
− | var stateMsg;
| + | 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 = 'O.S.I.R.I.S._OVERVIEW'; | + | case 'c_t1': { stateMsg = 'OSIRIS_Protocol'; } |
| break; | | break; |
− | case 'c_t2': stateMsg = 'RISK_ASSESSEMENT_ANALYSIS'; | + | case 'c_t2': stateMsg = 'HP_Silver'; |
| break; | | break; |
− | case 'c_t3': stateMsg = 'INTEGRATED_HUMAN_PRACTICES'; | + | case 'c_t3': stateMsg = 'HP_Gold_Integrated'; |
| break; | | break; |
− | case 'c_t4': stateMsg = 'PUBLIC_ENGAGEMENT'; | + | case 'c_t4': stateMsg = 'Engagement'; |
| break; | | break; |
| + | } |
| + | var toDivId = stateMsg; |
| + | if( window.location.href == 'https://2017.igem.org/Team:Greece/HP/Silver#' || window.location.href == 'https://2017.igem.org/Team:Greece/HP/Gold_Integrated#' || window.location.href == 'https://2017.igem.org/Team:Greece/HP/Silver' || window.location.href == 'https://2017.igem.org/Team:Greece/HP/Gold_Integrated'){ |
| + | if( stateMsg == 'HP_Silver' || stateMsg == 'HP_Gold_Integrated' ){ |
| + | stateMsg = stateMsg.replace('_', '/'); |
| + | console.log('It is one of the window.location.href'); |
| + | } |
| + | window.history.replaceState(null, null, '../' + stateMsg); |
| + | }else{ |
| + | if( stateMsg == 'HP_Silver' || stateMsg == 'HP_Gold_Integrated' ){ |
| + | stateMsg = stateMsg.replace('_', '/'); |
| + | console.log('It is one of the stateMsg'); |
| } | | } |
| window.history.replaceState(null, null, stateMsg); | | window.history.replaceState(null, null, stateMsg); |
| } | | } |
− | </script>
| |
| | | |
− | <!-- Display Subsection Functionality --> | + | $('.display_frame').removeClass('reveal'); |
− | <script> | + | $('#' + toDivId).addClass('reveal'); |
− | /* Display Subsection */ | + | $('#footer').addClass('reveal'); |
| + | $('#ct1').goTo(); |
| + | void(document.title = stateMsg.toUpperCase()); |
| + | controllingGeneralStyle(); |
| + | $('#back_to_top').css('display', 'block'); |
| + | } |
| + | </script> |
| | | |
− | function displayMe(idz){
| |
− | $('#display_box').css('display', 'block');
| |
− | scrollTillBottom();
| |
− | }
| |
− | </script>
| |
− |
| |
− | <!-- Smooth Scrolling (Top to Bottom and vice versa) -->
| |
− | <script>
| |
− |
| |
− | var myVar;
| |
− | function scrollTillBottom() {
| |
− | var i=0;
| |
− | myVar = setInterval(function(){ i += 1; scrollBy(0,10); console.log(i); if(i == 150) myStopFunction(); }, 2);
| |
− | }
| |
− |
| |
− | function scrollTillTop(){
| |
− | var j=0;
| |
− | myVar = setInterval(function(){ j += 1; scrollBy(0,-10); console.log(j); if(j == 150) myStopFunction(); }, 2);
| |
− | }
| |
− |
| |
− | function myStopFunction() {
| |
− | clearInterval(myVar);
| |
− | }
| |
− |
| |
− | $('#toTop').click( function(e) {
| |
− | e.preventDefault();
| |
− | scrollTillTop();
| |
− | });
| |
| | | |
| + | <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 'HP/Gold_Integrated' : new_height = 9200; |
| + | 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> |
| <!-- Loading Screen --> | | <!-- Loading Screen --> |
| <div id='loading-background'> | | <div id='loading-background'> |
− | <img id='loading-gif' src='https://cldup.com/pIBaUjU48W.gif' alt='Loading...' /> | + | <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 style='position:absolute;z-index:-1000;border:1px solid black;height:500px;width:100px;background:#e8e4f5;'>.</div>-->
| |
| <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/home'> | + | <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/home'>HOME</a></li>--> | + | <!--<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/Contribute'>CONTRIBUTION</a></li> | + | <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 180: |
| </div> | | </div> |
| | | |
− | <svg style='display:none; position:absolute; z-index:1000; margin: 0px;' id='svg_graphics_box' class='responsive_box' height="600" width='99%' viewBox="0 0 800 700"> | + | <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'))"> |
− | <text class='animate_text' id='t1' x='0' y='295' text-anchor='middle' fill='#000000'> | + | <rect class='circlez' x="240" y="60" rx="20" ry="20" width="300" height="80" style="fill:#ffffff;stroke:black;stroke-width:0;" id='c_t0' onclick="displayMe(this.id)" onmouseover="onHoverChanges(this.id)" /> |
− | <tspan x="-230" dy="2.5em" onclick="displayMe('c_t1')">O.S.I.R.I.S.</tspan> | + | <text class='animate_text' id='t0' x='0' y='80' text-anchor='middle' fill='#000000' style='font-size:35px; opacity: 0.7;letter-spacing:3px;'> |
− | <tspan x="-230" dy="1.5em" onclick="displayMe('c_t1')">OVERVIEW</tspan> | + | <tspan x="390" dy="1em" onclick="displayMe('c_t0')" id='f_rect_text'>OVERVIEW</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)" /> | + | |
− | <text class='animate_text' id='t2' x='0' y='300' text-anchor='middle' fill='#000000'> | + | <a href='#' onmouseover="onHoverChanges( $(this).children('circle:first').attr('id') )" onmouseleave="onHoverHide($(this).children('circle:first').attr('id'))"> |
− | <tspan x="195" dy="1.5em" onclick="displayMe('c_t2')">RISK</tspan> | + | <circle class='circlez' cx="-230" cy="365" r="135" stroke='#ffffff' stroke-width="0" fill="white" id='c_t1' onclick="displayMe(this.id)" onmouseover="onHoverChanges(this.id)" /> |
− | <tspan x="195" dy="1.5em" onclick="displayMe('c_t2')">ASSESSEMENT</tspan> | + | <text class='animate_text' id='t1' x='0' y='335' text-anchor='middle' fill='#000000'> |
− | <tspan x="193" dy="1.5em" onclick="displayMe('c_t2')">& ANALYSIS</tspan> | + | <tspan x="-227" dy="1em" onclick="displayMe('c_t1')" id='f_circle_textA'>OSIRIS</tspan> |
− | </text> | + | <tspan x="-230" dy="1.5em" onclick="displayMe('c_t1')" id='f_circle_textB'>PROTOCOL</tspan> |
− | <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></a> |
− | <text class='animate_text' id='t3' x='0' y='300' text-anchor='middle' fill='#000000'> | + | |
− | <tspan x="615" dy="1.6em" onclick="displayMe('c_t3')">INTEGRATED</tspan> | + | <a href='#' onmouseover="onHoverChanges( $(this).children('circle:first').attr('id') )" onmouseleave="onHoverHide($(this).children('circle:first').attr('id'))"> |
− | <tspan x="610" dy="1.5em" onclick="displayMe('c_t3')">HUMAN</tspan> | + | <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)" /> |
− | <tspan x="610" dy="1.5em" onclick="displayMe('c_t3')">PRACTICES</tspan> | + | <text class='animate_text' id='t2' x='0' y='335' text-anchor='middle' fill='#000000'> |
− | </text> | + | <tspan x="195" dy="0em" onclick="displayMe('c_t2')" id='s_circle_textA'>HUMAN</tspan> |
− | <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)" /> | + | <tspan x="195" dy="1.5em" onclick="displayMe('c_t2')" id='s_circle_textB'>PRACTICES</tspan> |
− | <text class='animate_text' id='t4' x='0' y='300' text-anchor='middle' fill='#000000'> | + | <tspan x="193" dy="1.5em" onclick="displayMe('c_t2')" id='s_circle_textC'>SILVER</tspan> |
− | <tspan x="1025" dy="2.3em" onclick="displayMe('c_t4')">PUBLIC</tspan> | + | </text></a> |
− | <tspan x="1023" dy="1.5em" onclick="displayMe('c_t4')">ENGAGEMENT</tspan> | + | |
− | </text> | + | <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'> |
| + | <tspan x="615" dy="0em" onclick="displayMe('c_t3')" id='t_circle_textA'>INTEGRATED</tspan> |
| + | <tspan x="610" dy="1.5em" onclick="displayMe('c_t3')" id='t_circle_textB'>HUMAN</tspan> |
| + | <tspan x="610" dy="1.5em" onclick="displayMe('c_t3')" id='t_circle_textC'>PRACTICES</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="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'> |
| + | <tspan x="1025" dy="1em" onclick="displayMe('c_t4')" id='fo_circle_textA'>PUBLIC</tspan> |
| + | <tspan x="1023" dy="1.5em" onclick="displayMe('c_t4')" id='fo_circle_textB'>ENGAGEMENT</tspan> |
| + | </text></a> |
| </svg> | | </svg> |
| | | |
− | <!--Background Image Box--> | + | <!-- Video Background --> |
− | <div class='background_box' id='background_box'> | + | <video id="video" autoplay='autoplay' muted="muted" preload="auto" loop="loop"> |
− | <img src='https://static.igem.org/mediawiki/2017/6/6f/GreeKom_desert_hd.jpeg' style='width:100%; height:100%;' /> | + | <source src="https://static.igem.org/mediawiki/2017/2/2f/GreeKom_Ground_Zero_mp4.mp4" type="video/mp4"> |
− | </div> | + | <source src="https://static.igem.org/mediawiki/2017/3/36/GreeKom_Ground_Zero_webm.webm" type="video/webm"> |
| + | </video> |
| | | |
| <!-- Subsection Box --> | | <!-- Subsection Box --> |
− | <div id='display_box'></div>
| |
| | | |
− | <!-- Part of template CSS file--> | + | <div id='display_box'> |
− | <style>
| + | |
| | | |
− | .circlez{ | + | <div id='ct1'><div id='OSIRIS_Protocol' width='100%' height='100%' class='display_frame hide' ></html>{{Greece/OSIRIS}}<html></div></div> |
− | opacity: 0.6;
| + | |
| + | <div id='HP_Silver' width='100%' height='100%' class='display_frame hide' ></html>{{Greece/HP/Silver}}<html></div> |
| + | |
| + | <div id='HP_Gold_Integrated' width='100%' height='1000px' class='display_frame hide' ></html>{{Greece/HP/Gold_Integrated}}<html></div> |
| + | |
| + | <div id='Engagement' width='100%' height='100%' class='display_frame hide' ></html>{{Greece/Public_Engagement}}<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 --> |
| + | <style> |
| + | |
| + | #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: 0.8; } | + | .opace{ opacity: 1; } |
| | | |
| + | .hide{ display:none;} |
| + | |
| + | .reveal{ display: block; } |
| + | |
| + | .slide_out{ left: -800px; } |
| + | |
| + | .slide_in{ left: 0px; } |
| + | |
| + | #display_box{ padding: 30px 20px 30px 0px; text-align:justify;} |
| + | |
| + | video{ |
| + | position: fixed; |
| + | display:none; |
| + | top: 0%; |
| + | left: 0%; |
| + | min-width: 100%; |
| + | min-height: 100%; |
| + | width: inherit; |
| + | height: inherit; |
| + | z-index: 999; |
| + | overflow: hidden; |
| + | } |
| + | |
| + | #manzis{ display: none; } |
| </style> | | </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': '-210' }); |
| + | $('#f_circle_textB').attr({ 'x': '-212' }); |
| + | |
| + | $('#s_circle_textA').attr({ 'x': '203' }); |
| + | $('#s_circle_textB').attr({ 'x': '205' }); |
| + | $('#s_circle_textC').attr({ 'x': '198' }); |
| + | |
| + | $('#t_circle_textA').attr({ 'x': '620' }); |
| + | $('#t_circle_textB').attr({ 'x': '618' }); |
| + | $('#t_circle_textC').attr({ 'x': '615' }); |
| + | } |
| + | } |
| + | if(window.innerWidth >= 1367){ |
| + | $('#f_circle_textA').attr({ 'x': '-227' }); |
| + | $('#f_circle_textB').attr({ 'x': '-230' }); |
| + | |
| + | $('#s_circle_textA').attr({ 'x': '195' }); |
| + | $('#s_circle_textB').attr({ 'x': '195' }); |
| + | $('#s_circle_textC').attr({ 'x': '193' }); |
| + | |
| + | $('#t_circle_textA').attr({ 'x': '615' }); |
| + | $('#t_circle_textB').attr({ 'x': '610' }); |
| + | $('#t_circle_textC').attr({ 'x': '610' }); |
| + | } |
| + | |
| + | } |
| + | $(window).resize(function () { |
| + | onWindowResize(); |
| + | }); |
| + | onWindowResize(); |
| + | </script> |
| + | |
| <script> | | <script> |
| //Changes shall apply under void() | | //Changes shall apply under void() |
Line 184: |
Line 345: |
| // 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'); |
Line 192: |
Line 353: |
| </script> | | </script> |
| | | |
| + | |
| + | <!-- Video manzis --> |
| + | <div id='manzis'> |
| + | <span style='position: fixed; right: 120px; top: 20px; color: #dddddd; z-index:10000;' onmouseover='$(this).css("color","#dddddd"); $(this).css("cursor","pointer");' onmouseleave='$(this).css("color", "#ffffff"); $(this).css("cursor","normal");' onclick='$("#manzis").css("display","none"); $(".myvideo").get(0).pause();'><strong>Close</strong></span> |
| + | <div style='position: fixed; z-index: 1001; width: 100%; height: 100%; opacity: 0.8; background-color:#000000; margin: -100px 0px 0px 0px;'> |
| + | </div> |
| + | <div> |
| + | <video id="video" class='myvideo' muted="muted" preload="auto" loop="loop" controls style='display: block; position: fixed; z-index: 1000; width: 100%; height: 100%; left: 50%; top: 50%; margin-right: -50%; transform: translate(-50%, -50%);'> |
| + | <source src="https://static.igem.org/mediawiki/2017/4/44/Greekom_the_igem_video.mp4" type="video/mp4"> |
| + | <!--<source src="https://static.igem.org/mediawiki/2017/4/44/Greekom_the_igem_video.mp4" type="video/webm">--> |
| + | </video> |
| + | </div> |
| + | </div> |
| + | {{Greece/radar_chart}} |
| </body> | | </body> |
| </html> | | </html> |