1
<!DOCTYPE html>
2
<html>
3
  <meta charset="utf-8">
4
  <head>
5
	<script type="text/javascript">
6
	  function annotationTree() {
7
      $('#annotation-tree').modal();
8
	  }
9
	</script>
10
	<script type="text/javascript" src="http://code.jquery.com/jquery-1.8.0.min.js"></script>
11
	<script type="text/javascript" src="http://underscorejs.org/underscore-min.js"></script>
12
	<script type="text/javascript" src="http://backbonejs.org/backbone-min.js"></script>
13
	<script type="text/javascript" src="static/jit.js"></script>
14
	<script type="text/javascript" src="static/tree.js"></script>
15
	<style type='text/css'>
16
	  /*#annotation-tree {
17
	  position:fixed;
18
	  top:0px;
19
	  left:0px;
20
	  width:100%;
21
	  height:100%;
22
	  background-color:rgba(0, 0, 0, 0.5);
23
	  display:none;
24
	  z-index:99999;
25
          }*/
26
  </style>
27
	<title>Flask Lepakshi Mural</title>
28
	<meta http-equiv='imagetoolbar' content='no'/>
29
	<link rel="stylesheet" type="text/css" href="static/bootstrap.css"></link>
30
	<!--link rel="stylesheet" type="text/css" href="./tree.css"></link-->
31
	<style type="text/css"> v\:* {behavior:url(#default#VML);}
32
    label { display: inline;}
33
	  h1 { margin: 0; padding: 6px; border:0; font-size: 20pt; }
34
	  #header { height: 43px; padding: 0; background-color: #eee; border: 1px solid #888; }
35
	  #subheader { height: 12px; text-align: right; font-size: 10px; color: #555;}
36
	  #map {border: 1px solid #888;}
37
	</style>
38
	<script src="http://www.openlayers.org/api/2.11/OpenLayers.js" type="text/javascript"></script>
39
	<script type="text/javascript" src="static/myVector.js"></script>
40
	<script type="text/javascript" src="static/bootstrap.js"></script>
41
	<script type="text/javascript">
42
	  function treeClose() {
43
      $('#annotation-tree').modal('hide');
44
      attribs["character"] =  $("#character-value").text();
45
      attribs["material"] = $("#material-value").text();
46
      myJSON.push(attribs);
47
      $("#publish").attr("disabled", false);
48
	  }
49
	</script>
50
</head>
51
{% if url %}
52
	<body onload='init({{ url|string|safe }});'>
53
{% else %}
54
	<body onload="init();">
55
{% endif %}
56
  <!--div id="header"><h1>Lepakshi Mural</h1></div-->
57
  <div class="fluid-container">
58
59
    <div class="navbar">
60
      <div class="navbar-inner">
61
        <a class="brand" href="#">Lepakshi Mural</a>
62
        <ul class="nav">
63
          <li class="active"><a href="#">Home</a></li>
64
          <li><a></a></li>
65
          <li><a href="#" class="disabled">
66
            <label><input type="checkbox" name="allow-pan" value="allow-pan" id="allowPanCheckbox" checked=true onclick="allowPan(this);"> Pan</label>
67
            <!--label for="allowPanCheckbox"><small>allow pan while drawing</small></label-->
68
          </a></li>
69
          <li>
70
            <!--label><input type="radio" name="type" value="none" id="noneToggle" onclick="toggleControl(this);" checked="checked"> Navigate</label-->
71
            <!--label><input type="radio" name="type" value="box" id="boxToggle" onclick="toggleControl(this);"> Tag</label-->
72
            <!--label for="noneToggle">navigate</label-->
73
            <span class="btn-group" data-toggle="buttons-radio">
74
              <button class="btn active" value="none" id="control-select" onclick="toggleControl(this);" checked="checked">Navigate</button>
75
              <button class="btn" value="box" id="control-box" onclick="toggleControl(this);">Tag</button>
76
            </span>
77
          </li>
78
          <li><a></a></li>
79
          <li><a></a></li>
80
          <li><button class="btn" onClick="publish();" id="publish" disabled="true"/>Publish</button></li>
81
        </ul>
82
      </div>
83
    </div>
84
85
    <div id="notification">
86
    </div>
87
    <div id="posted" class="alert alert-success" style="display: none; width: 300px; margin: auto;">
88
      <button type="button" class="close" data-dismiss="alert">&times;</button>
89
      <b>Success!</b> Post successfully posted.
90
    </div>
91
92
    <div class="btn-group">
93
      <button onclick="handler.trigger();"  class="btn btn-small">Mural</button>
94
      <button onclick="handler.trigger1();" class="btn btn-small"> Face</button>
95
      <button onclick="handler.trigger2();" class="btn btn-small">Jewellery</button>
96
    </div>
97
    <p></p>
98
    <div id="map"></div>
99
    <div id="subheader">Generated by <a href="http://www.maptiler.org/">MapTiler</a><a href="http://www.klokan.cz/projects/gdal2tiles/">GDAL2Tiles</a>, Copyright &copy; 2008 <a href="http://www.klokan.cz/">Klokan Petr Pridal</a>,  <a href="http://www.gdal.org/">GDAL</a> &amp; <a href="http://www.osgeo.org/">OSGeo</a> <a href="http://code.google.com/soc/">GSoC</a>
100
      <!-- PLEASE, LET THIS NOTE ABOUT AUTHOR AND PROJECT SOMEWHERE ON YOUR WEBSITE, OR AT LEAST IN THE COMMENT IN HTML. THANK YOU -->
101
    </div>
102
103
  </div>
104
105
  <script type="text/javascript" >resize();</script>
106
107
  <div id="annotation-tree" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
108
    <div class="modal-header">
109
      <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
110
      <div id="myModalLabel">
111
        <h3>Annotation attributes</h3>
112
        <small>Select attributes for annotation</small>
113
      </div>
114
    </div>
115
    <div class="modal-body">
116
      <div id="infovis">
117
        <div class="well text-info">
118
          <ul>
119
            <li><b>Character:</b> <span id="character-value"></span></li>
120
            <li>
121
              <b>Ornament:</b>
122
              <ul>
123
                <li><b>Material:</b> <span id="material-value"></span></li>
124
                <li><b>Jewellery:</b> <span id="jewellery-value"></span></li>
125
              </ul>
126
            </li>
127
          </ul>
128
        </div>
129
      </div>
130
    </div>
131
    <div class="modal-footer">
132
      <button class="btn" data-dismiss="modal" aria-hidden="true">Close</button>
133
      <button class="btn btn-primary" onclick="treeClose();">Save changes</button>
134
    </div>
135
  </div>
136
</body>
137
</html>