This repository has been archived by the owner on Jun 6, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
executable file
·133 lines (120 loc) · 4.67 KB
/
index.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>JATS4R Validator</title>
<link rel='stylesheet' href='validate.css' />
<link rel='stylesheet' href='assets/prism.css' />
<link rel="stylesheet" href="lib/chosen/chosen.css">
</head>
<body>
<h1><img src='assets/JATS4R.png' height='30px'/> Validator</h1>
<form id='form'>
<table>
<tbody>
<tr>
<th><label for='level_select'>Report level:</label></th>
<td>
<select id='level_select' name='level_select'>
<option value="errors" selected='selected'>Errors</option>
<option value="warnings">Warnings</option>
<option value="info">Information</option>
</select>
</td>
</tr>
<tr>
<th><label for='choose_input'>JATS document URL:</label></th>
<td>
<!-- FIXME: weird, when I remove this invisible input element,
a change in jats_url causes a page reload. -->
<input id='foo' style='display: none;'/>
<input id='jats_url' type='text' size='60'/>
</td>
<td>
<select id='sample_select'
data-placeholder="Sample articles ..." tabindex="1">
<option value=''></option>
<option value='samples/PMC4524613.xml'>PLoS One article</option>
<option value='samples/elife-e07025.xml'>eLife article</option>
<option value='samples/peerj-1000.xml'>PeerJ article</option>
<option value='samples/minimal.xml'>Minimal valid article</option>
<option value='samples/math.xml'>Math test article</option>
<option value='samples/samplesmall-pub1.xml'>Sample from Tag
Library</option>
<option value='https://peerj.com/articles/1000'>PeerJ from Web</option>
</select>
</td>
</tr>
<tr>
<th><label for='choose_input'>or JATS file:</label></th>
<td>
<input id='choose_input' type='file'/>
</td>
</tr>
</tbody>
</table>
<div class="files_wrapper">
<div class="xmlarea_file" id="drop_div">or drop your JATS file here</div>
</div>
<p>
<input id='revalidate'
type='button'
value='Revalidate'
disabled='disabled'/>
</p>
</form>
<div id='spinner'></div>
<div id='status' class='status-busy'>
Loading…
</div>
<!--
<div class='status-neutral'>
Neutral
</div>
<div class='status-good'>
Good
</div>
<div class='status-info'>
Info
</div>
<p class='info'>Info message</p>
<div class='status-warn'>
Warn
</div>
<p class='warn'>Warn message</p>
<div class='status-error'>
Error
</div>
<p class='error'>Error message</p>
-->
<div id="results" style='display: none;'></div>
<div id="listing-div" style='display: none;'></div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
<script src='lib/spin.min.js'></script>
<script src="assets/fetch.js"></script>
<script src="assets/es6-promise.min.js"></script>
<script src="assets/xmltool.js"></script>
<script src="lib/Saxonce/Saxonce.nocache.js"></script>
<script src="http://cdnjs.cloudflare.com/ajax/libs/js-yaml/3.3.0/js-yaml.js"></script>
<script src='assets/prism.js'></script>
<script src='lib/chosen/chosen.jquery.min.js'></script>
<script src="jats/jats.js"></script>
<script src="jats4r-parser.js"></script>
<script src="validate.js"></script>
<a href="https://github.com/jats4r/validator">
<img style="position: absolute; top: 0; right: 0; border: 0;"
src="https://github.com/camo/e7bbb0521b397edbd5fe43e7f760759336b5e05f/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6769746875622f726962626f6e732f666f726b6d655f72696768745f677265656e5f3030373230302e706e67"
alt="Fork me on GitHub"
data-canonical-src="https://s3.amazonaws.com/github/ribbons/forkme_right_green_007200.png" />
</a>
<!-- Google Analytics -->
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-65250572-1', 'auto');
ga('send', 'pageview');
</script>
</body>
</html>