1
|
function iframeReady(iframes, i, n) {
|
2
|
iframes[i].addEvent('load', function () {
|
3
|
if (i == n - 1)
|
4
|
tabs.open('publtab', true);
|
5
|
else
|
6
|
iframeReady(iframes, i + 1, n);
|
7
|
});
|
8
|
}
|
9
|
|
10
|
|
11
|
window.onload = function() {
|
12
|
var publicationsInRepositoriesFrame = document.createElement('iframe');
|
13
|
publicationsInRepositoriesFrame.src=publicationsInRepositoriesUrl;
|
14
|
publicationsInRepositoriesFrame.width='100%';
|
15
|
publicationsInRepositoriesFrame.height='600px';
|
16
|
jQuery('#publicationsInRepositories .frame').append(publicationsInRepositoriesFrame);
|
17
|
var publicationsAccessModeFrame = document.createElement('iframe');
|
18
|
publicationsAccessModeFrame.src=publicationsAccessModeUrl;
|
19
|
publicationsAccessModeFrame.width='100%';
|
20
|
publicationsAccessModeFrame.height='600px';
|
21
|
jQuery('#publicationsAccessMode .frame').append(publicationsAccessModeFrame);
|
22
|
var scientificResultsFrame = document.createElement('iframe');
|
23
|
scientificResultsFrame.src=scientificResultsUrl;
|
24
|
scientificResultsFrame.width='100%';
|
25
|
scientificResultsFrame.height='600px';
|
26
|
jQuery('#scientificResults .frame').append(scientificResultsFrame);
|
27
|
jQuery('#scientificResults iframe').load(function(){
|
28
|
jQuery('#scientificResults .loading').hide();
|
29
|
});
|
30
|
jQuery('#publicationsAccessMode iframe').load(function(){
|
31
|
jQuery('#publicationsAccessMode .loading').hide();
|
32
|
});
|
33
|
jQuery('#publicationsInRepositories iframe').load(function(){
|
34
|
jQuery('#publicationsInRepositories .loading').hide();
|
35
|
});
|
36
|
}
|
37
|
window.addEvent('domready', function () {
|
38
|
|
39
|
// hide in this section
|
40
|
$$('div.tm-main').setStyle('width', $$('div.tm-main').offsetWidth + $$("aside.tm-sidebar-a").offsetWidth);
|
41
|
$$("aside.tm-sidebar-a").destroy();
|
42
|
// snippet
|
43
|
var snippet = $('snippet');
|
44
|
var showSnippet = $('showSnippet');
|
45
|
var hideSnippet = $('hideSnippet');
|
46
|
showSnippet.snippet = snippet;
|
47
|
showSnippet.addEvent('click', function () {
|
48
|
//this.snippet.show();
|
49
|
$('snippet').style.display='block';
|
50
|
return false;
|
51
|
});
|
52
|
hideSnippet.snippet = snippet;
|
53
|
hideSnippet.addEvent('click', function () {
|
54
|
//this.snippet.hide();
|
55
|
$('snippet').style.display='none';
|
56
|
return false;
|
57
|
});
|
58
|
// tabs
|
59
|
var iframes = $$('iframe');
|
60
|
iframeReady(iframes, 0, iframes.length);
|
61
|
});
|
62
|
|