Difference between revisions of "Template:BIT/js/index"

Line 73: Line 73:
 
     '\n' +
 
     '\n' +
 
     '        <div id="top">\n' +
 
     '        <div id="top">\n' +
     '            <img id="logo" src="img/logo1.png">\n' +
+
     '            <img id="logo" src="https://static.igem.org/mediawiki/2018/d/d0/T--BIT--team_logo.png">\n' +
 
     '            <div id="menu">\n' +
 
     '            <div id="menu">\n' +
 
     '                <div id="big-menu" class="hidden-sm-and-down">\n' +
 
     '                <div id="big-menu" class="hidden-sm-and-down">\n' +
Line 140: Line 140:
 
     '            <div class="foot_block">\n' +
 
     '            <div class="foot_block">\n' +
 
     '                <div id="declaration">\n' +
 
     '                <div id="declaration">\n' +
     '                    <img src="img/logo.png">\n' +
+
     '                    <img src="https://static.igem.org/mediawiki/2018/c/c9/T--BIT--school_logo.png">\n' +
 
     '                    <div>\n' +
 
     '                    <div>\n' +
 
     '                        <p id="quto"></p>\n' +
 
     '                        <p id="quto"></p>\n' +
Line 150: Line 150:
 
     '                <div id="follow_us">\n' +
 
     '                <div id="follow_us">\n' +
 
     '                    <p>Follow us</p>\n' +
 
     '                    <p>Follow us</p>\n' +
     '                    <a href=""><img class="icon" src="img/微信.png"></a>\n' +
+
     '                    <a href=""><img class="icon" src="https://static.igem.org/mediawiki/2018/0/0a/T--BIT--weixin.png"></a>\n' +
     '                    <a href="https://weibo.com/u/5615996310?topnav=1&wvr=6&topsug=1&is_all=1#_rnd1537625053642"><img class="icon" src="img/sina.png"></a>\n' +
+
     '                    <a href="https://weibo.com/u/5615996310?topnav=1&wvr=6&topsug=1&is_all=1#_rnd1537625053642"><img class="icon" src="https://static.igem.org/mediawiki/2018/3/3d/T--BIT--sina.png"></a>\n' +
     '                    <a href="https://mobile.twitter.com/iGEM_BIT"><img class="icon" src="img/Twitter.png"></a>\n' +
+
     '                    <a href="https://mobile.twitter.com/iGEM_BIT"><img class="icon" src="https://static.igem.org/mediawiki/2018/b/be/T--BIT--twitter.png"></a>\n' +
     '                    <a href="https://www.instagram.com/igem_bit/"><img class="icon" src="img/img4 - 副本.png"></a>\n' +
+
     '                    <a href="https://www.instagram.com/igem_bit/"><img class="icon" src="https://static.igem.org/mediawiki/2018/1/1f/T--BIT--ins.png"></a>\n' +
     '                    <a href=""><img class="icon" src="img/Facebook.png"></a>\n' +
+
     '                    <a href=""><img class="icon" src="https://static.igem.org/mediawiki/2018/0/04/T--BIT--facebook.png"></a>\n' +
 
     '                </div>\n' +
 
     '                </div>\n' +
 
     '            </div>\n' +
 
     '            </div>\n' +

Revision as of 16:36, 17 October 2018

