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="/static/bootstrap.css"></link>
8
	<script type="text/javascript" src="/static/jquery-1.9.1.min.js"></script>
9
	<script type="text/javascript" src="/static/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>