diff --git a/packages/demo/src/App.svelte b/packages/demo/src/App.svelte
index cfd94dd..a87bffe 100644
--- a/packages/demo/src/App.svelte
+++ b/packages/demo/src/App.svelte
@@ -38,6 +38,31 @@
let stuff4 = false;
let stuff5 = false;
+ function navbar(id: string) {
+ stuff1 = false;
+ stuff2 = false;
+ stuff3 = false;
+ stuff4 = false;
+ stuff5 = false;
+ switch (id) {
+ case 'stuff1':
+ stuff1 = true;
+ break;
+ case 'stuff2':
+ stuff2 = true;
+ break;
+ case 'stuff3':
+ stuff3 = true;
+ break;
+ case 'stuff4':
+ stuff4 = true;
+ break;
+ case 'stuff5':
+ stuff5 = true;
+ break;
+ }
+ }
+
onMount(() => {
window.GaReportService = new MockService();
});
@@ -45,12 +70,12 @@
-
{stuff1 = true; stuff2 = false;}} role="button" style="width: 140px; height: 25px; border-radius: 10px; border: 2px solid #E76538; color: {stuff1 ? 'white' : '#E76538'}; display: flex; align-items: center; justify-content: center; background-color: {stuff1 ? '#E76538' : ''};">b2b v1.4
-
{stuff1 = false; stuff2 = true;}} role="button" style="width: 140px; height: 25px; border-radius: 10px; border: 2px solid #E76538; color: {stuff2 ? 'white' : '#E76538'}; display: flex; align-items: center; justify-content: center; background-color: {stuff2 ? '#E76538' : ''};">b2b v2.0
+
navbar('stuff1')} role="button" style="width: 140px; height: 25px; border-radius: 10px; border: 2px solid #E76538; color: {stuff1 ? 'white' : '#E76538'}; display: flex; align-items: center; justify-content: center; background-color: {stuff1 ? '#E76538' : ''};">b2b v1.4
+
navbar('stuff2')} role="button" style="width: 140px; height: 25px; border-radius: 10px; border: 2px solid #E76538; color: {stuff2 ? 'white' : '#E76538'}; display: flex; align-items: center; justify-content: center; background-color: {stuff2 ? '#E76538' : ''};">b2b v2.0
-
b2b2c v1.2
-
b2c v1.2
-
SLE v1.0
+
navbar('stuff3')} role="button" style="width: 140px; height: 25px; border-radius: 10px; border: 2px solid #E76538; color: {stuff3 ? 'white' : '#E76538'}; display: flex; align-items: center; justify-content: center; background-color: {stuff3 ? '#E76538' : ''};">b2b2c v1.2
+
navbar('stuff4')} role="button" style="width: 140px; height: 25px; border-radius: 10px; border: 2px solid #E76538; color: {stuff4 ? 'white' : '#E76538'}; display: flex; align-items: center; justify-content: center; background-color: {stuff4 ? '#E76538' : ''};">b2c v1.2
+
navbar('stuff5')} role="button" style="width: 140px; height: 25px; border-radius: 10px; border: 2px solid #E76538; color: {stuff5 ? 'white' : '#E76538'}; display: flex; align-items: center; justify-content: center; background-color: {stuff5 ? '#E76538' : ''};">SLE v1.0
{#if stuff1}
@@ -397,11 +422,11 @@