Team:Cambridge/new
From 2011.igem.org
(Difference between revisions)
Line 53: | Line 53: | ||
var head = "<title>Cambridge iGEM</title>"; | var head = "<title>Cambridge iGEM</title>"; | ||
- | var | + | var script = ['//ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/jquery-ui.min.js',]; |
- | + | ||
- | + | var other_scripts = ['/Team:Cambridge/static/wiki.js?action=raw', | |
- | + | '/Team:Cambridge/static/introduction.js?action=raw',]; | |
Line 64: | Line 64: | ||
$('head').html(head); | $('head').html(head); | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | + | ||
- | { | + | $.getScript(script, function() { |
- | + | console.log(' Loaded: ' + script); | |
- | console.log(' loading: ' + | + | for(var i in other_scripts) |
- | + | { | |
- | } | + | console.log(' loading: ' + other_scripts[i]); |
+ | $.getScript(other_scripts[i], function() {console.log(' Success: ' + other_scripts[i]);}); | ||
+ | } | ||
+ | }); | ||
set_bk(); | set_bk(); |
Revision as of 16:09, 11 September 2011