foliokit 1.4.0 → 1.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/assets/inject.js +1 -0
- data/lib/foliokit/exporter.rb +2 -0
- data/lib/foliokit/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 07f354064ac53e870ca6eec300779c5e43fd0d9f
|
4
|
+
data.tar.gz: 065ac1a51be33ec34df9680e45d8c188a6754133
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ecb71ea1d6cf74c718c6a2504ccd92a8ec8f00a3a293dd1b81c9b86928c7d080804ebb68adcd89cf78389fe770eaa50b47bcfc6260dbe792b55d0f8cb8553a98
|
7
|
+
data.tar.gz: b3921e10ceca4627fa00db80a394d1d1b25de86a96e97f423f3b85d3207a840a049f97ea36ae342e26a0ed475fac2ddf715727f3476ccd4a0b6c7904288209ec
|
data/assets/inject.js
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
function attachSwiperListener(){const{MagLoftReader:t}=window;if(t.initialized){const{swiper:e}=t;e.on("slideChangeTransitionEnd",()=>{const{xIndex:e,yIndex:n}=t;gtag("config","UA-89717859-63",{page_path:`/${e}/${n}/`})})}else setTimeout(attachSwiperListener,500)}document.addEventListener("DOMContentLoaded",function(){if(!/https?:/.test(window.location.protocol))return;if("digipubs.amwaycentral.com"!==window.location.host)return;const t=document.createElement("script");t.setAttribute("async",""),t.setAttribute("src","https://www.googletagmanager.com/gtag/js?id=UA-89717859-63"),document.body.appendChild(t);const e=document.createElement("script");e.innerHTML="\n window.dataLayer = window.dataLayer || [];\n function gtag(){dataLayer.push(arguments);}\n gtag('js', new Date());\n\n gtag('config', 'UA-89717859-63');\n ",document.body.appendChild(e),attachSwiperListener()});
|
data/lib/foliokit/exporter.rb
CHANGED
@@ -18,6 +18,7 @@ module Foliokit
|
|
18
18
|
issue_dir.dir("html").copy(dir.dir("html")) if issue_dir.dir("html").exists?
|
19
19
|
assets_dir.file("foliokit.css").copy(dir.file("foliokit.css"))
|
20
20
|
assets_dir.file("foliokit.js").copy(dir.file("foliokit.js"))
|
21
|
+
assets_dir.file("inject.js").copy(dir.file("inject.js")) # Amway tracking js file
|
21
22
|
@output_dir = dir
|
22
23
|
@converted = true
|
23
24
|
true
|
@@ -97,6 +98,7 @@ module Foliokit
|
|
97
98
|
end
|
98
99
|
end
|
99
100
|
b.script(type: 'text/javascript', src: "foliokit.js")
|
101
|
+
b.script(type: 'text/javascript', src: "inject.js")
|
100
102
|
end
|
101
103
|
end
|
102
104
|
end
|
data/lib/foliokit/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: foliokit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.4.
|
4
|
+
version: 1.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tobias Strebitzer
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-02-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -210,6 +210,7 @@ files:
|
|
210
210
|
- README.md
|
211
211
|
- assets/foliokit.css
|
212
212
|
- assets/foliokit.js
|
213
|
+
- assets/inject.js
|
213
214
|
- bin/foliokit
|
214
215
|
- lib/foliokit.rb
|
215
216
|
- lib/foliokit/article.rb
|