File: start.html

package info (click to toggle)
python-pdbfixer 1.9-7
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,752 kB
  • sloc: xml: 4,240; python: 1,459; sh: 47; makefile: 19
file content (39 lines) | stat: -rw-r--r-- 1,669 bytes parent folder | download | duplicates (2)
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
<script>
function enableInputs() {
    if (document.getElementById("localtype").checked) {
        document.getElementById("pdbfile").disabled = false;
        document.getElementById("pdbid").disabled = true;
        document.getElementById("submitButton").disabled = (document.getElementById("pdbfile").value == "");
    }
    else {
        document.getElementById("pdbfile").disabled = true;
        document.getElementById("pdbid").disabled = false;
        document.getElementById("submitButton").disabled = (document.getElementById("pdbid").value.length != 4);
    }
}
</script>
<noscript>
    <div style='color:red'>
        <h1>Javascript Disabled</h1>
        PDBFixer requires Javascript to operate.  Please enable Javascript in your browser, then reload this page.
    </div>
</noscript>
<h1>Welcome To PDBFixer!</h1>
Select a PDB file to load.  It will be analyzed for problems.
<p>
<form id="mainform" method="post" action="/" enctype="multipart/form-data">
<input type="radio" name="type" id="localtype" value="local" onchange="enableInputs()" checked>Load a local file
<p style="margin-left:50px">
PDB File: <input type="file" id="pdbfile" name="pdbfile" onchange="enableInputs()"/>
</p>
<input type="radio" name="type" id="remotetype" value="remote" onchange="enableInputs()">Download a file from RCSB
<p style="margin-left:50px">
PDB Identifier: <input type="text" id="pdbid" name="pdbid" size="4" onchange="enableInputs()" onkeyup="enableInputs()" oninput="enableInputs()" disabled>
</p>
<input type="button" id="submitButton" value="Analyze File" onclick="submitWithSpinner()" disabled/>
</form>
<script>
setCurrentStep(1)
</script>
</body>
</html>