icn3d 3.24.0 → 3.24.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/icn3d.module.js CHANGED
@@ -5269,10 +5269,10 @@ class ParasCls {
5269
5269
  ];
5270
5270
 
5271
5271
  this.backgroundColors = {
5272
- black: this.thr(0x000000),
5273
- grey: this.thr(0xCCCCCC),
5274
- white: this.thr(0xFFFFFF),
5275
- transparent: this.thr(0xFFFFFF) //this.thr(0x000000)
5272
+ 'black': this.thr(0x000000),
5273
+ 'grey': this.thr(0xCCCCCC),
5274
+ 'white': this.thr(0xFFFFFF),
5275
+ 'transparent': this.thr(0xFFFFFF) //this.thr(0x000000)
5276
5276
  };
5277
5277
 
5278
5278
  this.residueColors = {
@@ -6686,96 +6686,96 @@ class ClickMenu {
6686
6686
  let thisClass = this;
6687
6687
  //mn 1
6688
6688
  // clkMn1_mmtfid: function() {
6689
- me.myEventCls.onIds("#" + me.pre + "mn1_vastplus", "click", function(e) { me.icn3d; //e.preventDefault();
6689
+ me.myEventCls.onIds("#" + me.pre + "mn1_vastplus", "click", function(e) { me.icn3d; e.preventDefault();
6690
6690
  me.htmlCls.dialogCls.openDlg('dl_vastplus', 'Please input PDB ID for VAST+');
6691
6691
  });
6692
6692
 
6693
- me.myEventCls.onIds("#" + me.pre + "mn1_vast", "click", function(e) { me.icn3d; //e.preventDefault();
6693
+ me.myEventCls.onIds("#" + me.pre + "mn1_vast", "click", function(e) { me.icn3d; e.preventDefault();
6694
6694
  me.htmlCls.dialogCls.openDlg('dl_vast', 'Please input chain or PDB file for VAST');
6695
6695
  });
6696
6696
 
6697
- me.myEventCls.onIds("#" + me.pre + "mn1_foldseek", "click", function(e) { me.icn3d; //e.preventDefault();
6697
+ me.myEventCls.onIds("#" + me.pre + "mn1_foldseek", "click", function(e) { me.icn3d; e.preventDefault();
6698
6698
  me.htmlCls.dialogCls.openDlg('dl_foldseek', 'Submit your selection to Foldseek');
6699
6699
  });
6700
6700
 
6701
- me.myEventCls.onIds("#" + me.pre + "mn1_mmtfid", "click", function(e) { me.icn3d; //e.preventDefault();
6701
+ me.myEventCls.onIds("#" + me.pre + "mn1_mmtfid", "click", function(e) { me.icn3d; e.preventDefault();
6702
6702
  me.htmlCls.dialogCls.openDlg('dl_mmtfid', 'Please input MMTF ID');
6703
6703
  });
6704
6704
 
6705
6705
  // clkMn1_pdbid: function() {
6706
- me.myEventCls.onIds("#" + me.pre + "mn1_pdbid", "click", function(e) { me.icn3d; //e.preventDefault();
6706
+ me.myEventCls.onIds("#" + me.pre + "mn1_pdbid", "click", function(e) { me.icn3d; e.preventDefault();
6707
6707
  me.htmlCls.dialogCls.openDlg('dl_pdbid', 'Please input PDB ID');
6708
6708
  });
6709
6709
 
6710
- me.myEventCls.onIds("#" + me.pre + "mn1_afid", "click", function(e) { me.icn3d; //e.preventDefault();
6710
+ me.myEventCls.onIds("#" + me.pre + "mn1_afid", "click", function(e) { me.icn3d; e.preventDefault();
6711
6711
  me.htmlCls.dialogCls.openDlg('dl_afid', 'Please input AlphaFold UniProt ID');
6712
6712
  });
6713
6713
 
6714
- me.myEventCls.onIds("#" + me.pre + "mn1_refseqid", "click", function(e) { me.icn3d; //e.preventDefault();
6714
+ me.myEventCls.onIds("#" + me.pre + "mn1_refseqid", "click", function(e) { me.icn3d; e.preventDefault();
6715
6715
  me.htmlCls.dialogCls.openDlg('dl_refseqid', 'Please input NCBI Protein Accession');
6716
6716
  });
6717
6717
 
6718
- me.myEventCls.onIds("#" + me.pre + "mn1_opmid", "click", function(e) { me.icn3d; //e.preventDefault();
6718
+ me.myEventCls.onIds("#" + me.pre + "mn1_opmid", "click", function(e) { me.icn3d; e.preventDefault();
6719
6719
  me.htmlCls.dialogCls.openDlg('dl_opmid', 'Please input OPM PDB ID');
6720
6720
  });
6721
6721
 
6722
- me.myEventCls.onIds("#" + me.pre + "mn1_align", "click", function(e) { me.icn3d; //e.preventDefault();
6722
+ me.myEventCls.onIds("#" + me.pre + "mn1_align", "click", function(e) { me.icn3d; e.preventDefault();
6723
6723
  me.htmlCls.dialogCls.openDlg('dl_align', 'Align two PDB structures');
6724
6724
  });
6725
6725
 
6726
- me.myEventCls.onIds("#" + me.pre + "mn1_alignaf", "click", function(e) { me.icn3d; //e.preventDefault();
6726
+ me.myEventCls.onIds("#" + me.pre + "mn1_alignaf", "click", function(e) { me.icn3d; e.preventDefault();
6727
6727
  me.htmlCls.dialogCls.openDlg('dl_alignaf', 'Align two AlphaFold structures');
6728
6728
  });
6729
6729
 
6730
- me.myEventCls.onIds("#" + me.pre + "mn1_chainalign", "click", function(e) { me.icn3d; //e.preventDefault();
6730
+ me.myEventCls.onIds("#" + me.pre + "mn1_chainalign", "click", function(e) { me.icn3d; e.preventDefault();
6731
6731
  me.htmlCls.dialogCls.openDlg('dl_chainalign', 'Align multiple chains by structure alignment');
6732
6732
  });
6733
6733
 
6734
- me.myEventCls.onIds("#" + me.pre + "mn1_chainalign2", "click", function(e) { me.icn3d; //e.preventDefault();
6734
+ me.myEventCls.onIds("#" + me.pre + "mn1_chainalign2", "click", function(e) { me.icn3d; e.preventDefault();
6735
6735
  me.htmlCls.dialogCls.openDlg('dl_chainalign2', 'Align multiple chains by sequence alignment');
6736
6736
  });
6737
6737
 
6738
- me.myEventCls.onIds("#" + me.pre + "mn1_chainalign3", "click", function(e) { me.icn3d; //e.preventDefault();
6738
+ me.myEventCls.onIds("#" + me.pre + "mn1_chainalign3", "click", function(e) { me.icn3d; e.preventDefault();
6739
6739
  me.htmlCls.dialogCls.openDlg('dl_chainalign3', 'Align multiple chains residue by residue');
6740
6740
  });
6741
6741
 
6742
- me.myEventCls.onIds("#" + me.pre + "mn1_mutation", "click", function(e) { me.icn3d; //e.preventDefault();
6742
+ me.myEventCls.onIds("#" + me.pre + "mn1_mutation", "click", function(e) { me.icn3d; e.preventDefault();
6743
6743
  me.htmlCls.dialogCls.openDlg('dl_mutation', 'Show the mutations in 3D');
6744
6744
  });
6745
6745
 
6746
- me.myEventCls.onIds("#" + me.pre + "mn1_pdbfile", "click", function(e) { me.icn3d; //e.preventDefault();
6746
+ me.myEventCls.onIds("#" + me.pre + "mn1_pdbfile", "click", function(e) { me.icn3d; e.preventDefault();
6747
6747
  //me = me.setIcn3dui($(this).attr('id'));
6748
6748
  me.htmlCls.dialogCls.openDlg('dl_pdbfile', 'Please input PDB File');
6749
6749
  });
6750
- me.myEventCls.onIds(["#" + me.pre + "mn1_pdbfile_app", "#" + me.pre + "tool_pdbfile"], "click", function(e) { me.icn3d; //e.preventDefault();
6750
+ me.myEventCls.onIds(["#" + me.pre + "mn1_pdbfile_app", "#" + me.pre + "tool_pdbfile"], "click", function(e) { me.icn3d; e.preventDefault();
6751
6751
  //me = me.setIcn3dui($(this).attr('id'));
6752
6752
  me.htmlCls.dialogCls.openDlg('dl_pdbfile_app', 'Please append PDB Files');
6753
6753
  });
6754
6754
 
6755
- me.myEventCls.onIds("#" + me.pre + "mn1_mol2file", "click", function(e) { me.icn3d; //e.preventDefault();
6755
+ me.myEventCls.onIds("#" + me.pre + "mn1_mol2file", "click", function(e) { me.icn3d; e.preventDefault();
6756
6756
  me.htmlCls.dialogCls.openDlg('dl_mol2file', 'Please input Mol2 File');
6757
6757
  });
6758
6758
 
6759
- me.myEventCls.onIds("#" + me.pre + "mn1_sdffile", "click", function(e) { me.icn3d; //e.preventDefault();
6759
+ me.myEventCls.onIds("#" + me.pre + "mn1_sdffile", "click", function(e) { me.icn3d; e.preventDefault();
6760
6760
  me.htmlCls.dialogCls.openDlg('dl_sdffile', 'Please input SDF File');
6761
6761
  });
6762
6762
 
6763
- me.myEventCls.onIds("#" + me.pre + "mn1_xyzfile", "click", function(e) { me.icn3d; //e.preventDefault();
6763
+ me.myEventCls.onIds("#" + me.pre + "mn1_xyzfile", "click", function(e) { me.icn3d; e.preventDefault();
6764
6764
  me.htmlCls.dialogCls.openDlg('dl_xyzfile', 'Please input XYZ File');
6765
6765
  });
6766
6766
 
6767
- me.myEventCls.onIds("#" + me.pre + "mn1_afmapfile", "click", function(e) { me.icn3d; //e.preventDefault();
6767
+ me.myEventCls.onIds("#" + me.pre + "mn1_afmapfile", "click", function(e) { me.icn3d; e.preventDefault();
6768
6768
  me.htmlCls.dialogCls.openDlg('dl_afmapfile', 'Please input AlphaFold PAE File');
6769
6769
  });
6770
6770
 
6771
- me.myEventCls.onIds("#" + me.pre + "mn1_urlfile", "click", function(e) { me.icn3d; //e.preventDefault();
6771
+ me.myEventCls.onIds("#" + me.pre + "mn1_urlfile", "click", function(e) { me.icn3d; e.preventDefault();
6772
6772
  me.htmlCls.dialogCls.openDlg('dl_urlfile', 'Load data by URL');
6773
6773
  });
6774
6774
 
6775
- me.myEventCls.onIds("#" + me.pre + "mn1_fixedversion", "click", function(e) { me.icn3d; //e.preventDefault();
6775
+ me.myEventCls.onIds("#" + me.pre + "mn1_fixedversion", "click", function(e) { me.icn3d; e.preventDefault();
6776
6776
  me.htmlCls.dialogCls.openDlg('dl_fixedversion', 'Open Share Link URL in the archived version of iCn3D');
6777
6777
  });
6778
- me.myEventCls.onIds("#" + me.pre + "reload_fixedversion", "click", function(e) { let ic = me.icn3d; //e.preventDefault();
6778
+ me.myEventCls.onIds("#" + me.pre + "reload_fixedversion", "click", function(e) { let ic = me.icn3d; e.preventDefault();
6779
6779
  let url = $("#" + me.pre + "sharelinkurl").val();
6780
6780
  thisClass.setLogCmd("open " + url, false);
6781
6781
  localStorage.setItem('fixedversion', '1');
@@ -6783,65 +6783,65 @@ class ClickMenu {
6783
6783
  window.open(url, urlTarget);
6784
6784
  });
6785
6785
 
6786
- me.myEventCls.onIds("#" + me.pre + "mn1_mmciffile", "click", function(e) { me.icn3d; //e.preventDefault();
6786
+ me.myEventCls.onIds("#" + me.pre + "mn1_mmciffile", "click", function(e) { me.icn3d; e.preventDefault();
6787
6787
  me.htmlCls.dialogCls.openDlg('dl_mmciffile', 'Please input mmCIF File');
6788
6788
  });
6789
6789
 
6790
- me.myEventCls.onIds("#" + me.pre + "mn1_mmcifid", "click", function(e) { me.icn3d; //e.preventDefault();
6790
+ me.myEventCls.onIds("#" + me.pre + "mn1_mmcifid", "click", function(e) { me.icn3d; e.preventDefault();
6791
6791
  me.htmlCls.dialogCls.openDlg('dl_mmcifid', 'Please input mmCIF ID');
6792
6792
  });
6793
6793
 
6794
- me.myEventCls.onIds("#" + me.pre + "mn1_mmdbid", "click", function(e) { me.icn3d; //e.preventDefault();
6794
+ me.myEventCls.onIds("#" + me.pre + "mn1_mmdbid", "click", function(e) { me.icn3d; e.preventDefault();
6795
6795
  me.htmlCls.dialogCls.openDlg('dl_mmdbid', 'Please input MMDB or PDB ID');
6796
6796
  });
6797
6797
 
6798
- me.myEventCls.onIds(["#" + me.pre + "mn1_mmdbafid", , "#" + me.pre + "tool_mmdbafid"], "click", function(e) { me.icn3d; //e.preventDefault();
6798
+ me.myEventCls.onIds(["#" + me.pre + "mn1_mmdbafid", , "#" + me.pre + "tool_mmdbafid"], "click", function(e) { me.icn3d; e.preventDefault();
6799
6799
  me.htmlCls.dialogCls.openDlg('dl_mmdbafid', 'Please input PDB/MMDB/AlphaFold UniProt IDs');
6800
6800
  });
6801
6801
 
6802
- me.myEventCls.onIds("#" + me.pre + "mn1_blast_rep_id", "click", function(e) { me.icn3d; //e.preventDefault();
6802
+ me.myEventCls.onIds("#" + me.pre + "mn1_blast_rep_id", "click", function(e) { me.icn3d; e.preventDefault();
6803
6803
  me.htmlCls.dialogCls.openDlg('dl_blast_rep_id', 'Align sequence to structure');
6804
6804
  });
6805
6805
 
6806
- me.myEventCls.onIds("#" + me.pre + "mn1_gi", "click", function(e) { me.icn3d; //e.preventDefault();
6806
+ me.myEventCls.onIds("#" + me.pre + "mn1_gi", "click", function(e) { me.icn3d; e.preventDefault();
6807
6807
  me.htmlCls.dialogCls.openDlg('dl_gi', 'Please input protein gi');
6808
6808
  });
6809
6809
 
6810
- me.myEventCls.onIds("#" + me.pre + "mn1_cid", "click", function(e) { me.icn3d; //e.preventDefault();
6810
+ me.myEventCls.onIds("#" + me.pre + "mn1_cid", "click", function(e) { me.icn3d; e.preventDefault();
6811
6811
  me.htmlCls.dialogCls.openDlg('dl_cid', 'Please input PubChem CID');
6812
6812
  });
6813
6813
 
6814
- me.myEventCls.onIds("#" + me.pre + "mn1_pngimage", "click", function(e) { me.icn3d; //e.preventDefault();
6814
+ me.myEventCls.onIds("#" + me.pre + "mn1_pngimage", "click", function(e) { me.icn3d; e.preventDefault();
6815
6815
  me.htmlCls.dialogCls.openDlg('dl_pngimage', 'Please input the PNG image');
6816
6816
  });
6817
6817
 
6818
- me.myEventCls.onIds("#" + me.pre + "mn1_state", "click", function(e) { me.icn3d; //e.preventDefault();
6818
+ me.myEventCls.onIds("#" + me.pre + "mn1_state", "click", function(e) { me.icn3d; e.preventDefault();
6819
6819
  me.htmlCls.dialogCls.openDlg('dl_state', 'Please input the state file');
6820
6820
  });
6821
6821
 
6822
- me.myEventCls.onIds("#" + me.pre + "mn1_selection", "click", function(e) { me.icn3d; //e.preventDefault();
6822
+ me.myEventCls.onIds("#" + me.pre + "mn1_selection", "click", function(e) { me.icn3d; e.preventDefault();
6823
6823
  me.htmlCls.dialogCls.openDlg('dl_selection', 'Please input the selection file');
6824
6824
  });
6825
6825
 
6826
- me.myEventCls.onIds("#" + me.pre + "mn1_dsn6", "click", function(e) { me.icn3d; //e.preventDefault();
6826
+ me.myEventCls.onIds("#" + me.pre + "mn1_dsn6", "click", function(e) { me.icn3d; e.preventDefault();
6827
6827
  me.htmlCls.dialogCls.openDlg('dl_dsn6', 'Please input the DSN6 file to display electron density map');
6828
6828
  });
6829
6829
 
6830
6830
 
6831
- me.myEventCls.onIds(["#" + me.pre + "mn1_delphi", "#" + me.pre + "mn1_delphi2", "#" + me.pre + "tool_delphi"], "click", function(e) { let ic = me.icn3d; //e.preventDefault();
6831
+ me.myEventCls.onIds(["#" + me.pre + "mn1_delphi", "#" + me.pre + "mn1_delphi2", "#" + me.pre + "tool_delphi"], "click", function(e) { let ic = me.icn3d; e.preventDefault();
6832
6832
  ic.loadPhiFrom = 'delphi';
6833
6833
  $("#" + me.pre + "dl_delphi_tabs").tabs();
6834
6834
  me.htmlCls.dialogCls.openDlg('dl_delphi', 'Please set parameters to display DelPhi potential map');
6835
6835
  });
6836
6836
 
6837
- me.myEventCls.onIds("#" + me.pre + "mn1_phi", "click", function(e) { let ic = me.icn3d; //e.preventDefault();
6837
+ me.myEventCls.onIds("#" + me.pre + "mn1_phi", "click", function(e) { let ic = me.icn3d; e.preventDefault();
6838
6838
  ic.loadPhiFrom = 'phi';
6839
6839
  $("#" + me.pre + "dl_phi_tabs").tabs();
6840
6840
  $("#" + me.pre + "phitab1_tabs").tabs();
6841
6841
  $("#" + me.pre + "phitab2_tabs").tabs();
6842
6842
  me.htmlCls.dialogCls.openDlg('dl_phi', 'Please input local phi or cube file to display DelPhi potential map');
6843
6843
  });
6844
- me.myEventCls.onIds("#" + me.pre + "mn1_phiurl", "click", function(e) { let ic = me.icn3d; //e.preventDefault();
6844
+ me.myEventCls.onIds("#" + me.pre + "mn1_phiurl", "click", function(e) { let ic = me.icn3d; e.preventDefault();
6845
6845
  ic.loadPhiFrom = 'phiurl';
6846
6846
  $("#" + me.pre + "dl_phiurl_tabs").tabs();
6847
6847
  $("#" + me.pre + "phiurltab1_tabs").tabs();
@@ -6850,11 +6850,11 @@ class ClickMenu {
6850
6850
  });
6851
6851
 
6852
6852
 
6853
- me.myEventCls.onIds("#" + me.pre + "mn1_dsn6url", "click", function(e) { me.icn3d; //e.preventDefault();
6853
+ me.myEventCls.onIds("#" + me.pre + "mn1_dsn6url", "click", function(e) { me.icn3d; e.preventDefault();
6854
6854
  me.htmlCls.dialogCls.openDlg('dl_dsn6url', 'Please input the DSN6 file to display electron density map');
6855
6855
  });
6856
6856
 
6857
- me.myEventCls.onIds("#" + me.pre + "mn1_exportState", "click", function(e) { let ic = me.icn3d; //e.preventDefault();
6857
+ me.myEventCls.onIds("#" + me.pre + "mn1_exportState", "click", function(e) { let ic = me.icn3d; e.preventDefault();
6858
6858
  thisClass.setLogCmd("export state file", false);
6859
6859
  let file_pref =(ic.inputid) ? ic.inputid : "custom";
6860
6860
 
@@ -6862,19 +6862,19 @@ class ClickMenu {
6862
6862
  });
6863
6863
 
6864
6864
 
6865
- me.myEventCls.onIds("#" + me.pre + "mn1_exportPdbRes", "click", function(e) { me.icn3d; //e.preventDefault();
6865
+ me.myEventCls.onIds("#" + me.pre + "mn1_exportPdbRes", "click", function(e) { me.icn3d; e.preventDefault();
6866
6866
  me.htmlCls.setHtmlCls.exportPdb();
6867
6867
 
6868
6868
  thisClass.setLogCmd("export pdb", true);
6869
6869
  });
6870
6870
 
6871
- me.myEventCls.onIds("#" + me.pre + "mn1_exportSecondary", "click", function(e) { me.icn3d; //e.preventDefault();
6871
+ me.myEventCls.onIds("#" + me.pre + "mn1_exportSecondary", "click", function(e) { me.icn3d; e.preventDefault();
6872
6872
  me.htmlCls.setHtmlCls.exportSecondary();
6873
6873
 
6874
6874
  thisClass.setLogCmd("export secondary structure", true);
6875
6875
  });
6876
6876
 
6877
- me.myEventCls.onIds(["#" + me.pre + "delphipdb", "#" + me.pre + "phipdb"], "click", function(e) { let ic = me.icn3d; //e.preventDefault();
6877
+ me.myEventCls.onIds(["#" + me.pre + "delphipdb", "#" + me.pre + "phipdb"], "click", function(e) { let ic = me.icn3d; e.preventDefault();
6878
6878
  let pdbStr = ic.saveFileCls.getSelectedResiduePDB();
6879
6879
 
6880
6880
  thisClass.setLogCmd("export PDB of selected residues", false);
@@ -6882,42 +6882,42 @@ class ClickMenu {
6882
6882
  ic.saveFileCls.saveFile(file_pref + '_icn3d_residues.pdb', 'text', [pdbStr]);
6883
6883
  });
6884
6884
 
6885
- me.myEventCls.onIds(["#" + me.pre + "delphipqr", "#" + me.pre + "phipqr", "#" + me.pre + "phiurlpqr"], "click", async function(e) { me.icn3d; //e.preventDefault();
6885
+ me.myEventCls.onIds(["#" + me.pre + "delphipqr", "#" + me.pre + "phipqr", "#" + me.pre + "phiurlpqr"], "click", async function(e) { me.icn3d; e.preventDefault();
6886
6886
  await me.htmlCls.setHtmlCls.exportPqr();
6887
6887
  thisClass.setLogCmd("export pqr", true);
6888
6888
  });
6889
6889
 
6890
- // me.myEventCls.onIds("#" + me.pre + "delphipqbh", "click", async function(e) { let ic = me.icn3d; //e.preventDefault();
6890
+ // me.myEventCls.onIds("#" + me.pre + "delphipqbh", "click", async function(e) { let ic = me.icn3d; e.preventDefault();
6891
6891
  // let bPdb = true;
6892
6892
  // await me.htmlCls.setHtmlCls.exportPqr(bPdb);
6893
6893
  // thisClass.setLogCmd("export pdbh", false);
6894
6894
  // });
6895
6895
 
6896
- me.myEventCls.onIds("#" + me.pre + "profixpdb", "click", async function(e) { let ic = me.icn3d; //e.preventDefault();
6896
+ me.myEventCls.onIds("#" + me.pre + "profixpdb", "click", async function(e) { let ic = me.icn3d; e.preventDefault();
6897
6897
  let bHydrogen = false;
6898
6898
  await ic.scapCls.exportPdbProfix(bHydrogen);
6899
6899
  thisClass.setLogCmd("export pdb missing atoms", true);
6900
6900
  });
6901
6901
 
6902
- me.myEventCls.onIds("#" + me.pre + "profixpdbh", "click", async function(e) { let ic = me.icn3d; //e.preventDefault();
6902
+ me.myEventCls.onIds("#" + me.pre + "profixpdbh", "click", async function(e) { let ic = me.icn3d; e.preventDefault();
6903
6903
  let bHydrogen = true;
6904
6904
  await ic.scapCls.exportPdbProfix(bHydrogen);
6905
6905
  thisClass.setLogCmd("export pdb hydrogen", true);
6906
6906
  });
6907
6907
 
6908
- me.myEventCls.onIds("#" + me.pre + "mn1_exportStl", "click", function(e) { let ic = me.icn3d; //e.preventDefault();
6908
+ me.myEventCls.onIds("#" + me.pre + "mn1_exportStl", "click", function(e) { let ic = me.icn3d; e.preventDefault();
6909
6909
  thisClass.setLogCmd("export stl file", false);
6910
6910
  //ic.threeDPrintCls.hideStabilizer();
6911
6911
  ic.export3DCls.exportStlFile('');
6912
6912
  });
6913
6913
 
6914
- me.myEventCls.onIds("#" + me.pre + "mn1_exportVrml", "click", function(e) { let ic = me.icn3d; //e.preventDefault();
6914
+ me.myEventCls.onIds("#" + me.pre + "mn1_exportVrml", "click", function(e) { let ic = me.icn3d; e.preventDefault();
6915
6915
  thisClass.setLogCmd("export vrml file", false);
6916
6916
  //ic.threeDPrintCls.hideStabilizer();
6917
6917
  ic.export3DCls.exportVrmlFile('');
6918
6918
  });
6919
6919
 
6920
- me.myEventCls.onIds("#" + me.pre + "mn1_exportStlStab", "click", function(e) { let ic = me.icn3d; //e.preventDefault();
6920
+ me.myEventCls.onIds("#" + me.pre + "mn1_exportStlStab", "click", function(e) { let ic = me.icn3d; e.preventDefault();
6921
6921
  thisClass.setLogCmd("export stl stabilizer file", false);
6922
6922
  //ic.bRender = false;
6923
6923
  ic.threeDPrintCls.hideStabilizer();
@@ -6926,7 +6926,7 @@ class ClickMenu {
6926
6926
  ic.export3DCls.exportStlFile('_stab');
6927
6927
  });
6928
6928
 
6929
- me.myEventCls.onIds("#" + me.pre + "mn1_exportVrmlStab", "click", function(e) { let ic = me.icn3d; //e.preventDefault();
6929
+ me.myEventCls.onIds("#" + me.pre + "mn1_exportVrmlStab", "click", function(e) { let ic = me.icn3d; e.preventDefault();
6930
6930
  thisClass.setLogCmd("export vrml stabilizer file", false);
6931
6931
  //ic.bRender = false;
6932
6932
  ic.threeDPrintCls.hideStabilizer();
@@ -6935,13 +6935,13 @@ class ClickMenu {
6935
6935
  ic.export3DCls.exportVrmlFile('_stab');
6936
6936
  });
6937
6937
 
6938
- me.myEventCls.onIds("#" + me.pre + "mn6_exportInteraction", "click", async function(e) { let ic = me.icn3d; //e.preventDefault();
6938
+ me.myEventCls.onIds("#" + me.pre + "mn6_exportInteraction", "click", async function(e) { let ic = me.icn3d; e.preventDefault();
6939
6939
  thisClass.setLogCmd("export interactions", false);
6940
6940
  if(me.cfg.mmdbid !== undefined) await ic.viewInterPairsCls.retrieveInteractionData();
6941
6941
  ic.viewInterPairsCls.exportInteractions();
6942
6942
  });
6943
6943
 
6944
- me.myEventCls.onIds(["#" + me.pre + "mn1_exportCanvas", "#" + me.pre + "saveimage"], "click", async function(e) { let ic = me.icn3d; //e.preventDefault();
6944
+ me.myEventCls.onIds(["#" + me.pre + "mn1_exportCanvas", "#" + me.pre + "saveimage"], "click", async function(e) { let ic = me.icn3d; e.preventDefault();
6945
6945
  // do not record the export command
6946
6946
  //thisClass.setLogCmd("export canvas", true);
6947
6947
  thisClass.setLogCmd("export canvas", false);
@@ -6950,28 +6950,28 @@ class ClickMenu {
6950
6950
  let bPngHtml = true;
6951
6951
  await ic.shareLinkCls.shareLink(bPngHtml);
6952
6952
  });
6953
- me.myEventCls.onIds("#" + me.pre + "mn1_exportCanvas1", "click", async function(e) { let ic = me.icn3d; //e.preventDefault();
6953
+ me.myEventCls.onIds("#" + me.pre + "mn1_exportCanvas1", "click", async function(e) { let ic = me.icn3d; e.preventDefault();
6954
6954
  thisClass.setLogCmd("export canvas 1", true);
6955
6955
  ic.scaleFactor = 1;
6956
6956
  await ic.shareLinkCls.shareLink(true, true);
6957
6957
  });
6958
- me.myEventCls.onIds("#" + me.pre + "mn1_exportCanvas2", "click", async function(e) { let ic = me.icn3d; //e.preventDefault();
6958
+ me.myEventCls.onIds("#" + me.pre + "mn1_exportCanvas2", "click", async function(e) { let ic = me.icn3d; e.preventDefault();
6959
6959
  thisClass.setLogCmd("export canvas 2", true);
6960
6960
  ic.scaleFactor = 2;
6961
6961
  await ic.shareLinkCls.shareLink(true, true);
6962
6962
  });
6963
- me.myEventCls.onIds("#" + me.pre + "mn1_exportCanvas4", "click", async function(e) { let ic = me.icn3d; //e.preventDefault();
6963
+ me.myEventCls.onIds("#" + me.pre + "mn1_exportCanvas4", "click", async function(e) { let ic = me.icn3d; e.preventDefault();
6964
6964
  thisClass.setLogCmd("export canvas 4", true);
6965
6965
  ic.scaleFactor = 4;
6966
6966
  await ic.shareLinkCls.shareLink(true, true);
6967
6967
  });
6968
- me.myEventCls.onIds("#" + me.pre + "mn1_exportCanvas8", "click", async function(e) { let ic = me.icn3d; //e.preventDefault();
6968
+ me.myEventCls.onIds("#" + me.pre + "mn1_exportCanvas8", "click", async function(e) { let ic = me.icn3d; e.preventDefault();
6969
6969
  thisClass.setLogCmd("export canvas 8", true);
6970
6970
  ic.scaleFactor = 8;
6971
6971
  await ic.shareLinkCls.shareLink(true, true);
6972
6972
  });
6973
6973
 
6974
- me.myEventCls.onIds("#" + me.pre + "mn1_exportCounts", "click", function(e) { let ic = me.icn3d; //e.preventDefault();
6974
+ me.myEventCls.onIds("#" + me.pre + "mn1_exportCounts", "click", function(e) { let ic = me.icn3d; e.preventDefault();
6975
6975
  thisClass.setLogCmd("export counts", false);
6976
6976
  let text = '<html><body><div style="text-align:center"><br><b>Total Count for atoms with coordinates</b>:<br/><table align=center border=1 cellpadding=10 cellspacing=0><tr><th>Structure Count</th><th>Chain Count</th><th>Residue Count</th><th>Atom Count</th></tr>';
6977
6977
  text += '<tr><td>' + Object.keys(ic.structures).length + '</td><td>' + Object.keys(ic.chains).length + '</td><td>' + Object.keys(ic.residues).length + '</td><td>' + Object.keys(ic.atoms).length + '</td></tr>';
@@ -6998,7 +6998,7 @@ class ClickMenu {
6998
6998
  ic.saveFileCls.saveFile(file_pref + '_counts.html', 'html', text);
6999
6999
  });
7000
7000
 
7001
- me.myEventCls.onIds("#" + me.pre + "mn1_exportSelections", "click", function(e) { let ic = me.icn3d; //e.preventDefault();
7001
+ me.myEventCls.onIds("#" + me.pre + "mn1_exportSelections", "click", function(e) { let ic = me.icn3d; e.preventDefault();
7002
7002
  thisClass.setLogCmd("export all selections", false);
7003
7003
 
7004
7004
  thisClass.SetChainsAdvancedMenu();
@@ -7008,7 +7008,7 @@ class ClickMenu {
7008
7008
  ic.saveFileCls.saveFile(file_pref + '_selections.txt', 'text', [text]);
7009
7009
  });
7010
7010
 
7011
- me.myEventCls.onIds("#" + me.pre + "mn1_exportSelDetails", "click", function(e) { let ic = me.icn3d; //e.preventDefault();
7011
+ me.myEventCls.onIds("#" + me.pre + "mn1_exportSelDetails", "click", function(e) { let ic = me.icn3d; e.preventDefault();
7012
7012
  thisClass.setLogCmd("export all selections with details", false);
7013
7013
 
7014
7014
  thisClass.SetChainsAdvancedMenu();
@@ -7019,32 +7019,32 @@ class ClickMenu {
7019
7019
  ic.saveFileCls.saveFile(file_pref + '_sel_details.txt', 'text', [text]);
7020
7020
  });
7021
7021
 
7022
- me.myEventCls.onIds(["#" + me.pre + "mn1_sharelink", "#" + me.pre + "tool_sharelink"], "click", async function(e) { let ic = me.icn3d; //e.preventDefault();
7022
+ me.myEventCls.onIds(["#" + me.pre + "mn1_sharelink", "#" + me.pre + "tool_sharelink"], "click", async function(e) { let ic = me.icn3d; e.preventDefault();
7023
7023
  await ic.shareLinkCls.shareLink();
7024
7024
  });
7025
7025
 
7026
- me.myEventCls.onIds("#" + me.pre + "mn1_replayon", "click", async function(e) { let ic = me.icn3d; //e.preventDefault();
7026
+ me.myEventCls.onIds("#" + me.pre + "mn1_replayon", "click", async function(e) { let ic = me.icn3d; e.preventDefault();
7027
7027
  await ic.resizeCanvasCls.replayon();
7028
7028
  thisClass.setLogCmd("replay on", true);
7029
7029
  });
7030
- me.myEventCls.onIds("#" + me.pre + "mn1_replayoff", "click", async function(e) { let ic = me.icn3d; //e.preventDefault();
7030
+ me.myEventCls.onIds("#" + me.pre + "mn1_replayoff", "click", async function(e) { let ic = me.icn3d; e.preventDefault();
7031
7031
  await ic.resizeCanvasCls.replayoff();
7032
7032
  thisClass.setLogCmd("replay off", true);
7033
7033
  });
7034
7034
 
7035
- me.myEventCls.onIds("#" + me.pre + "mn1_menuall", "click", function(e) { me.icn3d; //e.preventDefault();
7035
+ me.myEventCls.onIds("#" + me.pre + "mn1_menuall", "click", function(e) { me.icn3d; e.preventDefault();
7036
7036
  me.htmlCls.shownMenus = me.hashUtilsCls.cloneHash(me.htmlCls.allMenus);
7037
7037
 
7038
7038
  thisClass.applyShownMenus();
7039
7039
  });
7040
7040
 
7041
- me.myEventCls.onIds("#" + me.pre + "mn1_menusimple", "click", function(e) { me.icn3d; //e.preventDefault();
7041
+ me.myEventCls.onIds("#" + me.pre + "mn1_menusimple", "click", function(e) { me.icn3d; e.preventDefault();
7042
7042
  me.htmlCls.shownMenus = me.hashUtilsCls.cloneHash(me.htmlCls.simpleMenus);
7043
7043
 
7044
7044
  thisClass.applyShownMenus();
7045
7045
  });
7046
7046
 
7047
- me.myEventCls.onIds("#" + me.pre + "mn1_menupref", "click", function(e) { me.icn3d; //e.preventDefault();
7047
+ me.myEventCls.onIds("#" + me.pre + "mn1_menupref", "click", function(e) { me.icn3d; e.preventDefault();
7048
7048
  me.htmlCls.dialogCls.openDlg('dl_menupref', 'Select Menus');
7049
7049
 
7050
7050
  thisClass.getHiddenMenusFromCache();
@@ -7052,7 +7052,7 @@ class ClickMenu {
7052
7052
  thisClass.displayShownMenus();
7053
7053
  });
7054
7054
 
7055
- me.myEventCls.onIds(["#" + me.pre + "apply_menupref", "#" + me.pre + "apply_menupref2"], "click", function(e) { me.icn3d; //e.preventDefault();
7055
+ me.myEventCls.onIds(["#" + me.pre + "apply_menupref", "#" + me.pre + "apply_menupref2"], "click", function(e) { me.icn3d; e.preventDefault();
7056
7056
  var checkboxes = document.querySelectorAll('form[name="' + me.pre + 'selmenu"] input:checked');
7057
7057
  me.htmlCls.shownMenus = {};
7058
7058
  for (var checkbox of checkboxes) {
@@ -7062,21 +7062,21 @@ class ClickMenu {
7062
7062
  thisClass.applyShownMenus();
7063
7063
  });
7064
7064
 
7065
- me.myEventCls.onIds(["#" + me.pre + "reset_menupref", "#" + me.pre + "reset_menupref2"], "click", function(e) { me.icn3d; //e.preventDefault();
7065
+ me.myEventCls.onIds(["#" + me.pre + "reset_menupref", "#" + me.pre + "reset_menupref2"], "click", function(e) { me.icn3d; e.preventDefault();
7066
7066
  me.htmlCls.shownMenus = me.hashUtilsCls.cloneHash(me.htmlCls.simpleMenus);
7067
7067
 
7068
7068
  thisClass.applyShownMenus();
7069
7069
  thisClass.displayShownMenus();
7070
7070
  });
7071
7071
 
7072
- me.myEventCls.onIds(["#" + me.pre + "reset_menupref_all", "#" + me.pre + "reset_menupref_all2"], "click", function(e) { me.icn3d; //e.preventDefault();
7072
+ me.myEventCls.onIds(["#" + me.pre + "reset_menupref_all", "#" + me.pre + "reset_menupref_all2"], "click", function(e) { me.icn3d; e.preventDefault();
7073
7073
  me.htmlCls.shownMenus = me.hashUtilsCls.cloneHash(me.htmlCls.allMenus);
7074
7074
 
7075
7075
  thisClass.applyShownMenus();
7076
7076
  thisClass.displayShownMenus();
7077
7077
  });
7078
7078
 
7079
- me.myEventCls.onIds(["#" + me.pre + "savepref", "#" + me.pre + "savepref2"], "click", function(e) { let ic = me.icn3d; //e.preventDefault();
7079
+ me.myEventCls.onIds(["#" + me.pre + "savepref", "#" + me.pre + "savepref2"], "click", function(e) { let ic = me.icn3d; e.preventDefault();
7080
7080
  let menuStr = '[';
7081
7081
 
7082
7082
  //var checkboxes = document.querySelectorAll('form[name="' + me.pre + 'selmenu"] input:checked');
@@ -7093,7 +7093,7 @@ class ClickMenu {
7093
7093
  ic.saveFileCls.saveFile('icn3d_menus_pref.txt', 'text', [menuStr]);
7094
7094
  });
7095
7095
 
7096
- me.myEventCls.onIds("#" + me.pre + "reload_menupreffile", "click", function(e) { me.icn3d; //e.preventDefault();
7096
+ me.myEventCls.onIds("#" + me.pre + "reload_menupreffile", "click", function(e) { me.icn3d; e.preventDefault();
7097
7097
 
7098
7098
  if(!me.cfg.notebook) dialog.dialog( "close" );
7099
7099
  let file = $("#" + me.pre + "menupreffile")[0].files[0];
@@ -7124,25 +7124,25 @@ class ClickMenu {
7124
7124
  }
7125
7125
  });
7126
7126
 
7127
- me.myEventCls.onIds("#" + me.pre + "mn1_menuloadpref", "click", function(e) { me.icn3d; //e.preventDefault();
7127
+ me.myEventCls.onIds("#" + me.pre + "mn1_menuloadpref", "click", function(e) { me.icn3d; e.preventDefault();
7128
7128
  me.htmlCls.dialogCls.openDlg('dl_menuloadpref', 'Please input the menu preference file');
7129
7129
  });
7130
7130
 
7131
7131
 
7132
- me.myEventCls.onIds("#" + me.pre + "mn1_link_structure", "click", function(e) { let ic = me.icn3d; //e.preventDefault();
7132
+ me.myEventCls.onIds("#" + me.pre + "mn1_link_structure", "click", function(e) { let ic = me.icn3d; e.preventDefault();
7133
7133
  let url = ic.saveFileCls.getLinkToStructureSummary(true);
7134
7134
  let urlTarget = (ic.structures && Object.keys(ic.structures).length > 0) ? '_blank' : '_self';
7135
7135
  window.open(url, urlTarget);
7136
7136
  });
7137
7137
 
7138
- me.myEventCls.onIds("#" + me.pre + "mn1_link_bind", "click", function(e) { let ic = me.icn3d; //e.preventDefault();
7138
+ me.myEventCls.onIds("#" + me.pre + "mn1_link_bind", "click", function(e) { let ic = me.icn3d; e.preventDefault();
7139
7139
  url = "https://www.ncbi.nlm.nih.gov/pccompound?LinkName=pccompound_structure&from_uid=" + ic.inputid;
7140
7140
  thisClass.setLogCmd("link to 3D protein structures bound to CID " + ic.inputid + ": " + url, false);
7141
7141
  let urlTarget = (ic.structures && Object.keys(ic.structures).length > 0) ? '_blank' : '_self';
7142
7142
  window.open(url, urlTarget);
7143
7143
  });
7144
7144
 
7145
- me.myEventCls.onIds("#" + me.pre + "mn1_link_vast", "click", function(e) { let ic = me.icn3d; //e.preventDefault();
7145
+ me.myEventCls.onIds("#" + me.pre + "mn1_link_vast", "click", function(e) { let ic = me.icn3d; e.preventDefault();
7146
7146
  if(ic.inputid === undefined) {
7147
7147
  url = "https://www.ncbi.nlm.nih.gov/pccompound?term=" + ic.molTitle;
7148
7148
  thisClass.setLogCmd("link to compounds " + ic.molTitle + ": " + url, false);
@@ -7171,7 +7171,7 @@ class ClickMenu {
7171
7171
  window.open(url, urlTarget);
7172
7172
  });
7173
7173
 
7174
- me.myEventCls.onIds("#" + me.pre + "mn1_link_pubmed", "click", function(e) { let ic = me.icn3d; //e.preventDefault();
7174
+ me.myEventCls.onIds("#" + me.pre + "mn1_link_pubmed", "click", function(e) { let ic = me.icn3d; e.preventDefault();
7175
7175
  if(ic.inputid === undefined) {
7176
7176
  let url;
7177
7177
  url = "https://www.ncbi.nlm.nih.gov/pubmed/?term=" + ic.molTitle;
@@ -7217,7 +7217,7 @@ class ClickMenu {
7217
7217
  }
7218
7218
  });
7219
7219
 
7220
- me.myEventCls.onIds("#" + me.pre + "mn1_link_protein", "click", function(e) { let ic = me.icn3d; //e.preventDefault();
7220
+ me.myEventCls.onIds("#" + me.pre + "mn1_link_protein", "click", function(e) { let ic = me.icn3d; e.preventDefault();
7221
7221
  //ic.saveFileCls.setEntrezLinks('protein');
7222
7222
  let structArray = Object.keys(ic.structures);
7223
7223
  let chainArray = Object.keys(ic.chains);
@@ -7242,19 +7242,19 @@ class ClickMenu {
7242
7242
 
7243
7243
  let thisClass = this;
7244
7244
 
7245
- me.myEventCls.onIds(["#" + me.pre + "mn6_selectannotations", "#" + me.pre + "tool_selectannotations"], "click", async function(e) { let ic = me.icn3d; //e.preventDefault();
7245
+ me.myEventCls.onIds(["#" + me.pre + "mn6_selectannotations", "#" + me.pre + "tool_selectannotations"], "click", async function(e) { let ic = me.icn3d; e.preventDefault();
7246
7246
  await ic.showAnnoCls.showAnnotations();
7247
7247
  thisClass.setLogCmd("view annotations", true);
7248
7248
  //thisClass.setLogCmd("window annotations", true);
7249
7249
  });
7250
7250
 
7251
- me.myEventCls.onIds("#" + me.pre + "mn2_selectall", "click", function(e) { let ic = me.icn3d; //e.preventDefault();
7251
+ me.myEventCls.onIds("#" + me.pre + "mn2_selectall", "click", function(e) { let ic = me.icn3d; e.preventDefault();
7252
7252
  thisClass.setLogCmd("select all", true);
7253
7253
  ic.selectionCls.selectAll();
7254
7254
  ic.hlUpdateCls.removeHlAll();
7255
7255
  ic.drawCls.draw();
7256
7256
  });
7257
- me.myEventCls.onIds("#" + me.pre + "clearall", "click", function(e) { let ic = me.icn3d; //e.preventDefault();
7257
+ me.myEventCls.onIds("#" + me.pre + "clearall", "click", function(e) { let ic = me.icn3d; e.preventDefault();
7258
7258
  thisClass.setLogCmd("clear all", true);
7259
7259
  ic.bSelectResidue = false;
7260
7260
  ic.selectionCls.selectAll();
@@ -7262,7 +7262,7 @@ class ClickMenu {
7262
7262
  ic.drawCls.draw();
7263
7263
  });
7264
7264
 
7265
- me.myEventCls.onIds("#" + me.pre + "mn2_selectdisplayed", "click", function(e) { let ic = me.icn3d; //e.preventDefault();
7265
+ me.myEventCls.onIds("#" + me.pre + "mn2_selectdisplayed", "click", function(e) { let ic = me.icn3d; e.preventDefault();
7266
7266
  thisClass.setLogCmd("select displayed set", true);
7267
7267
  //ic.hAtoms = me.hashUtilsCls.cloneHash(ic.dAtoms);
7268
7268
  ic.hAtoms = me.hashUtilsCls.cloneHash(ic.viewSelectionAtoms);
@@ -7270,106 +7270,106 @@ class ClickMenu {
7270
7270
  //ic.drawCls.draw();
7271
7271
  });
7272
7272
 
7273
- me.myEventCls.onIds("#" + me.pre + "mn2_fullstru", "click", function(e) { let ic = me.icn3d; //e.preventDefault();
7273
+ me.myEventCls.onIds("#" + me.pre + "mn2_fullstru", "click", function(e) { let ic = me.icn3d; e.preventDefault();
7274
7274
  thisClass.setLogCmd("show all", true);
7275
7275
  ic.selectionCls.showAll();
7276
7276
  });
7277
7277
 
7278
- me.myEventCls.onIds("#" + me.pre + "mn2_selectcomplement", "click", function(e) { let ic = me.icn3d; //e.preventDefault();
7278
+ me.myEventCls.onIds("#" + me.pre + "mn2_selectcomplement", "click", function(e) { let ic = me.icn3d; e.preventDefault();
7279
7279
  if(Object.keys(ic.hAtoms).length < Object.keys(ic.atoms).length) {
7280
7280
  thisClass.setLogCmd("select complement", true);
7281
7281
  ic.resid2specCls.selectComplement();
7282
7282
  }
7283
7283
  });
7284
7284
 
7285
- me.myEventCls.onIds("#" + me.pre + "mn2_selectmainchains", "click", function(e) { let ic = me.icn3d; //e.preventDefault();
7285
+ me.myEventCls.onIds("#" + me.pre + "mn2_selectmainchains", "click", function(e) { let ic = me.icn3d; e.preventDefault();
7286
7286
  thisClass.setLogCmd("select main chains", true);
7287
7287
  ic.selectionCls.selectMainChains();
7288
7288
  });
7289
7289
 
7290
- me.myEventCls.onIds("#" + me.pre + "mn2_selectsidechains", "click", function(e) { let ic = me.icn3d; //e.preventDefault();
7290
+ me.myEventCls.onIds("#" + me.pre + "mn2_selectsidechains", "click", function(e) { let ic = me.icn3d; e.preventDefault();
7291
7291
  thisClass.setLogCmd("select side chains", true);
7292
7292
  ic.selectionCls.selectSideChains();
7293
7293
  });
7294
7294
 
7295
- me.myEventCls.onIds("#" + me.pre + "mn2_selectmainsidechains", "click", function(e) { let ic = me.icn3d; //e.preventDefault();
7295
+ me.myEventCls.onIds("#" + me.pre + "mn2_selectmainsidechains", "click", function(e) { let ic = me.icn3d; e.preventDefault();
7296
7296
  thisClass.setLogCmd("select main side chains", true);
7297
7297
  ic.selectionCls.selectMainSideChains();
7298
7298
  });
7299
7299
 
7300
- me.myEventCls.onIds("#" + me.pre + "mn2_propPos", "click", function(e) { let ic = me.icn3d; //e.preventDefault();
7300
+ me.myEventCls.onIds("#" + me.pre + "mn2_propPos", "click", function(e) { let ic = me.icn3d; e.preventDefault();
7301
7301
  thisClass.setLogCmd("select prop positive", true);
7302
7302
  ic.resid2specCls.selectProperty('positive');
7303
7303
  });
7304
- me.myEventCls.onIds("#" + me.pre + "mn2_propNeg", "click", function(e) { let ic = me.icn3d; //e.preventDefault();
7304
+ me.myEventCls.onIds("#" + me.pre + "mn2_propNeg", "click", function(e) { let ic = me.icn3d; e.preventDefault();
7305
7305
  thisClass.setLogCmd("select prop negative", true);
7306
7306
  ic.resid2specCls.selectProperty('negative');
7307
7307
  });
7308
- me.myEventCls.onIds("#" + me.pre + "mn2_propHydro", "click", function(e) { let ic = me.icn3d; //e.preventDefault();
7308
+ me.myEventCls.onIds("#" + me.pre + "mn2_propHydro", "click", function(e) { let ic = me.icn3d; e.preventDefault();
7309
7309
  thisClass.setLogCmd("select prop hydrophobic", true);
7310
7310
  ic.resid2specCls.selectProperty('hydrophobic');
7311
7311
  });
7312
- me.myEventCls.onIds("#" + me.pre + "mn2_propPolar", "click", function(e) { let ic = me.icn3d; //e.preventDefault();
7312
+ me.myEventCls.onIds("#" + me.pre + "mn2_propPolar", "click", function(e) { let ic = me.icn3d; e.preventDefault();
7313
7313
  thisClass.setLogCmd("select prop polar", true);
7314
7314
  ic.resid2specCls.selectProperty('polar');
7315
7315
  });
7316
- me.myEventCls.onIds("#" + me.pre + "mn2_propBfactor", "click", function(e) { me.icn3d; //e.preventDefault();
7316
+ me.myEventCls.onIds("#" + me.pre + "mn2_propBfactor", "click", function(e) { me.icn3d; e.preventDefault();
7317
7317
  me.htmlCls.dialogCls.openDlg('dl_propbybfactor', 'Select residue based on B-factor');
7318
7318
  });
7319
- me.myEventCls.onIds("#" + me.pre + "mn2_propSolAcc", "click", function(e) { me.icn3d; //e.preventDefault();
7319
+ me.myEventCls.onIds("#" + me.pre + "mn2_propSolAcc", "click", function(e) { me.icn3d; e.preventDefault();
7320
7320
  me.htmlCls.dialogCls.openDlg('dl_propbypercentout', 'Select residue based on the percentage of solvent accessilbe surface area');
7321
7321
  });
7322
- me.myEventCls.onIds("#" + me.pre + "applypropbybfactor", "click", function(e) { let ic = me.icn3d; //e.preventDefault();
7322
+ me.myEventCls.onIds("#" + me.pre + "applypropbybfactor", "click", function(e) { let ic = me.icn3d; e.preventDefault();
7323
7323
  let from = $("#" + me.pre + "minbfactor").val();
7324
7324
  let to = $("#" + me.pre + "maxbfactor").val();
7325
7325
  thisClass.setLogCmd("select prop b factor | " + from + '_' + to, true);
7326
7326
  ic.resid2specCls.selectProperty('b factor', from, to);
7327
7327
  });
7328
- me.myEventCls.onIds("#" + me.pre + "applypropbypercentout", "click", function(e) { let ic = me.icn3d; //e.preventDefault();
7328
+ me.myEventCls.onIds("#" + me.pre + "applypropbypercentout", "click", function(e) { let ic = me.icn3d; e.preventDefault();
7329
7329
  let from = $("#" + me.pre + "minpercentout").val();
7330
7330
  let to = $("#" + me.pre + "maxpercentout").val();
7331
7331
  thisClass.setLogCmd("select prop percent out | " + from + '_' + to, true);
7332
7332
  ic.resid2specCls.selectProperty('percent out', from, to);
7333
7333
  });
7334
7334
 
7335
- me.myEventCls.onIds("#" + me.pre + "mn2_alignment", "click", function(e) { me.icn3d; //e.preventDefault();
7335
+ me.myEventCls.onIds("#" + me.pre + "mn2_alignment", "click", function(e) { me.icn3d; e.preventDefault();
7336
7336
  me.htmlCls.dialogCls.openDlg('dl_alignment', 'Select residues in aligned sequences');
7337
7337
  thisClass.setLogCmd("window aligned sequences", true);
7338
7338
  });
7339
7339
 
7340
- me.myEventCls.onIds("#" + me.pre + "mn1_window_table", "click", function(e) { me.icn3d; //e.preventDefault();
7340
+ me.myEventCls.onIds("#" + me.pre + "mn1_window_table", "click", function(e) { me.icn3d; e.preventDefault();
7341
7341
  me.htmlCls.dialogCls.openDlg('dl_allinteraction', 'Show interactions');
7342
7342
  thisClass.setLogCmd("window interaction table", true);
7343
7343
  });
7344
- me.myEventCls.onIds("#" + me.pre + "mn1_window_linegraph", "click", function(e) { me.icn3d; //e.preventDefault();
7344
+ me.myEventCls.onIds("#" + me.pre + "mn1_window_linegraph", "click", function(e) { me.icn3d; e.preventDefault();
7345
7345
  me.htmlCls.dialogCls.openDlg('dl_linegraph', 'Show interactions between two lines of residue nodes');
7346
7346
  thisClass.setLogCmd("window interaction graph", true);
7347
7347
  });
7348
- me.myEventCls.onIds("#" + me.pre + "mn1_window_scatterplot", "click", function(e) { me.icn3d; //e.preventDefault();
7348
+ me.myEventCls.onIds("#" + me.pre + "mn1_window_scatterplot", "click", function(e) { me.icn3d; e.preventDefault();
7349
7349
  me.htmlCls.dialogCls.openDlg('dl_scatterplot', 'Show interactions as map');
7350
7350
  thisClass.setLogCmd("window interaction scatterplot", true);
7351
7351
  });
7352
- me.myEventCls.onIds("#" + me.pre + "mn1_window_graph", "click", function(e) { me.icn3d; //e.preventDefault();
7352
+ me.myEventCls.onIds("#" + me.pre + "mn1_window_graph", "click", function(e) { me.icn3d; e.preventDefault();
7353
7353
  me.htmlCls.dialogCls.openDlg('dl_graph', 'Force-directed graph');
7354
7354
  thisClass.setLogCmd("window force-directed graph", true);
7355
7355
  });
7356
7356
 
7357
- me.myEventCls.onIds("#" + me.pre + "mn6_yournote", "click", function(e) { me.icn3d; //e.preventDefault();
7357
+ me.myEventCls.onIds("#" + me.pre + "mn6_yournote", "click", function(e) { me.icn3d; e.preventDefault();
7358
7358
  me.htmlCls.dialogCls.openDlg('dl_yournote', 'Your note about the current display');
7359
7359
  });
7360
7360
 
7361
- me.myEventCls.onIds("#" + me.pre + "applyyournote", "click", function(e) { let ic = me.icn3d; //e.preventDefault();
7361
+ me.myEventCls.onIds("#" + me.pre + "applyyournote", "click", function(e) { let ic = me.icn3d; e.preventDefault();
7362
7362
  ic.yournote = $("#" + me.pre + "yournote").val();
7363
7363
  if(me.cfg.shownote) document.title = ic.yournote;
7364
7364
  if(!me.cfg.notebook) dialog.dialog( "close" );
7365
7365
  thisClass.setLogCmd('your note | ' + ic.yournote, true);
7366
7366
  });
7367
7367
 
7368
- me.myEventCls.onIds("#" + me.pre + "mn2_command", "click", function(e) { me.icn3d; //e.preventDefault();
7368
+ me.myEventCls.onIds("#" + me.pre + "mn2_command", "click", function(e) { me.icn3d; e.preventDefault();
7369
7369
  me.htmlCls.dialogCls.openDlg('dl_advanced2', 'Select by specification');
7370
7370
  });
7371
7371
 
7372
- me.myEventCls.onIds(["#" + me.pre + "mn2_definedsets", "#" + me.pre + "definedsets", "#" + me.pre + "definedsets2", "#" + me.pre + "tool_definedsets"], "click", function(e) { let ic = me.icn3d; //e.preventDefault();
7372
+ me.myEventCls.onIds(["#" + me.pre + "mn2_definedsets", "#" + me.pre + "definedsets", "#" + me.pre + "definedsets2", "#" + me.pre + "tool_definedsets"], "click", function(e) { let ic = me.icn3d; e.preventDefault();
7373
7373
  ic.definedSetsCls.showSets();
7374
7374
  thisClass.setLogCmd('defined sets', true);
7375
7375
  //thisClass.setLogCmd('window defined sets', true);
@@ -7388,7 +7388,7 @@ class ClickMenu {
7388
7388
  });
7389
7389
 
7390
7390
 
7391
- me.myEventCls.onIds("#" + me.pre + "mn2_pkNo", "click", function(e) { let ic = me.icn3d; //e.preventDefault();
7391
+ me.myEventCls.onIds("#" + me.pre + "mn2_pkNo", "click", function(e) { let ic = me.icn3d; e.preventDefault();
7392
7392
  ic.pk = 0;
7393
7393
  ic.opts['pk'] = 'no';
7394
7394
  thisClass.setLogCmd('set pk off', true);
@@ -7396,50 +7396,50 @@ class ClickMenu {
7396
7396
  ic.hlObjectsCls.removeHlObjects();
7397
7397
  });
7398
7398
 
7399
- me.myEventCls.onIds("#" + me.pre + "mn2_pkYes", "click", function(e) { let ic = me.icn3d; //e.preventDefault();
7399
+ me.myEventCls.onIds("#" + me.pre + "mn2_pkYes", "click", function(e) { let ic = me.icn3d; e.preventDefault();
7400
7400
  ic.pk = 1;
7401
7401
  ic.opts['pk'] = 'atom';
7402
7402
  thisClass.setLogCmd('set pk atom', true);
7403
7403
  });
7404
7404
 
7405
- me.myEventCls.onIds("#" + me.pre + "mn2_pkResidue", "click", function(e) { let ic = me.icn3d; //e.preventDefault();
7405
+ me.myEventCls.onIds("#" + me.pre + "mn2_pkResidue", "click", function(e) { let ic = me.icn3d; e.preventDefault();
7406
7406
  ic.pk = 2;
7407
7407
  ic.opts['pk'] = 'residue';
7408
7408
  thisClass.setLogCmd('set pk residue', true);
7409
7409
  });
7410
7410
 
7411
- me.myEventCls.onIds("#" + me.pre + "mn2_pkStrand", "click", function(e) { let ic = me.icn3d; //e.preventDefault();
7411
+ me.myEventCls.onIds("#" + me.pre + "mn2_pkStrand", "click", function(e) { let ic = me.icn3d; e.preventDefault();
7412
7412
  ic.pk = 3;
7413
7413
  ic.opts['pk'] = 'strand';
7414
7414
  thisClass.setLogCmd('set pk strand', true);
7415
7415
  });
7416
7416
 
7417
- me.myEventCls.onIds("#" + me.pre + "mn2_pkDomain", "click", function(e) { let ic = me.icn3d; //e.preventDefault();
7417
+ me.myEventCls.onIds("#" + me.pre + "mn2_pkDomain", "click", function(e) { let ic = me.icn3d; e.preventDefault();
7418
7418
  ic.pk = 4;
7419
7419
  ic.opts['pk'] = 'domain';
7420
7420
  thisClass.setLogCmd('set pk domain', true);
7421
7421
  });
7422
7422
 
7423
- me.myEventCls.onIds("#" + me.pre + "mn2_pkChain", "click", function(e) { let ic = me.icn3d; //e.preventDefault();
7423
+ me.myEventCls.onIds("#" + me.pre + "mn2_pkChain", "click", function(e) { let ic = me.icn3d; e.preventDefault();
7424
7424
  ic.pk = 5;
7425
7425
  ic.opts['pk'] = 'chain';
7426
7426
  thisClass.setLogCmd('set pk chain', true);
7427
7427
  });
7428
7428
 
7429
- me.myEventCls.onIds("#" + me.pre + "adjustmem", "click", function(e) { me.icn3d; //e.preventDefault();
7429
+ me.myEventCls.onIds("#" + me.pre + "adjustmem", "click", function(e) { me.icn3d; e.preventDefault();
7430
7430
  me.htmlCls.dialogCls.openDlg('dl_adjustmem', 'Adjust the Z-axis positions of the membrane');
7431
7431
  });
7432
7432
 
7433
- me.myEventCls.onIds("#" + me.pre + "togglemem", "click", function(e) { let ic = me.icn3d; //e.preventDefault();
7433
+ me.myEventCls.onIds("#" + me.pre + "togglemem", "click", function(e) { let ic = me.icn3d; e.preventDefault();
7434
7434
  ic.selectionCls.toggleMembrane();
7435
7435
  thisClass.setLogCmd('toggle membrane', true);
7436
7436
  });
7437
7437
 
7438
- me.myEventCls.onIds("#" + me.pre + "selectplane", "click", function(e) { me.icn3d; //e.preventDefault();
7438
+ me.myEventCls.onIds("#" + me.pre + "selectplane", "click", function(e) { me.icn3d; e.preventDefault();
7439
7439
  me.htmlCls.dialogCls.openDlg('dl_selectplane', 'Select a region between two planes');
7440
7440
  });
7441
7441
 
7442
- me.myEventCls.onIds(["#" + me.pre + "mn2_aroundsphere", "#" + me.pre + "tool_aroundsphere"], "click", function(e) { let ic = me.icn3d; //e.preventDefault();
7442
+ me.myEventCls.onIds(["#" + me.pre + "mn2_aroundsphere", "#" + me.pre + "tool_aroundsphere"], "click", function(e) { let ic = me.icn3d; e.preventDefault();
7443
7443
  thisClass.SetChainsAdvancedMenu();
7444
7444
 
7445
7445
  let definedAtomsHtml = ic.definedSetsCls.setAtomMenu(['protein']);
@@ -7456,7 +7456,7 @@ class ClickMenu {
7456
7456
  $("#" + me.pre + "atomsCustomSphere2").resizable();
7457
7457
  });
7458
7458
 
7459
- me.myEventCls.onIds(["#" + me.pre + "mn2_select_chain", "#" + me.pre + "definedSets"], "click", function(e) { me.icn3d; //e.preventDefault();
7459
+ me.myEventCls.onIds(["#" + me.pre + "mn2_select_chain", "#" + me.pre + "definedSets"], "click", function(e) { me.icn3d; e.preventDefault();
7460
7460
  me.htmlCls.dialogCls.openDlg('dl_select_chain', 'Select Structure/Chain/Custom Selection');
7461
7461
  });
7462
7462
 
@@ -7467,242 +7467,242 @@ class ClickMenu {
7467
7467
 
7468
7468
  let thisClass = this;
7469
7469
  // mn 3
7470
- me.myEventCls.onIds(["#" + me.pre + "mn3_proteinsRibbon","#" + me.pre + "tool_proteinsRibbon"], "click", function(e) { let ic = me.icn3d; //e.preventDefault();
7470
+ me.myEventCls.onIds(["#" + me.pre + "mn3_proteinsRibbon","#" + me.pre + "tool_proteinsRibbon"], "click", function(e) { let ic = me.icn3d; e.preventDefault();
7471
7471
  ic.setOptionCls.setStyle('proteins', 'ribbon');
7472
7472
  thisClass.setLogCmd('style proteins ribbon', true);
7473
7473
  });
7474
7474
 
7475
- me.myEventCls.onIds("#" + me.pre + "mn3_proteinsStrand", "click", function(e) { let ic = me.icn3d; //e.preventDefault();
7475
+ me.myEventCls.onIds("#" + me.pre + "mn3_proteinsStrand", "click", function(e) { let ic = me.icn3d; e.preventDefault();
7476
7476
  ic.setOptionCls.setStyle('proteins', 'strand');
7477
7477
  thisClass.setLogCmd('style proteins strand', true);
7478
7478
  });
7479
7479
 
7480
- me.myEventCls.onIds("#" + me.pre + "mn3_proteinsCylinder", "click", function(e) { let ic = me.icn3d; //e.preventDefault();
7480
+ me.myEventCls.onIds("#" + me.pre + "mn3_proteinsCylinder", "click", function(e) { let ic = me.icn3d; e.preventDefault();
7481
7481
  ic.setOptionCls.setStyle('proteins', 'cylinder and plate');
7482
7482
  thisClass.setLogCmd('style proteins cylinder and plate', true);
7483
7483
  });
7484
7484
 
7485
- me.myEventCls.onIds("#" + me.pre + "mn3_proteinsSchematic", "click", function(e) { let ic = me.icn3d; //e.preventDefault();
7485
+ me.myEventCls.onIds("#" + me.pre + "mn3_proteinsSchematic", "click", function(e) { let ic = me.icn3d; e.preventDefault();
7486
7486
  ic.setOptionCls.setStyle('proteins', 'schematic');
7487
7487
  thisClass.setLogCmd('style proteins schematic', true);
7488
7488
  });
7489
7489
 
7490
- me.myEventCls.onIds("#" + me.pre + "mn3_proteinsCalpha", "click", function(e) { let ic = me.icn3d; //e.preventDefault();
7490
+ me.myEventCls.onIds("#" + me.pre + "mn3_proteinsCalpha", "click", function(e) { let ic = me.icn3d; e.preventDefault();
7491
7491
  ic.setOptionCls.setStyle('proteins', 'c alpha trace');
7492
7492
  thisClass.setLogCmd('style proteins c alpha trace', true);
7493
7493
  });
7494
7494
 
7495
- me.myEventCls.onIds("#" + me.pre + "mn3_proteinsBackbone", "click", function(e) { let ic = me.icn3d; //e.preventDefault();
7495
+ me.myEventCls.onIds("#" + me.pre + "mn3_proteinsBackbone", "click", function(e) { let ic = me.icn3d; e.preventDefault();
7496
7496
  ic.setOptionCls.setStyle('proteins', 'backbone');
7497
7497
  thisClass.setLogCmd('style proteins backbone', true);
7498
7498
  });
7499
7499
 
7500
- me.myEventCls.onIds("#" + me.pre + "mn3_proteinsBfactor", "click", function(e) { let ic = me.icn3d; //e.preventDefault();
7500
+ me.myEventCls.onIds("#" + me.pre + "mn3_proteinsBfactor", "click", function(e) { let ic = me.icn3d; e.preventDefault();
7501
7501
  ic.setOptionCls.setStyle('proteins', 'b factor tube');
7502
7502
  thisClass.setLogCmd('style proteins b factor tube', true);
7503
7503
  });
7504
7504
 
7505
- me.myEventCls.onIds("#" + me.pre + "mn3_proteinsLines", "click", function(e) { let ic = me.icn3d; //e.preventDefault();
7505
+ me.myEventCls.onIds("#" + me.pre + "mn3_proteinsLines", "click", function(e) { let ic = me.icn3d; e.preventDefault();
7506
7506
  ic.setOptionCls.setStyle('proteins', 'lines');
7507
7507
  thisClass.setLogCmd('style proteins lines', true);
7508
7508
  });
7509
7509
 
7510
- me.myEventCls.onIds("#" + me.pre + "mn3_proteinsStick", "click", function(e) { let ic = me.icn3d; //e.preventDefault();
7510
+ me.myEventCls.onIds("#" + me.pre + "mn3_proteinsStick", "click", function(e) { let ic = me.icn3d; e.preventDefault();
7511
7511
  ic.setOptionCls.setStyle('proteins', 'stick');
7512
7512
  thisClass.setLogCmd('style proteins stick', true);
7513
7513
  });
7514
7514
 
7515
- me.myEventCls.onIds(["#" + me.pre + "mn3_proteinsBallstick", "#" + me.pre + "tool_proteinsBallstick"], "click", function(e) { let ic = me.icn3d; //e.preventDefault();
7515
+ me.myEventCls.onIds(["#" + me.pre + "mn3_proteinsBallstick", "#" + me.pre + "tool_proteinsBallstick"], "click", function(e) { let ic = me.icn3d; e.preventDefault();
7516
7516
  ic.setOptionCls.setStyle('proteins', 'ball and stick');
7517
7517
  thisClass.setLogCmd('style proteins ball and stick', true);
7518
7518
  });
7519
7519
 
7520
- me.myEventCls.onIds(["#" + me.pre + "mn3_proteinsSphere", "#" + me.pre + "tool_proteinsSphere"], "click", function(e) { let ic = me.icn3d; //e.preventDefault();
7520
+ me.myEventCls.onIds(["#" + me.pre + "mn3_proteinsSphere", "#" + me.pre + "tool_proteinsSphere"], "click", function(e) { let ic = me.icn3d; e.preventDefault();
7521
7521
  ic.setOptionCls.setStyle('proteins', 'sphere');
7522
7522
  thisClass.setLogCmd('style proteins sphere', true);
7523
7523
  });
7524
7524
 
7525
- me.myEventCls.onIds("#" + me.pre + "mn3_proteinsNo", "click", function(e) { let ic = me.icn3d; //e.preventDefault();
7525
+ me.myEventCls.onIds("#" + me.pre + "mn3_proteinsNo", "click", function(e) { let ic = me.icn3d; e.preventDefault();
7526
7526
  ic.setOptionCls.setStyle('proteins', 'nothing');
7527
7527
  thisClass.setLogCmd('style proteins nothing', true);
7528
7528
  });
7529
7529
 
7530
- me.myEventCls.onIds("#" + me.pre + "mn3_sidecLines", "click", function(e) { let ic = me.icn3d; //e.preventDefault();
7530
+ me.myEventCls.onIds("#" + me.pre + "mn3_sidecLines", "click", function(e) { let ic = me.icn3d; e.preventDefault();
7531
7531
  ic.setOptionCls.setStyle('sidec', 'lines2');
7532
7532
  thisClass.setLogCmd('style sidec lines2', true);
7533
7533
  });
7534
7534
 
7535
- me.myEventCls.onIds("#" + me.pre + "mn3_sidecStick", "click", function(e) { let ic = me.icn3d; //e.preventDefault();
7535
+ me.myEventCls.onIds("#" + me.pre + "mn3_sidecStick", "click", function(e) { let ic = me.icn3d; e.preventDefault();
7536
7536
  ic.setOptionCls.setStyle('sidec', 'stick2');
7537
7537
  thisClass.setLogCmd('style sidec stick2', true);
7538
7538
  });
7539
7539
 
7540
- me.myEventCls.onIds("#" + me.pre + "mn3_sidecBallstick", "click", function(e) { let ic = me.icn3d; //e.preventDefault();
7540
+ me.myEventCls.onIds("#" + me.pre + "mn3_sidecBallstick", "click", function(e) { let ic = me.icn3d; e.preventDefault();
7541
7541
  ic.setOptionCls.setStyle('sidec', 'ball and stick2');
7542
7542
  thisClass.setLogCmd('style sidec ball and stick2', true);
7543
7543
  });
7544
7544
 
7545
- me.myEventCls.onIds("#" + me.pre + "mn3_sidecSphere", "click", function(e) { let ic = me.icn3d; //e.preventDefault();
7545
+ me.myEventCls.onIds("#" + me.pre + "mn3_sidecSphere", "click", function(e) { let ic = me.icn3d; e.preventDefault();
7546
7546
  ic.setOptionCls.setStyle('sidec', 'sphere2');
7547
7547
  thisClass.setLogCmd('style sidec sphere2', true);
7548
7548
  });
7549
7549
 
7550
- me.myEventCls.onIds("#" + me.pre + "mn3_sidecNo", "click", function(e) { let ic = me.icn3d; //e.preventDefault();
7550
+ me.myEventCls.onIds("#" + me.pre + "mn3_sidecNo", "click", function(e) { let ic = me.icn3d; e.preventDefault();
7551
7551
  ic.setOptionCls.setStyle('sidec', 'nothing');
7552
7552
  thisClass.setLogCmd('style sidec nothing', true);
7553
7553
  });
7554
7554
 
7555
- me.myEventCls.onIds("#" + me.pre + "mn3_ntbaseLines", "click", function(e) { let ic = me.icn3d; //e.preventDefault();
7555
+ me.myEventCls.onIds("#" + me.pre + "mn3_ntbaseLines", "click", function(e) { let ic = me.icn3d; e.preventDefault();
7556
7556
  ic.setOptionCls.setStyle('ntbase', 'lines2');
7557
7557
  thisClass.setLogCmd('style ntbase lines2', true);
7558
7558
  });
7559
7559
 
7560
- me.myEventCls.onIds("#" + me.pre + "mn3_ntbaseStick", "click", function(e) { let ic = me.icn3d; //e.preventDefault();
7560
+ me.myEventCls.onIds("#" + me.pre + "mn3_ntbaseStick", "click", function(e) { let ic = me.icn3d; e.preventDefault();
7561
7561
  ic.setOptionCls.setStyle('ntbase', 'stick2');
7562
7562
  thisClass.setLogCmd('style ntbase stick2', true);
7563
7563
  });
7564
7564
 
7565
- me.myEventCls.onIds("#" + me.pre + "mn3_ntbaseBallstick", "click", function(e) { let ic = me.icn3d; //e.preventDefault();
7565
+ me.myEventCls.onIds("#" + me.pre + "mn3_ntbaseBallstick", "click", function(e) { let ic = me.icn3d; e.preventDefault();
7566
7566
  ic.setOptionCls.setStyle('ntbase', 'ball and stick2');
7567
7567
  thisClass.setLogCmd('style ntbase ball and stick2', true);
7568
7568
  });
7569
7569
 
7570
- me.myEventCls.onIds("#" + me.pre + "mn3_ntbaseSphere", "click", function(e) { let ic = me.icn3d; //e.preventDefault();
7570
+ me.myEventCls.onIds("#" + me.pre + "mn3_ntbaseSphere", "click", function(e) { let ic = me.icn3d; e.preventDefault();
7571
7571
  ic.setOptionCls.setStyle('ntbase', 'sphere2');
7572
7572
  thisClass.setLogCmd('style ntbase sphere2', true);
7573
7573
  });
7574
7574
 
7575
- me.myEventCls.onIds("#" + me.pre + "mn3_ntbaseNo", "click", function(e) { let ic = me.icn3d; //e.preventDefault();
7575
+ me.myEventCls.onIds("#" + me.pre + "mn3_ntbaseNo", "click", function(e) { let ic = me.icn3d; e.preventDefault();
7576
7576
  ic.setOptionCls.setStyle('ntbase', 'nothing');
7577
7577
  thisClass.setLogCmd('style ntbase nothing', true);
7578
7578
  });
7579
7579
 
7580
- me.myEventCls.onIds("#" + me.pre + "mn3_nuclCartoon", "click", function(e) { let ic = me.icn3d; //e.preventDefault();
7580
+ me.myEventCls.onIds("#" + me.pre + "mn3_nuclCartoon", "click", function(e) { let ic = me.icn3d; e.preventDefault();
7581
7581
  ic.setOptionCls.setStyle('nucleotides', 'nucleotide cartoon');
7582
7582
  thisClass.setLogCmd('style nucleotides nucleotide cartoon', true);
7583
7583
  });
7584
7584
 
7585
- me.myEventCls.onIds("#" + me.pre + "mn3_nuclBackbone", "click", function(e) { let ic = me.icn3d; //e.preventDefault();
7585
+ me.myEventCls.onIds("#" + me.pre + "mn3_nuclBackbone", "click", function(e) { let ic = me.icn3d; e.preventDefault();
7586
7586
  ic.setOptionCls.setStyle('nucleotides', 'backbone');
7587
7587
  thisClass.setLogCmd('style nucleotides backbone', true);
7588
7588
  });
7589
7589
 
7590
- me.myEventCls.onIds("#" + me.pre + "mn3_nuclSchematic", "click", function(e) { let ic = me.icn3d; //e.preventDefault();
7590
+ me.myEventCls.onIds("#" + me.pre + "mn3_nuclSchematic", "click", function(e) { let ic = me.icn3d; e.preventDefault();
7591
7591
  ic.setOptionCls.setStyle('nucleotides', 'schematic');
7592
7592
  thisClass.setLogCmd('style nucleotides schematic', true);
7593
7593
  });
7594
7594
 
7595
- me.myEventCls.onIds("#" + me.pre + "mn3_nuclPhos", "click", function(e) { let ic = me.icn3d; //e.preventDefault();
7595
+ me.myEventCls.onIds("#" + me.pre + "mn3_nuclPhos", "click", function(e) { let ic = me.icn3d; e.preventDefault();
7596
7596
  ic.setOptionCls.setStyle('nucleotides', 'o3 trace');
7597
7597
  thisClass.setLogCmd('style nucleotides o3 trace', true);
7598
7598
  });
7599
7599
 
7600
- me.myEventCls.onIds("#" + me.pre + "mn3_nuclLines", "click", function(e) { let ic = me.icn3d; //e.preventDefault();
7600
+ me.myEventCls.onIds("#" + me.pre + "mn3_nuclLines", "click", function(e) { let ic = me.icn3d; e.preventDefault();
7601
7601
  ic.setOptionCls.setStyle('nucleotides', 'lines');
7602
7602
  thisClass.setLogCmd('style nucleotides lines', true);
7603
7603
  });
7604
7604
 
7605
- me.myEventCls.onIds("#" + me.pre + "mn3_nuclStick", "click", function(e) { let ic = me.icn3d; //e.preventDefault();
7605
+ me.myEventCls.onIds("#" + me.pre + "mn3_nuclStick", "click", function(e) { let ic = me.icn3d; e.preventDefault();
7606
7606
  ic.setOptionCls.setStyle('nucleotides', 'stick');
7607
7607
  thisClass.setLogCmd('style nucleotides stick', true);
7608
7608
  });
7609
7609
 
7610
- me.myEventCls.onIds("#" + me.pre + "mn3_nuclBallstick", "click", function(e) { let ic = me.icn3d; //e.preventDefault();
7610
+ me.myEventCls.onIds("#" + me.pre + "mn3_nuclBallstick", "click", function(e) { let ic = me.icn3d; e.preventDefault();
7611
7611
  ic.setOptionCls.setStyle('nucleotides', 'ball and stick');
7612
7612
  thisClass.setLogCmd('style nucleotides ball and stick', true);
7613
7613
  });
7614
7614
 
7615
- me.myEventCls.onIds("#" + me.pre + "mn3_nuclSphere", "click", function(e) { let ic = me.icn3d; //e.preventDefault();
7615
+ me.myEventCls.onIds("#" + me.pre + "mn3_nuclSphere", "click", function(e) { let ic = me.icn3d; e.preventDefault();
7616
7616
  ic.setOptionCls.setStyle('nucleotides', 'sphere');
7617
7617
  thisClass.setLogCmd('style nucleotides sphere', true);
7618
7618
  });
7619
7619
 
7620
- me.myEventCls.onIds("#" + me.pre + "mn3_nuclNo", "click", function(e) { let ic = me.icn3d; //e.preventDefault();
7620
+ me.myEventCls.onIds("#" + me.pre + "mn3_nuclNo", "click", function(e) { let ic = me.icn3d; e.preventDefault();
7621
7621
  ic.setOptionCls.setStyle('nucleotides', 'nothing');
7622
7622
  thisClass.setLogCmd('style nucleotides nothing', true);
7623
7623
  });
7624
7624
 
7625
- me.myEventCls.onIds("#" + me.pre + "mn3_ligLines", "click", function(e) { let ic = me.icn3d; //e.preventDefault();
7625
+ me.myEventCls.onIds("#" + me.pre + "mn3_ligLines", "click", function(e) { let ic = me.icn3d; e.preventDefault();
7626
7626
  ic.setOptionCls.setStyle('chemicals', 'lines');
7627
7627
  thisClass.setLogCmd('style chemicals lines', true);
7628
7628
  });
7629
7629
 
7630
- me.myEventCls.onIds("#" + me.pre + "mn3_ligStick", "click", function(e) { let ic = me.icn3d; //e.preventDefault();
7630
+ me.myEventCls.onIds("#" + me.pre + "mn3_ligStick", "click", function(e) { let ic = me.icn3d; e.preventDefault();
7631
7631
  ic.setOptionCls.setStyle('chemicals', 'stick');
7632
7632
  thisClass.setLogCmd('style chemicals stick', true);
7633
7633
  });
7634
7634
 
7635
- me.myEventCls.onIds("#" + me.pre + "mn3_ligBallstick", "click", function(e) { let ic = me.icn3d; //e.preventDefault();
7635
+ me.myEventCls.onIds("#" + me.pre + "mn3_ligBallstick", "click", function(e) { let ic = me.icn3d; e.preventDefault();
7636
7636
  ic.setOptionCls.setStyle('chemicals', 'ball and stick');
7637
7637
  thisClass.setLogCmd('style chemicals ball and stick', true);
7638
7638
  });
7639
7639
 
7640
- me.myEventCls.onIds("#" + me.pre + "mn3_ligSchematic", "click", function(e) { let ic = me.icn3d; //e.preventDefault();
7640
+ me.myEventCls.onIds("#" + me.pre + "mn3_ligSchematic", "click", function(e) { let ic = me.icn3d; e.preventDefault();
7641
7641
  ic.setOptionCls.setStyle('chemicals', 'schematic');
7642
7642
  thisClass.setLogCmd('style chemicals schematic', true);
7643
7643
  });
7644
7644
 
7645
- me.myEventCls.onIds("#" + me.pre + "mn3_ligSphere", "click", function(e) { let ic = me.icn3d; //e.preventDefault();
7645
+ me.myEventCls.onIds("#" + me.pre + "mn3_ligSphere", "click", function(e) { let ic = me.icn3d; e.preventDefault();
7646
7646
  ic.setOptionCls.setStyle('chemicals', 'sphere');
7647
7647
  thisClass.setLogCmd('style chemicals sphere', true);
7648
7648
  });
7649
7649
 
7650
- me.myEventCls.onIds("#" + me.pre + "mn3_ligNo", "click", function(e) { let ic = me.icn3d; //e.preventDefault();
7650
+ me.myEventCls.onIds("#" + me.pre + "mn3_ligNo", "click", function(e) { let ic = me.icn3d; e.preventDefault();
7651
7651
  ic.setOptionCls.setStyle('chemicals', 'nothing');
7652
7652
  thisClass.setLogCmd('style chemicals nothing', true);
7653
7653
  });
7654
7654
 
7655
7655
 
7656
- me.myEventCls.onIds("#" + me.pre + "mn3_glycansCartYes", "click", function(e) { let ic = me.icn3d; //e.preventDefault();
7656
+ me.myEventCls.onIds("#" + me.pre + "mn3_glycansCartYes", "click", function(e) { let ic = me.icn3d; e.preventDefault();
7657
7657
  ic.bGlycansCartoon = true;
7658
7658
  ic.drawCls.draw();
7659
7659
  thisClass.setLogCmd('glycans cartoon yes', true);
7660
7660
  });
7661
- me.myEventCls.onIds("#" + me.pre + "mn3_glycansCartNo", "click", function(e) { let ic = me.icn3d; //e.preventDefault();
7661
+ me.myEventCls.onIds("#" + me.pre + "mn3_glycansCartNo", "click", function(e) { let ic = me.icn3d; e.preventDefault();
7662
7662
  ic.bGlycansCartoon = false;
7663
7663
  ic.drawCls.draw();
7664
7664
  thisClass.setLogCmd('glycans cartoon no', true);
7665
7665
  });
7666
7666
 
7667
7667
 
7668
- me.myEventCls.onIds("#" + me.pre + "mn3_hydrogensYes", "click", function(e) { let ic = me.icn3d; //e.preventDefault();
7668
+ me.myEventCls.onIds("#" + me.pre + "mn3_hydrogensYes", "click", function(e) { let ic = me.icn3d; e.preventDefault();
7669
7669
  ic.showInterCls.showHydrogens();
7670
7670
  ic.drawCls.draw();
7671
7671
  thisClass.setLogCmd('hydrogens', true);
7672
7672
  });
7673
7673
 
7674
- me.myEventCls.onIds("#" + me.pre + "mn3_hydrogensNo", "click", function(e) { let ic = me.icn3d; //e.preventDefault();
7674
+ me.myEventCls.onIds("#" + me.pre + "mn3_hydrogensNo", "click", function(e) { let ic = me.icn3d; e.preventDefault();
7675
7675
  ic.showInterCls.hideHydrogens();
7676
7676
  ic.drawCls.draw();
7677
7677
  thisClass.setLogCmd('set hydrogens off', true);
7678
7678
  });
7679
7679
 
7680
- me.myEventCls.onIds("#" + me.pre + "mn3_ionsSphere", "click", function(e) { let ic = me.icn3d; //e.preventDefault();
7680
+ me.myEventCls.onIds("#" + me.pre + "mn3_ionsSphere", "click", function(e) { let ic = me.icn3d; e.preventDefault();
7681
7681
  ic.setOptionCls.setStyle('ions', 'sphere');
7682
7682
  thisClass.setLogCmd('style ions sphere', true);
7683
7683
  });
7684
7684
 
7685
- me.myEventCls.onIds("#" + me.pre + "mn3_ionsDot", "click", function(e) { let ic = me.icn3d; //e.preventDefault();
7685
+ me.myEventCls.onIds("#" + me.pre + "mn3_ionsDot", "click", function(e) { let ic = me.icn3d; e.preventDefault();
7686
7686
  ic.setOptionCls.setStyle('ions', 'dot');
7687
7687
  thisClass.setLogCmd('style ions dot', true);
7688
7688
  });
7689
7689
 
7690
- me.myEventCls.onIds("#" + me.pre + "mn3_ionsNo", "click", function(e) { let ic = me.icn3d; //e.preventDefault();
7690
+ me.myEventCls.onIds("#" + me.pre + "mn3_ionsNo", "click", function(e) { let ic = me.icn3d; e.preventDefault();
7691
7691
  ic.setOptionCls.setStyle('ions', 'nothing');
7692
7692
  thisClass.setLogCmd('style ions nothing', true);
7693
7693
  });
7694
7694
 
7695
- me.myEventCls.onIds("#" + me.pre + "mn3_waterSphere", "click", function(e) { let ic = me.icn3d; //e.preventDefault();
7695
+ me.myEventCls.onIds("#" + me.pre + "mn3_waterSphere", "click", function(e) { let ic = me.icn3d; e.preventDefault();
7696
7696
  ic.setOptionCls.setStyle('water', 'sphere');
7697
7697
  thisClass.setLogCmd('style water sphere', true);
7698
7698
  });
7699
7699
 
7700
- me.myEventCls.onIds("#" + me.pre + "mn3_waterDot", "click", function(e) { let ic = me.icn3d; //e.preventDefault();
7700
+ me.myEventCls.onIds("#" + me.pre + "mn3_waterDot", "click", function(e) { let ic = me.icn3d; e.preventDefault();
7701
7701
  ic.setOptionCls.setStyle('water', 'dot');
7702
7702
  thisClass.setLogCmd('style water dot', true);
7703
7703
  });
7704
7704
 
7705
- me.myEventCls.onIds("#" + me.pre + "mn3_waterNo", "click", function(e) { let ic = me.icn3d; //e.preventDefault();
7705
+ me.myEventCls.onIds("#" + me.pre + "mn3_waterNo", "click", function(e) { let ic = me.icn3d; e.preventDefault();
7706
7706
  ic.setOptionCls.setStyle('water', 'nothing');
7707
7707
  thisClass.setLogCmd('style water nothing', true);
7708
7708
  });
@@ -7714,16 +7714,16 @@ class ClickMenu {
7714
7714
 
7715
7715
  let thisClass = this;
7716
7716
  // mn 4
7717
- me.myEventCls.onIds("#" + me.pre + "mn4_clrSpectrum", "click", function(e) { let ic = me.icn3d; //e.preventDefault();
7717
+ me.myEventCls.onIds("#" + me.pre + "mn4_clrSpectrum", "click", function(e) { let ic = me.icn3d; e.preventDefault();
7718
7718
  ic.setOptionCls.setOption('color', 'spectrum');
7719
7719
  thisClass.setLogCmd('color spectrum', true);
7720
7720
  });
7721
- me.myEventCls.onIds("#" + me.pre + "mn4_clrSpectrumChain", "click", function(e) { let ic = me.icn3d; //e.preventDefault();
7721
+ me.myEventCls.onIds("#" + me.pre + "mn4_clrSpectrumChain", "click", function(e) { let ic = me.icn3d; e.preventDefault();
7722
7722
  ic.setOptionCls.setOption('color', 'spectrum for chains');
7723
7723
  thisClass.setLogCmd('color spectrum for chains', true);
7724
7724
  });
7725
7725
 
7726
- me.myEventCls.onIds("#" + me.pre + "mn4_clrSpectrumAcrossSets", "click", function(e) { let ic = me.icn3d; //e.preventDefault();
7726
+ me.myEventCls.onIds("#" + me.pre + "mn4_clrSpectrumAcrossSets", "click", function(e) { let ic = me.icn3d; e.preventDefault();
7727
7727
  thisClass.SetChainsAdvancedMenu();
7728
7728
  let definedAtomsHtml = ic.definedSetsCls.setAtomMenu(['protein']);
7729
7729
  if($("#" + me.pre + "atomsCustomColorSpectrumAcross").length) {
@@ -7734,7 +7734,7 @@ class ClickMenu {
7734
7734
  $("#" + me.pre + "atomsCustomColorSpectrumAcross").resizable();
7735
7735
  });
7736
7736
 
7737
- me.myEventCls.onIds("#" + me.pre + "mn4_clrSpectrumSets", "click", function(e) { let ic = me.icn3d; //e.preventDefault();
7737
+ me.myEventCls.onIds("#" + me.pre + "mn4_clrSpectrumSets", "click", function(e) { let ic = me.icn3d; e.preventDefault();
7738
7738
  thisClass.SetChainsAdvancedMenu();
7739
7739
  let definedAtomsHtml = ic.definedSetsCls.setAtomMenu(['protein']);
7740
7740
  if($("#" + me.pre + "atomsCustomColorSpectrum").length) {
@@ -7745,7 +7745,7 @@ class ClickMenu {
7745
7745
  $("#" + me.pre + "atomsCustomColorSpectrum").resizable();
7746
7746
  });
7747
7747
 
7748
- me.myEventCls.onIds("#" + me.pre + "mn4_clrRainbowAcrossSets", "click", function(e) { let ic = me.icn3d; //e.preventDefault();
7748
+ me.myEventCls.onIds("#" + me.pre + "mn4_clrRainbowAcrossSets", "click", function(e) { let ic = me.icn3d; e.preventDefault();
7749
7749
  thisClass.SetChainsAdvancedMenu();
7750
7750
  let definedAtomsHtml = ic.definedSetsCls.setAtomMenu(['protein']);
7751
7751
  if($("#" + me.pre + "atomsCustomColorRainbowAcross").length) {
@@ -7756,7 +7756,7 @@ class ClickMenu {
7756
7756
  $("#" + me.pre + "atomsCustomColorRainbowAcross").resizable();
7757
7757
  });
7758
7758
 
7759
- me.myEventCls.onIds("#" + me.pre + "mn4_clrRainbowSets", "click", function(e) { let ic = me.icn3d; //e.preventDefault();
7759
+ me.myEventCls.onIds("#" + me.pre + "mn4_clrRainbowSets", "click", function(e) { let ic = me.icn3d; e.preventDefault();
7760
7760
  thisClass.SetChainsAdvancedMenu();
7761
7761
  let definedAtomsHtml = ic.definedSetsCls.setAtomMenu(['protein']);
7762
7762
  if($("#" + me.pre + "atomsCustomColorRainbow").length) {
@@ -7767,64 +7767,64 @@ class ClickMenu {
7767
7767
  $("#" + me.pre + "atomsCustomColorRainbow").resizable();
7768
7768
  });
7769
7769
 
7770
- me.myEventCls.onIds("#" + me.pre + "mn4_clrRainbow", "click", function(e) { let ic = me.icn3d; //e.preventDefault();
7770
+ me.myEventCls.onIds("#" + me.pre + "mn4_clrRainbow", "click", function(e) { let ic = me.icn3d; e.preventDefault();
7771
7771
  ic.setOptionCls.setOption('color', 'rainbow');
7772
7772
  thisClass.setLogCmd('color rainbow', true);
7773
7773
  });
7774
- me.myEventCls.onIds(["#" + me.pre + "mn4_clrRainbowChain", "#" + me.pre + "tool_clrRainbowChain"], "click", function(e) { let ic = me.icn3d; //e.preventDefault();
7774
+ me.myEventCls.onIds(["#" + me.pre + "mn4_clrRainbowChain", "#" + me.pre + "tool_clrRainbowChain"], "click", function(e) { let ic = me.icn3d; e.preventDefault();
7775
7775
  ic.setOptionCls.setOption('color', 'rainbow for chains');
7776
7776
  thisClass.setLogCmd('color rainbow for chains', true);
7777
7777
  });
7778
7778
 
7779
- me.myEventCls.onIds(["#" + me.pre + "mn4_clrChain", "#" + me.pre + "tool_clrChain"], "click", function(e) { let ic = me.icn3d; //e.preventDefault();
7779
+ me.myEventCls.onIds(["#" + me.pre + "mn4_clrChain", "#" + me.pre + "tool_clrChain"], "click", function(e) { let ic = me.icn3d; e.preventDefault();
7780
7780
  ic.setOptionCls.setOption('color', 'chain');
7781
7781
  thisClass.setLogCmd('color chain', true);
7782
7782
  });
7783
- me.myEventCls.onIds("#" + me.pre + "mn4_clrStructure", "click", function(e) { let ic = me.icn3d; //e.preventDefault();
7783
+ me.myEventCls.onIds("#" + me.pre + "mn4_clrStructure", "click", function(e) { let ic = me.icn3d; e.preventDefault();
7784
7784
  ic.setOptionCls.setOption('color', 'structure');
7785
7785
  thisClass.setLogCmd('color structure', true);
7786
7786
  });
7787
7787
 
7788
- me.myEventCls.onIds("#" + me.pre + "mn4_clrdomain", "click", function(e) { let ic = me.icn3d; //e.preventDefault();
7788
+ me.myEventCls.onIds("#" + me.pre + "mn4_clrdomain", "click", function(e) { let ic = me.icn3d; e.preventDefault();
7789
7789
  ic.setOptionCls.setOption('color', 'domain');
7790
7790
  thisClass.setLogCmd('color domain', true);
7791
7791
  });
7792
7792
 
7793
- me.myEventCls.onIds("#" + me.pre + "mn4_clrsets", "click", function(e) { let ic = me.icn3d; //e.preventDefault();
7793
+ me.myEventCls.onIds("#" + me.pre + "mn4_clrsets", "click", function(e) { let ic = me.icn3d; e.preventDefault();
7794
7794
  ic.setOptionCls.setOption('color', 'defined sets');
7795
7795
  thisClass.setLogCmd('color defined sets', true);
7796
7796
  });
7797
7797
 
7798
7798
 
7799
- me.myEventCls.onIds(["#" + me.pre + "mn4_clrSSGreen", "#" + me.pre + "tool_clrSSGreen"], "click", function(e) { let ic = me.icn3d; //e.preventDefault();
7799
+ me.myEventCls.onIds(["#" + me.pre + "mn4_clrSSGreen", "#" + me.pre + "tool_clrSSGreen"], "click", function(e) { let ic = me.icn3d; e.preventDefault();
7800
7800
  ic.sheetcolor = 'green';
7801
7801
  ic.setOptionCls.setOption('color', 'secondary structure green');
7802
7802
  thisClass.setLogCmd('color secondary structure green', true);
7803
7803
  });
7804
7804
 
7805
- me.myEventCls.onIds("#" + me.pre + "mn4_clrSSYellow", "click", function(e) { let ic = me.icn3d; //e.preventDefault();
7805
+ me.myEventCls.onIds("#" + me.pre + "mn4_clrSSYellow", "click", function(e) { let ic = me.icn3d; e.preventDefault();
7806
7806
  ic.sheetcolor = 'yellow';
7807
7807
  ic.setOptionCls.setOption('color', 'secondary structure yellow');
7808
7808
  thisClass.setLogCmd('color secondary structure yellow', true);
7809
7809
  });
7810
7810
 
7811
- me.myEventCls.onIds("#" + me.pre + "mn4_clrSSSpectrum", "click", function(e) { let ic = me.icn3d; //e.preventDefault();
7811
+ me.myEventCls.onIds("#" + me.pre + "mn4_clrSSSpectrum", "click", function(e) { let ic = me.icn3d; e.preventDefault();
7812
7812
  ic.setOptionCls.setOption('color', 'secondary structure spectrum');
7813
7813
  thisClass.setLogCmd('color secondary structure spectrum', true);
7814
7814
  });
7815
7815
 
7816
- me.myEventCls.onIds("#" + me.pre + "mn4_clrResidue", "click", function(e) { let ic = me.icn3d; //e.preventDefault();
7816
+ me.myEventCls.onIds("#" + me.pre + "mn4_clrResidue", "click", function(e) { let ic = me.icn3d; e.preventDefault();
7817
7817
  //ic.legendClick = 2;
7818
7818
  ic.setOptionCls.setOption('color', 'residue');
7819
7819
  thisClass.setLogCmd('color residue', true);
7820
7820
  });
7821
7821
 
7822
- me.myEventCls.onIds("#" + me.pre + "mn4_clrResidueCustom", "click", function(e) { me.icn3d; //e.preventDefault();
7822
+ me.myEventCls.onIds("#" + me.pre + "mn4_clrResidueCustom", "click", function(e) { me.icn3d; e.preventDefault();
7823
7823
  //ic.legendClick = 2;
7824
7824
  me.htmlCls.dialogCls.openDlg('dl_rescolorfile', 'Please input the file on residue colors');
7825
7825
  });
7826
7826
 
7827
- me.myEventCls.onIds("#" + me.pre + "reload_rescolorfile", "click", function(e) { let ic = me.icn3d; //e.preventDefault();
7827
+ me.myEventCls.onIds("#" + me.pre + "reload_rescolorfile", "click", function(e) { let ic = me.icn3d; e.preventDefault();
7828
7828
 
7829
7829
  if(!me.cfg.notebook) dialog.dialog( "close" );
7830
7830
  let file = $("#" + me.pre + "rescolorfile")[0].files[0];
@@ -7848,7 +7848,7 @@ class ClickMenu {
7848
7848
  }
7849
7849
  });
7850
7850
 
7851
- me.myEventCls.onIds("#" + me.pre + "reload_customcolorfile", "click", function(e) { let ic = me.icn3d; //e.preventDefault();
7851
+ me.myEventCls.onIds("#" + me.pre + "reload_customcolorfile", "click", function(e) { let ic = me.icn3d; e.preventDefault();
7852
7852
 
7853
7853
  if(!me.cfg.notebook) dialog.dialog( "close" );
7854
7854
  ic.startColor = $("#" + me.pre + "startColor").val();
@@ -7863,12 +7863,12 @@ class ClickMenu {
7863
7863
  ic.addTrackCls.setCustomFile('color', ic.startColor, ic.midColor, ic.endColor);
7864
7864
  });
7865
7865
 
7866
- me.myEventCls.onIds("#" + me.pre + "mn6_customref", "click", function(e) { me.icn3d; //e.preventDefault();
7866
+ me.myEventCls.onIds("#" + me.pre + "mn6_customref", "click", function(e) { me.icn3d; e.preventDefault();
7867
7867
 
7868
7868
  me.htmlCls.dialogCls.openDlg('dl_customref', 'Set custom reference numbers');
7869
7869
  });
7870
7870
 
7871
- me.myEventCls.onIds("#" + me.pre + "reload_customreffile", "click", function(e) { let ic = me.icn3d; //e.preventDefault();
7871
+ me.myEventCls.onIds("#" + me.pre + "reload_customreffile", "click", function(e) { let ic = me.icn3d; e.preventDefault();
7872
7872
 
7873
7873
  if(!me.cfg.notebook) dialog.dialog( "close" );
7874
7874
 
@@ -7891,98 +7891,98 @@ class ClickMenu {
7891
7891
  }
7892
7892
  });
7893
7893
 
7894
- me.myEventCls.onIds("#" + me.pre + "remove_legend", "click", function(e) { me.icn3d; //e.preventDefault();
7894
+ me.myEventCls.onIds("#" + me.pre + "remove_legend", "click", function(e) { me.icn3d; e.preventDefault();
7895
7895
 
7896
7896
  $("#" + me.pre + "legend").hide();
7897
7897
 
7898
7898
  thisClass.setLogCmd('remove legend', true);
7899
7899
  });
7900
- me.myEventCls.onIds("#" + me.pre + "reload_customtubefile", "click", function(e) { let ic = me.icn3d; //e.preventDefault();
7900
+ me.myEventCls.onIds("#" + me.pre + "reload_customtubefile", "click", function(e) { let ic = me.icn3d; e.preventDefault();
7901
7901
 
7902
7902
  if(!me.cfg.notebook) dialog.dialog( "close" );
7903
7903
  ic.addTrackCls.setCustomFile('tube');
7904
7904
  });
7905
7905
 
7906
- me.myEventCls.onIds("#" + me.pre + "mn4_clrCharge", "click", function(e) { let ic = me.icn3d; //e.preventDefault();
7906
+ me.myEventCls.onIds("#" + me.pre + "mn4_clrCharge", "click", function(e) { let ic = me.icn3d; e.preventDefault();
7907
7907
  //ic.legendClick = 3;
7908
7908
  ic.setOptionCls.setOption('color', 'charge');
7909
7909
  thisClass.setLogCmd('color charge', true);
7910
7910
  });
7911
7911
 
7912
- me.myEventCls.onIds("#" + me.pre + "mn4_clrHydrophobic", "click", function(e) { let ic = me.icn3d; //e.preventDefault();
7912
+ me.myEventCls.onIds("#" + me.pre + "mn4_clrHydrophobic", "click", function(e) { let ic = me.icn3d; e.preventDefault();
7913
7913
  //ic.legendClick = 4;
7914
7914
  ic.setOptionCls.setOption('color', 'hydrophobic');
7915
7915
  thisClass.setLogCmd('color hydrophobic', true);
7916
7916
  });
7917
7917
 
7918
- me.myEventCls.onIds("#" + me.pre + "mn4_clrNormalizedHP", "click", function(e) { let ic = me.icn3d; //e.preventDefault();
7918
+ me.myEventCls.onIds("#" + me.pre + "mn4_clrNormalizedHP", "click", function(e) { let ic = me.icn3d; e.preventDefault();
7919
7919
  //ic.legendClick = 4;
7920
7920
  ic.setOptionCls.setOption('color', 'normalized hydrophobic');
7921
7921
  thisClass.setLogCmd('color normalized hydrophobic', true);
7922
7922
  });
7923
7923
 
7924
7924
 
7925
- me.myEventCls.onIds(["#" + me.pre + "mn4_clrAtom", "#" + me.pre + "tool_clrAtom"], "click", function(e) { let ic = me.icn3d; //e.preventDefault();
7925
+ me.myEventCls.onIds(["#" + me.pre + "mn4_clrAtom", "#" + me.pre + "tool_clrAtom"], "click", function(e) { let ic = me.icn3d; e.preventDefault();
7926
7926
  //ic.legendClick = 1;
7927
7927
  ic.setOptionCls.setOption('color', 'atom');
7928
7928
  thisClass.setLogCmd('color atom', true);
7929
7929
  });
7930
7930
 
7931
- me.myEventCls.onIds("#" + me.pre + "mn4_clrBfactor", "click", function(e) { let ic = me.icn3d; //e.preventDefault();
7931
+ me.myEventCls.onIds("#" + me.pre + "mn4_clrBfactor", "click", function(e) { let ic = me.icn3d; e.preventDefault();
7932
7932
  //ic.legendClick = 5;
7933
7933
  ic.setOptionCls.setOption('color', 'b factor');
7934
7934
  thisClass.setLogCmd('color b factor', true);
7935
7935
  });
7936
7936
 
7937
- me.myEventCls.onIds("#" + me.pre + "mn4_clrConfidence", "click", function(e) { let ic = me.icn3d; //e.preventDefault();
7937
+ me.myEventCls.onIds("#" + me.pre + "mn4_clrConfidence", "click", function(e) { let ic = me.icn3d; e.preventDefault();
7938
7938
  //ic.legendClick = 6;
7939
7939
  ic.setOptionCls.setOption('color', 'confidence');
7940
7940
  thisClass.setLogCmd('color confidence', true);
7941
7941
  });
7942
7942
 
7943
- me.myEventCls.onIds("#" + me.pre + "mn4_clrIgstrand", "click", function(e) { let ic = me.icn3d; //e.preventDefault();
7943
+ me.myEventCls.onIds("#" + me.pre + "mn4_clrIgstrand", "click", function(e) { let ic = me.icn3d; e.preventDefault();
7944
7944
  //ic.legendClick = 6;
7945
7945
  ic.setOptionCls.setOption('color', 'ig strand');
7946
7946
  thisClass.setLogCmd('color ig strand', true);
7947
7947
  });
7948
7948
 
7949
- me.myEventCls.onIds("#" + me.pre + "mn4_clrIgproto", "click", function(e) { let ic = me.icn3d; //e.preventDefault();
7949
+ me.myEventCls.onIds("#" + me.pre + "mn4_clrIgproto", "click", function(e) { let ic = me.icn3d; e.preventDefault();
7950
7950
  //ic.legendClick = 6;
7951
7951
  ic.setOptionCls.setOption('color', 'ig protodomain');
7952
7952
  thisClass.setLogCmd('color ig protodomain', true);
7953
7953
  });
7954
7954
 
7955
7955
 
7956
- me.myEventCls.onIds("#" + me.pre + "mn4_clrArea", "click", function(e) { me.icn3d; //e.preventDefault();
7956
+ me.myEventCls.onIds("#" + me.pre + "mn4_clrArea", "click", function(e) { me.icn3d; e.preventDefault();
7957
7957
  me.htmlCls.dialogCls.openDlg('dl_colorbyarea', "Color based on residue's solvent accessibility");
7958
7958
  });
7959
- me.myEventCls.onIds("#" + me.pre + "applycolorbyarea", "click", function(e) { let ic = me.icn3d; //e.preventDefault();
7959
+ me.myEventCls.onIds("#" + me.pre + "applycolorbyarea", "click", function(e) { let ic = me.icn3d; e.preventDefault();
7960
7960
  ic.midpercent = $("#" + me.pre + 'midpercent').val();
7961
7961
  ic.setOptionCls.setOption('color', 'area');
7962
7962
  thisClass.setLogCmd('color area | ' + ic.midpercent, true);
7963
7963
 
7964
7964
  });
7965
7965
 
7966
- me.myEventCls.onIds("#" + me.pre + "mn4_clrBfactorNorm", "click", function(e) { let ic = me.icn3d; //e.preventDefault();
7966
+ me.myEventCls.onIds("#" + me.pre + "mn4_clrBfactorNorm", "click", function(e) { let ic = me.icn3d; e.preventDefault();
7967
7967
  ic.setOptionCls.setOption('color', 'b factor percentile');
7968
7968
  thisClass.setLogCmd('color b factor percentile', true);
7969
7969
  });
7970
7970
 
7971
- me.myEventCls.onIds("#" + me.pre + "mn4_clrIdentity", "click", function(e) { let ic = me.icn3d; //e.preventDefault();
7971
+ me.myEventCls.onIds("#" + me.pre + "mn4_clrIdentity", "click", function(e) { let ic = me.icn3d; e.preventDefault();
7972
7972
  ic.setOptionCls.setOption('color', 'identity');
7973
7973
  thisClass.setLogCmd('color identity', true);
7974
7974
  });
7975
7975
 
7976
- me.myEventCls.onIds("#" + me.pre + "mn4_clrConserved", "click", function(e) { let ic = me.icn3d; //e.preventDefault();
7976
+ me.myEventCls.onIds("#" + me.pre + "mn4_clrConserved", "click", function(e) { let ic = me.icn3d; e.preventDefault();
7977
7977
  ic.setOptionCls.setOption('color', 'conservation');
7978
7978
  thisClass.setLogCmd('color conservation', true);
7979
7979
  });
7980
7980
 
7981
- me.myEventCls.onIds("#" + me.pre + "mn4_clrCustom", "click", function(e) { me.icn3d; //e.preventDefault();
7981
+ me.myEventCls.onIds("#" + me.pre + "mn4_clrCustom", "click", function(e) { me.icn3d; e.preventDefault();
7982
7982
  me.htmlCls.dialogCls.openDlg('dl_clr', 'Color picker');
7983
7983
  });
7984
7984
 
7985
- $(document).on("click", ".icn3d-color-rad-text", function(e) { let ic = me.icn3d; //e.preventDefault();
7985
+ $(document).on("click", ".icn3d-color-rad-text", function(e) { let ic = me.icn3d; e.preventDefault();
7986
7986
  e.stopImmediatePropagation();
7987
7987
  e.preventDefault();
7988
7988
  let color = $(this).attr('color');
@@ -7990,22 +7990,22 @@ class ClickMenu {
7990
7990
  thisClass.setLogCmd("color " + color, true);
7991
7991
  });
7992
7992
 
7993
- me.myEventCls.onIds("#" + me.pre + "mn4_clrSave", "click", function(e) { let ic = me.icn3d; //e.preventDefault();
7993
+ me.myEventCls.onIds("#" + me.pre + "mn4_clrSave", "click", function(e) { let ic = me.icn3d; e.preventDefault();
7994
7994
  ic.setOptionCls.saveColor();
7995
7995
  thisClass.setLogCmd('save color', true);
7996
7996
  });
7997
7997
 
7998
- me.myEventCls.onIds("#" + me.pre + "mn4_clrApplySave", "click", function(e) { let ic = me.icn3d; //e.preventDefault();
7998
+ me.myEventCls.onIds("#" + me.pre + "mn4_clrApplySave", "click", function(e) { let ic = me.icn3d; e.preventDefault();
7999
7999
  ic.setOptionCls.applySavedColor();
8000
8000
  thisClass.setLogCmd('apply saved color', true);
8001
8001
  });
8002
8002
 
8003
- me.myEventCls.onIds("#" + me.pre + "mn3_styleSave", "click", function(e) { let ic = me.icn3d; //e.preventDefault();
8003
+ me.myEventCls.onIds("#" + me.pre + "mn3_styleSave", "click", function(e) { let ic = me.icn3d; e.preventDefault();
8004
8004
  ic.setOptionCls.saveStyle();
8005
8005
  thisClass.setLogCmd('save style', true);
8006
8006
  });
8007
8007
 
8008
- me.myEventCls.onIds("#" + me.pre + "mn3_styleApplySave", "click", function(e) { let ic = me.icn3d; //e.preventDefault();
8008
+ me.myEventCls.onIds("#" + me.pre + "mn3_styleApplySave", "click", function(e) { let ic = me.icn3d; e.preventDefault();
8009
8009
  ic.setOptionCls.applySavedStyle();
8010
8010
  thisClass.setLogCmd('apply saved style', true);
8011
8011
  });
@@ -8017,7 +8017,7 @@ class ClickMenu {
8017
8017
 
8018
8018
  let thisClass = this;
8019
8019
  // mn 5
8020
- me.myEventCls.onIds("#" + me.pre + "mn5_neighborsYes", "click", function(e) { let ic = me.icn3d; //e.preventDefault();
8020
+ me.myEventCls.onIds("#" + me.pre + "mn5_neighborsYes", "click", function(e) { let ic = me.icn3d; e.preventDefault();
8021
8021
  ic.bConsiderNeighbors = true;
8022
8022
  ic.applyMapCls.removeLastSurface();
8023
8023
  ic.applyMapCls.applySurfaceOptions();
@@ -8025,7 +8025,7 @@ class ClickMenu {
8025
8025
  thisClass.setLogCmd('set surface neighbors on', true);
8026
8026
  });
8027
8027
 
8028
- me.myEventCls.onIds("#" + me.pre + "mn5_neighborsNo", "click", function(e) { let ic = me.icn3d; //e.preventDefault();
8028
+ me.myEventCls.onIds("#" + me.pre + "mn5_neighborsNo", "click", function(e) { let ic = me.icn3d; e.preventDefault();
8029
8029
  ic.bConsiderNeighbors = false;
8030
8030
  ic.applyMapCls.removeLastSurface();
8031
8031
  ic.applyMapCls.applySurfaceOptions();
@@ -8033,48 +8033,48 @@ class ClickMenu {
8033
8033
  thisClass.setLogCmd('set surface neighbors off', true);
8034
8034
  });
8035
8035
 
8036
- me.myEventCls.onIds(["#" + me.pre + "mn5_surfaceVDW", "#" + me.pre + "tool_surfaceVDW"], "click", function(e) { let ic = me.icn3d; //e.preventDefault();
8036
+ me.myEventCls.onIds(["#" + me.pre + "mn5_surfaceVDW", "#" + me.pre + "tool_surfaceVDW"], "click", function(e) { let ic = me.icn3d; e.preventDefault();
8037
8037
  ic.bConsiderNeighbors = false;
8038
8038
  ic.setOptionCls.setOption('surface', 'Van der Waals surface');
8039
8039
  thisClass.setLogCmd('set surface Van der Waals surface', true);
8040
8040
  });
8041
8041
 
8042
- me.myEventCls.onIds("#" + me.pre + "mn5_surfaceSAS", "click", function(e) { let ic = me.icn3d; //e.preventDefault();
8042
+ me.myEventCls.onIds("#" + me.pre + "mn5_surfaceSAS", "click", function(e) { let ic = me.icn3d; e.preventDefault();
8043
8043
  ic.bConsiderNeighbors = false;
8044
8044
  ic.setOptionCls.setOption('surface', 'solvent accessible surface');
8045
8045
  thisClass.setLogCmd('set surface solvent accessible surface', true);
8046
8046
  });
8047
8047
 
8048
- me.myEventCls.onIds("#" + me.pre + "mn5_surfaceMolecular", "click", function(e) { let ic = me.icn3d; //e.preventDefault();
8048
+ me.myEventCls.onIds("#" + me.pre + "mn5_surfaceMolecular", "click", function(e) { let ic = me.icn3d; e.preventDefault();
8049
8049
  ic.bConsiderNeighbors = false;
8050
8050
  ic.setOptionCls.setOption('surface', 'molecular surface');
8051
8051
  thisClass.setLogCmd('set surface molecular surface', true);
8052
8052
  });
8053
8053
 
8054
- me.myEventCls.onIds("#" + me.pre + "mn5_surfaceVDWContext", "click", function(e) { let ic = me.icn3d; //e.preventDefault();
8054
+ me.myEventCls.onIds("#" + me.pre + "mn5_surfaceVDWContext", "click", function(e) { let ic = me.icn3d; e.preventDefault();
8055
8055
  ic.bConsiderNeighbors = true;
8056
8056
  ic.setOptionCls.setOption('surface', 'Van der Waals surface with context');
8057
8057
  thisClass.setLogCmd('set surface Van der Waals surface with context', true);
8058
8058
  });
8059
8059
 
8060
- me.myEventCls.onIds("#" + me.pre + "mn5_surfaceSASContext", "click", function(e) { let ic = me.icn3d; //e.preventDefault();
8060
+ me.myEventCls.onIds("#" + me.pre + "mn5_surfaceSASContext", "click", function(e) { let ic = me.icn3d; e.preventDefault();
8061
8061
  ic.bConsiderNeighbors = true;
8062
8062
  ic.setOptionCls.setOption('surface', 'solvent accessible surface with context');
8063
8063
  thisClass.setLogCmd('set surface solvent accessible surface with context', true);
8064
8064
  });
8065
8065
 
8066
- me.myEventCls.onIds("#" + me.pre + "mn5_surfaceMolecularContext", "click", function(e) { let ic = me.icn3d; //e.preventDefault();
8066
+ me.myEventCls.onIds("#" + me.pre + "mn5_surfaceMolecularContext", "click", function(e) { let ic = me.icn3d; e.preventDefault();
8067
8067
  ic.bConsiderNeighbors = true;
8068
8068
  ic.setOptionCls.setOption('surface', 'molecular surface with context');
8069
8069
  thisClass.setLogCmd('set surface molecular surface with context', true);
8070
8070
  });
8071
8071
 
8072
- me.myEventCls.onIds("#" + me.pre + "mn5_surfaceNo", "click", function(e) { let ic = me.icn3d; //e.preventDefault();
8072
+ me.myEventCls.onIds("#" + me.pre + "mn5_surfaceNo", "click", function(e) { let ic = me.icn3d; e.preventDefault();
8073
8073
  ic.setOptionCls.setOption('surface', 'nothing');
8074
8074
  thisClass.setLogCmd('set surface nothing', true);
8075
8075
  });
8076
8076
 
8077
- $(document).on("click", "." + me.pre + "mn5_opacity", function(e) { let ic = me.icn3d; //e.preventDefault();
8077
+ $(document).on("click", "." + me.pre + "mn5_opacity", function(e) { let ic = me.icn3d; e.preventDefault();
8078
8078
  ic.transparentRenderOrder = false;
8079
8079
 
8080
8080
  let value = $(this).attr('v');
@@ -8082,7 +8082,7 @@ class ClickMenu {
8082
8082
  thisClass.setLogCmd('set surface opacity ' + value, true);
8083
8083
  });
8084
8084
 
8085
- $(document).on("click", "." + me.pre + "mn5_opacityslow", function(e) { let ic = me.icn3d; //e.preventDefault();
8085
+ $(document).on("click", "." + me.pre + "mn5_opacityslow", function(e) { let ic = me.icn3d; e.preventDefault();
8086
8086
  ic.transparentRenderOrder = true;
8087
8087
 
8088
8088
  let value = $(this).attr('v');
@@ -8090,42 +8090,42 @@ class ClickMenu {
8090
8090
  thisClass.setLogCmd('set surface2 opacity ' + value, true);
8091
8091
  });
8092
8092
 
8093
- me.myEventCls.onIds("#" + me.pre + "mn5_wireframeYes", "click", function(e) { let ic = me.icn3d; //e.preventDefault();
8093
+ me.myEventCls.onIds("#" + me.pre + "mn5_wireframeYes", "click", function(e) { let ic = me.icn3d; e.preventDefault();
8094
8094
  ic.setOptionCls.setOption('wireframe', 'yes');
8095
8095
  thisClass.setLogCmd('set surface wireframe on', true);
8096
8096
  });
8097
8097
 
8098
- me.myEventCls.onIds("#" + me.pre + "mn5_wireframeNo", "click", function(e) { let ic = me.icn3d; //e.preventDefault();
8098
+ me.myEventCls.onIds("#" + me.pre + "mn5_wireframeNo", "click", function(e) { let ic = me.icn3d; e.preventDefault();
8099
8099
  ic.setOptionCls.setOption('wireframe', 'no');
8100
8100
  thisClass.setLogCmd('set surface wireframe off', true);
8101
8101
  });
8102
8102
 
8103
- me.myEventCls.onIds("#" + me.pre + "mn5_elecmap2fofc", "click", function(e) { me.icn3d; //e.preventDefault();
8103
+ me.myEventCls.onIds("#" + me.pre + "mn5_elecmap2fofc", "click", function(e) { me.icn3d; e.preventDefault();
8104
8104
  me.htmlCls.dialogCls.openDlg('dl_elecmap2fofc', '2Fo-Fc Electron Density Map');
8105
8105
  });
8106
8106
 
8107
- me.myEventCls.onIds("#" + me.pre + "mn5_elecmapfofc", "click", function(e) { me.icn3d; //e.preventDefault();
8107
+ me.myEventCls.onIds("#" + me.pre + "mn5_elecmapfofc", "click", function(e) { me.icn3d; e.preventDefault();
8108
8108
  me.htmlCls.dialogCls.openDlg('dl_elecmapfofc', 'Fo-Fc Electron Density Map');
8109
8109
  });
8110
8110
 
8111
- me.myEventCls.onIds(["#" + me.pre + "mn5_elecmapNo", "#" + me.pre + "elecmapNo2", "#" + me.pre + "elecmapNo3", "#" + me.pre + "elecmapNo4", "#" + me.pre + "elecmapNo5"], "click", function(e) { let ic = me.icn3d; //e.preventDefault();
8111
+ me.myEventCls.onIds(["#" + me.pre + "mn5_elecmapNo", "#" + me.pre + "elecmapNo2", "#" + me.pre + "elecmapNo3", "#" + me.pre + "elecmapNo4", "#" + me.pre + "elecmapNo5"], "click", function(e) { let ic = me.icn3d; e.preventDefault();
8112
8112
  ic.setOptionCls.setOption('map', 'nothing');
8113
8113
  thisClass.setLogCmd('setoption map nothing', true);
8114
8114
  });
8115
8115
 
8116
- me.myEventCls.onIds(["#" + me.pre + "delphimapNo", "#" + me.pre + "phimapNo", "#" + me.pre + "phiurlmapNo", "#" + me.pre + "mn1_phimapNo"], "click", function(e) { let ic = me.icn3d; //e.preventDefault();
8116
+ me.myEventCls.onIds(["#" + me.pre + "delphimapNo", "#" + me.pre + "phimapNo", "#" + me.pre + "phiurlmapNo", "#" + me.pre + "mn1_phimapNo"], "click", function(e) { let ic = me.icn3d; e.preventDefault();
8117
8117
  ic.setOptionCls.setOption('phimap', 'nothing');
8118
8118
  thisClass.setLogCmd('setoption phimap nothing', true);
8119
8119
  });
8120
8120
 
8121
- me.myEventCls.onIds(["#" + me.pre + "delphimapNo2", "#" + me.pre + "phimapNo2", "#" + me.pre + "phiurlmapNo2"], "click", function(e) { let ic = me.icn3d; //e.preventDefault();
8121
+ me.myEventCls.onIds(["#" + me.pre + "delphimapNo2", "#" + me.pre + "phimapNo2", "#" + me.pre + "phiurlmapNo2"], "click", function(e) { let ic = me.icn3d; e.preventDefault();
8122
8122
  //ic.setOptionCls.setOption('surface', 'nothing');
8123
8123
  //thisClass.setLogCmd('set surface nothing', true);
8124
8124
  ic.setOptionCls.setOption('phisurface', 'nothing');
8125
8125
  thisClass.setLogCmd('setoption phisurface nothing', true);
8126
8126
  });
8127
8127
 
8128
- me.myEventCls.onIds("#" + me.pre + "applymap2fofc", "click", function(e) { let ic = me.icn3d; //e.preventDefault();
8128
+ me.myEventCls.onIds("#" + me.pre + "applymap2fofc", "click", function(e) { let ic = me.icn3d; e.preventDefault();
8129
8129
 
8130
8130
  //if(!me.cfg.notebook) dialog.dialog( "close" );
8131
8131
  let sigma2fofc = parseFloat($("#" + me.pre + "sigma2fofc" ).val());
@@ -8135,7 +8135,7 @@ class ClickMenu {
8135
8135
  thisClass.setLogCmd('set map 2fofc sigma ' + sigma2fofc, true);
8136
8136
  });
8137
8137
 
8138
- me.myEventCls.onIds("#" + me.pre + "applymapfofc", "click", function(e) { let ic = me.icn3d; //e.preventDefault();
8138
+ me.myEventCls.onIds("#" + me.pre + "applymapfofc", "click", function(e) { let ic = me.icn3d; e.preventDefault();
8139
8139
 
8140
8140
  //if(!me.cfg.notebook) dialog.dialog( "close" );
8141
8141
  let sigmafofc = parseFloat($("#" + me.pre + "sigmafofc" ).val());
@@ -8145,27 +8145,27 @@ class ClickMenu {
8145
8145
  thisClass.setLogCmd('set map fofc sigma ' + sigmafofc, true);
8146
8146
  });
8147
8147
 
8148
- me.myEventCls.onIds("#" + me.pre + "mn5_mapwireframeYes", "click", function(e) { let ic = me.icn3d; //e.preventDefault();
8148
+ me.myEventCls.onIds("#" + me.pre + "mn5_mapwireframeYes", "click", function(e) { let ic = me.icn3d; e.preventDefault();
8149
8149
  //ic.dsn6ParserCls.dsn6Parser(ic.inputid);
8150
8150
  ic.setOptionCls.setOption('mapwireframe', 'yes');
8151
8151
  thisClass.setLogCmd('set map wireframe on', true);
8152
8152
  });
8153
8153
 
8154
- me.myEventCls.onIds("#" + me.pre + "mn5_mapwireframeNo", "click", function(e) { let ic = me.icn3d; //e.preventDefault();
8154
+ me.myEventCls.onIds("#" + me.pre + "mn5_mapwireframeNo", "click", function(e) { let ic = me.icn3d; e.preventDefault();
8155
8155
  ic.setOptionCls.setOption('mapwireframe', 'no');
8156
8156
  thisClass.setLogCmd('set map wireframe off', true);
8157
8157
  });
8158
8158
 
8159
- me.myEventCls.onIds("#" + me.pre + "mn5_emmap", "click", function(e) { me.icn3d; //e.preventDefault();
8159
+ me.myEventCls.onIds("#" + me.pre + "mn5_emmap", "click", function(e) { me.icn3d; e.preventDefault();
8160
8160
  me.htmlCls.dialogCls.openDlg('dl_emmap', 'EM Density Map');
8161
8161
  });
8162
8162
 
8163
- me.myEventCls.onIds(["#" + me.pre + "mn5_emmapNo", "#" + me.pre + "emmapNo2"], "click", function(e) { let ic = me.icn3d; //e.preventDefault();
8163
+ me.myEventCls.onIds(["#" + me.pre + "mn5_emmapNo", "#" + me.pre + "emmapNo2"], "click", function(e) { let ic = me.icn3d; e.preventDefault();
8164
8164
  ic.setOptionCls.setOption('emmap', 'nothing');
8165
8165
  thisClass.setLogCmd('setoption emmap nothing', true);
8166
8166
  });
8167
8167
 
8168
- me.myEventCls.onIds("#" + me.pre + "applyemmap", "click", function(e) { let ic = me.icn3d; //e.preventDefault();
8168
+ me.myEventCls.onIds("#" + me.pre + "applyemmap", "click", function(e) { let ic = me.icn3d; e.preventDefault();
8169
8169
 
8170
8170
  //if(!me.cfg.notebook) dialog.dialog( "close" );
8171
8171
  let empercentage = parseFloat($("#" + me.pre + "empercentage" ).val());
@@ -8176,13 +8176,13 @@ class ClickMenu {
8176
8176
  thisClass.setLogCmd('set emmap percentage ' + empercentage, true);
8177
8177
  });
8178
8178
 
8179
- me.myEventCls.onIds("#" + me.pre + "mn5_emmapwireframeYes", "click", function(e) { let ic = me.icn3d; //e.preventDefault();
8179
+ me.myEventCls.onIds("#" + me.pre + "mn5_emmapwireframeYes", "click", function(e) { let ic = me.icn3d; e.preventDefault();
8180
8180
  //ic.dsn6ParserCls.dsn6Parser(ic.inputid);
8181
8181
  ic.setOptionCls.setOption('emmapwireframe', 'yes');
8182
8182
  thisClass.setLogCmd('set emmap wireframe on', true);
8183
8183
  });
8184
8184
 
8185
- me.myEventCls.onIds("#" + me.pre + "mn5_emmapwireframeNo", "click", function(e) { let ic = me.icn3d; //e.preventDefault();
8185
+ me.myEventCls.onIds("#" + me.pre + "mn5_emmapwireframeNo", "click", function(e) { let ic = me.icn3d; e.preventDefault();
8186
8186
  ic.setOptionCls.setOption('emmapwireframe', 'no');
8187
8187
  thisClass.setLogCmd('set emmap wireframe off', true);
8188
8188
  });
@@ -8194,19 +8194,19 @@ class ClickMenu {
8194
8194
 
8195
8195
  let thisClass = this;
8196
8196
  // mn 6
8197
- me.myEventCls.onIds("#" + me.pre + "mn6_assemblyYes", "click", function(e) { let ic = me.icn3d; //e.preventDefault();
8197
+ me.myEventCls.onIds("#" + me.pre + "mn6_assemblyYes", "click", function(e) { let ic = me.icn3d; e.preventDefault();
8198
8198
  ic.bAssembly = true;
8199
8199
  thisClass.setLogCmd('set assembly on', true);
8200
8200
  ic.drawCls.draw();
8201
8201
  });
8202
8202
 
8203
- me.myEventCls.onIds("#" + me.pre + "mn6_assemblyNo", "click", function(e) { let ic = me.icn3d; //e.preventDefault();
8203
+ me.myEventCls.onIds("#" + me.pre + "mn6_assemblyNo", "click", function(e) { let ic = me.icn3d; e.preventDefault();
8204
8204
  ic.bAssembly = false;
8205
8205
  thisClass.setLogCmd('set assembly off', true);
8206
8206
  ic.drawCls.draw();
8207
8207
  });
8208
8208
 
8209
- me.myEventCls.onIds("#" + me.pre + "mn6_igrefYes", "click", async function(e) { let ic = me.icn3d; //e.preventDefault();
8209
+ me.myEventCls.onIds("#" + me.pre + "mn6_igrefYes", "click", async function(e) { let ic = me.icn3d; e.preventDefault();
8210
8210
  thisClass.setLogCmd('ig refnum on', true);
8211
8211
  await ic.refnumCls.showIgRefNum();
8212
8212
 
@@ -8220,7 +8220,7 @@ class ClickMenu {
8220
8220
  }
8221
8221
  });
8222
8222
 
8223
- me.myEventCls.onIds("#" + me.pre + "mn6_igrefNo", "click", async function(e) { let ic = me.icn3d; //e.preventDefault();
8223
+ me.myEventCls.onIds("#" + me.pre + "mn6_igrefNo", "click", async function(e) { let ic = me.icn3d; e.preventDefault();
8224
8224
  thisClass.setLogCmd('ig refnum off', true);
8225
8225
  await ic.refnumCls.hideIgRefNum();
8226
8226
 
@@ -8233,14 +8233,14 @@ class ClickMenu {
8233
8233
  });
8234
8234
 
8235
8235
 
8236
- me.myEventCls.onIds("#" + me.pre + "mn6_addlabelAtoms", "click", function(e) { let ic = me.icn3d; //e.preventDefault();
8236
+ me.myEventCls.onIds("#" + me.pre + "mn6_addlabelAtoms", "click", function(e) { let ic = me.icn3d; e.preventDefault();
8237
8237
  ic.residueLabelsCls.addAtomLabels(ic.hAtoms);
8238
8238
  ic.selectionCls.saveSelectionIfSelected();
8239
8239
  thisClass.setLogCmd('add atom labels', true);
8240
8240
  ic.drawCls.draw();
8241
8241
  });
8242
8242
 
8243
- me.myEventCls.onIds("#" + me.pre + "mn6_addlabelElements", "click", function(e) { let ic = me.icn3d; //e.preventDefault();
8243
+ me.myEventCls.onIds("#" + me.pre + "mn6_addlabelElements", "click", function(e) { let ic = me.icn3d; e.preventDefault();
8244
8244
  ic.residueLabelsCls.addAtomLabels(ic.hAtoms, true);
8245
8245
  ic.selectionCls.saveSelectionIfSelected();
8246
8246
  thisClass.setLogCmd('add element labels', true);
@@ -8248,35 +8248,35 @@ class ClickMenu {
8248
8248
  });
8249
8249
 
8250
8250
 
8251
- me.myEventCls.onIds("#" + me.pre + "mn6_addlabelResidues", "click", function(e) { let ic = me.icn3d; //e.preventDefault();
8251
+ me.myEventCls.onIds("#" + me.pre + "mn6_addlabelResidues", "click", function(e) { let ic = me.icn3d; e.preventDefault();
8252
8252
  ic.residueLabelsCls.addResidueLabels(ic.hAtoms);
8253
8253
  ic.selectionCls.saveSelectionIfSelected();
8254
8254
  thisClass.setLogCmd('add residue labels', true);
8255
8255
  ic.drawCls.draw();
8256
8256
  });
8257
8257
 
8258
- me.myEventCls.onIds("#" + me.pre + "mn6_addlabelResnum", "click", function(e) { let ic = me.icn3d; //e.preventDefault();
8258
+ me.myEventCls.onIds("#" + me.pre + "mn6_addlabelResnum", "click", function(e) { let ic = me.icn3d; e.preventDefault();
8259
8259
  ic.residueLabelsCls.addResidueLabels(ic.hAtoms, undefined, undefined, true);
8260
8260
  ic.selectionCls.saveSelectionIfSelected();
8261
8261
  thisClass.setLogCmd('add residue number labels', true);
8262
8262
  ic.drawCls.draw();
8263
8263
  });
8264
8264
 
8265
- me.myEventCls.onIds("#" + me.pre + "mn6_addlabelChains", "click", function(e) { let ic = me.icn3d; //e.preventDefault();
8265
+ me.myEventCls.onIds("#" + me.pre + "mn6_addlabelChains", "click", function(e) { let ic = me.icn3d; e.preventDefault();
8266
8266
  ic.analysisCls.addChainLabels(ic.hAtoms);
8267
8267
  ic.selectionCls.saveSelectionIfSelected();
8268
8268
  thisClass.setLogCmd('add chain labels', true);
8269
8269
  ic.drawCls.draw();
8270
8270
  });
8271
8271
 
8272
- me.myEventCls.onIds("#" + me.pre + "mn6_addlabelTermini", "click", function(e) { let ic = me.icn3d; //e.preventDefault();
8272
+ me.myEventCls.onIds("#" + me.pre + "mn6_addlabelTermini", "click", function(e) { let ic = me.icn3d; e.preventDefault();
8273
8273
  ic.analysisCls.addTerminiLabels(ic.hAtoms);
8274
8274
  ic.selectionCls.saveSelectionIfSelected();
8275
8275
  thisClass.setLogCmd('add terminal labels', true);
8276
8276
  ic.drawCls.draw();
8277
8277
  });
8278
8278
 
8279
- me.myEventCls.onIds("#" + me.pre + "mn6_addlabelYes", "click", function(e) { let ic = me.icn3d; //e.preventDefault();
8279
+ me.myEventCls.onIds("#" + me.pre + "mn6_addlabelYes", "click", function(e) { let ic = me.icn3d; e.preventDefault();
8280
8280
  me.htmlCls.dialogCls.openDlg('dl_addlabel', 'Add custom labels by selection');
8281
8281
  ic.pk = 1;
8282
8282
  ic.opts['pk'] = 'atom';
@@ -8284,19 +8284,19 @@ class ClickMenu {
8284
8284
  ic.pAtomNum = 0;
8285
8285
  });
8286
8286
 
8287
- me.myEventCls.onIds("#" + me.pre + "mn6_addlabelSelection", "click", function(e) { me.icn3d; //e.preventDefault();
8287
+ me.myEventCls.onIds("#" + me.pre + "mn6_addlabelSelection", "click", function(e) { me.icn3d; e.preventDefault();
8288
8288
  me.htmlCls.dialogCls.openDlg('dl_addlabelselection', 'Add custom labels by the selected');
8289
8289
  });
8290
8290
 
8291
- me.myEventCls.onIds("#" + me.pre + "mn6_labelColor", "click", function(e) { me.icn3d; //e.preventDefault();
8291
+ me.myEventCls.onIds("#" + me.pre + "mn6_labelColor", "click", function(e) { me.icn3d; e.preventDefault();
8292
8292
  me.htmlCls.dialogCls.openDlg('dl_labelColor', 'Change color for all labels');
8293
8293
  });
8294
8294
 
8295
- me.myEventCls.onIds(["#" + me.pre + "mn2_saveselection","#" + me.pre + "tool_saveselection"], "click", function(e) { me.icn3d; //e.preventDefault();
8295
+ me.myEventCls.onIds(["#" + me.pre + "mn2_saveselection","#" + me.pre + "tool_saveselection"], "click", function(e) { me.icn3d; e.preventDefault();
8296
8296
  me.htmlCls.dialogCls.openDlg('dl_saveselection', 'Save the selected');
8297
8297
  });
8298
8298
 
8299
- me.myEventCls.onIds(["#" + me.pre + "mn6_addlabelNo", "#" + me.pre + "removeLabels"], "click", function(e) { let ic = me.icn3d; //e.preventDefault();
8299
+ me.myEventCls.onIds(["#" + me.pre + "mn6_addlabelNo", "#" + me.pre + "removeLabels"], "click", function(e) { let ic = me.icn3d; e.preventDefault();
8300
8300
  ic.labelcolor = undefined;
8301
8301
  ic.pickpair = false;
8302
8302
  //ic.labels['residue'] = [];
@@ -8311,14 +8311,14 @@ class ClickMenu {
8311
8311
  ic.drawCls.draw();
8312
8312
  });
8313
8313
 
8314
- $(document).on("click", "." + me.pre + "mn6_labelscale", function(e) { let ic = me.icn3d; //e.preventDefault();
8314
+ $(document).on("click", "." + me.pre + "mn6_labelscale", function(e) { let ic = me.icn3d; e.preventDefault();
8315
8315
  let value = $(this).attr('v');
8316
8316
  ic.labelScale = value;
8317
8317
  ic.drawCls.draw();
8318
8318
  thisClass.setLogCmd('set label scale ' + value, true);
8319
8319
  });
8320
8320
 
8321
- me.myEventCls.onIds("#" + me.pre + "mn6_distanceYes", "click", function(e) { let ic = me.icn3d; //e.preventDefault();
8321
+ me.myEventCls.onIds("#" + me.pre + "mn6_distanceYes", "click", function(e) { let ic = me.icn3d; e.preventDefault();
8322
8322
  me.htmlCls.dialogCls.openDlg('dl_distance', 'Measure the distance of atoms');
8323
8323
  ic.pk = 1;
8324
8324
  ic.opts['pk'] = 'atom';
@@ -8328,7 +8328,7 @@ class ClickMenu {
8328
8328
  });
8329
8329
 
8330
8330
 
8331
- me.myEventCls.onIds("#" + me.pre + "mn6_distTwoSets", "click", function(e) { let ic = me.icn3d; //e.preventDefault();
8331
+ me.myEventCls.onIds("#" + me.pre + "mn6_distTwoSets", "click", function(e) { let ic = me.icn3d; e.preventDefault();
8332
8332
  me.htmlCls.dialogCls.openDlg('dl_disttwosets', 'Measure the distance between two sets');
8333
8333
 
8334
8334
  thisClass.setSetsMenus('atomsCustomDist');
@@ -8336,7 +8336,7 @@ class ClickMenu {
8336
8336
  ic.bMeasureDistance = true;
8337
8337
  });
8338
8338
 
8339
- me.myEventCls.onIds("#" + me.pre + "mn6_distManySets", "click", function(e) { let ic = me.icn3d; //e.preventDefault();
8339
+ me.myEventCls.onIds("#" + me.pre + "mn6_distManySets", "click", function(e) { let ic = me.icn3d; e.preventDefault();
8340
8340
  me.htmlCls.dialogCls.openDlg('dl_distmanysets', 'Measure the pairwise distance among many sets');
8341
8341
 
8342
8342
  thisClass.setSetsMenus('atomsCustomDistTable');
@@ -8344,7 +8344,7 @@ class ClickMenu {
8344
8344
  ic.bMeasureDistance = true;
8345
8345
  });
8346
8346
 
8347
- me.myEventCls.onIds("#" + me.pre + "mn6_distanceNo", "click", function(e) { let ic = me.icn3d; //e.preventDefault();
8347
+ me.myEventCls.onIds("#" + me.pre + "mn6_distanceNo", "click", function(e) { let ic = me.icn3d; e.preventDefault();
8348
8348
  ic.pickpair = false;
8349
8349
  let select = "set lines off";
8350
8350
  thisClass.setLogCmd(select, true);
@@ -8355,7 +8355,7 @@ class ClickMenu {
8355
8355
  ic.drawCls.draw();
8356
8356
  });
8357
8357
 
8358
- me.myEventCls.onIds("#" + me.pre + "mn5_cartoonshape", "click", function(e) { let ic = me.icn3d; //e.preventDefault();
8358
+ me.myEventCls.onIds("#" + me.pre + "mn5_cartoonshape", "click", function(e) { let ic = me.icn3d; e.preventDefault();
8359
8359
  me.htmlCls.dialogCls.openDlg('dl_cartoonshape', 'Draw cartoon for a set');
8360
8360
 
8361
8361
  let bOneset = true;
@@ -8364,7 +8364,7 @@ class ClickMenu {
8364
8364
  ic.bCartoonshape = true;
8365
8365
  });
8366
8366
 
8367
- me.myEventCls.onIds("#" + me.pre + "mn5_linebtwsets", "click", function(e) { let ic = me.icn3d; //e.preventDefault();
8367
+ me.myEventCls.onIds("#" + me.pre + "mn5_linebtwsets", "click", function(e) { let ic = me.icn3d; e.preventDefault();
8368
8368
  me.htmlCls.dialogCls.openDlg('dl_linebtwsets', 'Draw a line between two sets');
8369
8369
 
8370
8370
  thisClass.setSetsMenus('linebtwsets');
@@ -8373,21 +8373,21 @@ class ClickMenu {
8373
8373
  });
8374
8374
 
8375
8375
 
8376
- me.myEventCls.onIds(["#" + me.pre + "mn2_selectedcenter", "#" + me.pre + "zoomin_selection", "#" + me.pre + "tool_selectedcenter"], "click", function(e) { let ic = me.icn3d; //e.preventDefault();
8376
+ me.myEventCls.onIds(["#" + me.pre + "mn2_selectedcenter", "#" + me.pre + "zoomin_selection", "#" + me.pre + "tool_selectedcenter"], "click", function(e) { let ic = me.icn3d; e.preventDefault();
8377
8377
  //thisClass.setLogCmd('zoom selection', true);
8378
8378
  ic.transformCls.zoominSelection();
8379
8379
  ic.drawCls.draw();
8380
8380
  thisClass.setLogCmd('zoom selection', true);
8381
8381
  });
8382
8382
 
8383
- me.myEventCls.onIds("#" + me.pre + "mn6_center", "click", function(e) { let ic = me.icn3d; //e.preventDefault();
8383
+ me.myEventCls.onIds("#" + me.pre + "mn6_center", "click", function(e) { let ic = me.icn3d; e.preventDefault();
8384
8384
  //thisClass.setLogCmd('center selection', true);
8385
8385
  ic.applyCenterCls.centerSelection();
8386
8386
  ic.drawCls.draw();
8387
8387
  thisClass.setLogCmd('center selection', true);
8388
8388
  });
8389
8389
 
8390
- me.myEventCls.onIds(["#" + me.pre + "mn6_resetOrientation", "#" + me.pre + "resetOrientation", "#" + me.pre + "tool_resetOrientation"], "click", function(e) { let ic = me.icn3d; //e.preventDefault();
8390
+ me.myEventCls.onIds(["#" + me.pre + "mn6_resetOrientation", "#" + me.pre + "resetOrientation", "#" + me.pre + "tool_resetOrientation"], "click", function(e) { let ic = me.icn3d; e.preventDefault();
8391
8391
  //thisClass.setLogCmd('reset orientation', true);
8392
8392
  ic.transformCls.resetOrientation();
8393
8393
  //ic.setColorCls.applyOriginalColor();
@@ -8395,17 +8395,17 @@ class ClickMenu {
8395
8395
  thisClass.setLogCmd('reset orientation', true);
8396
8396
  });
8397
8397
 
8398
- me.myEventCls.onIds(["#" + me.pre + "mn6_chemicalbindingshow", "#" + me.pre + "chemicalbindingshow"], "click", function(e) { let ic = me.icn3d; //e.preventDefault();
8398
+ me.myEventCls.onIds(["#" + me.pre + "mn6_chemicalbindingshow", "#" + me.pre + "chemicalbindingshow"], "click", function(e) { let ic = me.icn3d; e.preventDefault();
8399
8399
  ic.setOptionCls.setOption('chemicalbinding', 'show');
8400
8400
  thisClass.setLogCmd('set chemicalbinding show', true);
8401
8401
  });
8402
8402
 
8403
- me.myEventCls.onIds(["#" + me.pre + "mn6_chemicalbindinghide", "#" + me.pre + "chemicalbindinghide"], "click", function(e) { let ic = me.icn3d; //e.preventDefault();
8403
+ me.myEventCls.onIds(["#" + me.pre + "mn6_chemicalbindinghide", "#" + me.pre + "chemicalbindinghide"], "click", function(e) { let ic = me.icn3d; e.preventDefault();
8404
8404
  ic.setOptionCls.setOption('chemicalbinding', 'hide');
8405
8405
  thisClass.setLogCmd('set chemicalbinding hide', true);
8406
8406
  });
8407
8407
 
8408
- me.myEventCls.onIds("#" + me.pre + "mn6_sidebyside", "click", function(e) { let ic = me.icn3d; //e.preventDefault();
8408
+ me.myEventCls.onIds("#" + me.pre + "mn6_sidebyside", "click", function(e) { let ic = me.icn3d; e.preventDefault();
8409
8409
  if(ic.bInputfile) {
8410
8410
  alert("Side-by-Side does NOT work when the input is from a local file.");
8411
8411
  return;
@@ -8424,7 +8424,7 @@ class ClickMenu {
8424
8424
  });
8425
8425
 
8426
8426
 
8427
- $(document).on("click", "." + me.pre + "mn6_rotate", function(e) { let ic = me.icn3d; //e.preventDefault();
8427
+ $(document).on("click", "." + me.pre + "mn6_rotate", function(e) { let ic = me.icn3d; e.preventDefault();
8428
8428
  let value = $(this).attr('v').toLowerCase();
8429
8429
  let direction = value.split(' ')[1];
8430
8430
 
@@ -8436,7 +8436,7 @@ class ClickMenu {
8436
8436
  ic.resizeCanvasCls.rotStruc(direction);
8437
8437
  });
8438
8438
 
8439
- $(document).on("click", "." + me.pre + "mn6_rotate90", function(e) { let ic = me.icn3d; //e.preventDefault();
8439
+ $(document).on("click", "." + me.pre + "mn6_rotate90", function(e) { let ic = me.icn3d; e.preventDefault();
8440
8440
  let value = $(this).attr('v').toLowerCase();
8441
8441
  let direction = value.split('-')[0];
8442
8442
 
@@ -8455,21 +8455,21 @@ class ClickMenu {
8455
8455
  ic.transformCls.setRotation(axis, angle);
8456
8456
  });
8457
8457
 
8458
- me.myEventCls.onIds("#" + me.pre + "mn6_cameraPers", "click", function(e) { let ic = me.icn3d; //e.preventDefault();
8458
+ me.myEventCls.onIds("#" + me.pre + "mn6_cameraPers", "click", function(e) { let ic = me.icn3d; e.preventDefault();
8459
8459
  ic.setOptionCls.setOption('camera', 'perspective');
8460
8460
  thisClass.setLogCmd('set camera perspective', true);
8461
8461
  });
8462
8462
 
8463
- me.myEventCls.onIds("#" + me.pre + "mn6_cameraOrth", "click", function(e) { let ic = me.icn3d; //e.preventDefault();
8463
+ me.myEventCls.onIds("#" + me.pre + "mn6_cameraOrth", "click", function(e) { let ic = me.icn3d; e.preventDefault();
8464
8464
  ic.setOptionCls.setOption('camera', 'orthographic');
8465
8465
  thisClass.setLogCmd('set camera orthographic', true);
8466
8466
  });
8467
8467
 
8468
- me.myEventCls.onIds("#" + me.pre + "mn6_bkgdBlack", "click", function(e) { let ic = me.icn3d; //e.preventDefault();
8468
+ me.myEventCls.onIds("#" + me.pre + "mn6_bkgdBlack", "click", function(e) { let ic = me.icn3d; e.preventDefault();
8469
8469
  ic.setStyleCls.setBackground('black');
8470
8470
  });
8471
8471
 
8472
- me.myEventCls.onIds("#" + me.pre + "tool_bkgd", "click", function(e) { let ic = me.icn3d; //e.preventDefault();
8472
+ me.myEventCls.onIds("#" + me.pre + "tool_bkgd", "click", function(e) { let ic = me.icn3d; e.preventDefault();
8473
8473
  if(ic.opts['background'] == 'black') {
8474
8474
  ic.setStyleCls.setBackground('white');
8475
8475
  }
@@ -8478,19 +8478,19 @@ class ClickMenu {
8478
8478
  }
8479
8479
  });
8480
8480
 
8481
- me.myEventCls.onIds("#" + me.pre + "mn6_bkgdGrey", "click", function(e) { let ic = me.icn3d; //e.preventDefault();
8481
+ me.myEventCls.onIds("#" + me.pre + "mn6_bkgdGrey", "click", function(e) { let ic = me.icn3d; e.preventDefault();
8482
8482
  ic.setStyleCls.setBackground('grey');
8483
8483
  });
8484
8484
 
8485
- me.myEventCls.onIds(["#" + me.pre + "mn6_bkgdWhite", "#" + me.pre + "tool_bkgdWhite"], "click", function(e) { let ic = me.icn3d; //e.preventDefault();
8485
+ me.myEventCls.onIds(["#" + me.pre + "mn6_bkgdWhite", "#" + me.pre + "tool_bkgdWhite"], "click", function(e) { let ic = me.icn3d; e.preventDefault();
8486
8486
  ic.setStyleCls.setBackground('white');
8487
8487
  });
8488
8488
 
8489
- me.myEventCls.onIds("#" + me.pre + "mn6_bkgdTransparent", "click", function(e) { let ic = me.icn3d; //e.preventDefault();
8489
+ me.myEventCls.onIds("#" + me.pre + "mn6_bkgdTransparent", "click", function(e) { let ic = me.icn3d; e.preventDefault();
8490
8490
  ic.setStyleCls.setBackground('transparent');
8491
8491
  });
8492
8492
 
8493
- me.myEventCls.onIds("#" + me.pre + "mn6_showfogYes", "click", function(e) { let ic = me.icn3d; //e.preventDefault();
8493
+ me.myEventCls.onIds("#" + me.pre + "mn6_showfogYes", "click", function(e) { let ic = me.icn3d; e.preventDefault();
8494
8494
  //ic.setOptionCls.setOption('fog', 'yes');
8495
8495
  ic.opts['fog'] = 'yes';
8496
8496
  ic.fogCls.setFog(true);
@@ -8498,7 +8498,7 @@ class ClickMenu {
8498
8498
  thisClass.setLogCmd('set fog on', true);
8499
8499
  });
8500
8500
 
8501
- me.myEventCls.onIds("#" + me.pre + "mn6_showfogNo", "click", function(e) { let ic = me.icn3d; //e.preventDefault();
8501
+ me.myEventCls.onIds("#" + me.pre + "mn6_showfogNo", "click", function(e) { let ic = me.icn3d; e.preventDefault();
8502
8502
  //ic.setOptionCls.setOption('fog', 'no');
8503
8503
  ic.opts['fog'] = 'no';
8504
8504
  ic.fogCls.setFog(true);
@@ -8506,22 +8506,22 @@ class ClickMenu {
8506
8506
  thisClass.setLogCmd('set fog off', true);
8507
8507
  });
8508
8508
 
8509
- me.myEventCls.onIds("#" + me.pre + "mn6_showslabYes", "click", function(e) { let ic = me.icn3d; //e.preventDefault();
8509
+ me.myEventCls.onIds("#" + me.pre + "mn6_showslabYes", "click", function(e) { let ic = me.icn3d; e.preventDefault();
8510
8510
  ic.setOptionCls.setOption('slab', 'yes');
8511
8511
  thisClass.setLogCmd('set slab on', true);
8512
8512
  });
8513
8513
 
8514
- me.myEventCls.onIds("#" + me.pre + "mn6_showslabNo", "click", function(e) { let ic = me.icn3d; //e.preventDefault();
8514
+ me.myEventCls.onIds("#" + me.pre + "mn6_showslabNo", "click", function(e) { let ic = me.icn3d; e.preventDefault();
8515
8515
  ic.setOptionCls.setOption('slab', 'no');
8516
8516
  thisClass.setLogCmd('set slab off', true);
8517
8517
  });
8518
8518
 
8519
- me.myEventCls.onIds("#" + me.pre + "mn6_showaxisYes", "click", function(e) { let ic = me.icn3d; //e.preventDefault();
8519
+ me.myEventCls.onIds("#" + me.pre + "mn6_showaxisYes", "click", function(e) { let ic = me.icn3d; e.preventDefault();
8520
8520
  ic.setOptionCls.setOption('axis', 'yes');
8521
8521
  thisClass.setLogCmd('set axis on', true);
8522
8522
  });
8523
8523
 
8524
- me.myEventCls.onIds("#" + me.pre + "mn6_showaxisSel", "click", function(e) { let ic = me.icn3d; //e.preventDefault();
8524
+ me.myEventCls.onIds("#" + me.pre + "mn6_showaxisSel", "click", function(e) { let ic = me.icn3d; e.preventDefault();
8525
8525
  ic.pc1 = true;
8526
8526
 
8527
8527
  ic.axesCls.setPc1Axes();
@@ -8529,7 +8529,7 @@ class ClickMenu {
8529
8529
  });
8530
8530
 
8531
8531
 
8532
- me.myEventCls.onIds("#" + me.pre + "mn6_showaxisNo", "click", function(e) { let ic = me.icn3d; //e.preventDefault();
8532
+ me.myEventCls.onIds("#" + me.pre + "mn6_showaxisNo", "click", function(e) { let ic = me.icn3d; e.preventDefault();
8533
8533
  ic.pc1 = false;
8534
8534
  ic.axes = [];
8535
8535
 
@@ -8538,37 +8538,37 @@ class ClickMenu {
8538
8538
  thisClass.setLogCmd('set axis off', true);
8539
8539
  });
8540
8540
 
8541
- me.myEventCls.onIds("#" + me.pre + "mn6_symmetry", "click", async function(e) { let ic = me.icn3d; //e.preventDefault();
8541
+ me.myEventCls.onIds("#" + me.pre + "mn6_symmetry", "click", async function(e) { let ic = me.icn3d; e.preventDefault();
8542
8542
  ic.bAxisOnly = false;
8543
8543
  await ic.symdCls.retrieveSymmetry(Object.keys(ic.structures)[0]);
8544
8544
  //me.htmlCls.dialogCls.openDlg('dl_symmetry', 'Symmetry');
8545
8545
  });
8546
8546
 
8547
- me.myEventCls.onIds("#" + me.pre + "mn6_symd", "click", async function(e) { let ic = me.icn3d; //e.preventDefault();
8547
+ me.myEventCls.onIds("#" + me.pre + "mn6_symd", "click", async function(e) { let ic = me.icn3d; e.preventDefault();
8548
8548
  ic.bAxisOnly = false;
8549
8549
  await ic.symdCls.retrieveSymd();
8550
8550
  ic.bSymd = true;
8551
8551
 
8552
8552
  thisClass.setLogCmd('symd symmetry', true);
8553
8553
  });
8554
- me.myEventCls.onIds("#" + me.pre + "mn6_clear_sym", "click", function(e) { let ic = me.icn3d; //e.preventDefault();
8554
+ me.myEventCls.onIds("#" + me.pre + "mn6_clear_sym", "click", function(e) { let ic = me.icn3d; e.preventDefault();
8555
8555
  ic.symdArray = [];
8556
8556
  ic.drawCls.draw();
8557
8557
  thisClass.setLogCmd('clear symd symmetry', true);
8558
8558
  });
8559
- me.myEventCls.onIds("#" + me.pre + "mn6_axes_only", "click", function(e) { let ic = me.icn3d; //e.preventDefault();
8559
+ me.myEventCls.onIds("#" + me.pre + "mn6_axes_only", "click", function(e) { let ic = me.icn3d; e.preventDefault();
8560
8560
  ic.bAxisOnly = true;
8561
8561
  ic.drawCls.draw();
8562
8562
  thisClass.setLogCmd('show axis', true);
8563
8563
  });
8564
8564
 
8565
8565
 
8566
- me.myEventCls.onIds("#" + me.pre + "mn6_area", "click", function(e) { let ic = me.icn3d; //e.preventDefault();
8566
+ me.myEventCls.onIds("#" + me.pre + "mn6_area", "click", function(e) { let ic = me.icn3d; e.preventDefault();
8567
8567
  ic.analysisCls.calculateArea();
8568
8568
  thisClass.setLogCmd('area', true);
8569
8569
  });
8570
8570
 
8571
- me.myEventCls.onIds("#" + me.pre + "applysymmetry", "click", function(e) { let ic = me.icn3d; //e.preventDefault();
8571
+ me.myEventCls.onIds("#" + me.pre + "applysymmetry", "click", function(e) { let ic = me.icn3d; e.preventDefault();
8572
8572
  ic.bAxisOnly = false;
8573
8573
 
8574
8574
  let title = $("#" + me.pre + "selectSymmetry" ).val();
@@ -8578,14 +8578,14 @@ class ClickMenu {
8578
8578
  ic.drawCls.draw();
8579
8579
  thisClass.setLogCmd('symmetry ' + title, true);
8580
8580
  });
8581
- me.myEventCls.onIds("#" + me.pre + "clearsymmetry", "click", function(e) { let ic = me.icn3d; //e.preventDefault();
8581
+ me.myEventCls.onIds("#" + me.pre + "clearsymmetry", "click", function(e) { let ic = me.icn3d; e.preventDefault();
8582
8582
  let title = 'none';
8583
8583
  ic.symmetrytitle = undefined;
8584
8584
  ic.drawCls.draw();
8585
8585
  thisClass.setLogCmd('symmetry ' + title, true);
8586
8586
  });
8587
8587
 
8588
- me.myEventCls.onIds(["#" + me.pre + "mn6_hbondsYes", "#" + me.pre + "hbondsYes"], "click", function(e) { let ic = me.icn3d; //e.preventDefault();
8588
+ me.myEventCls.onIds(["#" + me.pre + "mn6_hbondsYes", "#" + me.pre + "hbondsYes"], "click", function(e) { let ic = me.icn3d; e.preventDefault();
8589
8589
  thisClass.SetChainsAdvancedMenu();
8590
8590
 
8591
8591
  let definedAtomsHtml = ic.definedSetsCls.setAtomMenu(['protein']);
@@ -8602,17 +8602,17 @@ class ClickMenu {
8602
8602
  $("#" + me.pre + "atomsCustomHbond2").resizable();
8603
8603
  });
8604
8604
 
8605
- me.myEventCls.onIds(["#" + me.pre + "mn6_contactmap"], "click", function(e) { me.icn3d; //e.preventDefault();
8605
+ me.myEventCls.onIds(["#" + me.pre + "mn6_contactmap"], "click", function(e) { me.icn3d; e.preventDefault();
8606
8606
  me.htmlCls.dialogCls.openDlg('dl_contact', 'Set contact map');
8607
8607
  });
8608
8608
 
8609
8609
 
8610
- me.myEventCls.onIds("#" + me.pre + "mn6_hbondsNo", "click", function(e) { let ic = me.icn3d; //e.preventDefault();
8610
+ me.myEventCls.onIds("#" + me.pre + "mn6_hbondsNo", "click", function(e) { let ic = me.icn3d; e.preventDefault();
8611
8611
  ic.showInterCls.hideHbondsContacts();
8612
8612
  ic.drawCls.draw();
8613
8613
  });
8614
8614
 
8615
- me.myEventCls.onIds("#" + me.pre + "mn1_stabilizerYes", "click", function(e) { let ic = me.icn3d; //e.preventDefault();
8615
+ me.myEventCls.onIds("#" + me.pre + "mn1_stabilizerYes", "click", function(e) { let ic = me.icn3d; e.preventDefault();
8616
8616
  let select = "stabilizer";
8617
8617
  ic.threeDPrintCls.addStabilizer();
8618
8618
  ic.threeDPrintCls.prepareFor3Dprint();
@@ -8620,14 +8620,14 @@ class ClickMenu {
8620
8620
  thisClass.setLogCmd(select, true);
8621
8621
  });
8622
8622
 
8623
- me.myEventCls.onIds("#" + me.pre + "mn1_stabilizerNo", "click", function(e) { let ic = me.icn3d; //e.preventDefault();
8623
+ me.myEventCls.onIds("#" + me.pre + "mn1_stabilizerNo", "click", function(e) { let ic = me.icn3d; e.preventDefault();
8624
8624
  let select = "set stabilizer off";
8625
8625
  thisClass.setLogCmd(select, true);
8626
8626
  ic.threeDPrintCls.hideStabilizer();
8627
8627
  ic.drawCls.draw();
8628
8628
  });
8629
8629
 
8630
- me.myEventCls.onIds("#" + me.pre + "mn1_stabilizerOne", "click", function(e) { let ic = me.icn3d; //e.preventDefault();
8630
+ me.myEventCls.onIds("#" + me.pre + "mn1_stabilizerOne", "click", function(e) { let ic = me.icn3d; e.preventDefault();
8631
8631
  me.htmlCls.dialogCls.openDlg('dl_stabilizer', 'Add One Stabilizer');
8632
8632
  ic.pk = 1;
8633
8633
  ic.opts['pk'] = 'atom';
@@ -8635,7 +8635,7 @@ class ClickMenu {
8635
8635
  ic.pAtomNum = 0;
8636
8636
  });
8637
8637
 
8638
- me.myEventCls.onIds("#" + me.pre + "mn1_stabilizerRmOne", "click", function(e) { let ic = me.icn3d; //e.preventDefault();
8638
+ me.myEventCls.onIds("#" + me.pre + "mn1_stabilizerRmOne", "click", function(e) { let ic = me.icn3d; e.preventDefault();
8639
8639
  me.htmlCls.dialogCls.openDlg('dl_stabilizer_rm', 'Remove One Stabilizer');
8640
8640
  ic.pk = 1;
8641
8641
  ic.opts['pk'] = 'atom';
@@ -8643,27 +8643,27 @@ class ClickMenu {
8643
8643
  ic.pAtomNum = 0;
8644
8644
  });
8645
8645
 
8646
- me.myEventCls.onIds("#" + me.pre + "mn1_thicknessSet", "click", function(e) { me.icn3d; //e.preventDefault();
8646
+ me.myEventCls.onIds("#" + me.pre + "mn1_thicknessSet", "click", function(e) { me.icn3d; e.preventDefault();
8647
8647
  me.htmlCls.dialogCls.openDlg('dl_thickness', 'Set Thickness for 3D Printing');
8648
8648
  });
8649
8649
 
8650
- me.myEventCls.onIds("#" + me.pre + "mn3_setThickness", "click", function(e) { me.icn3d; //e.preventDefault();
8650
+ me.myEventCls.onIds("#" + me.pre + "mn3_setThickness", "click", function(e) { me.icn3d; e.preventDefault();
8651
8651
  me.htmlCls.dialogCls.openDlg('dl_thickness2', 'Style Preferences');
8652
8652
  });
8653
8653
 
8654
8654
 
8655
- me.myEventCls.onIds("#" + me.pre + "mn6_ssbondsYes", "click", function(e) { let ic = me.icn3d; //e.preventDefault();
8655
+ me.myEventCls.onIds("#" + me.pre + "mn6_ssbondsYes", "click", function(e) { let ic = me.icn3d; e.preventDefault();
8656
8656
  let select = "disulfide bonds";
8657
8657
  thisClass.setLogCmd(select, true);
8658
8658
  ic.showInterCls.showSsbonds();
8659
8659
  });
8660
8660
 
8661
- me.myEventCls.onIds("#" + me.pre + "mn6_ssbondsExport", "click", function(e) { let ic = me.icn3d; //e.preventDefault();
8661
+ me.myEventCls.onIds("#" + me.pre + "mn6_ssbondsExport", "click", function(e) { let ic = me.icn3d; e.preventDefault();
8662
8662
  ic.viewInterPairsCls.exportSsbondPairs();
8663
8663
  thisClass.setLogCmd("export disulfide bond pairs", false);
8664
8664
  });
8665
8665
 
8666
- me.myEventCls.onIds("#" + me.pre + "mn6_ssbondsNo", "click", function(e) { let ic = me.icn3d; //e.preventDefault();
8666
+ me.myEventCls.onIds("#" + me.pre + "mn6_ssbondsNo", "click", function(e) { let ic = me.icn3d; e.preventDefault();
8667
8667
  ic.opts["ssbonds"] = "no";
8668
8668
  let select = "set disulfide bonds off";
8669
8669
  thisClass.setLogCmd(select, true);
@@ -8671,7 +8671,7 @@ class ClickMenu {
8671
8671
  ic.setOptionCls.setStyle('sidec', 'nothing');
8672
8672
  });
8673
8673
 
8674
- me.myEventCls.onIds("#" + me.pre + "mn6_clbondsYes", "click", function(e) { let ic = me.icn3d; //e.preventDefault();
8674
+ me.myEventCls.onIds("#" + me.pre + "mn6_clbondsYes", "click", function(e) { let ic = me.icn3d; e.preventDefault();
8675
8675
  let select = "cross linkage";
8676
8676
  thisClass.setLogCmd(select, true);
8677
8677
  //ic.bShowCrossResidueBond = true;
@@ -8679,12 +8679,12 @@ class ClickMenu {
8679
8679
  ic.showInterCls.showClbonds();
8680
8680
  });
8681
8681
 
8682
- me.myEventCls.onIds("#" + me.pre + "mn6_clbondsExport", "click", function(e) { let ic = me.icn3d; //e.preventDefault();
8682
+ me.myEventCls.onIds("#" + me.pre + "mn6_clbondsExport", "click", function(e) { let ic = me.icn3d; e.preventDefault();
8683
8683
  ic.viewInterPairsCls.exportClbondPairs();
8684
8684
  thisClass.setLogCmd("export cross linkage pairs", false);
8685
8685
  });
8686
8686
 
8687
- me.myEventCls.onIds("#" + me.pre + "mn6_clbondsNo", "click", function(e) { let ic = me.icn3d; //e.preventDefault();
8687
+ me.myEventCls.onIds("#" + me.pre + "mn6_clbondsNo", "click", function(e) { let ic = me.icn3d; e.preventDefault();
8688
8688
  ic.opts["clbonds"] = "no";
8689
8689
  let select = "set cross linkage off";
8690
8690
  thisClass.setLogCmd(select, true);
@@ -8731,6 +8731,11 @@ class ClickMenu {
8731
8731
  }
8732
8732
  });
8733
8733
  });
8734
+
8735
+ me.myEventCls.onIds("#" + me.pre + "jn_copy", "click", function(e) { me.icn3d; e.preventDefault();
8736
+ let text = $("#" + me.pre + "jn_commands").val();
8737
+ navigator.clipboard.writeText(text);
8738
+ });
8734
8739
  }
8735
8740
 
8736
8741
  //Show the input command in log. If "bSetCommand" is true, the command will be saved in the state file as well.
@@ -11190,6 +11195,7 @@ class Dialog {
11190
11195
  if(id === me.pre + 'dl_selectannotations' || id === me.pre + 'dl_graph' || id === me.pre + 'dl_linegraph' || id === me.pre + 'dl_scatterplot' || id === me.pre + 'dl_contactmap' || id === me.pre + 'dl_alignerrormap' || id === me.pre + 'dl_interactionsorted' || id === me.pre + 'dl_alignment') {
11191
11196
  $( "#" + id ).show();
11192
11197
  $( "#" + id + "_nb").show();
11198
+ $( "#" + id + "_title").html(title);
11193
11199
 
11194
11200
  height =(me.htmlCls.HEIGHT) * 0.5;
11195
11201
 
@@ -11237,6 +11243,7 @@ class Dialog {
11237
11243
  if(ic.bRender) {
11238
11244
  $( "#" + id ).show();
11239
11245
  $( "#" + id + "_nb").show();
11246
+ $( "#" + id + "_title").html(title);
11240
11247
  }
11241
11248
 
11242
11249
  height = 'auto';
@@ -11290,7 +11297,7 @@ class SetDialog {
11290
11297
  addNotebookTitle(id, title, bAddExtraDiv) { let me = this.icn3dui; me.icn3d;
11291
11298
  //return '<div id="' + me.pre + id + '_nb" style="display:none; background-color:#1c94c4; width:100%"><span style="color:white; font-weight:bold">' + title + '</span>&nbsp;&nbsp;&nbsp;<span onclick="$(\'#' + me.pre + id + '\').hide(); return false;" class="icn3d-nbclose" title="Close">x</span></div>';
11292
11299
 
11293
- let html = '<div id="' + me.pre + id + '_nb" style="display:none; background-color:#5C9CCC; width:100%"><span style="color:white; font-weight:bold">' + title + '</span>&nbsp;&nbsp;&nbsp;<div onclick="$(\'#' + me.pre + id + '\').hide(); return false;" class="icn3d-nbclose ui-icon ui-icon-close" title="Close"></div></div>';
11300
+ let html = '<div id="' + me.pre + id + '_nb" style="display:none; background-color:#5C9CCC; width:100%"><span id="' + me.pre + id + '_title" style="color:white; font-weight:bold">' + title + '</span>&nbsp;&nbsp;&nbsp;<div onclick="$(\'#' + me.pre + id + '\').hide(); return false;" class="icn3d-nbclose ui-icon ui-icon-close" title="Close"></div></div>';
11294
11301
 
11295
11302
  if(bAddExtraDiv) {
11296
11303
  html += '<div id="' + me.pre + id + '_html"></div>';
@@ -12428,10 +12435,24 @@ class SetDialog {
12428
12435
 
12429
12436
  html += me.htmlCls.divStr + "dl_copyurl' style='width:520px;' class='" + dialogClass + "'>";
12430
12437
  html += this.addNotebookTitle('dl_copyurl', 'Share Link');
12438
+
12439
+ html += "1. <b>URLs Used in Browsers</b><br><br>";
12440
+
12431
12441
  html += "Please copy one of the URLs below. They show the same result.<br>(To add a title to share link, click \"Windows > Your Note\" and click \"File > Share Link\" again.)<br><br>";
12432
12442
  html += "Original URL with commands: <br><textarea id='" + me.pre + "ori_url' rows='4' style='width:100%'></textarea><br><br>";
12433
- html += "Lifelong Short URL:(To replace this URL, send a pull request to update share.html at <a href='https://github.com/ncbi/icn3d' target='_blank'>iCn3D GitHub</a>)<br>" + me.htmlCls.inputTextStr + "id='" + me.pre + "short_url' value='' style='width:100%'><br><br>";
12434
- html += "Lifelong Short URL + Window Title:(To update the window title, click \"Analysis > Your Note/Window Title\".)<br>" + me.htmlCls.inputTextStr + "id='" + me.pre + "short_url_title' value='' style='width:100%'><br><br>";
12443
+ if(!me.cfg.notebook) {
12444
+ html += "Lifelong Short URL:(To replace this URL, send a pull request to update share.html at <a href='https://github.com/ncbi/icn3d' target='_blank'>iCn3D GitHub</a>)<br>" + me.htmlCls.inputTextStr + "id='" + me.pre + "short_url' value='' style='width:100%'><br><br>";
12445
+ html += "Lifelong Short URL + Window Title:(To update the window title, click \"Analysis > Your Note/Window Title\".)<br>" + me.htmlCls.inputTextStr + "id='" + me.pre + "short_url_title' value='' style='width:100%'><br><br>";
12446
+ }
12447
+ html += "<br>";
12448
+
12449
+ html += "2. <b>Commands Used in Jupyter Noteboook</b><br><br>";
12450
+ html += "Please copy the following commands into a cell in Jupyter Notebook to show the same result.<br><br>";
12451
+
12452
+ html += '<textarea id="' + me.pre + 'jn_commands" rows="4" style="width:100%"></textarea><br>';
12453
+
12454
+ html += buttonStrTmp + me.pre + 'jn_copy">Copy Commands</button><br>';
12455
+
12435
12456
  html += "</div>";
12436
12457
 
12437
12458
  html += me.htmlCls.divStr + "dl_selectannotations' class='" + dialogClass + " icn3d-annotation' style='background-color:white;'>";
@@ -31874,6 +31895,7 @@ class Impostor {
31874
31895
 
31875
31896
  setParametersForShader (opacity) { let ic = this.icn3d, me = ic.icn3dui;
31876
31897
  let background = me.parasCls.backgroundColors[ic.opts.background.toLowerCase()];
31898
+ if(!background) background = me.parasCls.thr(0x000000);
31877
31899
 
31878
31900
  let near = 2.5*ic.maxD;
31879
31901
  let far = 4*ic.maxD;
@@ -33060,7 +33082,7 @@ class Alternate {
33060
33082
 
33061
33083
  // show membranes
33062
33084
  if(ic.bOpm) {
33063
- //if(window.dialog) window.dialog.dialog( "close" );
33085
+ //if(window.dialog && window.dialog.hasClass('ui-dialog-content')) window.dialog.dialog( "close" );
33064
33086
 
33065
33087
  let html = me.utilsCls.getMemDesc();
33066
33088
  $("#" + ic.pre + "dl_rmsd_html").html(html);
@@ -36278,11 +36300,13 @@ class SetOption {
36278
36300
  bClose = true;
36279
36301
  }
36280
36302
 
36281
- $("#" + me.pre + "dl_legend_html").html(html);
36282
- me.htmlCls.dialogCls.openDlg('dl_legend', 'Color Legend');
36303
+ if(html) {
36304
+ $("#" + me.pre + "dl_legend_html").html(html);
36305
+ me.htmlCls.dialogCls.openDlg('dl_legend', 'Color Legend');
36306
+ }
36283
36307
 
36284
36308
  if(bClose) {
36285
- if(window.dialog) window.dialog.dialog( "close" );
36309
+ if(window.dialog && window.dialog.hasClass('ui-dialog-content')) window.dialog.dialog( "close" );
36286
36310
  }
36287
36311
  }
36288
36312
 
@@ -42688,7 +42712,7 @@ class ShowSeq {
42688
42712
  let strand2len_start_stop = {};
42689
42713
  let prevRefnumStr, prevPostfix, prevRefnum;
42690
42714
 
42691
- // sometimes one chain may have several Ig domains,set a index for each IgDomain
42715
+ // sometimes one chain may have several Ig domains,set an index for each IgDomain
42692
42716
  let index = 1, prevStrandPostfix = '', bStart = false;
42693
42717
  for(let i = 0, il = giSeq.length; i < il; ++i) {
42694
42718
  let currResi = ic.ParserUtilsCls.getResi(chnid, i);
@@ -52602,7 +52626,7 @@ class ParserUtils {
52602
52626
  me.htmlCls.clickMenuCls.setLogCmd("realignment RMSD: " + rmsd.toPrecision(4), false);
52603
52627
  let html = "<br><b>Realignment RMSD</b>: " + rmsd.toPrecision(4) + " &#8491;<br><br>";
52604
52628
  if(ic.bAfMem) {
52605
- //if(window.dialog) window.dialog.dialog( "close" );
52629
+ //if(window.dialog && window.dialog.hasClass('ui-dialog-content')) window.dialog.dialog( "close" );
52606
52630
  html += me.utilsCls.getMemDesc();
52607
52631
  }
52608
52632
  $("#" + ic.pre + "dl_rmsd_html").html(html);
@@ -62862,7 +62886,8 @@ class Dssp {
62862
62886
  let startResi = segArray[m];
62863
62887
  let endResi = segArray[m+1];
62864
62888
  for(let n = parseInt(startResi); n <= parseInt(endResi); ++n) {
62865
- let resid = chainid + '_' + n;
62889
+ let residNCBI = chainid + '_' + n;
62890
+ let resid = ic.ncbi2resid[residNCBI];
62866
62891
  domainAtoms = me.hashUtilsCls.unionHash(domainAtoms, ic.residues[resid]);
62867
62892
  ic.resid2domainid[resid] = chainid + '-' + k;
62868
62893
  }
@@ -67873,6 +67898,7 @@ class ShareLink {
67873
67898
  //file (the comand history) is concatenated in the URL to show the current state.
67874
67899
  async shareLink(bPngHtml, bPngOnly) { let ic = this.icn3d, me = ic.icn3dui;
67875
67900
  let url = this.shareLinkUrl();
67901
+
67876
67902
  let bTooLong =(url.length > 4000 || url.indexOf('http') !== 0) ? true : false;
67877
67903
  if(bPngHtml) url += "&random=" + parseInt(Math.random() * 1000); // generate a new shorten URL and thus image name everytime
67878
67904
  //var inputid =(ic.inputid) ? ic.inputid : "custom";
@@ -67904,40 +67930,53 @@ class ShareLink {
67904
67930
  }
67905
67931
  }
67906
67932
 
67907
- let data = await this.getShareLinkPrms(url, bPngHtml);
67908
-
67909
67933
  let shorturl = 'Problem in getting shortened URL';
67910
- if(data.shortLink !== undefined) {
67911
- shorturl = data.shortLink;
67912
- if(bPngHtml) { // save png and corresponding html
67913
- let strArray = shorturl.split("/");
67914
- let shortName = strArray[strArray.length - 1];
67915
- ic.saveFileCls.saveFile(inputid + '-' + shortName + '.png', 'png');
67916
- let text = '<div style="float:left; border: solid 1px #0000ff; padding: 5px; margin: 10px; text-align:center;">';
67917
- text += '<a href="https://structure.ncbi.nlm.nih.gov/icn3d/share.html?' + shortName + '" target="_blank">';
67918
- text += '<img style="height:300px" src ="' + inputid + '-' + shortName + '.png"><br>\n';
67919
- text += '<!--Start of your comments==================-->\n';
67920
- let yournote =(ic.yournote) ? ': ' + ic.yournote.replace(/\n/g, "<br>").replace(/; /g, ", ") : '';
67921
- text += 'PDB ' + inputid.toUpperCase() + yournote + '\n';
67922
- text += '<!--End of your comments====================-->\n';
67923
- text += '</a>';
67924
- text += '</div>\n\n';
67925
- ic.saveFileCls.saveFile(inputid + '-' + shortName + '.html', 'html', text);
67926
- }
67927
- }
67928
- if(bPngHtml && data.shortLink === undefined) {
67929
- ic.saveFileCls.saveFile(inputid + '_icn3d_loadable.png', 'png');
67930
- }
67931
- //shorturl: https://icn3d.page.link/NvbAh1Vmiwc4bgX87
67932
- let urlArray = shorturl.split('page.link/');
67933
- //if(urlArray.length == 2) shorturl = me.htmlCls.baseUrl + 'icn3d/share.html?' + urlArray[1];
67934
- // When the baseURL is structure.ncbi.nlm.nih.gov, mmcifparser.cgi has a problem to past posted data in Mac/iphone
67935
- // So the base URL is still www.ncbi.nlm.nih.gov/Structure,just use short URL here
67936
- if(urlArray.length == 2) shorturl = 'https://structure.ncbi.nlm.nih.gov/icn3d/share.html?' + urlArray[1];
67934
+
67935
+ if(!me.cfg.notebook) {
67936
+ let data = await this.getShareLinkPrms(url, bPngHtml);
67937
+
67938
+ if(data.shortLink !== undefined) {
67939
+ shorturl = data.shortLink;
67940
+ if(bPngHtml) { // save png and corresponding html
67941
+ let strArray = shorturl.split("/");
67942
+ let shortName = strArray[strArray.length - 1];
67943
+ ic.saveFileCls.saveFile(inputid + '-' + shortName + '.png', 'png');
67944
+ let text = '<div style="float:left; border: solid 1px #0000ff; padding: 5px; margin: 10px; text-align:center;">';
67945
+ text += '<a href="https://structure.ncbi.nlm.nih.gov/icn3d/share.html?' + shortName + '" target="_blank">';
67946
+ text += '<img style="height:300px" src ="' + inputid + '-' + shortName + '.png"><br>\n';
67947
+ text += '<!--Start of your comments==================-->\n';
67948
+ let yournote =(ic.yournote) ? ': ' + ic.yournote.replace(/\n/g, "<br>").replace(/; /g, ", ") : '';
67949
+ text += 'PDB ' + inputid.toUpperCase() + yournote + '\n';
67950
+ text += '<!--End of your comments====================-->\n';
67951
+ text += '</a>';
67952
+ text += '</div>\n\n';
67953
+ ic.saveFileCls.saveFile(inputid + '-' + shortName + '.html', 'html', text);
67954
+ }
67955
+ }
67956
+
67957
+ if(bPngHtml && data.shortLink === undefined) {
67958
+ ic.saveFileCls.saveFile(inputid + '_icn3d_loadable.png', 'png');
67959
+ }
67960
+
67961
+ //shorturl: https://icn3d.page.link/NvbAh1Vmiwc4bgX87
67962
+ let urlArray = shorturl.split('page.link/');
67963
+ //if(urlArray.length == 2) shorturl = me.htmlCls.baseUrl + 'icn3d/share.html?' + urlArray[1];
67964
+ // When the baseURL is structure.ncbi.nlm.nih.gov, mmcifparser.cgi has a problem to past posted data in Mac/iphone
67965
+ // So the base URL is still www.ncbi.nlm.nih.gov/Structure,just use short URL here
67966
+ if(urlArray.length == 2) shorturl = 'https://structure.ncbi.nlm.nih.gov/icn3d/share.html?' + urlArray[1];
67967
+
67968
+ $("#" + ic.pre + "short_url").val(shorturl);
67969
+ $("#" + ic.pre + "short_url_title").val(shorturl + '&t=' + ic.yournote);
67970
+ }
67971
+
67972
+ let outputCmd = this.shareLinkUrl(undefined, true);
67973
+ let idStr = (me.cfg.url) ? "url=" + me.cfg.url : "mmdbafid=" + ic.inputid;
67974
+ let jnCmd = "view = icn3dpy.view(q='" + idStr + "',command='" + outputCmd + "')\nview";
67975
+ $("#" + ic.pre + "jn_commands").val(jnCmd);
67976
+
67937
67977
  $("#" + ic.pre + "ori_url").val(url);
67938
- $("#" + ic.pre + "short_url").val(shorturl);
67939
- $("#" + ic.pre + "short_url_title").val(shorturl + '&t=' + ic.yournote);
67940
- if(!bPngHtml) me.htmlCls.dialogCls.openDlg('dl_copyurl', 'Copy a Share Link URL');
67978
+
67979
+ if(!bPngHtml) me.htmlCls.dialogCls.openDlg('dl_copyurl', 'Copy a Share Link URL or Jupyter Notebook Commands');
67941
67980
  }
67942
67981
 
67943
67982
  getShareLinkPrms(url, bPngHtml) { let ic = this.icn3d, me = ic.icn3dui;
@@ -67966,8 +68005,9 @@ class ShareLink {
67966
68005
  });
67967
68006
  }
67968
68007
 
67969
- shareLinkUrl(bAllCommands) { let ic = this.icn3d, me = ic.icn3dui;
68008
+ shareLinkUrl(bAllCommands, bOutputCmd) { let ic = this.icn3d, me = ic.icn3dui;
67970
68009
  let url = me.htmlCls.baseUrl + "icn3d/full.html?";
68010
+ let outputCmd = '';
67971
68011
  if(me.cfg.bSidebyside) url = me.htmlCls.baseUrl + "icn3d/full2.html?";
67972
68012
 
67973
68013
  if(ic.bInputUrlfile) {
@@ -68070,8 +68110,13 @@ class ShareLink {
68070
68110
 
68071
68111
  url += 'command=';
68072
68112
 
68073
- //let start =(inparaWithoutCommand !== undefined) ? 1 : 0;
68074
- let start = 0;
68113
+ let start;
68114
+ if(me.cfg.notebook) {
68115
+ start =(inparaWithoutCommand !== undefined) ? 1 : 0;
68116
+ }
68117
+ else {
68118
+ start = 0;
68119
+ }
68075
68120
 
68076
68121
  if(bAllCommands || ic.bInputUrlfile) start = 0;
68077
68122
 
@@ -68137,17 +68182,18 @@ class ShareLink {
68137
68182
  prevCommandStr = commandStr;
68138
68183
  }
68139
68184
 
68140
- url += tmpUrl;
68141
-
68142
68185
  // last command
68143
68186
  if(prevCommandStr) {
68144
- if(tmpUrl) url += '; ';
68145
- if(cntToggle > 0 && cntToggle %2 == 0 && prevCommandStr !== toggleStr) url += toggleStr + '; ';
68187
+ if(tmpUrl) tmpUrl += '; ';
68188
+ if(cntToggle > 0 && cntToggle %2 == 0 && prevCommandStr !== toggleStr) tmpUrl += toggleStr + '; ';
68146
68189
 
68147
- url += prevCommandStr + '|||' + ic.transformCls.getTransformationStr(transformation);
68190
+ tmpUrl += prevCommandStr + '|||' + ic.transformCls.getTransformationStr(transformation);
68148
68191
  statefile += prevCommandStr + '|||' + ic.transformCls.getTransformationStr(transformation) + '\n';
68149
68192
  }
68150
68193
 
68194
+ url += tmpUrl;
68195
+ outputCmd = tmpUrl;
68196
+
68151
68197
  statefile = statefile.replace(/!/g, Object.keys(ic.structures)[0] + '_');
68152
68198
  if((ic.bInputfile && !ic.bInputUrlfile) || (ic.bInputUrlfile && ic.bAppend) || url.length > 4000) url = statefile;
68153
68199
  let id;
@@ -68160,7 +68206,7 @@ class ShareLink {
68160
68206
  url = url.replace(new RegExp('blast_rep_id=!','g'), 'blast_rep_id=' + id + '_');
68161
68207
  }
68162
68208
 
68163
- return url;
68209
+ return (bOutputCmd) ? outputCmd : url;
68164
68210
  }
68165
68211
 
68166
68212
  getPngText() { let ic = this.icn3d; ic.icn3dui;
@@ -71404,7 +71450,7 @@ iCn3DUI.prototype.show3DStructure = async function(pdbStr) { let me = this;
71404
71450
 
71405
71451
  ic.loadCmd = 'load alignment ' + me.cfg.align + ' | parameters ' + me.cfg.inpara;
71406
71452
  me.htmlCls.clickMenuCls.setLogCmd(ic.loadCmd, true);
71407
- if(me.cfg.inpara.indexOf('atype=2') == -1) {
71453
+ if(me.cfg.inpara && me.cfg.inpara.indexOf('atype=2') == -1) {
71408
71454
  await ic.alignParserCls.downloadAlignment(me.cfg.align);
71409
71455
  }
71410
71456
  else {