appscms-tools-theme 3.5.9 → 3.6.1

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: 55aad53cced962fc52902bccdc8d44025ebb43f6c8567aacb45e045d1cdcdaff
4
- data.tar.gz: 2775546ffbb8aad09bb869487459fc4f6bf02a1a9773041e7046b6e288d3212a
3
+ metadata.gz: 1a99f04b5b13d5ebe28d62bb4fd084c70920693b8535725d69158a7eea4f5f3f
4
+ data.tar.gz: 2efeba2dbec502fab373d7b59e863cbdcc7260be975d841f71ca51d60bb0a96e
5
5
  SHA512:
6
- metadata.gz: df3457cb89a57095b6640b96f15e58a7f1ece33c1e08633dc0ab6abb8bae7eb90ef0e17c33fdc115f8288c5a7c6dccaf83da569b66871695e74d5b416c731316
7
- data.tar.gz: b9bed241272aea35efdb2b1c99b281367a998b143dce1c595d55bf21ba18d94fdf53f7fdb84de50dab199328968ab553c959b1ed09c46fd9fe28224cb574be17
6
+ metadata.gz: 5d2dec64c58f51c991d9e75987e363f375dbbbce076c8d134531159678f241119ef2e7fa1a17ad4ce5939132b2652f9e5d35bddca30172ae37d58f2e3a4398cd
7
+ data.tar.gz: ec825540d4459af891024ea3ec1e946bacf111ed1ba8708053026e8f7acb8d8a964ab5711c94288044a5e8e3a7f60ddf58903972025d6097cabab2d6db1955f2
@@ -445,6 +445,7 @@ site.removeJquery != true -%}
445
445
  <script defer src="/assets/js/theme.js" crossorigin="anonymous"></script>
446
446
  {%- if site.userTrackingCount -%}
447
447
  <script defer src="/assets/js/usageTracking.js"></script>
448
+ <script defer src="/assets/js/usageTrackingEvents.js"></script>
448
449
  <script defer src="/assets/js/sharePage.js"></script>
449
450
  {%- endif -%} {%- if site.removeBootstrapJs != true -%}
450
451
  <script
@@ -1,7 +1,7 @@
1
1
  <div id="shareModal" class="shareModal">
2
2
  <div class="share-modal-content">
3
3
  <span class="close-share-modal">&times;</span>
4
- <h5>Share this page</h5>
4
+ <h5>Share on social media to continue using this website</h5>
5
5
  <div class="share-modal-social">
6
6
  <div>
7
7
  <a href="#" class="social-share facebook"
@@ -1,20 +1,6 @@
1
1
  ---
2
2
  ---
3
3
 
4
- const inputBoxOfFeatureFile=document.querySelector('#file')
5
- const inputBoxOfFeatureFiles=document.querySelector('#files')
6
-
7
- if (inputBoxOfFeatureFile) {
8
- inputBoxOfFeatureFile.addEventListener('change',()=>{
9
- checkUsage()
10
- })
11
- }
12
- if (inputBoxOfFeatureFiles) {
13
- inputBoxOfFeatureFiles.addEventListener('change',()=>{
14
- checkUsage()
15
- })
16
- }
17
-
18
4
  let userTrackingCountLimit='{{site.userTrackingCount}}';
19
5
  const checkUsage = () => {
20
6
  const today = new Date().toDateString();
@@ -52,7 +38,7 @@ const handleShare = () => {
52
38
  const usageCount = getCookie("featureUsageCount");
53
39
  if (usageCount) {
54
40
  // Decrement the usage count by 1 if the user has already used the feature today
55
- setCookie("featureUsageCount", usageCount - 1, getExpirationDate());
41
+ setCookie("featureUsageCount", usageCount , getExpirationDate());
56
42
  }
57
43
  document.getElementById("shareModal").style.display = "none";
58
44
  };
@@ -81,7 +67,6 @@ const socialShare=document.querySelectorAll('.social-share')
81
67
 
82
68
  if (socialShare) {
83
69
  Array.from(socialShare).map(item=>{
84
- console.log(item)
85
70
  item.addEventListener('click',()=>{
86
71
  handleShare()
87
72
  })
@@ -0,0 +1,13 @@
1
+ const inputBoxOfFeatureFile = document.querySelector("#file");
2
+ const inputBoxOfFeatureFiles = document.querySelector("#files");
3
+
4
+ if (inputBoxOfFeatureFile) {
5
+ inputBoxOfFeatureFile.addEventListener("change", () => {
6
+ checkUsage();
7
+ });
8
+ }
9
+ if (inputBoxOfFeatureFiles) {
10
+ inputBoxOfFeatureFiles.addEventListener("change", () => {
11
+ checkUsage();
12
+ });
13
+ }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: appscms-tools-theme
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.5.9
4
+ version: 3.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - vivek-appscms
@@ -439,6 +439,7 @@ files:
439
439
  - assets/js/testing-batch.js
440
440
  - assets/js/theme.js
441
441
  - assets/js/usageTracking.js
442
+ - assets/js/userTrackingEvents.js
442
443
  - assets/linkdin.svg
443
444
  - assets/noserverupload.svg
444
445
  - assets/pdf.svg