|
|
(5 intermediate revisions not shown) |
Line 1: |
Line 1: |
- | <html>
| + | {{SUSTC-Shenzhen/removeStyles}} |
- | <script>
| + | {{SUSTC-Shenzhen/themeCss}} |
| + | {{:Team:SUSTC-Shenzhen/templates/nav-template}} |
| | | |
- | function loadjsfile(filename){
| + | {{:Team:SUSTC-Shenzhen/templates/page-header| |
- | var fileref=document.createElement('script');
| + | title=Contact us| |
- | fileref.setAttribute("type","text/javascript");
| + | subtitle=How to reach us, and have things done.}} |
- | fileref.setAttribute("src", filename);
| + | |
- |
| + | |
- | if (typeof fileref!="undefined")
| + | |
- | document.getElementsByTagName("head")[0].appendChild(fileref);
| + | |
- | }
| + | |
- | function loadcssfile(filename){
| + | |
- | var fileref=document.createElement("link");
| + | |
- | fileref.setAttribute("rel", "stylesheet");
| + | |
- | fileref.setAttribute("type", "text/css");
| + | |
- | fileref.setAttribute("href", filename);
| + | |
- |
| + | |
- | if (typeof fileref!="undefined")
| + | |
- | document.getElementsByTagName("head")[0].appendChild(fileref);
| + | |
- | } | + | |
| | | |
- | document.children.item().innerHTML="";
| + | {{SUSTC-Shenzhen/main-content-begin}} |
| | | |
- | loadjsfile("//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.1/jquery.min.js");
| + | <html> |
- | //loadcssfile("//maxcdn.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css");
| + | <div class="jumbotron"> |
- | //loadjsfile("//maxcdn.bootstrapcdn.com/bootstrap/3.1.1/js/bootstrap.min.js");
| + | <h1 class="cover-heading">We are here</h1> |
- | | + | <p class="lead">1088 Xueyuan Rd., Nanshan District, Shenzhen, Guangdong, China</p> |
- | function defer(a) {
| + | <a class="lead" href="mailto:igem@sustc.edu.cn"> |
- | ($.fn.jquery==="2.1.1") ? a() : setTimeout(function() {
| + | iGEM@sustc.edu.cn |
- | defer(a);
| + | </a> |
- | }, 50);
| + | </div> |
- | }
| + | |
- | defer(function() {
| + | |
- | $.ajaxSetup({cache: false});
| + | |
- | $.get("/Team:SUSTC-Shenzhen/WikiPlay/contact.htm?action=raw").success(function(data, textStatus, jqXHR) {
| + | |
| | | |
- | $('html')[0].innerHTML = (data);
| |
- | //jQuery(selecteur).html(jqXHR.responseText);
| |
- | var reponse = jQuery(jqXHR.responseText);
| |
- | var reponseScript = reponse.filter("script");
| |
- | console.log(reponseScript);
| |
- | jQuery.each(reponseScript, function(idx, val) { eval(val.text);console.log(val.text); } );
| |
- |
| |
- | });
| |
- | });
| |
- |
| |
- | //$('html').load('/Team:SUSTC-Shenzhen/WikiPlay/index.htm?action=raw');
| |
- | </script>
| |
| </html> | | </html> |
| + | {{SUSTC-Shenzhen/main-content-end}} |
| + | {{SUSTC-Shenzhen/wiki-footer}} |
| + | {{SUSTC-Shenzhen/themeJs}} |