(3 intermediate revisions by the same user not shown) | |||
Line 18: | Line 18: | ||
</script> | </script> | ||
<link rel="stylesheet" href="https://2018.igem.org/Template:BOKU-Vienna/css/ekko-lightbox?action=raw&ctype=text/css"> | <link rel="stylesheet" href="https://2018.igem.org/Template:BOKU-Vienna/css/ekko-lightbox?action=raw&ctype=text/css"> | ||
− | |||
− | |||
<link rel="stylesheet" href="https://2018.igem.org/Template:BOKU-Vienna/css/styles?action=raw&ctype=text/css"> | <link rel="stylesheet" href="https://2018.igem.org/Template:BOKU-Vienna/css/styles?action=raw&ctype=text/css"> | ||
<script src="https://2018.igem.org/Template:BOKU-Vienna/js/wiki?action=raw&ctype=text/javascript"></script> | <script src="https://2018.igem.org/Template:BOKU-Vienna/js/wiki?action=raw&ctype=text/javascript"></script> | ||
Line 33: | Line 31: | ||
− | <div class="sub-page"> | + | <div class="sub-page"> <header></header> |
− | + | ||
+ | <div class="landing-sub-page" id="top" style="background: url(https://static.igem.org/mediawiki/2018/7/78/T--BOKU-Vienna--2018_model-landing.jpg) fixed no-repeat center; background-size: cover;"> | ||
<div class="header"> | <div class="header"> | ||
<h2>The Model</h2> | <h2>The Model</h2> | ||
Line 44: | Line 43: | ||
</script> | </script> | ||
</div> <div id="main" class="container"> | </div> <div id="main" class="container"> | ||
+ | <h1 id="tryityourself">Try it yourself</h1> | ||
+ | |||
<div id="simulation_model"></div> | <div id="simulation_model"></div> | ||
</div> <footer></footer> | </div> <footer></footer> | ||
<!--SMOOTH SCROLL UP--> | <!--SMOOTH SCROLL UP--> | ||
<div class="scrolltop"> | <div class="scrolltop"> | ||
− | <div class="scroll icon"><i class=" | + | <div class="scroll icon"><i class="fas fa-chevron-up"></i></div> |
</div> </div> | </div> </div> | ||
Line 56: | Line 57: | ||
let data = modelInitData; | let data = modelInitData; | ||
− | let margin = {top: 20, right: 20, bottom: | + | let margin = {top: 20, right: 20, bottom: 50, left: 80}, |
width = 960 - margin.left - margin.right, | width = 960 - margin.left - margin.right, | ||
height = 500 - margin.top - margin.bottom; | height = 500 - margin.top - margin.bottom; | ||
Line 109: | Line 110: | ||
.attr("id", "start") | .attr("id", "start") | ||
.text("Start Experiment"); | .text("Start Experiment"); | ||
+ | |||
+ | let textarea = svg.append("g"). | ||
+ | attr("class", "description-text"); | ||
+ | |||
svg.append("g") | svg.append("g") | ||
Line 118: | Line 123: | ||
.attr("class", "axis axis--y") | .attr("class", "axis axis--y") | ||
.call(d3.axisLeft(y)) | .call(d3.axisLeft(y)) | ||
− | .selectAll(".tick:last-of-type") | + | .selectAll(".tick:last-of-type"); |
− | + | ||
− | .attr(" | + | svg.append("text") |
− | .attr("x", | + | .attr("transform", "rotate(-90)") |
− | .attr("dy", ". | + | .attr("y", 0 - margin.left) |
− | .text(" | + | .attr("x", 0 - height/2) |
+ | .attr("dy", "1em") | ||
+ | .style("text-anchor", "middle") | ||
+ | .text("Response [%]"); | ||
+ | |||
+ | svg.append("text") | ||
+ | .attr("y", height + margin.bottom/2) | ||
+ | .attr("x", width/2) | ||
+ | .attr("dx", "1em") | ||
+ | .style("text-anchor", "middle") | ||
+ | .text("Time [s]"); | ||
/*svg.datum(data) | /*svg.datum(data) | ||
Line 136: | Line 151: | ||
if (this.id === "start") { | if (this.id === "start") { | ||
addNewLine("switchoff", "Switch OFF", data); | addNewLine("switchoff", "Switch OFF", data); | ||
+ | |||
+ | svg.append("text") | ||
+ | .attr("transform", "translate(" + (x(data[0].gfp) + 20) + "," + -10 + ")") | ||
+ | .attr("dy", ".35em") | ||
+ | .attr("text-anchor", "start") | ||
+ | .style("fill", "blue") | ||
+ | .text("GFP"); | ||
+ | |||
+ | svg.append("text") | ||
+ | .attr("transform", "translate(" + (x(data[0].gfp) + 20) + "," + 70 + ")") | ||
+ | .attr("dy", ".35em") | ||
+ | .attr("text-anchor", "start") | ||
+ | .style("fill", "green") | ||
+ | .text("gON"); | ||
+ | |||
+ | svg.append("text") | ||
+ | .attr("transform", "translate(" + (x(data[0].gfp) + 20) + "," + 350 + ")") | ||
+ | .attr("dy", ".35em") | ||
+ | .attr("text-anchor", "start") | ||
+ | .style("fill", "red") | ||
+ | .text("gOFF"); | ||
} | } | ||
Latest revision as of 01:04, 18 October 2018