Skip to content

Commit

Permalink
acum merg afisat personajele si locatiile. Tot ce tine de formatare r…
Browse files Browse the repository at this point in the history
…ezolvam mai incolo.
  • Loading branch information
colin-dumitru committed Jan 19, 2012
1 parent b27b20e commit 2cbab3e
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 4 deletions.
8 changes: 6 additions & 2 deletions WebServer/Scripts/summary.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,14 @@ function writeDoc(xml) {
$("#title h1").text("Summary for „" + title + "”");

$("#novel_title").text(title);
$("#novel_information").text(xml.find("type").text());
$("#novel_type").text(xml.find("type").text());

xml.find("characters").find("character").each(function () {
$("novel_characters").append("<p>" + $(this).text() + "</p>");
$("#novel_characters").append("<div>" + $(this).attr("name") + "<div>");
});

xml.find("locations").find("location").each(function () {
$("#novel_places").append("<div>" + $(this).attr("name") + "<div>");
});

$("#novel_summary").text(xml.find("summary").text());
Expand Down
13 changes: 11 additions & 2 deletions WebServer/Views/Home/Summary.aspx
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,11 @@
<h1 id="novel_title"> Title </h1>
</div>
<div>
<h2 id="novel_information">Information</h2>
<p id="novel_type">Type</p>
<h2>Information</h2>
<div>
<div>Type</div>
<div id="novel_type"></div>
</div>
</div>

<div>
Expand All @@ -29,6 +32,12 @@
</div>
</div>

<div>
<h2>Locations</h2>
<div id="novel_places">
</div>
</div>

<div>
<h2>Summary</h2>
<div id="novel_summary">
Expand Down

0 comments on commit 2cbab3e

Please sign in to comment.