X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=site-resources%2Fswingjs%2FJalviewApplet.js;h=53f39c6af49738ec2329f48cb74bb09038e53540;hb=f6d94f44ef8adcc960ac0cf419928bdf2198fcc0;hp=601b1c4b79d6ebddc779fc1c41b6a0ca2a1c8035;hpb=d82d17a7ba88f90e6b8b1b591245a7ee70b3975c;p=jalview.git diff --git a/site-resources/swingjs/JalviewApplet.js b/site-resources/swingjs/JalviewApplet.js index 601b1c4..53f39c6 100644 --- a/site-resources/swingjs/JalviewApplet.js +++ b/site-resources/swingjs/JalviewApplet.js @@ -23,87 +23,87 @@ Jalview.processAllAppletElements = function(PageInfo) { Jalview.processAppletElement = function(element, UserInfo) { -var code = element.getAttribute("code"); -var parent = element.parentElement; -if (code != "jalview.bin.JalviewLite") { - return; -} + var code = element.getAttribute("code"); + var parent = element.parentElement; + if (code != "jalview.bin.JalviewLite") { + return; + } var Info = { - code: null, - main: "jalview.bin.Jalview", - core: "NONE", - resourcePath: "examples", - readyFunction: null, - serverURL: 'https://chemapps.stolaf.edu/jmol/jsmol/php/jsmol.php', - j2sPath: 'swingjs/j2s', - console:'sysout', - startButton:'Start Jalview', - hideDesktop:true, - embedInternalFrames:false, - idPrefix:'%ID%', - allowjavascript: true + code: null, + main: "jalview.bin.Jalview", + core: "NONE", + resourcePath: "examples", + readyFunction: null, + serverURL: 'https://chemapps.stolaf.edu/jmol/jsmol/php/jsmol.php', + j2sPath: 'swingjs/j2s', + console:'sysout', + startButton:'Start Jalview', + hideDesktop:true, + embedInternalFrames:false, + idPrefix:'%ID%', + allowJavascript: true, } -var text = element.outerHTML; -var args = Info.args = text.replace(/[\n\t]/g, " ").split("