Changeset 18779
- Timestamp:
- 09/04/08 01:47:26 (4 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
lang/ruby/bokeshi/trunk/website/public/javascripts/bokeshi.js
r18778 r18779 4 4 var stageHTML = $("#stage"); 5 5 for (var i = 0; i < stage.length; i++) { 6 var row = stage[i];7 6 var ul = $('<ul></ul>').addClass("row"); 8 for (var j = 0; j < row.length; j++) { 9 var id = "stick_" + i + "_" + j; 10 var li = $("<li>|</li>").attr("id", id); 11 li.data("row", i).data("col", j); 12 if (j < row.length - 1) { 13 stageHTML.append(" "); 14 } 15 ul.append(li); 7 for (var j = 0; j < stage[i].length; j++) { 8 ul.append($("<li>|</li>").attr("id", "stick_"+i+"_"+j).data("row", i).data("col", j)); 16 9 } 17 10 stageHTML.append(ul); … … 79 72 "player": "You Lose!", 80 73 "cpu": "You Win!" 81 }[by]); 82 $("#message").show(); 74 }[by]).show(); 83 75 return; 84 76 } … … 86 78 $(".row").selectable("disable"); 87 79 $("#waitingMessage").show(); 88 var param ={80 $.post("./", { 89 81 "stage": this.toRequestStr(), 90 82 "dummy": (new Date()).getTime() 91 }; 92 $.post("./", param, function (data) { 83 }, function (data) { 93 84 var nextRemoving = data.nextRemoving; 94 85 if (nextRemoving) {
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)