CharisKomos (Talk | contribs) |
CharisKomos (Talk | contribs) |
||
Line 13: | Line 13: | ||
<!-- Call Jquery --> | <!-- Call Jquery --> | ||
<script src='https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js'></script> | <script src='https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js'></script> | ||
+ | |||
+ | <!-- Plugin --> | ||
+ | <script> | ||
+ | (function($) { | ||
+ | $.fn.goTo = function() { | ||
+ | $('html, body').animate({ | ||
+ | scrollTop: $(this).offset().top + 'px' | ||
+ | }, 1000); | ||
+ | return this; // for chaining... | ||
+ | } | ||
+ | })(jQuery); | ||
+ | </script> | ||
<!-- Call Template Scrips --> | <!-- Call Template Scrips --> | ||
Line 63: | Line 75: | ||
$('.display_frame').removeClass('reveal'); | $('.display_frame').removeClass('reveal'); | ||
$('#' + stateMsg).addClass('reveal'); | $('#' + stateMsg).addClass('reveal'); | ||
− | + | $('#ct1').goTo(); | |
} | } | ||
Line 154: | Line 166: | ||
<!-- Subsection Box --> | <!-- Subsection Box --> | ||
<div id='display_box'> | <div id='display_box'> | ||
− | <object id='O.S.I.R.I.S._OVERVIEW' width='100%' height='100%' class='display_frame hide' data='https://2017.igem.org/Team:Greece/O.S.I.R.I.S._OVERVIEW'' ></object> | + | <span id='ct1'><object id='O.S.I.R.I.S._OVERVIEW' width='100%' height='100%' class='display_frame hide' data='https://2017.igem.org/Team:Greece/O.S.I.R.I.S._OVERVIEW'' ></object></span> |
<object id='RISK_ASSESSEMENT_ANALYSIS' width='100%' height='100%' class='display_frame hide' data='https://2017.igem.org/Team:Greece/RISK_ASSESSEMENT_ANALYSIS'></object> | <object id='RISK_ASSESSEMENT_ANALYSIS' width='100%' height='100%' class='display_frame hide' data='https://2017.igem.org/Team:Greece/RISK_ASSESSEMENT_ANALYSIS'></object> |
Revision as of 10:53, 1 September 2017