* The Jalview Authors are detailed in the 'AUTHORS' file.
*/
+
+
+
+
+
+
+
+
// default console to report messages
var _console = document.getElementById("stdout");
var _jvapps = new Array();
var sep = applet.getSeparator();
var oldjm=jmolView;
// recover full id of Jmol applet
-// jmolView=_jmolGetApplet(jmolView).id; // Jmol 12.4
- jmolView=JmolFindTarget(jmolView).id; // Jmol 14.2.14
- alert("FoundTarget " + jmolView.id);
+ jmolView=jmolFindTarget(jmolView)._id; // Jmol 14.2.14
var jmbinding=_jvjmols.get(jmolView);
if (!jmbinding)
{
}
// use atomlabel[5] to look up model filename so we can highlight associated positions in any jalviews
for (ap in _jvapps) {
- _jvapps[ap].mouseOverStructure(atomlabel[2], atomlabel[3],
- getDocumentBase()
- + "/" +
- modeltofiles[atomlabel[5]]);
+ pdb = getDocumentBase() + modeltofiles[atomlabel[5]];
+ _jvapps[ap].mouseOverStructure(atomlabel[2], atomlabel[3], pdb);
msg = _jmolhovermsg;
}
}
}
}
+
+
+ function lJvApp() {
+ setTimeout(function() {
+ //alert("in lJvApp");
+ var jvapp = document.getElementById("jvapp");
+ var jvfollower = document.getElementById("jvfollower");
+ //console.log(">>>>>>>> lJvApp" + jvapp);
+ linkJvJmol(jvapp);
+ }, 200);
+ setConsole(document.getElementById("stdout"));
+ };
+
+ function lJvFollow() {
+ setTimeout(function() {
+ //alert("in lJvFollow");
+ var jvapp = document.getElementById("jvapp");
+ var jvfollower = document.getElementById("jvfollower");
+ console.log(">>>>>>> lJvFollow" + jvfollower);
+ linkJvJmol(jvfollower);
+ }, 200);
+ };
+
+ function lJvA() {
+ setTimeout(function() {
+ //alert("lJvA");
+ jvfollower = document.getElementById("jvA");
+ setConsole(document.getElementById("stdout"));
+ //sep = jvfollower.getSeparator();
+ //jvapp.setSeparator(""+jvapp.getSeparator());
+ linkJvJmol(jvfollower, "jmolView", modeltofiles);
+ }, 100);
+ };
+