diff --git a/content/static/js/avatar/internal_ui.js b/content/static/js/avatar/internal_ui.js index 43bf5bd9bbd512dc4903e93aad26abea16688661..5c8f4af7a7a0e9660f779cdd3a6bfcb4db599836 100644 --- a/content/static/js/avatar/internal_ui.js +++ b/content/static/js/avatar/internal_ui.js @@ -675,7 +675,7 @@ $("#set-pirate-candidate").on( // Make absolutely sure Bebas Neue is loaded. // Quick fix await ( - fetch("/static/fonts/bebas-neue/BebasNeue.woff") + fetch("static/fonts/bebas-neue/BebasNeue.woff") .then(resp => resp.arrayBuffer()) .then(font => { const fontFace = new FontFace("Bebas Neue", font); diff --git a/content/static/js/avatar/template.js b/content/static/js/avatar/template.js index 38cbb5c935a41b6f14110bc649f5e0de19a98ea5..1c657b48bdde4adc41f1a8ee08b21a9e84a06e27 100644 --- a/content/static/js/avatar/template.js +++ b/content/static/js/avatar/template.js @@ -4,8 +4,8 @@ class AvatarTemplate { this.context = this.canvas.getContext("2d"); } - darkIconDefaultSource = "/static/images/badges/default-dark.png"; - lightIconDefaultSource = "/static/images/badges/default-light.png"; + darkIconDefaultSource = "static/images/badges/default-dark.png"; + lightIconDefaultSource = "static/images/badges/default-light.png"; text = ""; number = ""; @@ -338,7 +338,7 @@ class AvatarTemplate { resolve(); } - gradient.src = "/static/images/gradient.png"; + gradient.src = "static/images/gradient.png"; } ); diff --git a/content/static/js/base.js b/content/static/js/base.js index 692704f0fcb9e0aa61cf2b2d540dd22066cc413c..f1ebb8b74f67524ea8cd07e0b158d212b05fbb59 100644 --- a/content/static/js/base.js +++ b/content/static/js/base.js @@ -69,8 +69,8 @@ class Template { defaultResolution = 2000; - lightLogoDefaultSource = "/static/images/logos/default-light.png"; - darkLogoDefaultSource = "/static/images/logos/default-dark.png"; + lightLogoDefaultSource = "static/images/logos/default-light.png"; + darkLogoDefaultSource = "static/images/logos/default-dark.png"; primaryColorSchemes = []; diff --git a/content/static/js/spolu/template.js b/content/static/js/spolu/template.js index 68d3184780da2789291ef87af037a1af78cd2e55..0e30da74e9bf0c661a0b9b2c53391958d1e2d07c 100644 --- a/content/static/js/spolu/template.js +++ b/content/static/js/spolu/template.js @@ -35,7 +35,7 @@ class PrimaryLocalizationTextBackgroundImageTemplate extends Template { localizationText = ""; backgroundImageSources = [ - "/static/images/spolu/backgrounds/1.png", + "static/images/spolu/backgrounds/1.png", ]; backgroundImage = null; diff --git a/content/static/js/templates/event-text-bottom.js b/content/static/js/templates/event-text-bottom.js index 0dc787cb529f1189b445ff228f6acc5aa112b300..7a537510b7a87e13e6286fcf452bbf7eda20d9f6 100644 --- a/content/static/js/templates/event-text-bottom.js +++ b/content/static/js/templates/event-text-bottom.js @@ -594,7 +594,7 @@ class EventTextBottom extends Template { resolve(); } - dateIcon.src = "/static/images/mini-icons/calendar.png"; + dateIcon.src = "static/images/mini-icons/calendar.png"; } ); @@ -622,7 +622,7 @@ class EventTextBottom extends Template { resolve(); } - timeIcon.src = "/static/images/mini-icons/time.png"; + timeIcon.src = "static/images/mini-icons/time.png"; } ); @@ -649,7 +649,7 @@ class EventTextBottom extends Template { resolve(); } - locationIcon.src = "/static/images/mini-icons/location.png"; + locationIcon.src = "static/images/mini-icons/location.png"; } ); diff --git a/content/static/js/templates/event-text-right.js b/content/static/js/templates/event-text-right.js index 456060db1dd5985be75166dca61163cb64b29191..c904ca389ea7289a2df8c84fb3a44cfbc8a1e812 100644 --- a/content/static/js/templates/event-text-right.js +++ b/content/static/js/templates/event-text-right.js @@ -561,7 +561,7 @@ class EventTextRight extends Template { resolve(); } - dateIcon.src = "/static/images/mini-icons/calendar.png"; + dateIcon.src = "static/images/mini-icons/calendar.png"; } ); @@ -590,7 +590,7 @@ class EventTextRight extends Template { resolve(); } - timeIcon.src = "/static/images/mini-icons/time.png"; + timeIcon.src = "static/images/mini-icons/time.png"; } ); @@ -619,7 +619,7 @@ class EventTextRight extends Template { resolve(); } - locationIcon.src = "/static/images/mini-icons/location.png"; + locationIcon.src = "static/images/mini-icons/location.png"; } ); diff --git a/content/static/js/templates/no-image-big-text-icon-with-terciary.js b/content/static/js/templates/no-image-big-text-icon-with-terciary.js index 05fa8637a65427f037e579913805189b0380ea66..57d7841dd96689952f1d888ea3a5602d411da4fb 100644 --- a/content/static/js/templates/no-image-big-text-icon-with-terciary.js +++ b/content/static/js/templates/no-image-big-text-icon-with-terciary.js @@ -18,7 +18,7 @@ class NoImageBigTextIconWithTerciary extends Template { iconSource = null; backgroundHasPattern = true; - backgroundPatternSource = "/static/images/background_pattern.svg"; + backgroundPatternSource = "static/images/background_pattern.svg"; primaryColorSchemes = [ "black-on-white", diff --git a/content/static/js/templates/no-image-big-text-icon.js b/content/static/js/templates/no-image-big-text-icon.js index 96b872d7c6e1bebc1b757577ffe3e680b9f9f5da..f6d11f7d6ae3f10859d7e65d7b49f61a6a5c477c 100644 --- a/content/static/js/templates/no-image-big-text-icon.js +++ b/content/static/js/templates/no-image-big-text-icon.js @@ -16,7 +16,7 @@ class NoImageBigTextIcon extends Template { iconSource = null; backgroundHasPattern = true; - backgroundPatternSource = "/static/images/background_pattern.svg"; + backgroundPatternSource = "static/images/background_pattern.svg"; primaryColorSchemes = [ "black-on-white", diff --git a/content/static/js/templates/no-image-icon-text.js b/content/static/js/templates/no-image-icon-text.js index 73e5dd2ffb0aef7210930fc5d4bcb6ac77e4a0c3..bae399c08841ece54220a88fcddc768055449982 100644 --- a/content/static/js/templates/no-image-icon-text.js +++ b/content/static/js/templates/no-image-icon-text.js @@ -13,7 +13,7 @@ class NoImageIconText extends Template { iconSource = null; backgroundHasPattern = true; - backgroundPatternSource = "/static/images/background_pattern.svg"; + backgroundPatternSource = "static/images/background_pattern.svg"; primaryColorSchemes = [ "black-on-white", diff --git a/content/static/js/templates/no-image-quote.js b/content/static/js/templates/no-image-quote.js index 03bb61ef1753d3402643ef92fb68dd8b1df95126..2496967d572681c700f35d36a88d93b8130c532a 100644 --- a/content/static/js/templates/no-image-quote.js +++ b/content/static/js/templates/no-image-quote.js @@ -15,10 +15,10 @@ class NoImageQuote extends Template { iconSource = null; backgroundHasPattern = true; - backgroundPatternSource = "/static/images/background_pattern.svg"; + backgroundPatternSource = "static/images/background_pattern.svg"; - quoteImageDarkSource = "/static/images/quote_light.png"; - quoteImageLightSource = "/static/images/quote_dark.png"; + quoteImageDarkSource = "static/images/quote_light.png"; + quoteImageLightSource = "static/images/quote_dark.png"; primaryColorSchemes = [ "black-on-white", diff --git a/content/static/js/templates/no-image-text-more-info.js b/content/static/js/templates/no-image-text-more-info.js index 40b2ad0bb7e31894df5a89e7fbfeff42a793211b..e1edf444b6c926deecd4428733a43d2948654515 100644 --- a/content/static/js/templates/no-image-text-more-info.js +++ b/content/static/js/templates/no-image-text-more-info.js @@ -17,7 +17,7 @@ class NoImageTextMoreInfo extends Template { terciaryText = ""; - quoteImageSource = "/static/images/quote_nontransparent.png"; + quoteImageSource = "static/images/quote_nontransparent.png"; primaryColorSchemes = [ "black-on-white", diff --git a/content/static/js/templates/story-with-rectangle.js b/content/static/js/templates/story-with-rectangle.js index 54397e885c99d81cda9df49efcbcdb215c21fd10..bfb8bf58310db67f0867595d5c2453e0fac8ec3f 100644 --- a/content/static/js/templates/story-with-rectangle.js +++ b/content/static/js/templates/story-with-rectangle.js @@ -48,8 +48,8 @@ class StoryWithRectangleTemplate extends Template { "requesterTextColor" ]; - lightLogoDefaultSource = "/static/images/icon_light.png"; - darkLogoDefaultSource = "/static/images/icon_dark.png"; + lightLogoDefaultSource = "static/images/icon_light.png"; + darkLogoDefaultSource = "static/images/icon_dark.png"; aspectRatio = 0.5625; defaultResolution = 1920; diff --git a/content/static/js/ui.js b/content/static/js/ui.js index 3f1621b4d4c6c38740a7c99cf07a145d0421b5a9..81120b2dc60d7a8bac034e898cc4232f3d245de1 100644 --- a/content/static/js/ui.js +++ b/content/static/js/ui.js @@ -1692,11 +1692,11 @@ async function setCoalition(coalition, template) { switch (coalition) { case "louny-spolecne": if (template.changeableAttributes.includes("logoImage")) { - template.setDarkLogoSource("/static/images/logos/louny_spolecne-dark.png", true); - template.setLightLogoSource("/static/images/logos/louny_spolecne.png", true); + template.setDarkLogoSource("static/images/logos/louny_spolecne-dark.png", true); + template.setLightLogoSource("static/images/logos/louny_spolecne.png", true); } else if (template.changeableAttributes.includes("verticalLogoImage")) { - template.setDarkLogoSource("/static/images/vertical-logos/Louny-dark.png", true); - template.setLightLogoSource("/static/images/vertical-logos/Louny-light.png", true); + template.setDarkLogoSource("static/images/vertical-logos/Louny-dark.png", true); + template.setLightLogoSource("static/images/vertical-logos/Louny-light.png", true); } if (template.changeableAttributes.includes("locationImage")) { @@ -1798,7 +1798,7 @@ $(window).ready( // Make absolutely sure Bebas Neue is loaded. // Quick fix await ( - fetch("/static/fonts/bebas-neue/BebasNeue.woff") + fetch("static/fonts/bebas-neue/BebasNeue.woff") .then(resp => resp.arrayBuffer()) .then(font => { const fontFace = new FontFace("Bebas Neue", font);