Changeset - 56218ce0fd37
[Not reviewed]
default
0 2 0
drewp@bigasterisk.com - 12 years ago 2013-06-15 08:21:16
drewp@bigasterisk.com
asco song buttons now have links in them, for dragging
Ignore-this: 902059aa1051fa139cc943ea0211fd39
2 files changed with 7 insertions and 1 deletions:
0 comments (0 inline, 0 general)
light9/ascoltami/index.html
Show inline comments
 
@@ -93,7 +93,10 @@
 
    $.getJSON("songs", {}, function (data, status) {
 
	$.each(data.songs, function (i, song) {
 
	    var button = $("<button>");
 
	    button.text(song.label);
 
            // link is just for dragging, not clicking
 
            var link = $("<a>").text(song.label).attr("href", song.uri);
 
            link.click(function () { button.click(); return false; }); 
 
            button.append(link);
 
	    button.data(song);
 
	    button.click(function () {
 
		$.post("song", button.data("uri"), 
static/style.css
Show inline comments
 
@@ -17,6 +17,9 @@ body {
 
    margin: 2px;
 
font-size: 115%;
 
}
 
button a {
 
 color: white;
 
}
 
.songs button:hover {
 
    color: black;
 
    background: yellow;
0 comments (0 inline, 0 general)