@everymatrix/casino-footer-v2 0.0.371 → 0.0.372

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/casino-footer-v2",
3
- "version": "0.0.371",
3
+ "version": "0.0.372",
4
4
  "main": "dist/casino-footer-v2.js",
5
5
  "svelte": "src/index.ts",
6
6
  "scripts": {
@@ -36,5 +36,5 @@
36
36
  "publishConfig": {
37
37
  "access": "public"
38
38
  },
39
- "gitHead": "a65da5df7804bc4424b6c9a5564a0ad17c001dc2"
39
+ "gitHead": "5612b26ae9b59681de1e96fae53e69e4dd94f3cf"
40
40
  }
@@ -78,6 +78,7 @@
78
78
 
79
79
  let customStylingContainer:HTMLElement;
80
80
  let sessionTimerElement:HTMLElement = document.createElement('p');
81
+ let clockElement:HTMLElement = document.createElement('p');
81
82
 
82
83
  setupI18n({ withLocale: 'en', translations: {}});
83
84
 
@@ -130,6 +131,8 @@
130
131
  const clockDisplay = ():void => {
131
132
  const format = clockcustomformat != 'false' ? clockcustomformat : `hh:mm${clocksecondsenabled === "true" ? ':ss' : ''} (UTC Z)`;
132
133
  time = moment().format(format);
134
+
135
+ clockElement.innerHTML = ` ${clocktext} ${time}`
133
136
  }
134
137
 
135
138
  const getCmsData = ():void => {
@@ -212,10 +215,8 @@
212
215
 
213
216
  //Add clock
214
217
  if (clockenabled === 'true' && element.classList.contains('DetailedLicenses')) {
215
- const clockHtml = document.createElement('p');
216
- clockHtml.innerHTML = ` ${clocktext} ${time}`
217
218
 
218
- element.children[0].children[0].append(clockHtml);
219
+ element.children[0].children[0].append(clockElement);
219
220
  }
220
221
  //Add session timer
221
222
  if (sessiontimerenabled == 'true' && element.classList.contains('DetailedLicenses')) {