appscms-tools-theme 1.9.7 → 1.9.8

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d5e6f1b382876e2a24f01bce40c99c022f249c2f8728296c2329e2b8ded8d058
4
- data.tar.gz: 7ec2ac0f6526b97dab83c738c121ffdb89e0ebee28ac09afb7e1574da1a4a492
3
+ metadata.gz: af013eab2dff006d27d3f8544b9c21722c08bc4bd77773c640764446c2ff12fd
4
+ data.tar.gz: 179fa11689d85114c89ab2b857436e75b9866e1c1c8bca7b6be92b5fe5a86e4b
5
5
  SHA512:
6
- metadata.gz: c75e6f4bb407960f048e209b9804657f82b88796d905b43960cc750f967854f66ab8392c45b2c3edbf7e89764c3ce71d4e0a77c6a8a6eee5ca6be9f11ee9e995
7
- data.tar.gz: e8c3a53263bb957ac93c023bd1a8d13237ee63fc70c8177b007fa8cefbf23c1528257b0a584b468f2e150ff049d1257666eb863d3008b950c1d0ac608c316cd8
6
+ metadata.gz: 705bc6b67a9729742c14b8fa791ffab3f759d565c8975c8b26b5258fdd2a10bcf4c4127bc52f3c883e12cccd54b2a4824e4a4fc4c1810302d1afa25d7987b378
7
+ data.tar.gz: 5ffc03b11c81fe1014bd582d1207f5c784d18eb6cdacf1860196674e0c6673aa5732aae75b405b1ff22777f882eea1f0430b0efed55dcc45ed6c47017e1b6c9d
@@ -19,9 +19,6 @@
19
19
  }
20
20
 
21
21
  function runScripts() {
22
- console.log(document.querySelector("script"))
23
- console.log("Javascript Executed!")
24
- console.log(document.querySelectorAll("script[delay]"))
25
22
  document.querySelectorAll("script[delay]").forEach(function (scriptTag) {
26
23
  scriptTag.setAttribute("src", scriptTag.getAttribute("delay"));
27
24
  });
@@ -50,9 +47,6 @@
50
47
  }
51
48
 
52
49
  function runScripts() {
53
- console.log(document.querySelector("script"))
54
- console.log("Javascript Executed!")
55
- console.log(document.querySelectorAll("script[delay]"))
56
50
  document.querySelectorAll("script[delay]").forEach(function (scriptTag) {
57
51
  scriptTag.setAttribute("src", scriptTag.getAttribute("delay"));
58
52
  });
@@ -37,7 +37,6 @@ if (!wrapper.classList.contains('show')) {
37
37
  : wrapper.classList.remove('show')
38
38
  }
39
39
  closePopup[0].addEventListener('click', () => {
40
- console.log(true)
41
40
  wrapper.classList.remove('show')
42
41
  })
43
42
  closePopup[1].addEventListener('click', () => {
@@ -1,38 +1,42 @@
1
1
  let script = document.currentScript
2
2
  const params = new URLSearchParams(window.location.search)
3
3
  let type = params.get('fileName')
4
- let jsonFileName = atob(type);
4
+ let jsonFileName = atob(type)
5
5
  let folderName = script.dataset.foldername
6
6
  let fileName = jsonFileName
7
7
  let lang = script.dataset.lang
8
- let feature_h1 = document.querySelector(".feature-h1")
9
- let feature_h2 = document.querySelector(".feature-h2")
10
- let feature_img = document.querySelector(".features-img")
8
+ let feature_h1 = document.querySelector('.feature-h1')
9
+ let feature_h2 = document.querySelector('.feature-h2')
10
+ let feature_img = document.querySelector('.features-img')
11
11
 
12
12
  const getSeodata = async () => {
13
- let URL = '/data' + '/' + folderName + '/' + lang + '/' + fileName + '.json'
14
- console.log(URL)
15
- const data = await fetch(URL)
16
- const seoData = await data.json()
17
-
18
- feature_h1.innerHTML = seoData.H1
19
- feature_h2.innerHTML = seoData.H2
20
-
21
-
22
- document.head.querySelector('meta[property="og:title"]').setAttribute("content", seoData.TITLE);
23
- document.head.querySelector('meta[name="description"]').setAttribute("content", seoData.META);
24
- document.head.querySelector('meta[name="twitter:title"]').setAttribute("content", seoData.TITLE);
25
- document.head.querySelector('meta[name="twitter:description"]').setAttribute("content", seoData.META);
26
-
27
-
28
- if (seoData.img) {
29
- feature_img.src = seoData.img
30
- feature_img.setAttribute("alt", seoData.imgalt)
31
- feature_img.style.width = seoData.imgwidth
32
- feature_img.style.height = seoData.imgheight
33
- }
34
-
35
- document.title = seoData.TITLE
36
-
13
+ let URL = '/data' + '/' + folderName + '/' + lang + '/' + fileName + '.json'
14
+ const data = await fetch(URL)
15
+ const seoData = await data.json()
16
+
17
+ feature_h1.innerHTML = seoData.H1
18
+ feature_h2.innerHTML = seoData.H2
19
+
20
+ document.head
21
+ .querySelector('meta[property="og:title"]')
22
+ .setAttribute('content', seoData.TITLE)
23
+ document.head
24
+ .querySelector('meta[name="description"]')
25
+ .setAttribute('content', seoData.META)
26
+ document.head
27
+ .querySelector('meta[name="twitter:title"]')
28
+ .setAttribute('content', seoData.TITLE)
29
+ document.head
30
+ .querySelector('meta[name="twitter:description"]')
31
+ .setAttribute('content', seoData.META)
32
+
33
+ if (seoData.img) {
34
+ feature_img.src = seoData.img
35
+ feature_img.setAttribute('alt', seoData.imgalt)
36
+ feature_img.style.width = seoData.imgwidth
37
+ feature_img.style.height = seoData.imgheight
38
+ }
39
+
40
+ document.title = seoData.TITLE
37
41
  }
38
- getSeodata()
42
+ getSeodata()
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: appscms-tools-theme
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.9.7
4
+ version: 1.9.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - vivek-appscms
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-06-01 00:00:00.000000000 Z
11
+ date: 2022-06-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -1121,7 +1121,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
1121
1121
  - !ruby/object:Gem::Version
1122
1122
  version: '0'
1123
1123
  requirements: []
1124
- rubygems_version: 3.3.7
1124
+ rubygems_version: 3.1.6
1125
1125
  signing_key:
1126
1126
  specification_version: 4
1127
1127
  summary: Appscms theme for all tools