-
Notifications
You must be signed in to change notification settings - Fork 32
/
ketcher.html
860 lines (835 loc) · 51 KB
/
ketcher.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<title>Ketcher</title>
<link rel="stylesheet" type="text/css" href="ketcher.css" />
<script type="text/javascript" src="prototype-min.js"></script>
<script type="text/javascript" src="raphael.js"></script>
<script type="text/javascript" src="base64.js"></script>
<script type="text/javascript" src="third_party/keymaster.js"></script>
<script type="text/javascript" src="util/common.js"></script>
<script type="text/javascript" src="util/vec2.js"></script>
<script type="text/javascript" src="util/set.js"></script>
<script type="text/javascript" src="util/map.js"></script>
<script type="text/javascript" src="util/pool.js"></script>
<script type="text/javascript" src="chem/element.js"></script>
<script type="text/javascript" src="chem/struct.js"></script>
<script type="text/javascript" src="chem/molfile.js"></script>
<script type="text/javascript" src="chem/sgroup.js"></script>
<script type="text/javascript" src="chem/struct_valence.js"></script>
<script type="text/javascript" src="chem/dfs.js"></script>
<script type="text/javascript" src="chem/cis_trans.js"></script>
<script type="text/javascript" src="chem/stereocenters.js"></script>
<script type="text/javascript" src="chem/smiles.js"></script>
<script type="text/javascript" src="chem/inchi.js"></script>
<script type="text/javascript" src="rnd/visel.js"></script>
<script type="text/javascript" src="rnd/restruct.js"></script>
<script type="text/javascript" src="rnd/restruct_rendering.js"></script>
<script type="text/javascript" src="rnd/render.js"></script>
<script type="text/javascript" src="rnd/templates.js"></script>
<script type="text/javascript" src="rnd/editor.js"></script>
<script type="text/javascript" src="rnd/elem_table.js"></script>
<script type="text/javascript" src="rnd/rgroup_table.js"></script>
<script type="text/javascript" src="ui/ui.js"></script>
<script type="text/javascript" src="ui/actions.js"></script>
<script type="text/javascript" src="reaxys/reaxys.js"></script>
<script type="text/javascript" src="ketcher.js"></script>
<script type="text/javascript">
window.onload=function() {
// Parse URL parameters
var param_string = document.location.search;
if (param_string.length > 0)
param_string = param_string.substring(1);
var param_list = param_string.split(/&/g);
var param_hash = {};
for (var i = 0; i < param_list.length; ++i) {
var pair = param_list[i].split('=', 2);
param_hash[pair[0]] = pair.length != 2 || unescape(pair[1]);
}
if (param_hash.ketcher_maximize) {
$('ketcher_div').removeClassName('ketcherDivMaxSize');
}
// Initialize ketcher
ketcher.init({ketcher_api_url: param_hash.ketcher_api_url});
};
</script>
</head>
<body>
<div id="ketcher_div" class="ketcherDivMaxSize">
<table id="ketcher_window">
<tr align="center" id="main_toolbar">
<td style="width:36px"><div style="position:relative"><img class="sideButton modeButton stateButton" id="selector" selid="selector_lasso" src="icons/png/selection/lasso.sidebar.png" alt="" title="Lasso Selection Tool (Esc)" /><img class="dropdownButton" id="selector_dropdown" src="icons/png/main/dropdown.png" alt="" /></div></td>
<td class="toolDelimiter"></td>
<!--td style="width:36px"><object type="image/svg+xml" width="28" height="28" data="svg/document-new28x28.svg"></object></td-->
<td class="toolButtonCell toolButton" id="new"><img src="icons/png/main/document-new.png" alt="" title="Clear Canvas (Ctrl+N)" /></td>
<td class="toolButtonCell toolButton" id="open"><img src="icons/png/main/document-open.png" alt="" title="Open... (Ctrl+O)" /></td>
<td class="toolButtonCell toolButton" id="save"><img src="icons/png/main/document-save-as.png" alt="" title="Save As... (Ctrl+S)" /></td>
<td class="toolDelimiter"></td>
<td class="toolButtonCell toolButton buttonDisabled" id="undo"><img src="icons/png/main/edit-undo.png" alt="" title="Undo (Ctrl+Z)" /></td>
<td class="toolButtonCell toolButton buttonDisabled" id="redo"><img src="icons/png/main/edit-redo.png" alt="" title="Redo (Ctrl+Y)" /></td>
<td class="toolButtonCell toolButton buttonDisabled" id="cut"><img src="icons/png/main/edit-cut.png" alt="" title="Cut (Ctrl+X)" /></td>
<td class="toolButtonCell toolButton buttonDisabled" id="copy"><img src="icons/png/main/edit-copy.png" alt="" title="Copy (Ctrl+C)" /></td>
<td class="toolButtonCell toolButton buttonDisabled" id="paste"><img src="icons/png/main/edit-paste.png" alt="" title="Paste (Ctrl+V)" /></td>
<td class="toolDelimiter"></td>
<td class="toolButtonCell toolButton" id="zoom_in"><img src="icons/png/main/view-zoom-in.png" alt="" title="Zoom In (+)" /></td>
<td class="toolButtonCell toolButton" id="zoom_out"><img src="icons/png/main/view-zoom-out.png" alt="" title="Zoom Out (-)" /></td>
<td id="zoom_list_cell" style="width:95px"><select id="zoom_list"></select></td>
<td class="toolDelimiter"></td>
<td class="toolButtonCell toolButton serverRequired" id="clean_up"><img title="Clean Up (Ctrl+L)" alt="" src="icons/png/main/layout.png" /></td>
<td class="toolButtonCell toolButton serverRequired" id="aromatize"><img title="Aromatize" alt="" src="icons/png/main/arom.png" /></td>
<td class="toolButtonCell toolButton serverRequired" id="dearomatize"><img title="Dearomatize" alt="" src="icons/png/main/dearom.png" /></td>
<td style="width:100%"></td>
<td id="toolText" style="width:32px"></td>
<td class="toolDelimiter"></td>
<td style="width:1px" rowspan="15"></td>
<td style="width:36px;padding:0 2px 0 0;"><a href="#" onclick="ui.showDialog('about_dialog')"><img src="icons/png/main/logo.png" alt="" title="GGA Software Services" /></a></td>
</tr>
<tr align="center" class="sideButtonCell">
<td><img class="sideButton modeButton" id="select_erase" src="icons/png/main/edit-clear.png" alt="" title="Erase" /></td>
<td colspan="21" rowspan="14"><div id="client_area"></div></td>
<td><div class="sideButton modeButton" id="atom_h" title="H Atom (H)"></div></td>
</tr>
<tr align="center" class="sideButtonCell">
<td>
<div style="position:relative">
<img class="sideButton modeButton stateButton" id="bond" selid="bond_single" src="icons/png/bond/bond_single.sidebar.png" alt="" title="Single Bond (1)" />
<img class="dropdownButton" id="bond_dropdown" src="icons/png/main/dropdown.png" alt="" />
</div>
</td>
<td><div class="sideButton modeButton" id="atom_c" title="C Atom (C)"></div></td>
</tr>
<tr align="center" class="sideButtonCell">
<td>
<div style="position:relative">
<img class="sideButton modeButton" id="chain" src="icons/png/main/chain.png" alt="" title="Chain Tool" />
</div>
</td>
<td><div class="sideButton modeButton" id="atom_n" title="N Atom (N)"></div></td>
</tr>
<tr align="center" class="sideButtonCell">
<td>
<div style="position:relative">
<img class="sideButton modeButton stateButton" id="template" selid="template_0" src="icons/png/template/template0.sidebar.png" alt="" title="Benzene (T)" />
<img class="dropdownButton" id="template_dropdown" src="icons/png/main/dropdown.png" alt="" />
</div>
</td>
<td><div class="sideButton modeButton" id="atom_o" title="O Atom (O)"></div></td>
</tr>
<tr align="center" class="sideButtonCell">
<td>
<div style="position:relative">
<img class="sideButton modeButton" id="charge_plus" src="icons/png/main/charge_plus.png" alt="" title="Charge Plus (5)" />
</div>
</td>
<td><div class="sideButton modeButton" id="atom_s" title="S Atom (S)"></div></td>
</tr>
<tr align="center" class="sideButtonCell">
<td>
<div style="position:relative">
<img class="sideButton modeButton" id="charge_minus" src="icons/png/main/charge_minus.png" alt="" title="Charge Minus (5)" />
</div>
</td>
<td><div class="sideButton modeButton" id="atom_p" title="P Atom (P)"></div></td>
</tr>
<tr align="center" class="sideButtonCell">
<td><div style="position:relative"><img class="sideButton modeButton stateButton" id="reaction" selid="reaction_arrow" src="icons/png/reaction/reaction-arrow.sidebar.png" alt="" title="Reaction Arrow Tool" /><img class="dropdownButton" id="reaction_dropdown" src="icons/png/main/dropdown.png" alt="" /></div></td>
<td><div class="sideButton modeButton" id="atom_f" title="F Atom (F)"></div></td>
</tr>
<tr align="center" class="sideButtonCell">
<td><img class="sideButton modeButton" id="sgroup" src="icons/png/main/sgroup.png" alt="" title="S-Group (Ctrl+G)" /></td>
<td><div class="sideButton modeButton" id="atom_cl" title="Cl Atom (Shift+C)"></div></td>
</tr>
<tr align="center" class="sideButtonCell">
<td><div style="position:relative"><img class="sideButton modeButton stateButton" id="rgroup" selid="rgroup_label" src="icons/png/rgroup/rgroup-label.sidebar.png" alt="" title="R-Group Tool (Shift+R)" /><img class="dropdownButton" id="rgroup_dropdown" src="icons/png/main/dropdown.png" alt="" /></div></td>
<td><div class="sideButton modeButton" id="atom_br" title="Br Atom (Shift+B)"></div></td>
</tr>
<tr align="center" class="sideButtonCell">
<td><div style="position:relative"><img class="sideButton modeButton stateButton" id="transform" selid="transform_rotate" src="icons/png/transform/transform-rotate.sidebar.png" alt="" title="Rotate Tool" /><img class="dropdownButton" id="transform_dropdown" src="icons/png/main/dropdown.png" alt="" /></div></td>
<td><div class="sideButton modeButton" id="atom_i" title="I Atom (I)"></div></td>
</tr>
<tr align="center" class="sideButtonCell serverRequired">
<td>
<div style="position:relative">
<img class="sideButton modeButton stateButton" id="customtemplate" selid="customtemplate_0" src="icons/png/customtemplate/customtemplate0.sidebar.png" alt="" title="" />
<img class="dropdownButton" id="customtemplate_dropdown" src="icons/png/main/dropdown.png" alt="" />
</div>
</td>
<td><div class="sideButton modeButton" id="atom_table" title="Periodic table"></div></td>
</tr>
<tr align="center" class="sideButtonCell">
<td></td>
<td><div class="sideButton modeButton" id="atom_reagenerics" title="Reaxys Generics"></div></td>
</tr>
<tr align="center">
<td></td>
<td></td>
</tr>
</table>
<div class="dropdownList" id="selector_dropdown_list" style="display:none">
<table>
<tr class="dropdownListItem" id="selector_lasso" title="Lasso Selection Tool (Esc)">
<td><div id="select_lasso_todo"><img class="dropdownIcon" src="icons/png/selection/lasso.dropdown.png" alt="" /></div>Lasso Selection Tool</td>
</tr>
<tr class="dropdownListItem" id="selector_square" title="Rectangle Selection Tool (Esc)">
<td><div id="select_square_todo"><img class="dropdownIcon" src="icons/png/selection/rectangle.dropdown.png" alt="" /></div>Rectangle Selection Tool</td>
</tr>
<tr class="dropdownListItem" id="selector_fragment" title="Fragment Selection Tool (Esc)">
<td><div id="select_fragment"><img class="dropdownIcon" src="icons/png/selection/structure.dropdown.png" alt="" /></div>Fragment Selection Tool</td>
</tr>
</table>
</div>
<div class="dropdownList renderFirst" id="bond_dropdown_list" style="display:none">
<table>
<tr class="dropdownListItem" id="bond_single" title="Single Bond (1)">
<td><div id="bond_single_preview"><img class="dropdownIcon" src="icons/png/bond/bond_single.dropdown.png" alt="" /></div>Single</td>
</tr>
<tr class="dropdownListItem" id="bond_double" title="Double Bond (2)">
<td><div id="bond_double_preview"><img class="dropdownIcon" src="icons/png/bond/bond_double.dropdown.png" alt="" /></div>Double</td>
</tr>
<tr class="dropdownListItem" id="bond_triple" title="Triple Bond (3)">
<td><div id="bond_triple_preview"><img class="dropdownIcon" src="icons/png/bond/bond_triple.dropdown.png" alt="" /></div>Triple</td>
</tr>
<tr>
<td class="dropdownListDelimiter"></td>
</tr>
<tr class="dropdownListItem" id="bond_up" title="Single Up Bond (1)">
<td><div id="bond_up_preview"><img class="dropdownIcon" src="icons/png/bond/bond_up.dropdown.png" alt="" /></div>Single Up</td>
</tr>
<tr class="dropdownListItem" id="bond_down" title="Single Down Bond (1)">
<td><div id="bond_down_preview"><img class="dropdownIcon" src="icons/png/bond/bond_down.dropdown.png" alt="" /></div>Single Down</td>
</tr>
<tr class="dropdownListItem" id="bond_updown" title="Single Up/Down Bond (1)">
<td><div id="bond_updown_preview"><img class="dropdownIcon" src="icons/png/bond/bond_updown.dropdown.png" alt="" /></div>Single Up/Down</td>
</tr>
<tr class="dropdownListItem" id="bond_crossed" title="Double Cis/Trans Bond (2)">
<td><div id="bond_crossed_preview"><img class="dropdownIcon" src="icons/png/bond/bond_crossed.dropdown.png" alt="" /></div>Double Cis/Trans</td>
</tr>
<tr>
<td class="dropdownListDelimiter"></td>
</tr>
<tr class="dropdownListItem" id="bond_any" title="Any Bond (0)">
<td><div id="bond_any_preview"><img class="dropdownIcon" src="icons/png/bond/bond_any.dropdown.png" alt="" /></div>Any</td>
</tr>
<tr class="dropdownListItem" id="bond_aromatic" title="Aromatic Bond (4)">
<td><div id="bond_aromatic_preview"><img class="dropdownIcon" src="icons/png/bond/bond_aromatic.dropdown.png" alt="" /></div>Aromatic</td>
</tr>
<tr class="dropdownListItem" id="bond_singledouble" title="Single/Double Bond">
<td><div id="bond_singledouble_preview"><img class="dropdownIcon" src="icons/png/bond/bond_singledouble.dropdown.png" alt="" /></div>Single/Double</td>
</tr>
<tr class="dropdownListItem" id="bond_singlearomatic" title="Single/Aromatic Bond">
<td><div id="bond_singlearomatic_preview"><img class="dropdownIcon" src="icons/png/bond/bond_singlearomatic.dropdown.png" alt="" /></div>Single/Aromatic</td>
</tr>
<tr class="dropdownListItem" id="bond_doublearomatic" title="Double/Aromatic Bond">
<td><div id="bond_doublearomatic_preview"><img class="dropdownIcon" src="icons/png/bond/bond_doublearomatic.dropdown.png" alt="" /></div>Double/Aromatic</td>
</tr>
</table>
</div>
<div class="dropdownList renderFirst" id="template_dropdown_list" style="display:none">
<table>
<tr class="dropdownListItem" id="template_0" title="Benzene (T)">
<td><div id="template_0_preview"><img class="dropdownIcon" src="icons/png/template/template0.dropdown.png" alt="" /></div>Benzene</td>
</tr>
<tr class="dropdownListItem" id="template_1" title="Cyclopentadiene (T)">
<td><div id="template_1_preview"><img class="dropdownIcon" src="icons/png/template/template1.dropdown.png" alt="" /></div>Cyclopentadiene</td>
</tr>
<tr class="dropdownListItem" id="template_2" title="Cyclohexane (T)">
<td><div id="template_2_preview"><img class="dropdownIcon" src="icons/png/template/template2.dropdown.png" alt="" /></div>Cyclohexane</td>
</tr>
<tr class="dropdownListItem" id="template_3" title="Cyclopentane (T)">
<td><div id="template_3_preview"><img class="dropdownIcon" src="icons/png/template/template3.dropdown.png" alt="" /></div>Cyclopentane</td>
</tr>
<tr class="dropdownListItem" id="template_4" title="Cyclopropane (T)">
<td><div id="template_4_preview"><img class="dropdownIcon" src="icons/png/template/template4.dropdown.png" alt="" /></div>Cyclopropane</td>
</tr>
<tr class="dropdownListItem" id="template_5" title="Cyclobutane (T)">
<td><div id="template_5_preview"><img class="dropdownIcon" src="icons/png/template/template5.dropdown.png" alt="" /></div>Cyclobutane</td>
</tr>
<tr class="dropdownListItem" id="template_6" title="Cycloheptane (T)">
<td><div id="template_6_preview"><img class="dropdownIcon" src="icons/png/template/template6.dropdown.png" alt="" /></div>Cycloheptane</td>
</tr>
<tr class="dropdownListItem" id="template_7" title="Cyclooctane (T)">
<td><div id="template_7_preview"><img class="dropdownIcon" src="icons/png/template/template7.dropdown.png" alt="" /></div>Cyclooctane</td>
</tr>
</table>
</div>
<div class="dropdownList renderFirst" id="customtemplate_dropdown_list" style="display:none">
<table>
<tr class="dropdownListItem" id="customtemplate_0" title="Benzene (T)">
<td><div id="customtemplate_0_preview"><img class="dropdownIcon" src="icons/png/customtemplate/customtemplate0.dropdown.png" alt="" /></div>Benzene</td>
</tr>
</table>
</div>
<div class="dropdownList" id="reaction_dropdown_list" style="display:none">
<table>
<tr class="dropdownListItem" id="reaction_arrow" title="Reaction Arrow Tool">
<td><div id="reaction_arrow_todo"><img class="dropdownIcon" src="icons/png/reaction/reaction-arrow.dropdown.png" alt="" /></div>Reaction Arrow Tool</td>
</tr>
<tr class="dropdownListItem" id="reaction_plus" title="Reaction Plus Tool">
<td><div id="reaction_plus_todo"><img class="dropdownIcon" src="icons/png/reaction/reaction-plus.dropdown.png" alt="" /></div>Reaction Plus Tool</td>
</tr>
<tr class="dropdownListItem serverRequired" id="reaction_automap" title="Reaction Auto-Mapping Tool">
<td><div id="reaction_automap_todo"><img class="dropdownIcon" src="icons/png/reaction/reaction-automap.dropdown.png" alt="" /></div>Reaction Auto-Mapping</td>
</tr>
<tr class="dropdownListItem" id="reaction_map" title="Reaction Mapping Tool">
<td><div id="reaction_map_todo"><img class="dropdownIcon" src="icons/png/reaction/reaction-map.dropdown.png" alt="" /></div>Reaction Mapping Tool</td>
</tr>
<tr class="dropdownListItem" id="reaction_unmap" title="Reaction Unmappping Tool">
<td><div id="reaction_unmap_todo"><img class="dropdownIcon" src="icons/png/reaction/reaction-unmap.dropdown.png" alt="" /></div>Reaction Unmapping Tool</td>
</tr>
</table>
</div>
<div class="dropdownList" id="rgroup_dropdown_list" style="display:none">
<table>
<tr class="dropdownListItem" id="rgroup_label" title="R-Group Label Tool (Shift+R)">
<td><div id="rgroup_label_todo"><img class="dropdownIcon" src="icons/png/rgroup/rgroup-label.dropdown.png" alt="" /></div>R-Group Label Tool</td>
</tr>
<tr class="dropdownListItem" id="rgroup_fragment" title="R-Group Fragment Tool (Shift+R)">
<td><div id="rgroup_fragment_todo"><img class="dropdownIcon" src="icons/png/rgroup/rgroup-fragment.dropdown.png" alt="" /></div>R-Group Fragment Tool</td>
</tr>
<tr class="dropdownListItem" id="rgroup_attpoints" title="Attachment Point Tool (Shift+R)">
<td><div id="rgroup_attpoints_todo"><img class="dropdownIcon" src="icons/png/rgroup/rgroup-attpoints.dropdown.png" alt="" /></div>Attachment Point Tool</td>
</tr>
</table>
</div>
<div class="dropdownList" id="transform_dropdown_list" style="display:none">
<table>
<tr class="dropdownListItem" id="transform_rotate" title="Rotate Tool">
<td><div id="transform_rotate_todo"><img class="dropdownIcon" src="icons/png/transform/transform-rotate.dropdown.png" alt="" /></div>Rotate Tool</td>
</tr>
<tr class="dropdownListItem" id="transform_flip_h" title="Horizontal Flip">
<td><div id="transform_flip_h_todo"><img class="dropdownIcon" src="icons/png/transform/transform-flip-h.dropdown.png" alt="" /></div>Horizontal Flip</td>
</tr>
<tr class="dropdownListItem" id="transform_flip_v" title="Vertical Flip">
<td><div id="transform_flip_v_todo"><img class="dropdownIcon" src="icons/png/transform/transform-flip-v.dropdown.png" alt="" /></div>Vertical Flip</td>
</tr>
</table>
</div>
<input id="input_label" type="text" maxlength="4" size="4" style="display:none;" />
<div id="window_cover" style="width:0;height:0;display:none"><div id="loading" style="display:none"></div></div>
<div class="dialogWindow fileDialog" id="open_file" style="display:none;">
<div style="width:100%">
<div>
Open File
</div>
<div style="height:0.5em"></div>
<div class="serverRequired" style="font-size:small">
<input type="radio" id="radio_open_from_input" name="input_source" checked>Input</input>
<input type="radio" id="radio_open_from_file" name="input_source">File</input>
</div>
<div class="serverRequired" style="font-size:small" align="left">
<input type="checkbox" id="checkbox_open_copy" name="open_mode">Load as a fragment and copy to the Clipboard</input>
</div>
<div class="serverRequired" id="open_from_file">
<form id="upload_mol" style="margin-top:4px" action="open" enctype="multipart/form-data" target="buffer_frame" method="post">
<input type="file" name="filedata" id="molfile_path" />
<div style="margin-top:0.5em;text-align:center">
<input id="upload_cancel" type="button" value="Cancel" />
<input type="submit" value="OK" />
</div>
</form>
</div>
<div style="margin:4px;" id="open_from_input">
<textarea class="chemicalText" id="input_mol" wrap="off"></textarea>
<div style="margin-top:0.5em;text-align:center">
<input id="read_cancel" type="button" value="Cancel" />
<input id="read_ok" type="submit" value="OK" />
</div>
</div>
</div>
</div>
<div class="dialogWindow fileDialog" id="save_file" style="display:none;">
<div style="width:100%">
<div>
Save File
</div>
<div style="height:0.5em"></div>
<div>
<label>Format:</label>
<select id="file_format">Format:
<option value="mol">MDL/Symyx Molfile</option>
<option value="smi">Daylight SMILES</option>
<option id="file_format_inchi" value="inchi">InChI String</option>
<!--option value="png">Portable Network Graphics PNG</option>
<option value="svg">Scalable Vector Graphics SVG</option-->
</select>
</div>
<div style="margin:4px;">
<textarea class="chemicalText" id="output_mol" wrap="off" readonly></textarea>
<form id="download_mol" style="margin-top:0.5em;text-align:center" action="save" enctype="multipart/form-data" target="_self" method="post">
<input type="hidden" id="mol_data" name="filedata" />
<input type="submit" class="serverRequired" value="Save..." />
<input id="save_ok" type="button" value="Close" />
</form>
</div>
</div>
</div>
<div class="dialogWindow propDialog" id="atom_properties" style="display:none;">
<div style="width:100%">
<div>
Atom Properties
</div>
<div style="height:0.5em"></div>
<table style="text-align:left">
<tr>
<td>
<label>Label:</label>
</td>
<td>
<input id="atom_label" type="text" maxlength="2" size="3" />
</td>
<td rowspan="5" style="width:5px">
</td>
<td>
<label>Number:</label>
</td>
<td>
<input id="atom_number" type="text" readonly="readonly" maxlength="3" size="3" />
</td>
<td rowspan="5" style="width:10px">
</td>
<td colspan="2" style="background-color: #D7D7D7">
Query specific
</td>
</tr>
<tr>
<td>
<label>Charge:</label>
</td>
<td>
<input id="atom_charge" type="text" maxlength="3" size="3" />
</td>
<td>
<label>Valency:</label>
</td>
<td>
<select id="atom_valence" style="width:100%">
<option value=""></option>
<option value="0">0</option>
<option value="1">I</option>
<option value="2">II</option>
<option value="3">III</option>
<option value="4">IV</option>
<option value="5">V</option>
<option value="6">VI</option>
<option value="7">VII</option>
<option value="8">VIII</option>
</select>
</td>
<td>
<label>Ring bond count:</label>
</td>
<td>
<select id="atom_ringcount" style="width:100%">
<option value="0"></option>
<option value="-2">As drawn</option>
<option value="-1">0</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
</select>
</td>
</tr>
<tr>
<td>
<label>Isotope:</label>
</td>
<td>
<input id="atom_isotope" type="text" maxlength="3" size="3" />
</td>
<td>
<label>Radical:</label>
</td>
<td>
<select id="atom_radical">
<option value="0"></option>
<option value="2">Monoradical</option>
<option value="1">Diradical (singlet)</option>
<option value="3">Diradical (triplet)</option>
</select>
</td>
<td>
<label>H count:</label>
</td>
<td>
<select id="atom_hcount" style="width:100%">
<option value="0"></option>
<option value="1">0</option>
<option value="2">1</option>
<option value="3">2</option>
<option value="4">3</option>
<option value="5">4</option>
</select>
</td>
</tr>
<tr>
<td colspan="5" style="background-color: #D7D7D7">
Reaction flags
</td>
<td>
<label>Substitution count:</label>
</td>
<td>
<select id="atom_substitution" style="width:100%">
<option value="0"></option>
<option value="-2">As drawn</option>
<option value="-1">0</option>
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
<option value="6">6</option>
</select>
</td>
</tr>
<tr>
<td>
<label>Inversion:</label>
</td>
<td>
<select id="atom_inversion">
<option value="0"></option>
<option value="1">Inverts</option>
<option value="2">Retains</option>
</select>
</td>
<td>
<label>Exact:</label>
</td>
<td>
<select id="atom_exactchange" style="width:100%">
<option value="0"></option>
<option value="1">Exact change</option>
</select>
</td>
<td>
<label>Unsaturation:</label>
</td>
<td>
<select id="atom_unsaturation">
<option value="0"></option>
<option value="1">Unsaturated</option>
</select>
</td>
</tr>
</table>
<div style="margin-top:0.5em">
<input id="atom_prop_cancel" type="button" value="Cancel" />
<input id="atom_prop_ok" type="button" value="OK" />
</div>
</div>
</div>
<div class="dialogWindow propDialog" id="atom_attpoints" style="display:none;">
<div style="width:100%">
<div>
Attachment Points
</div>
<table style="text-align:left">
<tr>
<td>
<input type="checkbox" id="atom_ap1">
</td>
<td>
Primary attachment point
</td>
</tr>
<tr>
<td>
<input type="checkbox" id="atom_ap2">
</td>
<td>
Secondary attachment point
</td>
</tr>
</table>
<div style="height:0.5em"></div>
<div style="margin-top:0.5em">
<input id="atom_attpoints_cancel" type="button" value="Cancel" />
<input id="atom_attpoints_ok" type="button" value="OK" />
</div>
</div>
</div>
<div class="dialogWindow propDialog" id="bond_properties" style="display:none;">
<div style="width:100%">
<div>
Bond Properties
</div>
<div style="height:0.5em"></div>
<table style="text-align:left">
<tr>
<td>
<label>Type:</label>
</td>
<td>
<select id="bond_type" style="width:100%">
<option value="single">Single</option>
<option value="up">Single Up</option>
<option value="down">Single Down</option>
<option value="updown">Single Up/Down</option>
<option value="double">Double</option>
<option value="crossed">Double Cis/Trans</option>
<option value="triple">Triple</option>
<option value="aromatic">Aromatic</option>
<option value="any">Any</option>
<option value="singledouble">Single/Double</option>
<option value="singlearomatic">Single/Aromatic</option>
<option value="doublearomatic">Double/Aromatic</option>
</select>
</td>
</tr>
<tr>
<td>
<label>Topology:</label>
</td>
<td>
<select id="bond_topology" style="width:100%">
<option value="0">Either</option>
<option value="1">Ring</option>
<option value="2">Chain</option>
</select>
</td>
</tr>
<tr>
<td>
<label>Reacting Center:</label>
</td>
<td>
<select id="bond_center">
<option value="0">Unmarked</option>
<option value="-1">Not center</option>
<option value="1">Center</option>
<option value="2">No change</option>
<option value="4">Made/broken</option>
<option value="8">Order changes</option>
<option value="12">Made/broken and changes</option>
<!--option value="5">Order changes</option>
<option value="9">Order changes</option>
<option value="13">Order changes</option-->
</select>
</td>
</tr>
</table>
<div style="margin-top:0.5em">
<input id="bond_prop_cancel" type="button" value="Cancel" />
<input id="bond_prop_ok" type="button" value="OK" />
</div>
</div>
</div>
<div class="dialogWindow sgroupDialog" id="sgroup_properties" style="display:none;">
<div style="width:100%">
<div>
S-Group Properties
</div>
<div style="height:0.5em"></div>
<table style="text-align:left">
<tr>
<td>
<label>Type:</label>
</td>
<td>
<select id="sgroup_type">
<option value="GEN">Generic</option>
<option value="MUL">Multiple group</option>
<option value="SRU">SRU polymer</option>
<option value="SUP">Superatom</option>
<option value="DAT">Data</option>
</select>
</td>
</tr>
<tr class="generalSGroup">
<td>
<label>Connection:</label>
</td>
<td>
<select id="sgroup_connection">
<option value="ht">Head-to-tail</option>
<option value="hh">Head-to-head</option>
<option value="eu">Either unknown</option>
</select>
</td>
</tr>
<tr class="generalSGroup">
<td>
<label>Label (subscript):</label>
</td>
<td>
<input id="sgroup_label" type="text" maxlength="15" size="15" />
</td>
</tr>
<tr class="dataSGroup">
<td>
<label>Field name:</label>
</td>
<td>
<input id="sgroup_field_name" type="text" maxlength="30" size="30" />
</td>
</tr>
<tr class="dataSGroup">
<td>
<label>Field value:</label>
</td>
</tr>
<tr class="dataSGroup">
<td colspan="2">
<textarea class="dataSGroupValue" id="sgroup_field_value"></textarea>
</td>
</tr>
<tr class="dataSGroup">
<td colspan="2">
<input type="radio" id="sgroup_pos_absolute" name="data_field_pos" checked>Absolute</input>
<input type="radio" id="sgroup_pos_relative" name="data_field_pos">Relative</input>
<input type="radio" id="sgroup_pos_attached" name="data_field_pos">Attached</input>
</td>
</tr>
</table>
<div style="margin-top:0.5em">
<input id="sgroup_prop_cancel" type="button" value="Cancel" />
<input id="sgroup_prop_ok" type="button" value="OK" />
</div>
</div>
</div>
<div class="dialogWindow automapDialog" id="automap_properties" style="display:none;">
<div style="width:100%">
<div>
Reaction Auto-Mapping Parameter
</div>
<div style="height:0.5em"></div>
<table style="text-align:left">
<tr>
<td>
<label>Mode:</label>
</td>
<td>
<select id="automap_mode">
<option value="discard">Discard</option>
<option value="keep">Keep</option>
<option value="alter">Alter</option>
<option value="clear">Clear</option>
</select>
</td>
</tr>
</table>
<div style="margin-top:0.5em">
<input id="automap_cancel" type="button" value="Cancel" />
<input id="automap_ok" type="button" value="OK" />
</div>
</div>
</div>
<div class="dialogWindow elemTableDialog" id="elem_table" style="display:none;">
<div>
<div>
Periodic table
</div>
<div style="height:0.5em"></div>
<div id="elem_table_area"></div>
<div align="left">
<input type="radio" id="elem_table_single" name="atom_list"
onchange="if (!Prototype.Browser.IE) ui.elem_table_obj.setMode('single')"
onclick="if (Prototype.Browser.IE) ui.elem_table_obj.setMode('single')"
>Single</input> <br />
<input type="radio" id="elem_table_list" name="atom_list"
onchange="if (!Prototype.Browser.IE) ui.elem_table_obj.setMode('list')"
onclick="if (Prototype.Browser.IE) ui.elem_table_obj.setMode('list')"
>List</input> <br />
<input type="radio" id="elem_table_notlist" name="atom_list"
onchange="if (!Prototype.Browser.IE) ui.elem_table_obj.setMode('notlist')"
onclick="if (Prototype.Browser.IE) ui.elem_table_obj.setMode('notlist')"
>Not List</input>
</div>
<div style="margin-top:0.5em">
<input id="elem_table_cancel" type="button" value="Cancel" />
<input id="elem_table_ok" type="button" value="OK" />
</div>
</div>
</div>
<div class="dialogWindow rgroupTableDialog" id="rgroup_table" style="display:none;">
<div>
<div>
R-Group
</div>
<div style="height:0.5em"></div>
<div id="rgroup_table_area"></div>
<div style="margin-top:0.5em">
<input id="rgroup_table_cancel" type="button" value="Cancel" />
<input id="rgroup_table_ok" type="button" value="OK" />
</div>
</div>
</div>
<div class="dialogWindow rlogicTableDialog" id="rlogic_table" style="display:none;">
<div style="width:100%">
<div>
R-Group Logic
</div>
<div style="height:0.5em"></div>
<table style="text-align:left">
<tr>
<td>
<label for="rlogic_occurrence">Occurrence:</label>
<input id="rlogic_occurrence" type="text" maxlength="50" size="10" />
</td>
<td>
<label for="rlogic_resth">RestH:</label>
<select id="rlogic_resth">
<option value="0">Off</option>
<option value="1">On</option>
</select>
</td>
<td>
<label for="rlogic_if">Condition:</label>
<select id="rlogic_if">
<option value="0">Always</option>
</select>
</td>
</tr>
</table>
<div style="margin-top:0.5em">
<input id="rlogic_cancel" type="button" value="Cancel" />
<input id="rlogic_ok" type="button" value="OK" />
</div>
</div>
</div>
<div class="dialogWindow reagenericsTableDialog" id="reagenerics_table" style="display:none;">
<div>
<div>
Reaxys Generics
</div>
<div style="height:0.5em"></div>
<div id="reagenerics_table_area"></div>
<div style="margin-top:0.5em">
<input id="reagenerics_table_cancel" type="button" value="Cancel" />
<input id="reagenerics_table_ok" type="button" value="OK" disabled />
</div>
</div>
</div>
<div class="aboutDialog" id="about_dialog" style="display:none;">
<div>
<div>
About
</div>
<div style="height:0.5em"></div>
<div>
<a href="http://ggasoftware.com/opensource/ketcher#overview" target="_blank"><img src="icons/logo_small01.jpg"></img></a>
</div>
<table style="width:100%" cellspacing="5">
<tr>
<td style="float:left"><a href="http://ggasoftware.com/opensource/ketcher#overview" target="_blank" style="color:#0000CC">Ketcher</a></td>
<td style="float:right" id="ketcher_version">Version 1.0</td>
</tr>
<tr>
<td style="float:left"><a href="http://ggasoftware.com" target="_blank" style="color:#0000CC">GGA Software Services</a></td>
<td style="float:right"><a href="http://ggasoftware.com/opensource/ketcher#feedback" target="_blank" style="color:#0000CC">Feedback</a></td>
</tr>
</table>
<div style="margin:4px;">
<button onclick="ui.hideDialog('about_dialog')">Close</button>
</div>
</div>
</div>
<iframe name="buffer_frame" id="buffer_frame" src="about:blank" style="display:none">
</iframe>
</div>
</body>
</html>