JAL-3690 tweak J2S direct DB access registration for jalview, compbio and other sites
authorJim Procter <jprocter@issues.jalview.org>
Tue, 15 Dec 2020 19:04:36 +0000 (19:04 +0000)
committerJim Procter <jprocter@issues.jalview.org>
Tue, 15 Dec 2020 19:04:36 +0000 (19:04 +0000)
utils/jalviewjs/coretemplate.html
utils/jalviewjs/template.html

index c975823..1ac36de 100644 (file)
@@ -17,14 +17,12 @@ Info = {
        console:'sysoutdiv',
        allowjavascript: true
 }
-// direct access to these sites
-J2S.addDirectDatabaseCall('www.compbio.dundee.ac.uk'),J2S.addDirectDatabaseCall('www.jalview.org'), J2S.addDirectDatabaseCall('ensembl.org')
-J2S.addDirectDatabaseCall('127.0.0.1'), J2S.addDirectDatabaseCall('localhost') 
-
 </script>
 </head>
 <body>
 <script>
+J2S.addDirectDatabaseCall('www.compbio.dundee.ac.uk'),J2S.addDirectDatabaseCall('www.jalview.org'), J2S.addDirectDatabaseCall('ensembl.org')
+J2S.addDirectDatabaseCall('127.0.0.1'), J2S.addDirectDatabaseCall('localhost') 
 SwingJS.getApplet('testApplet', Info)
 getClassList = function(){J2S._saveFile('_j2sclasslist.txt', Clazz.ClassFilesLoaded.sort().join('\n'))}
 </script>
index 85a96c7..968e1eb 100644 (file)
@@ -18,12 +18,12 @@ Info = {
        allowjavascript: true
 }
 // direct access to these sites
-J2S.addDirectDatabaseCall('www.compbio.dundee.ac.uk'),J2S.addDirectDatabaseCall('www.jalview.org'), J2S.addDirectDatabaseCall('ensembl.org')
-J2S.addDirectDatabaseCall('127.0.0.1'), J2S.addDirectDatabaseCall('localhost')
 </script>
 </head>
 <body>
 <script>
+J2S.addDirectDatabaseCall('www.compbio.dundee.ac.uk'),J2S.addDirectDatabaseCall('www.jalview.org'), J2S.addDirectDatabaseCall('ensembl.org')
+J2S.addDirectDatabaseCall('127.0.0.1'), J2S.addDirectDatabaseCall('localhost')
 SwingJS.getApplet('testApplet', Info)
 getClassList = function(){J2S._saveFile('_j2sclasslist.txt', Clazz.ClassFilesLoaded.sort().join('\n'))}
 </script>