|
|
(169 intermediate revisions by the same user not shown) |
Line 1: |
Line 1: |
| <html> | | <html> |
| <head> | | <head> |
− | <noscript> | + | <!-- Google fonts --> |
− | var win_width = window.innerWidth;
| + | <link href='http://fonts.googleapis.com/css?family=Open+Sans:400,300' rel='stylesheet' type='text/css'> |
− | var win_height = window.innerHeight;
| + | <link href='https://fonts.googleapis.com/css?family=Raleway' rel='stylesheet' type='text/css'> |
− | alert(wind_width+'px - '+win_height+'px');
| + | |
− | </noscript> | + | |
| | | |
| + | <!-- 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 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> |
| + | |
| + | <!-- 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"> |
| + | |
| + | <!-- Call Jquery --> |
| + | <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" /> |
| + | |
| + | <!-- >>>>> General Scripts <<<<< --> |
| + | |
| + | <!-- On document.ready --> |
| + | <script> |
| + | $( document ).ready(function(){ |
| + | void(window.document.title = 'HUMAN PRACTICES'); |
| + | |
| + | //HIDE |
| + | setTimeout(function(){void(document.getElementById('loading-background').style.display = 'none')}, 5000); |
| + | |
| + | //SHOW |
| + | 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 |
| + | $('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> |
| + | |
| + | |
| + | <!-- 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){ |
| + | $('#'+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){ |
| + | case 'c_t1': { stateMsg = 'OSIRIS_Protocol'; } |
| + | break; |
| + | case 'c_t2': stateMsg = 'HP_Silver'; |
| + | break; |
| + | case 'c_t3': stateMsg = 'HP_Gold_Integrated'; |
| + | break; |
| + | case 'c_t4': stateMsg = 'Engagement'; |
| + | 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); |
| + | } |
| + | |
| + | $('.display_frame').removeClass('reveal'); |
| + | $('#' + toDivId).addClass('reveal'); |
| + | $('#footer').addClass('reveal'); |
| + | $('#ct1').goTo(); |
| + | void(document.title = stateMsg.toUpperCase()); |
| + | controllingGeneralStyle(); |
| + | $('#back_to_top').css('display', 'block'); |
| + | } |
| + | </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 'HP/Gold_Integrated' : new_height = 9200; |
| + | break; |
| + | } |
| + | $('#display_box').css('height', new_height); |
| + | </script> |
| </head> | | </head> |
| + | <body> |
| + | <span id='top_flag' style='position: absolute; z-index: -100; margin: -100px 0px 0px 0px;'></span> |
| + | <!-- 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 --> |
| + | <div style='display: none;' id='main-wraper'> |
| + | <div class='menu_wrap'></div> |
| + | <nav class='menu'> |
| + | <ul class='clearfix' id='list'> |
| + | <li><a target='_self' href='https://2017.igem.org/Team:Greece'> |
| + | <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</a></li>--> |
| + | <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/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/Achievements'>ACHIEVEMENTS</a></li> |
| + | <li style='width:' class='li_indiv'><a target='_self' href='https://2017.igem.org/Team:Greece/Team'>TEAM</a></li> |
| + | </span> |
| + | </ul> |
| + | </nav> |
| + | </div> |
| + | |
| + | <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--> |
| + | |
| + | <!--<a href='#' onmouseover="onHoverChanges( $(this).children('circle:first').attr('id') )" onmouseleave="onHoverHide($(this).children('circle:first').attr('id'))"> |
| + | <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)" /> |
| + | <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="390" dy="1em" onclick="displayMe('c_t0')" id='f_rect_text'>OVERVIEW</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="-230" cy="365" r="135" stroke='#ffffff' stroke-width="0" fill="white" id='c_t1' onclick="displayMe(this.id)" onmouseover="onHoverChanges(this.id)" /> |
| + | <text class='animate_text' id='t1' x='0' y='335' text-anchor='middle' fill='#000000'> |
| + | <tspan x="-227" dy="1em" onclick="displayMe('c_t1')" id='f_circle_textA'>OSIRIS</tspan> |
| + | <tspan x="-230" dy="1.5em" onclick="displayMe('c_t1')" id='f_circle_textB'>PROTOCOL</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'> |
| + | <tspan x="195" dy="0em" onclick="displayMe('c_t2')" id='s_circle_textA'>HUMAN</tspan> |
| + | <tspan x="195" dy="1.5em" onclick="displayMe('c_t2')" id='s_circle_textB'>PRACTICES</tspan> |
| + | <tspan x="193" dy="1.5em" onclick="displayMe('c_t2')" id='s_circle_textC'>SILVER</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="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> |
| + | |
| + | <!-- Video Background --> |
| + | <video id="video" autoplay='autoplay' muted="muted" preload="auto" loop="loop"> |
| + | <source src="https://static.igem.org/mediawiki/2017/2/2f/GreeKom_Ground_Zero_mp4.mp4" type="video/mp4"> |
| + | <source src="https://static.igem.org/mediawiki/2017/3/36/GreeKom_Ground_Zero_webm.webm" type="video/webm"> |
| + | </video> |
| + | |
| + | <!-- Subsection Box --> |
| + | |
| + | <div id='display_box'> |
| + | |
| + | <div id='ct1'><div id='OSIRIS_Protocol' width='100%' height='100%' class='display_frame hide' ></html>{{Greece/OSIRIS}}<html></div></div> |
| + | |
| + | <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; } |
| + | |
| + | .circlez, .animate_text{ cursor: pointer; } |
| + | |
| + | .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> |
| + | |
| + | <!-- 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> |
| + | //Changes shall apply under void() |
| + | // Upper black toolbar stays there id = 'top_menu_14' -> Could be display:block |
| + | // Main div wrapper contains code and all other stuff id = 'content' -> Change id to 'content2' |
| + | // Reason: iGEM puts everything in document.getElementById('content') - change id - cause element 404 |
| + | void(document.getElementById('content').id = 'content0') |
| + | |
| + | // Div (placeholder) containing the iGEM logo and some text id = 'top_title' -> Apply display: none |
| + | void(document.getElementById('top_title').style.display = 'none'); |
| + | |
| + | // Small icon in the top black toolbar id = 'bars_item' -> Apply display: none |
| + | void(document.getElementById('bars_item').style.display = 'none'); |
| + | // Same application for it's side effect (display an ugly div by default) |
| + | |
| + | //void(document.getElementById('user_item').style.display = 'none'); |
| + | void(document.getElementById('sideMenu').style.display = 'none'); |
| + | var element = document.getElementById('home_logo'); |
| + | element.outerHTML = ''; |
| + | delete element; |
| + | |
| + | </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> |
| </html> | | </html> |