From 70cdaecb16534412e2e018cd2a1b8853b1d58c2e Mon Sep 17 00:00:00 2001 From: Julien Semaan Date: Wed, 28 May 2025 14:57:48 +0000 Subject: [PATCH 1/3] fix double init --- client/editor-layout.tt | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/client/editor-layout.tt b/client/editor-layout.tt index aecc6217..b7476ad5 100644 --- a/client/editor-layout.tt +++ b/client/editor-layout.tt @@ -39,15 +39,18 @@ [% INCLUDE app.tt %] From ea3a86eaa5c41bb14abc5b9b4d3bed672da035f5 Mon Sep 17 00:00:00 2001 From: Julien Semaan Date: Wed, 28 May 2025 14:58:15 +0000 Subject: [PATCH 2/3] make upgrade popup every 5 screens --- client/assets/js/Controller/Application.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/assets/js/Controller/Application.js b/client/assets/js/Controller/Application.js index 8aec36aa..a190e243 100644 --- a/client/assets/js/Controller/Application.js +++ b/client/assets/js/Controller/Application.js @@ -121,7 +121,7 @@ ApplicationController.prototype.propose_upgrade = function() { // If we reach the rotation count, we reset the counter + show the popup // Otherwise, we save the current count - if(count % 3 == 0) { + if(count % 5 == 0) { setCookie("propose-upgrade-count", 0); new Popup({ title : i18n('Upgrade!'), From a05ae3407db4e79c32a5885f7ac44b62cd2fb1ed Mon Sep 17 00:00:00 2001 From: Julien Semaan Date: Wed, 28 May 2025 14:59:51 +0000 Subject: [PATCH 3/3] remove ad in propose upgrade --- client/_propose_upgrade.html | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/client/_propose_upgrade.html b/client/_propose_upgrade.html index 5d8b9613..e23f4d33 100644 --- a/client/_propose_upgrade.html +++ b/client/_propose_upgrade.html @@ -34,7 +34,7 @@
- +
@@ -45,11 +45,11 @@

You can continue in 5 se

{{{ concat "" }}} - var doc = document.getElementById('upgrade-frame-ad').contentWindow.document; - doc.open(); - var ads = Handlebars.compile($('#upgrade-ads').html()); - doc.write(ads()); - doc.close(); + //var doc = document.getElementById('upgrade-frame-ad').contentWindow.document; + //doc.open(); + //var ads = Handlebars.compile($('#upgrade-ads').html()); + //doc.write(ads()); + //doc.close(); var secondsElem = $("#propose-upgrade-seconds-remaining"); var initial = secondsElem.html();