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 +4 -4
- data/_includes/monumetric/monumetric.html +0 -6
- data/assets/js/adBlocker.js +0 -1
- data/assets/js/featureResult.js +33 -29
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: af013eab2dff006d27d3f8544b9c21722c08bc4bd77773c640764446c2ff12fd
|
4
|
+
data.tar.gz: 179fa11689d85114c89ab2b857436e75b9866e1c1c8bca7b6be92b5fe5a86e4b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
});
|
data/assets/js/adBlocker.js
CHANGED
data/assets/js/featureResult.js
CHANGED
@@ -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(
|
9
|
-
let feature_h2 = document.querySelector(
|
10
|
-
let feature_img = document.querySelector(
|
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
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
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.
|
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-
|
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.
|
1124
|
+
rubygems_version: 3.1.6
|
1125
1125
|
signing_key:
|
1126
1126
|
specification_version: 4
|
1127
1127
|
summary: Appscms theme for all tools
|