Skip to content

Commit d2630aa

Browse files
author
sd109
committed
Add custom JS privacy statement example
1 parent 7144f40 commit d2630aa

File tree

1 file changed

+18
-5
lines changed

1 file changed

+18
-5
lines changed

chart/web-app/example-settings.yml

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,26 +2,39 @@ backend_url: http://localhost:8081
22
hf_model_name: ise-uiuc/Magicoder-S-DS-6.7B
33

44
# model_instruction: You are a helpful and cheerful AI assistant. Please respond appropriately.
5+
# llm_max_tokens:
6+
# llm_temperature:
7+
# llm_top_p:
8+
# llm_frequency_penalty:
9+
# llm_presence_penalty:
510

611
page_description: "[Custom Markdown](https://google.com)"
712

813
# UI theming tweaks
914
theme_background_colour: "#00376c"
1015
theme_params:
1116
# primary_hue: blue
17+
# Use local system fonts rather than Google fonts API
1218
font:
1319
- sans-serif
1420
font_mono:
1521
- sans-serif
1622

23+
# Customise page title colour
1724
css_overrides: |
1825
h1 {
1926
color: white;
2027
padding-top: 1em;
2128
}
2229
23-
# llm_max_tokens:
24-
# llm_temperature:
25-
# llm_top_p:
26-
# llm_frequency_penalty:
27-
# llm_presence_penalty:
30+
# Example of a custom JS function which adds a
31+
# privacy statement link to the page footer
32+
custom_javascript: |
33+
function addPrivacyStatement() {
34+
var footer = document.querySelector('footer');
35+
footer.appendChild(footer.children[1].cloneNode(deep=true));
36+
var item = footer.children[2].cloneNode();
37+
item.href = 'https://gdpr.eu/eu-gdpr-personal-data/';
38+
item.textContent = 'Privacy Statement';
39+
footer.appendChild(item);
40+
}

0 commit comments

Comments
 (0)