Team:Calgary/TestPage

From 2013.igem.org

(Difference between revisions)
 
(85 intermediate revisions not shown)
Line 1: Line 1:
-
{{Team:Calgary/Test}}
+
{{Team:Calgary/Main}}
<html>
<html>
-
<head>
 
-
<title>Home</title>
 
-
 
-
<!-- Reset for BodyContent -->
 
-
<style>
 
-
#content{
 
-
width: 100%;
 
-
margin: 0;
 
-
padding: 0;
 
-
background-color:transparent;
 
-
border: none;
 
-
}
 
-
 
-
#bodyContent{
 
-
width: 100%;
 
-
margin: 0;
 
-
padding: 0;
 
-
background-color:transparent;
 
-
border: none;
 
-
}
 
-
</style>
 
-
 
-
<!-- Fonts -->
 
-
<link href='http://fonts.googleapis.com/css?family=Roboto:300,400,500' rel='stylesheet' type='text/css'>
 
-
<link href='http://fonts.googleapis.com/css?family=Raleway:400,100,200,300,500,600,700,800,900' rel='stylesheet' type='text/css'>
 
-
<link href='http://fonts.googleapis.com/css?family=Josefin+Sans:700' rel='stylesheet' type='text/css'>
 
-
<link href='http://fonts.googleapis.com/css?family=Cabin:400,700,400italic,700italic' rel='stylesheet' type='text/css'>
 
-
 
-
<!-- CSS Stylesheets -->
 
-
<link href="https://2013.igem.org/Team:Calgary/StyleSheets/Reset?action=raw&ctype=text/css" rel="stylesheet">
 
-
<link href="NavigationCSS.css" rel="stylesheet">
 
-
<link href="HomePageCSS.css" rel="stylesheet">
 
-
 
-
<!-- JavaScript & JQuery -->
 
