forked from dariok/officeEntityPlugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathentity.html
46 lines (45 loc) · 3.28 KB
/
entity.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
<!DOCTYPE html>
<html>
<head>
<base target="_top"/>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.2.1/css/bootstrap.min.css" integrity="sha384-GJzZqFGwb1QTTN6wy59ffF1BuGJpLSa9DkKMp0DgiMDm4iYMj70gZWKYbI706tWS" crossorigin="anonymous">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.5/css/select2.min.css" integrity="sha256-xJOZHfpxLR/uhh1BwYFS5fhmOAdIRQaiOul5F/b7v3s=" crossorigin="anonymous" />
<script src="https://code.jquery.com/jquery-3.2.1.min.js" integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4=" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/tether/1.4.0/js/tether.min.js" integrity="sha384-DztdAPBWPRXSA/3eYEEUWrWCy7G5KFbe8fFjk5JAIxUYHKkDx6Qin1DkWx51bBrb" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.5/js/select2.min.js" integrity="sha256-FA14tBI8v+/1BtcH9XtJpcNbComBEpdawUZA6BPXRVw=" crossorigin="anonymous"></script>
<script src="https://appsforoffice.microsoft.com/lib/1.0/hosted/office.js" type="text/javascript"></script>
<script src="process.js" type="text/javascript"></script>
<script src="entity.js" type="text/javascript"></script>
<script src="form.js" type="text/javascript"></script>
</head>
<body>
<form action="entity.html" method="post" id="entity-form" onsubmit="return insertLink();">
<select id="type">
</select>
<label for="search-entity">Suchbegriff:</label>
<select id="search-entity" style="width: 100%" autofocus></select>
<input name="submit" value="Create" class="btn btn-primary" id="submit-id-submit" type="submit" />
<a name="check" value="Check" style="background-color:#aaf" class="btn btn-primary" id="id-check" type="button" href="#">Check</a>
</form>
<!-- <form action="entity.html" method="post" id="entity-list" onsubmit="return insertLink();">
<ol id="recent">
<li id="latest"></li>
</ol>
</form>
--><span style="position:absolute;bottom:0;font-size:smaller;color:grey;">preliminarily hosted on univie server to make accessible for IE11; entityManifest still in the old place on I: so it should work</span>
<!--<div id="form_people"></div>-->
<script type="text/javascript">
$('#entity-form').on('submit', function (event) {
event.stopPropagation();
event.preventDefault();
var link = $('select#search-entity').val();
console.log(link);
insertLink (link);
});
$("#id-check").on("click", function(){
var link = $('select#search-entity').val();
$("#id-check").attr('href',link).trigger('change');
});
</script>
</body>
</html>