This file looks large and may slow your browser down if we attempt
to syntax highlight it, so we are showing it without any
pretty colors.
Highlight
it anyway.
1 |
<!DOCTYPE html> |
2 |
<html> |
3 |
<head> |
4 |
<meta charset="utf-8"> |
5 |
<meta http-equiv='imagetoolbar' content='no'/> |
6 |
<title> Web Annotation </title> |
7 |
<link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='bootstrap.css') }}"></link> |
8 |
<script type="text/javascript" src="{{ url_for('static', filename='jquery-1.9.1.min.js') }}"></script> |
9 |
<script type="text/javascript" src"{{ url_for('static', filename='bootstrap.js') }}"></script> |
10 |
<style type="text/css"> |
11 |
.container { |
12 |
margin-top: 30px; |
13 |
} |
14 |
</style> |
15 |
</head> |
16 |
<body> |
17 |
<div class="container"> |
18 |
<div class="explain lead"> IDH-SWeeTer Annotation for Web Pages </div> |
19 |
<div class="input span9"> |
20 |
Enter URL to annotate: <input id="url" type="text" placeholder="http://vijayanagara.in"> |
21 |
<button class="btn" onclick="loadURL();"> Load </button> |
22 |
</div> |
23 |
</div> |
24 |
<script> |
25 |
function loadURL() { |
26 |
var url = document.getElementById('url').value; |
27 |
if(!url) { |
28 |
url = 'http://vijayanagara.in'; |
29 |
} |
30 |
if(!url.match(/http/)) { |
31 |
url = 'http://' + url; |
32 |
} |
33 |
window.location.href = '{{ url_for("SWeeText") }}?url=' + encodeURIComponent(url); |
34 |
} |
35 |
</script> |
36 |
</body> |
37 |
</html> |