-
<script>/*! Superslides - v0.6.2 - 2013-07-10 * https://github.com/nicinabox/superslides * Copyright (c) 2013 Nic Aitch; Licensed MIT * Height edit by Wm. Keith van der Meulen */(function(i,t){var n,e="superslides";n=function(n,e){this.options=t.extend({play:!1,animation_speed:600,animation_easing:"swing",animation:"slide",inherit_width_from:i,inherit_height_from:i,pagination:!0,hashchange:!1,scrollable:!0,elements:{preserve:".preserve",nav:".slides-navigation",container:".slides-container",pagination:".slides-pagination"}},e);var s=this,o=t("<div>",{"class":"slides-control"}),a=1;this.$el=t(n),this.$container=this.$el.find(this.options.elements.container);var r=function(){return a=s._findMultiplier(),s.$el.on("click",s.options.elements.nav+" a",function(i){i.preventDefault(),s.stop(),t(this).hasClass("next")?s.animate("next",function(){s.start()}):s.animate("prev",function(){s.start()})}),t(document).on("keyup",function(i){37===i.keyCode&&s.animate("prev"),39===i.keyCode&&s.animate("next")}),t(i).on("resize",function(){setTimeout(function(){var i=s.$container.children();s.width=s._findWidth(),s.height=(s._findHeight() - $('#TopBar').height()) * .8,i.css({width:s.width,left:s.width}),s.css.containers(),s.css.images()},10)}),t(i).on("hashchange",function(){var i,t=s._parseHash();i=t&&!isNaN(t)?s._upcomingSlide(t-1):s._upcomingSlide(t),i>=0&&i!==s.current&&s.animate(i)}),s.pagination._events(),s.start(),s},h={containers:function(){s.init?(s.$el.css({height:s.height}),s.$control.css({width:s.width*a,left:-s.width}),s.$container.css({})):(t("body").css({margin:0}),s.$el.css({position:"relative",overflow:"hidden",width:"100%",height:s.height}),s.$control.css({position:"relative",transform:"translate3d(0)",height:"100%",width:s.width*a,left:-s.width}),s.$container.css({display:"none",margin:"0",padding:"0",listStyle:"none",position:"relative",height:"100%"})),1===s.size()&&s.$el.find(s.options.elements.nav).hide()},images:function(){var i=s.$container.find("img").not(s.options.elements.preserve);i.removeAttr("width").removeAttr("height").css({"-webkit-backface-visibility":"hidden","-ms-interpolation-mode":"bicubic",position:"absolute",left:"0",top:"0","z-index":"-1","max-width":"none"}),i.each(function(){var i=s.image._aspectRatio(this),n=this;if(t.data(this,"processed"))s.image._scale(n,i),s.image._center(n,i);else{var e=new Image;e.onload=function(){s.image._scale(n,i),s.image._center(n,i),t.data(n,"processed",!0)},e.src=this.src}})},children:function(){var i=s.$container.children();i.is("img")&&(i.each(function(){if(t(this).is("img")){t(this).wrap("<div>");var i=t(this).attr("id");t(this).removeAttr("id"),t(this).parent().attr("id",i)}}),i=s.$container.children()),s.init||i.css({display:"none",left:2*s.width}),i.css({position:"absolute",overflow:"hidden",height:"100%",width:s.width,top:0,zIndex:0})}},c={slide:function(i,t){var n=s.$container.children(),e=n.eq(i.upcoming_slide);e.css({left:i.upcoming_position,display:"block"}),s.$control.animate({left:i.offset},s.options.animation_speed,s.options.animation_easing,function(){s.size()>1&&(s.$control.css({left:-s.width}),n.eq(i.upcoming_slide).css({left:s.width,zIndex:2}),i.outgoing_slide>=0&&n.eq(i.outgoing_slide).css({left:s.width,display:"none",zIndex:0})),t()})},fade:function(i,t){var n=this,e=n.$container.children(),s=e.eq(i.outgoing_slide),o=e.eq(i.upcoming_slide);o.css({left:this.width,opacity:1,display:"block"}),i.outgoing_slide>=0?s.animate({opacity:0},n.options.animation_speed,n.options.animation_easing,function(){n.size()>1&&(e.eq(i.upcoming_slide).css({zIndex:2}),i.outgoing_slide>=0&&e.eq(i.outgoing_slide).css({opacity:1,display:"none",zIndex:0})),t()}):(o.css({zIndex:2}),t())}};c=t.extend(c,t.fn.superslides.fx);var d={_centerY:function(i){var n=t(i);n.css({top:(s.height-n.height())/2})},_centerX:function(i){var n=t(i);n.css({left:(s.width-n.width())/2})},_center:function(i){s.image._centerX(i),s.image._centerY(i)},_aspectRatio:function(i){if(!i.naturalHeight&&!i.naturalWidth){var t=new Image;t.src=i.src,i.naturalHeight=t.height,i.naturalWidth=t.width}return i.naturalHeight/i.naturalWidth},_scale:function(i,n){n=n||s.image._aspectRatio(i);var e=s.height/s.width,o=t(i);e>n?o.css({height:s.height,width:s.height/n}):o.css({height:s.width*n,width:s.width})}},l={_setCurrent:function(i){if(s.$pagination){var t=s.$pagination.children();t.removeClass("current"),t.eq(i).addClass("current")}},_addItem:function(i){var n=i+1,e=n,o=s.$container.children().eq(i),a=o.attr("id");a&&(e=a);var r=t("<a>",{href:"#"+e,text:e});r.appendTo(s.$pagination)},_setup:function(){if(s.options.pagination&&1!==s.size()){var i=t("<nav>",{"class":s.options.elements.pagination.replace(/^\./,"")});s.$pagination=i.appendTo(s.$el);for(var n=0;s.size()>n;n++)s.pagination._addItem(n)}},_events:function(){s.$el.on("click",s.options.elements.pagination+" a",function(i){i.preventDefault();var t=s._parseHash(this.hash),n=s._upcomingSlide(t-1);n!==s.current&&s.animate(n,function(){s.start()})})}};return this.css=h,this.image=d,this.pagination=l,this.fx=c,this.animation=this.fx[this.options.animation],this.$control=this.$container.wrap(o).parent(".slides-control"),s._findPositions(),s.width=s._findWidth(),s.height=(s._findHeight() - $('#TopBar').height()) * .8,this.css.children(),this.css.containers(),this.css.images(),this.pagination._setup(),r()},n.prototype={_findWidth:function(){return t(this.options.inherit_width_from).width()},_findHeight:function(){return t(this.options.inherit_height_from).height()},_findMultiplier:function(){return 1===this.size()?1:3},_upcomingSlide:function(i){if(/next/.test(i))return this._nextInDom();if(/prev/.test(i))return this._prevInDom();if(/\d/.test(i))return+i;if(i&&/\w/.test(i)){var t=this._findSlideById(i);return t>=0?t:0}return 0},_findSlideById:function(i){return this.$container.find("#"+i).index()},_findPositions:function(i,t){t=t||this,void 0===i&&(i=-1),t.current=i,t.next=t._nextInDom(),t.prev=t._prevInDom()},_nextInDom:function(){var i=this.current+1;return i===this.size()&&(i=0),i},_prevInDom:function(){var i=this.current-1;return 0>i&&(i=this.size()-1),i},_parseHash:function(t){return t=t||i.location.hash,t=t.replace(/^#/,""),t&&!isNaN(+t)&&(t=+t),t},size:function(){return this.$container.children().length},destroy:function(){return this.$el.removeData()},update:function(){this.css.children(),this.css.containers(),this.css.images(),this.pagination._addItem(this.size()),this._findPositions(this.current),this.$el.trigger("updated.slides")},stop:function(){clearInterval(this.play_id),delete this.play_id,this.$el.trigger("stopped.slides")},start:function(){var n=this;n.options.hashchange?t(i).trigger("hashchange"):this.animate(),this.options.play&&(this.play_id&&this.stop(),this.play_id=setInterval(function(){n.animate()},this.options.play)),this.$el.trigger("started.slides")},animate:function(t,n){var e=this,s={};if(!(this.animating||(this.animating=!0,void 0===t&&(t="next"),s.upcoming_slide=this._upcomingSlide(t),s.upcoming_slide>=this.size()))){if(s.outgoing_slide=this.current,s.upcoming_position=2*this.width,s.offset=-s.upcoming_position,("prev"===t||s.outgoing_slide>t)&&(s.upcoming_position=0,s.offset=0),e.size()>1&&e.pagination._setCurrent(s.upcoming_slide),e.options.hashchange){var o=s.upcoming_slide+1,a=e.$container.children(":eq("+s.upcoming_slide+")").attr("id");i.location.hash=a?a:o}e.$el.trigger("animating.slides",[s]),e.animation(s,function(){e._findPositions(s.upcoming_slide,e),"function"==typeof n&&n(),e.animating=!1,e.$el.trigger("animated.slides"),e.init||(e.$el.trigger("init.slides"),e.init=!0,e.$container.fadeIn("fast"))})}}},t.fn[e]=function(i,s){var o=[];return this.each(function(){var a,r,h;return a=t(this),r=a.data(e),h="object"==typeof i&&i,r||(o=a.data(e,r=new n(this,h))),"string"==typeof i&&(o=r[i],"function"==typeof o)?o=o.call(r,s):void 0}),o},t.fn[e].fx={}})(this,jQuery);</script>
 
-
<script>
 
-
$(document).ready(function() {
 
-
$('#slides').superslides({
 
-
pagination: false,
 
-
animation: 'fade'
 
-
});
 
-
 
-
NavSizing();
 
-
DescriptionLinksSpacing();
 
-
 
-
$(window).resize(function() {
 
-
NavSizing();
 
-
DescriptionLinksSpacing();
 
-
});
 
-
});
 
-
function NavSizing() {
+
<section id="Content">
-
if ($('body').width() > 868) {
+
-
$('#TopBar').css('padding-left', Math.floor(($('body').width() - 868) / 2));
+
-
$('#LogoItem').css('display', 'block')
+
-
}
+
-
else if (($('body').width() <= 868) && ($('body').width() > 744)) {
+
-
$('#TopBar').css('padding-left', Math.floor(($('body').width() - 744) / 2));
+
-
$('#LogoItem').css('display', 'none');
+
-
}
+
-
}
+
-
function DescriptionLinksSpacing() {
+
<h1>Quantitative App</h1>
-
var ScreenWidth = $('body').width();
+
 
-
if (ScreenWidth > 1007) {
+
<h2>DNA binding to TALEs<h2>
-
var Margins = Math.floor(ScreenWidth * .086666);
+
 
-
var ElementWidth = Math.floor(ScreenWidth * .37);
+
<p>The positive DNA&#39;s are colored red, negative DNA is green, TALEs are black and after binding (i.e. saturation) they turn blue. The sliders under &quot;global settings&quot;€ are parameters needed before the simulation runs. Given that a simulation can take 30 seconds to complete, they should not be changed frequently as it will take longer to show the results. The sliders under &quot;€œdisplay settings&quot;€ are parameters needed after the simulation runs. Their responses are much faster and are best played by clicking on the plus sign to the right and hit &quot;€œPlay&quot;. If you only see a grey box, you may need to install the Mathematica CDF Player. The download link can be found <a href="http://www.wolfram.com/cdf-player/">here</a>. Otherwise, the data from our model, as well as images of the app we designed, can be found on the <a href="https://2013.igem.org/Team:Calgary/Project/OurSensor/Modelling/QuantitativeModelling">quantitative modelling page</a>.
-
+
</p>
-
$('#SectionLinks').css('padding-left', Margins);
+
 
-
$('#SectionLinks').css('padding-top', Margins);
+
<img align="right" style="width:35%;" src="https://static.igem.org/mediawiki/2013/6/6b/UCalgary2013SWAgenModelInstruction.jpg" style="float: left; clear: both;"></img>
-
$('#SectionLinks .DescriptionLink').css('margin-right', Margins);
+
 
-
$('#SectionLinks .DescriptionLink').css('margin-bottom', Margins);
+
<script type="text/javascript" src="http://www.wolfram.com/cdf-player/plugin/v2.1/cdfplugin.js"></script>
-
$('#SectionLinks .DescriptionLink').css('width', ElementWidth);
+
<script type="text/javascript">
-
}
+
var cdf = new cdfplugin();
-
}
+
cdf.embed('http://igem.ucalgary.ca/misc/Deployed.cdf', 430, 800);
-
</script>
+
</script>
-
</head>
+
 
-
<html>
+
<h2>Enzyme kinetics of horseradish peroxidase</h2>
 +
 
 +
<script type="text/javascript" src="http://www.wolfram.com/cdf-player/plugin/v2.1/cdfplugin.js"></script>
 +
<script type="text/javascript">
 +
var cdf = new cdfplugin();
 +
cdf.embed('http://igem.ucalgary.ca/misc/HorseradishPeroxidase.cdf', 350, 360);
 +
</script>
 +
 
 +
<h2>Enzyme kinetics of beta-galactosidase</h2>
 +
 
 +
<script type="text/javascript" src="http://www.wolfram.com/cdf-player/plugin/v2.1/cdfplugin.js"></script>
 +
<script type="text/javascript">
 +
var cdf = new cdfplugin();
 +
cdf.embed('http://igem.ucalgary.ca/misc/Beta-Galactosidase.cdf', 350, 330);
 +
</script>
 +
 
 +
<h2>Frequently Asked Questions
 +
</h2>
 +
 
 +
<h3>1. Can I see your code?
 +
</h3>
 +
<p>Sure! Here are <a href="https://static.igem.org/mediawiki/2013/3/3a/UCalgary2013SWTheCode.txt" target="_blank">DNA binding to TALEs agent based model</a>,
 +
<a href="https://static.igem.org/mediawiki/2013/b/b5/UCalgary2013SWHorseradishPeroxidaseCode.txt" target="_blank">horseradish peroxidase kinetic model</a>, and
 +
<a href="https://static.igem.org/mediawiki/2013/0/08/UCalgary2013SWBeta-GalactosidaseCode.txt " target="_blank">beta-galactosidase kinetic model</a>.
 +
</p>
 +
 
 +
<h3>2. I see a block of text with red background. What should I do?
 +
</h3>
 +
<p>Don&#39;t worry, everything is under control. For the DNA binding to TALEs agent based model, wait for at least 30 seconds. If the problem persists, reset the current time to 1. For the kinetic models, use the plus/minus sign to change the parameters, or simply hit auto-run on the upper-right corner.
 +
</p>
 +
 
 +
</section>
 +
</html>

Latest revision as of 03:19, 28 September 2013

Quantitative App

DNA binding to TALEs

The positive DNA's are colored red, negative DNA is green, TALEs are black and after binding (i.e. saturation) they turn blue. The sliders under "global settings"€ are parameters needed before the simulation runs. Given that a simulation can take 30 seconds to complete, they should not be changed frequently as it will take longer to show the results. The sliders under "€œdisplay settings"€ are parameters needed after the simulation runs. Their responses are much faster and are best played by clicking on the plus sign to the right and hit "€œPlay". If you only see a grey box, you may need to install the Mathematica CDF Player. The download link can be found here. Otherwise, the data from our model, as well as images of the app we designed, can be found on the quantitative modelling page.

Enzyme kinetics of horseradish peroxidase

Enzyme kinetics of beta-galactosidase

Frequently Asked Questions

1. Can I see your code?

Sure! Here are DNA binding to TALEs agent based model, horseradish peroxidase kinetic model, and beta-galactosidase kinetic model.

2. I see a block of text with red background. What should I do?

Don't worry, everything is under control. For the DNA binding to TALEs agent based model, wait for at least 30 seconds. If the problem persists, reset the current time to 1. For the kinetic models, use the plus/minus sign to change the parameters, or simply hit auto-run on the upper-right corner.