Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
moodle-filter_jmol
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Nik | Klampfradler
moodle-filter_jmol
Commits
ef950a3a
Commit
ef950a3a
authored
9 years ago
by
Geoff Rowland
Browse files
Options
Downloads
Patches
Plain Diff
Fix control scripts
parent
22c510d6
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
iframe.php
+5
-6
5 additions, 6 deletions
iframe.php
with
5 additions
and
6 deletions
iframe.php
+
5
−
6
View file @
ef950a3a
...
...
@@ -67,7 +67,6 @@ $binary = false;
if
(
$filetypeend
==
'png'
||
$filetypeend
==
'gz'
||
$filetypeend
==
'pse'
)
{
$binary
=
true
;
}
$jmolfiletype
=
substr
(
$filetype
,
0
,
3
);
$filename
=
$filestem
.
'.'
.
$filetype
;
$lang
=
$_GET
[
'l'
];
$initscript
=
$_GET
[
'i'
];
...
...
@@ -93,7 +92,7 @@ if ($jmolfiletype === "cif" ) {
$loadscript
=
'set zoomLarge false; set pdbAddHydrogens true; load '
.
$pathname
.
';'
;
$menu
=
'SimpleBio.mnu'
;
$dropmenu
=
'SimpleBio'
;
}
else
if
(
$jmolfiletype
===
"pdb"
||
$filetype
===
"mcif"
)
{
}
else
if
(
$jmolfiletype
===
"pdb"
||
$
jmol
filetype
===
"mcif"
)
{
$loadscript
=
'set zoomLarge false; set pdbAddHydrogens true; load '
.
$pathname
.
'; calculate hbonds; hbonds off; ssbonds off; '
;
$loadscript
=
$loadscript
.
'display not water; select protein or nucleic; cartoons only; color structure; '
;
$loadscript
=
$loadscript
.
'set hbondsBackbone TRUE; set ssbondsbackbone TRUE; select *'
;
...
...
@@ -195,14 +194,14 @@ if ($controls !== '0') {
echo
'<option value = "select all; color cpk" '
;
echo
'title = "'
.
get_string
(
'atoms'
,
'filter_jmol'
,
true
)
.
'">'
;
echo
get_string
(
'atoms'
,
'filter_jmol'
,
true
)
.
'</option>'
;
echo
'<option value = "select
all
; color shapely" title = "'
.
get_string
(
'primary_desc'
,
'filter_jmol'
,
true
)
.
'">'
;
echo
'<option value = "select
protein or nucleic
; color shapely" title = "'
.
get_string
(
'primary_desc'
,
'filter_jmol'
,
true
)
.
'">'
;
echo
get_string
(
'primary'
,
'filter_jmol'
,
true
)
.
'</option>'
;
echo
'<option value = "select
all
; colour structure"'
;
echo
'<option value = "select
protein or nucleic
; colour structure"'
;
echo
' title = "'
.
get_string
(
'secondary_desc'
,
'filter_jmol'
,
true
)
.
'" selected = "selected">'
;
echo
get_string
(
'secondary'
,
'filter_jmol'
,
true
)
.
'</option>'
;
echo
'<option value = "select
all
; color monomer" title = "'
.
get_string
(
'tertiary_desc'
,
'filter_jmol'
,
true
)
.
'">'
;
echo
'<option value = "select
protein or nucleic
; color monomer" title = "'
.
get_string
(
'tertiary_desc'
,
'filter_jmol'
,
true
)
.
'">'
;
echo
get_string
(
'tertiary'
,
'filter_jmol'
,
true
)
.
'</option>'
;
echo
'<option value = "select
all
; color chain" title = "'
.
get_string
(
'quaternary_desc'
,
'filter_jmol'
,
true
)
.
'">'
;
echo
'<option value = "select
protein or nucleic
; color chain" title = "'
.
get_string
(
'quaternary_desc'
,
'filter_jmol'
,
true
)
.
'">'
;
echo
get_string
(
'quaternary'
,
'filter_jmol'
,
true
)
.
'</option>'
;
echo
'</select>'
;
if
(
$technol
!=
'WEBGL'
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment