diff --git a/main.html b/main.html index 31be5e2..2cf5d8d 100644 --- a/main.html +++ b/main.html @@ -179,31 +179,4 @@ Cheat - - diff --git a/main.js b/main.js index bfe12ef..53c1e1f 100644 --- a/main.js +++ b/main.js @@ -837,12 +837,6 @@ function Log(line) { // TODO: and now what? } -function CharSheet() { - return template($("#sheet").html(), game); - // TODO: make this a separate page -} - - function Task(caption, msec) { Kill.text(caption + '...'); Log(Kill.text()); @@ -1177,11 +1171,6 @@ function InputBox(message, def) { } function FormKeyDown(e) { - if (e.which == 1) { // ^A - SaveGame(); - alert(CharSheet()); - } - if (e.which == 13) { // ^M game.motto = InputBox('Declare your motto!', game.motto); // Brag('m'); @@ -1218,8 +1207,6 @@ function LFSR(pt, salt) { function Brag(trigger) { /* TODO var flat = 1; - if (FExportSheets) - ExportCharSheet; if (GetPasskey() == 0) return; // not a online game! var url = 'cmd=b&t=' + trigger; with (Traits) for (i = 0; i <= Items.length()-1; ++i) diff --git a/roster.html b/roster.html index aa01a83..0651f30 100644 --- a/roster.html +++ b/roster.html @@ -44,7 +44,7 @@ body { a.icon { font-size: 3em; } -a.x { +a.x, a.sheet { font-size: 12pt; } @@ -83,10 +83,41 @@ a.x {
Level $Traits.Level $Traits.Class
$Equips.best / $Spells.best / $Stats.best
- ☠ + + ☠
+ ✏ + + + + diff --git a/roster.js b/roster.js index 4fb5592..b0ae474 100644 --- a/roster.js +++ b/roster.js @@ -27,6 +27,11 @@ $(document).ready(function () { } }); + br.find("a.sheet").click(function () { + alert(template($("#sheet").html(), games[name])); + // TODO: put in a window or whatev + }); + /* var p = $("

"); p.appendTo(roster);