|
|
Line 1: |
Line 1: |
− | <html> | + | <html><div class="row"><div class="col-md-8 col-md-offset-2"><div class="thumbnail"></html>[[File: {{{filename}}}|{{{width|300px}}}|frameless]]<html> |
− | <footer> | + | <div class="caption"></html>{{{caption}}}<html></div></div></div></div></html> |
− | <!--script src="https://2014.igem.org/Team:SUSTech_Shenzhen/js/pace-min-js?action=raw&ctype=text/javascript"></script-->
| + | |
− | <!--script src="//2014.igem.org/Team:SUSTC-Shenzhen/static/js/jquery.pjax.js?action=raw&ctype=text/javascript"></script-->
| + | |
− | <script src="https://2017.igem.org/Team:SUSTech_Shenzhen/js/bootstrap-min-js?action=raw&ctype=text/javascript"></script>
| + | |
− | <script>
| + | |
− | document.querySelector("head > link[rel='stylesheet']").remove();
| + | |
− | //$('#bars_item img').replaceWith($('#bars_item img').clone());
| + | |
− |
| + | |
− | </script>
| + | |
− | <script>
| + | |
− | // $.pjax({
| + | |
− | // area: 'body',
| + | |
− | // load: { head: 'base, meta, link', css: true, script: true },
| + | |
− | // cache: { click: true, submit: false, popstate: true },
| + | |
− | // server: { query: null }
| + | |
− | // });
| + | |
− | | + | |
− | function updateNav(){
| + | |
− |
| + | |
− | if(wgUserName!=null) {
| + | |
− |
| + | |
− | $("#nav-login-status")
| + | |
− | .text(wgUserName)
| + | |
− | .attr("href","https://igem.org/User_Information");
| + | |
− | } else {
| + | |
− | $("#nav-login-status")
| + | |
− | .text("Log in")
| + | |
− | .attr("href","https://igem.org/Login");
| + | |
− | }
| + | |
− |
| + | |
− | $("nav a").each(function(ind,val){
| + | |
− | if(val.href===window.location.href)
| + | |
− | if (val.href!="https://2016.igem.org/Team:SUSTech_Shenzhen"){
| + | |
− | val.href="#";
| + | |
− | $(val).parent().addClass("active");
| + | |
− | }
| + | |
− | });
| + | |
− |
| + | |
− | };
| + | |
− | | + | |
− | updateNav();
| + | |
− | | + | |
− | </script>
| + | |
− | <script>
| + | |
− | $('#page-contents a').click(function() {
| + | |
− | console.log(this.hash);
| + | |
− | if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'')
| + | |
− | || location.hostname == this.hostname) {
| + | |
− | | + | |
− | var target = $('[id="'+this.hash.substring(1)+'"]');
| + | |
− | target = target.length ? target : $('[name="' + this.hash.slice(1) +'"]');
| + | |
− | if (target.length) {
| + | |
− | $('html,body').animate({
| + | |
− | scrollTop: target.offset().top-70
| + | |
− | }, 1000);
| + | |
− | return false;
| + | |
− | }
| + | |
− | }
| + | |
− | });
| + | |
− | $(document.body).scrollspy({
| + | |
− | target: '.bs-docs-sidebar',
| + | |
− | offset: 71
| + | |
− | });
| + | |
− | function affix_sidebar () {
| + | |
− | var $sideBar = $('.bs-docs-sidebar')
| + | |
− | | + | |
− | $sideBar.affix({
| + | |
− | offset: {
| + | |
− | top: function () {
| + | |
− | var offsetTop = $sideBar.offset().top
| + | |
− | var sideBarMargin = parseInt($sideBar.children(0).css('margin-top'), 10)
| + | |
− | var navOuterHeight = $('#index-nav-main').height()
| + | |
− | | + | |
− | return (this.top = offsetTop - navOuterHeight - sideBarMargin)
| + | |
− | },
| + | |
− | bottom: function () {
| + | |
− | return (this.bottom = $('.bs-docs-footer').outerHeight(true))
| + | |
− | }
| + | |
− | }
| + | |
− | })
| + | |
− | }
| + | |
− | affix_sidebar();
| + | |
− | | + | |
− | $("#searchform").submit(function (e){
| + | |
− | $("#searchInput").val("SUSTech "+$("#searchInput").val());
| + | |
− | });
| + | |
− | $('.reference>a, span.mw-cite-backlink > a, .page-scroll').click(function() {
| + | |
− | console.log(this.hash);
| + | |
− | if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'')
| + | |
− | || location.hostname == this.hostname) {
| + | |
− | | + | |
− | var target = $('[id="'+this.hash.substring(1)+'"]');
| + | |
− | target = target.length ? target : $('[name="' + this.hash.slice(1) +'"]');
| + | |
− | if (target.length) {
| + | |
− | $('html,body').animate({
| + | |
− | scrollTop: target.offset().top-70
| + | |
− | }, 1000);
| + | |
− | return false;
| + | |
− | }
| + | |
− | }
| + | |
− | });
| + | |
− | $(".table, .katex-block > span").wrap("<div class='table-responsive'></div>")
| + | |
− | | + | |
− | </script>
| + | |
− | <link rel="stylesheet" href="https://2017.igem.org/Team:SUSTech_Shenzhen/css/katex-css?action=raw&ctype=text/css">
| + | |
− | <link rel="stylesheet" href="https://2017.igem.org/Team:SUSTech_Shenzhen/css/ionicons-min-css?action=raw&ctype=text/css">
| + | |
− | </footer>
| + | |
− | </html> | + | |