From ce069bdcf469c43af22c4c37be064f1840bb508d Mon Sep 17 00:00:00 2001 From: Tim Erickson Date: Fri, 9 Feb 2024 09:21:06 -0800 Subject: [PATCH] 1.7: has link to a better help resource (a guide on on codap.xyz) --- eepsmedia/plugins/scrambler/index.html | 15 +++++++++++---- eepsmedia/plugins/scrambler/src/scrambler.js | 8 +++++--- .../plugins/simmer/strings/localizePlugin.js | 2 +- 3 files changed, 17 insertions(+), 8 deletions(-) diff --git a/eepsmedia/plugins/scrambler/index.html b/eepsmedia/plugins/scrambler/index.html index 54207a2e..812fc816 100644 --- a/eepsmedia/plugins/scrambler/index.html +++ b/eepsmedia/plugins/scrambler/index.html @@ -1,7 +1,7 @@ @@ -10,7 +10,7 @@ - Scrambler 2021 + Scrambler 2024 @@ -34,10 +34,17 @@

scrambler

-
+
+ + + +
diff --git a/eepsmedia/plugins/scrambler/src/scrambler.js b/eepsmedia/plugins/scrambler/src/scrambler.js index ccf88d84..436b54e4 100644 --- a/eepsmedia/plugins/scrambler/src/scrambler.js +++ b/eepsmedia/plugins/scrambler/src/scrambler.js @@ -425,10 +425,11 @@ const scrambler = { * @returns {Promise} */ openHelp: async function () { - const theURL = `help/help.${scrambler.state.lang}.html`; + // const theURL = `help/help.${scrambler.state.lang}.html`; + const theURL = `https://codap.xyz/guides/scrambler/`; const response = await fetch(theURL); - if (response.status == 200) { + if (response.status === 200) { window.open(theURL, `_blank`); } else if (response.status === 404) { window.open(`help/help.en.html`, `_blank`); // default to English @@ -449,7 +450,7 @@ const scrambler = { constants: { pluginName: "scrambler", - version: "1.6", + version: "1.7", dimensions: {height: 200, width: 366}, // dimensions, defaultState: { lastDatasetName: null, @@ -462,6 +463,7 @@ const scrambler = { measuresPrefixStringID: "sMeasureDatasetPrefix", scrambledPrefixStringID: "sScrambledDatasetPrefix", scrambleSetName: "scrset", + }, } diff --git a/eepsmedia/plugins/simmer/strings/localizePlugin.js b/eepsmedia/plugins/simmer/strings/localizePlugin.js index 91fd951a..c108a572 100644 --- a/eepsmedia/plugins/simmer/strings/localizePlugin.js +++ b/eepsmedia/plugins/simmer/strings/localizePlugin.js @@ -1,6 +1,6 @@ const localizePlugin = { - languages : ['en', 'es'], + languages : ['en', 'es', 'de'], // todo: eliminate this in favor of the dictionary /** * Get a two-letter language code from a variety of sources.