Vue.component('top-menu',{

   data: function () {
       return{
           leftmenu: false,
           time: 0,
           activeIndex: this.active
       }
   },
   props: ['active'],
   methods: {
       showmenu: function () {
           this.leftmenu = true;
       },
       hidemenu: function () {
           this.leftmenu = false;
       }
   },
template:'
\n' +
   '        <transition name="el-zoom-in-top">\n' +
'
\n' +
   '                BIT\n' +
   '                <el-menu :default-active="activeIndex"\n' +
   '                         class="el-menu-demo"\n' +
   '                         background-color="#545c64"\n' +
   '                         text-color="#fff"\n' +
   '                         active-text-color="#ffd04b">\n' +
   '                    <el-menu-item index="1"><a href="https://2018.igem.org/Team:BIT">Home</a></el-menu-item>\n' +
   '                    <el-submenu :show-timeout="time" :hide-timeout="time" index="2">\n' +
   '                        <template slot="title">Project</template>\n' +
   '                        <el-menu-item index="2-1"><a href="https://2018.igem.org/Team:BIT/Project/Background">Background</a></el-menu-item>\n' +
   '                        <el-menu-item index="2-2"><a href="https://2018.igem.org/Team:BIT/Project/Description">Desciption</a></el-menu-item>\n' +
   '                    </el-submenu>\n' +
   '                    <el-submenu :show-timeout="time" :hide-timeout="time" index="3">\n' +
   '                        <template slot="title">Bio</template>\n' +
   '                        <el-menu-item index="3-1"><a href="https://2018.igem.org/Team:BIT/Bio/Overview">Overivew</a></el-menu-item>\n' +
   '                        <el-menu-item index="3-2"><a href="https://2018.igem.org/Team:BIT/Bio/Design">Design</a></el-menu-item>\n' +
   '                        <el-menu-item index="3-3"><a href="https://2018.igem.org/Team:BIT/Demonstrate">Demonstrate</a></el-menu-item>\n' +
   '                        <el-menu-item index="3-4"><a href="https://2018.igem.org/Team:BIT/Bio/Addtional_Work">Additonal Work</a></el-menu-item>\n' +
   '                    </el-submenu>\n' +
   '                    <el-submenu :show-timeout="time" :hide-timeout="time" index="4">\n' +
   '                        <template slot="title">Hareware</template>\n' +
   '                        <el-menu-item index="4-1"><a href="https://2018.igem.org/Team:BIT/Hardware">Overview</a></el-menu-item>\n' +
   '                        <el-menu-item index="4-2"><a href="https://2018.igem.org/Team:BIT/Hardware/Microarray">Microarray</a></el-menu-item>\n' +
   '                        <el-menu-item index="4-3"><a href="https://2018.igem.org/Team:BIT/Hardware/S.M.A.R.T.">S.M.A.R.T.</a></el-menu-item>\n' +
   '                    </el-submenu>\n' +
   '                    <el-menu-item index="5"><a href="https://2018.igem.org/Team:BIT/Model">Model</a></el-menu-item>\n' +
   '                    <el-submenu :show-timeout="time" :hide-timeout="time" index="6">\n' +
   '                        <template slot="title">Practice</template>\n' +
   '                        <el-menu-item index="6-1"><a href="https://2018.igem.org/Team:BIT/Practices/Overview">Overview</a></el-menu-item>\n' +
   '                        <el-menu-item index="6-2"><a href="https://2018.igem.org/Team:BIT/Practices/Silver">Silver</a></el-menu-item>\n' +
   '                        <el-menu-item index="6-3"><a href="https://2018.igem.org/Team:BIT/Practices/Integrated_Practice">Integrated Practice</a></el-menu-item>\n' +
   '                        <el-menu-item index="6-4"><a href="https://2018.igem.org/Team:BIT/Practices/Education">Education and public engagement</a></el-menu-item>\n' +
   '                    </el-submenu>\n' +
   '                    <el-submenu :show-timeout="time" :hide-timeout="time" index="7">\n' +
   '                        <template slot="title">Judging</template>\n' +
   '                        <el-menu-item index="7-1"><a href="https://2018.igem.org/Team:BIT/Medal">Medal</a></el-menu-item>\n' +
   '                        <el-menu-item index="7-2"><a href="https://2018.igem.org/Team:BIT/Parts">Parts</a></el-menu-item>\n' +
   '                        <el-menu-item index="7-3"><a href="https://2018.igem.org/Team:BIT/InterLab">Interlab</a></el-menu-item>\n' +
   '                        <el-menu-item index="7-4"><a href="https://2018.igem.org/Team:BIT/Safety">Safety</a></el-menu-item>\n' +
   '                    </el-submenu>\n' +
   '                    <el-submenu :show-timeout="time" :hide-timeout="time" index="8">\n' +
   '                        <template slot="title">Team</template>\n' +
   '                        <el-menu-item index="8-1"><a href="https://2018.igem.org/Team:BIT/Team/Members">Members</a></el-menu-item>\n' +
   '                        <el-menu-item index="8-2"><a href="https://2018.igem.org/Team:BIT/Collaborations">Collaboration</a></el-menu-item>\n' +
   '                        <el-menu-item index="8-3"><a href="https://2018.igem.org/Team:BIT/Notebook">Notebook</a></el-menu-item>\n' +
   '                        <el-menu-item index="8-4"><a href="https://2018.igem.org/Team:BIT/Attributions">Attributions</a></el-menu-item>\n' +
   '                    </el-submenu>\n' +
   '                </el-menu>\n' +
'
\n' +
   '        </transition>\n' +
   '\n' +
'
\n' +
   '\n' +
'
\n' +
   '            <img id="logo" src="T--BIT--team_logo.png">\n' +
' \n' + '
\n' + '
'

});

Vue.component('foot',{

   data: function () {
       return{
       }
   },
template:''

})

var index=0; var word = "Born for diagnostic"; function type() {

   document.getElementById("quto").innerText = word.substring(0,index++);

} setInterval(type,50);