Skip to content
This repository has been archived by the owner on Feb 19, 2019. It is now read-only.

Input form added on the main page #9

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions oai/static/doai.css
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,8 @@ h1 {
margin: 10px;
}

form {
max-width: 400px;
margin: 30px auto 30px auto;
}

7 changes: 6 additions & 1 deletion oai/templates/oai/front.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,12 @@ <h1>DOAI</h1>
<p>DOAI (Digital Open Access Identifier) is an alternate DOI (Digital Object Identifier) resolver that takes you to a free version of the requested article,
when available.</p>

<p>To use it, replace dx.doi.org by doai.io in any DOI link.</p>
<p>To use it, replace <em>dx.doi.org</em> by <em>doai.io</em> in any DOI link, or input the DOI just below.</p>

<form action="javascript:(function () { window.location = 'http://doai.io/' + document.getElementById('doi_input').value })()">
<input type="text" id="doi_input" placeholder="10.1016/j.jalgebra.2015.09.023" required/>
<input type="submit" value="Go !"/>
</form>

<h2>Examples</h2>

Expand Down