- Timestamp:
- 09/04/08 01:33:32 (3 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
lang/ruby/bokeshi/trunk/website/public/javascripts/bokeshi.js
r18776 r18777 70 70 this[row][col2] = by; 71 71 var id = "stick_" + row + "_" + col2; 72 var stick = $("#" + id); 73 stick.addClass("removed").addClass({ 72 $("#" + id).addClass("removed").addClass({ 74 73 "player": "byPlayer", 75 74 "cpu": "byCPU" … … 77 76 } 78 77 if (this.isTerminated()) { 79 switch (by) { 80 case "player": 81 $("#message").text("You Lose!"); 82 break; 83 case "cpu": 84 $("#message").text("You Win!"); 85 break; 86 } 78 $("message").text({ 79 "player": "You Lose!", 80 "cpu": "You Win!" 81 }[by]); 87 82 $("#message").show(); 88 83 return;
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)