- Thanks for using counter for free. Consider
- paying a service fee. Your contribution will be used to cover
- development and maintenance. Contact us for anything.
+ Thank you for using counter for free. If you are able to, please pay for this service.
-
-
-
-
+
+
Starter
-
+
@@ -98,6 +94,8 @@ customElements.define(
+
+
Intermediate
@@ -109,6 +107,19 @@ customElements.define(
+
+
Hight Traffic
+
+
+
+
+
+
+
+
+
+
+
@@ -116,7 +127,6 @@ customElements.define(
`;
- this.setupPayPalButton(2, userDump.user.id)
this.setupPayPalButton(3, userDump.user.id)
this.setupPayPalButton(5, userDump.user.id)
this.setupPayPalButton(7, userDump.user.id)
@@ -124,6 +134,9 @@ customElements.define(
this.setupPayPalButton(20, userDump.user.id)
this.setupPayPalButton(25, userDump.user.id)
this.setupPayPalButton(30, userDump.user.id)
+ this.setupPayPalButton(70, userDump.user.id)
+ this.setupPayPalButton(90, userDump.user.id)
+ this.setupPayPalButton(120, userDump.user.id)
$("input[type=radio][name=plan]").change(function() {
$(".paypal-btn").hide()
@@ -195,24 +208,21 @@ customElements.define(
}
highlightPersonalizedSuggestion(dump){
- var FIVE_EUROS_SUGGESTION = 0
- var SEVEN_EUROS_SUGGESTION = 1
- var TWENTYFIVE_EUROS_SUGGESTION = 2
var allHitsPerDay =Object.values(dump.sites).map( // for every site
(i) => Object.entries(i.visits.all.date).sort().slice(-7).map( // get the 7 latest dates
(i) => i[1]).reduce(function(pv, cv) {return pv + cv; }, 0) / 7 // sum them and divide by 7
).reduce(function(pv, cv) { return pv + cv;}, 0) // sum all sites
- var suggestion = FIVE_EUROS_SUGGESTION
- if (allHitsPerDay > 70){
- suggestion = SEVEN_EUROS_SUGGESTION
+ var suggestionTier = 0
+ if (allHitsPerDay > 1000){
+ suggestionTier = 1
}
- if (allHitsPerDay > 5000){
- suggestion = TWENTYFIVE_EUROS_SUGGESTION
+ if (allHitsPerDay > 10000){
+ suggestionTier = 2
}
- this.querySelectorAll('.highlightable')[suggestion].classList.add('highlight')
+ this.querySelectorAll('.highlightable')[suggestionTier].classList.add('highlight')
this.querySelector("#modal-pwyw .highlight + div input").setAttribute('checked', 'checked')
let val = $("input[type=radio][name=plan]:checked").val()