- Commentboxes work (marginals) + mouseover

- Basic Briefe Controller
- Generic XML reader
This commit is contained in:
schnulller
2022-05-19 01:09:49 +02:00
parent f1743fcf39
commit 2ed7265869
23 changed files with 1179 additions and 193 deletions

View File

@@ -1,9 +1,11 @@
namespace HaWeb.Settings;
public static class CSSClasses {
public const string LEMMACLASS = "ha-lemma"; // XML: <lemma>
// Classes generated by parsing the XML:
public const string LEMMACLASS = "ha-lemma"; // XML: <lemma>
public const string TITLECLASS = "ha-title"; // XML: <title>
public const string BACKLINKSCLASS = "ha-letlinks"; // Collection containing links to references in letters
public const string BACKLINKSHKBCLASS = "ha-hkb"; // HKB-Text infront of l;ink collection
public const string COMMENTHEADCLASS = "ha-commenthead"; // Head of a comment, containing lemma and backlinks
public const string COMMENTBODYCLASS = "ha-commentbody"; // Body of a comment, contasining the text
@@ -13,4 +15,11 @@ public static class CSSClasses {
public const string INSERTEDLEMMACLASS = "ha-insertedlemma"; // XML <link linktext="true"></link>
// TODO Classes used in Razor Pages:
// TODO Classes used in Javascript:
// TODO IDs used by JavaScript:
}

View File

@@ -0,0 +1,9 @@
namespace HaWeb.Settings;
public static class General {
// Classes generated by parsing the XML:
public const string XMLFILEPATH = @"Hamann.xml";
public const bool NORMALIZEWHITESPACE = true;
public static (int, int) AVAILABLEYEARRANGE = (1751, 1788);
public static string[] AVAILABLEVOLUMES = { };
}

View File

@@ -1,5 +1,5 @@
namespace HaWeb.Settings;
public static class ParsingSettings {
public static class HTML {
public const string DEFAULTELEMENT = "div"; // Every tag gets replaced by a div, except fpr link or wwwlink
}