diff --git a/index.html b/index.html index b175a5a..c4f8f39 100644 --- a/index.html +++ b/index.html @@ -30,11 +30,11 @@ fill: #fefefd; } .camp-outline, - .camp-side { + .camp-side, + .location { fill: #3986cf; } - @@ -42,6 +42,16 @@ class="camp-outline" d="M1124 122h96l-48-65zm103 8h-111q-1.2 0-2.2-.5-.9-.7-1.5-1.5a4 4 0 0 1 .4-4.1L1167 50l-15-19.8a4 4 0 0 1 .9-5.4 4 4 0 0 1 5.4.7L1172 43l12.8-17.4a4 4 0 0 1 5.5-.9q1.3 1 1.5 2.6.3 1.5-.7 2.9L1176 50l54.5 73.9a4 4 0 0 1-1 5.6c-.6.3-1.8.5-2.5.5" /> + (".location"); + + if (!location) { + throw new Error("Cannot find title element"); + } + + this.location = location; } setBackground(color: string) { @@ -114,6 +124,12 @@ export class SvgBuilder { return this; } + setLocation(text: string) { + this.location.textContent = text; + + return this; + } + addStripes(colors: string[]) { this.fillStripeSection(marginBottom, marginBottom + 100, colors);