motionbank / score-system-frontend

Backbone.js based single app frontend for our score websites.
1 stars 1 forks source link

Debug mode #71

Closed fjenett closed 10 years ago

fjenett commented 10 years ago

A way to set the front end to "debug mode" that would show cell borders, cell id's, ...

martinleopold commented 10 years ago

for now, this bookmarklet kinda does the job:

javascript:$(".cellid").remove();$(".cell").each(function(e,t){$(t).css("border","1px solid black");var n=$('<div class="cellid" style="position:absolute; background-color:black; color:white; padding:4px; opacity:0.9">'+$(t).data("cellid")+"</div>");n.css("left",$(t).css("left")).css("top",$(t).css("top"));$(t).after(n);n.hide().fadeIn()})