Team:SUSTC-Shenzhen/WikiPlay/index.htm

From 2014.igem.org

(Difference between revisions)
Line 69: Line 69:
   <script>
   <script>
     function updateNav(){
     function updateNav(){
-
       console.log(wgUserName);
+
        
       if(wgUserName!=null) {
       if(wgUserName!=null) {
-
         console.log(wgUserName);
+
          
         $("#nav-login-status")
         $("#nav-login-status")
           .text(wgUserName)
           .text(wgUserName)
-
           .attr("href","/User:" + wgUser);
+
           .attr("href","/User:" + wgUserName);
       } else {
       } else {
         $("#nav-login-status")
         $("#nav-login-status")

Revision as of 07:49, 27 July 2014

<head>

 <meta charset="utf-8">
 <meta http-equiv="X-UA-Compatible" content="IE=edge">
 <meta name="viewport" content="width=device-width, initial-scale=1">
 <meta name="description" content="">
 <meta name="author" content="">
 <link rel="shortcut icon" href="/favicon.ico">
 <title>Team SUSTC-Shenzhen</title>
 <link href="//maxcdn.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css" rel="stylesheet">
 <link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Lato">
 <style>
 body {
   margin-top: 70px;
   font-family: Lato, inherit;
 }
 </style>


</head> <nav role="navigation" class="navbar navbar-default navbar-fixed-top">

</nav>

<body>

iGEM SUSTC-Shenzhen

Believe that something amazing will happen.

<a href="http://www.freelists.org/list/igem-sustc" target="_blank" class="btn btn-lg btn-default">Stay focused</a>

2014 SUSTC-Shenzhen

 <script src="//maxcdn.bootstrapcdn.com/bootstrap/3.1.1/js/bootstrap.min.js"></script>
 <script>
   function updateNav(){
     
     if(wgUserName!=null) {
       
       $("#nav-login-status")
         .text(wgUserName)
         .attr("href","/User:" + wgUserName);
     } else {
       $("#nav-login-status")
         .text("Log in")
         .attr("href","https://igem.org/Login");
     }
   };
   updateNav();
 </script>
 <script>
 (function(i, s, o, g, r, a, m) {
   i['GoogleAnalyticsObject'] = r;
   i[r] = i[r] || function() {
     (i[r].q = i[r].q || []).push(arguments)
   }, i[r].l = 1 * new Date();
   a = s.createElement(o),
   m = s.getElementsByTagName(o)[0];
   a.async = 1;
   a.src = g;
   m.parentNode.insertBefore(a, m)
 })(window, document, 'script', '//www.google-analytics.com/analytics.js', 'ga');
 ga('create', 'UA-42690126-5', 'igem.org');
 ga('send', 'pageview');
 </script>

</body> <footer>


</footer>