Commit 7e81d1dc137037b460d41232081e73e78948511b

CHeck box value toggle upon click..
  • Diff rendering mode:
  • inline
  • side by side

swtr/static/js/swtmaker.js

284 this.showSweets();284 this.showSweets();
285 return false;285 return false;
286 },286 },
287 showHide: function() {
288 if($("input:checked").length) {
289 $("p").toggle();
290 $('.annotorious-item-unfocus').css("opacity", "0.5");
291 }
292 else {
293 $("p").toggle();
294 $('.annotorious-item-unfocus').css("opacity", "0");
295 }
296
297 },
287 getSignInCredentials: function(event) {298 getSignInCredentials: function(event) {
288 event.preventDefault();299 event.preventDefault();
289 if(swtr.who === 'Guest' && !$('#username').length) {300 if(swtr.who === 'Guest' && !$('#username').length) {

swtr/templates/index.html

31 </div>31 </div>
32 <button class="btn btn-default" id="img-url-submit">GO</button>32 <button class="btn btn-default" id="img-url-submit">GO</button>
33 <button class="btn btn-default" id="sweet">Sweet</button>33 <button class="btn btn-default" id="sweet">Sweet</button>
34 <input id="setbox" type="checkbox" >Show/Hide Box</input>
34 <input id="setbox" type="checkbox"/ > <label
35 id="setcontrol"><p>Show Box</p><p style="display: none">Hide
36 Box</p></label>
35 </div>37 </div>
36 <div id="img-annotation-wrapper" class="col-md-12 col-xs-12 col-lg-12 col-sm-12 well">38 <div id="img-annotation-wrapper" class="col-md-12 col-xs-12 col-lg-12 col-sm-12 well">
37 {% if url %}39 {% if url %}