appscms-tools-theme 1.8.9 → 1.9.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,25 +1,25 @@
1
- body {
2
- font-family: 'Inter', sans-serif;
3
- }
4
- .file-comparison-page p,
5
- h1,
6
- h2 {
7
- font-family: 'Inter', sans-serif;
8
- }
9
- .file-comparison-page h1 {
10
- font-size: 32px;
11
- font-weight: 700;
12
- }
13
- .file-comparison-page img {
14
- width: 100%;
15
- height: 100%;
16
- border-radius: 8px;
17
- margin-top: 15px;
18
- }
19
- .file-comparison-page p {
20
- font-size: 17px;
21
- color: rgba(41, 41, 41);
22
- margin-bottom: 1.56em;
23
- line-height: 28px;
24
- letter-spacing: -0.003em;
25
- }
1
+ body {
2
+ font-family: 'Inter', sans-serif;
3
+ }
4
+ .file-comparison-page p,
5
+ h1,
6
+ h2 {
7
+ font-family: 'Inter', sans-serif;
8
+ }
9
+ .file-comparison-page h1 {
10
+ font-size: 32px;
11
+ font-weight: 700;
12
+ }
13
+ .file-comparison-page img {
14
+ width: 100%;
15
+ height: 100%;
16
+ border-radius: 8px;
17
+ margin-top: 15px;
18
+ }
19
+ .file-comparison-page p {
20
+ font-size: 17px;
21
+ color: rgba(41, 41, 41);
22
+ margin-bottom: 1.56em;
23
+ line-height: 28px;
24
+ letter-spacing: -0.003em;
25
+ }
data/assets/css/tools.css CHANGED
@@ -1258,3 +1258,6 @@ ol li::marker {
1258
1258
  background: rgb(238, 238, 238);
1259
1259
  border-radius: 3px;
1260
1260
  }
1261
+ .row .col-md-9 p{
1262
+ text-align: left;
1263
+ }
@@ -0,0 +1,38 @@
1
+ let script = document.currentScript
2
+ const params = new URLSearchParams(window.location.search)
3
+ let type = params.get('fileName')
4
+ let jsonFileName = atob(type);
5
+ let folderName = script.dataset.foldername
6
+ let fileName = jsonFileName
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")
11
+
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
+
37
+ }
38
+ getSeodata()
@@ -0,0 +1,37 @@
1
+ let script = document.currentScript
2
+ const params = new URLSearchParams(window.location.search)
3
+ let type = params.get('fileName')
4
+ let jsonFileName = atob(type);
5
+ let folderName = script.dataset.foldername
6
+ let fileName = jsonFileName
7
+ let lang = script.dataset.lang
8
+
9
+ let home_h1 = document.querySelector(".home-top-h1")
10
+ let home_h2 = document.querySelector(".home-top-h2")
11
+ let home_img = document.querySelector(".home-img")
12
+
13
+ const getSeodata = async () => {
14
+ let URL = '/data' + '/' + folderName + '/' + lang + '/' + fileName + '.json'
15
+ const data = await fetch(URL)
16
+ const seoData = await data.json()
17
+
18
+ home_h1.innerHTML = seoData.h1
19
+ home_h2.innerHTML = seoData.h2
20
+
21
+ document.head.querySelector('meta[property="og:title"]').setAttribute("content", seoData.TITLE);
22
+ document.head.querySelector('meta[name="description"]').setAttribute("content", seoData.META);
23
+ document.head.querySelector('meta[name="twitter:title"]').setAttribute("content", seoData.TITLE);
24
+ document.head.querySelector('meta[name="twitter:description"]').setAttribute("content", seoData.META);
25
+
26
+
27
+ if (seoData.img) {
28
+ home_img.src = seoData.img
29
+ home_img.setAttribute("alt", seoData.imgalt)
30
+ home_img.style.width = seoData.imgwidth
31
+ home_img.style.height = seoData.imgheight
32
+ }
33
+
34
+ document.title = seoData.TITLE
35
+
36
+ }
37
+ getSeodata()
@@ -0,0 +1,10 @@
1
+ const button = document.getElementById('btn')
2
+ let script = document.currentScript
3
+ let fileName = script.dataset.filename
4
+ let permalink = script.dataset.permalink
5
+
6
+ const params = new URLSearchParams(window.location.search)
7
+ button.addEventListener("click", (e) => {
8
+ window.location = window.location.protocol + "//" + window.location.host +
9
+ `${permalink}` + '/' + "result" + '?' + 'fileName' + "=" + btoa(fileName);
10
+ })
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.8.9
4
+ version: 1.9.2
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-03-30 00:00:00.000000000 Z
11
+ date: 2022-04-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -1086,9 +1086,12 @@ files:
1086
1086
  - assets/instagram.svg
1087
1087
  - assets/js/TopScroll.js
1088
1088
  - assets/js/adBlocker.js
1089
+ - assets/js/featureResult.js
1089
1090
  - assets/js/googledrive.js
1091
+ - assets/js/homeResult.js
1090
1092
  - assets/js/manifest.json
1091
1093
  - assets/js/multiselect.js
1094
+ - assets/js/redirectResult.js
1092
1095
  - assets/linkdin.svg
1093
1096
  - assets/noserverupload.svg
1094
1097
  - assets/pdf.svg