added open_link.js and sample.html

This commit is contained in:
lab-cat 2022-05-28 20:03:05 +02:00
parent 8cc0fe9444
commit 0c7163e14d
2 changed files with 44 additions and 0 deletions

27
open_link.js Normal file

File diff suppressed because one or more lines are too long

17
sample.html Normal file
View File

@ -0,0 +1,17 @@
<!DOCTYPE html>
<html>
<head>
<title>YourChinaScienceInvestigation</title>
<script src="open_link.js"></script>
</head>
<body>
<input type="text" placeholder="e. g. Leipzig University" id="uni">
<select id = "risk">
<option value="very high"> very high </option>
<option value="high"> high </option>
<option value="medium"> medium </option>
<option value="low"> low </option>
</select>
<button type="button" id="submit" onclick='open_link(document.getElementById("uni").value, risk.value)'>View Publications</button>
</body>
</html>