From 9e887e0b58d32671d893473f8c93c15160160f18 Mon Sep 17 00:00:00 2001 From: Julien Semaan Date: Mon, 12 May 2025 14:26:34 +0000 Subject: [PATCH 1/5] infolinks in propose upgrade --- client/_propose_upgrade.html | 64 +++++++++------------- client/assets/js/Controller/Application.js | 2 +- client/assets/js/helpers.js | 1 + client/editor-layout.tt | 12 ++-- 4 files changed, 35 insertions(+), 44 deletions(-) diff --git a/client/_propose_upgrade.html b/client/_propose_upgrade.html index 5d8b9613..9077b0c8 100644 --- a/client/_propose_upgrade.html +++ b/client/_propose_upgrade.html @@ -2,23 +2,13 @@ -{{{script_open}}} async src="//www.googletagservices.com/tag/js/gpt.js">{{{script_close}}} -{{{script_open}}} type="text/javascript" src="https://storage.googleapis.com/dbmtiqbxqoopp7t3s9lq/sdbmtiqbxqoopp7t3s9lq.js" async>{{{script_close}}} -{{{script_open}}} type="text/javascript" src="https://storage.googleapis.com/dbmtiqbxqoopp7t3s9lq/vdbmtiqbxqoopp7t3s9lq.js">{{{script_close}}} - {{{script_tag}}} - - googletag.cmd.push(function() { - googletag.defineSlot("/61772569/dbmtiqbxqoopp7t3s9lq_anyfilenotepadsemaanca_480x320_1", [480, 320], "banner-480x320-1").addService(googletag.pubads()); - googletag.pubads().collapseEmptyDivs(true); - googletag.enableServices(); - }); - {{{script_close}}} +{{{script_open}}} type="text/javascript"> var infolinks_pid = 3221959; var infolinks_wsid = 0;{{{script_close}}} +{{{script_open}}} type="text/javascript" src="//resources.infolinks.com/js/infolinks_main.js">{{{script_close}}} - -
- +
@@ -45,28 +35,28 @@

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 secondsElem = $("#propose-upgrade-seconds-remaining"); - var initial = secondsElem.html(); - var i = setInterval(function() { - var remaining = parseInt(secondsElem.html()); - remaining -= 1; - secondsElem.html(remaining); - - secondsElem.closest(".propose-upgrade-timer").find(".progress-bar").css("width", (remaining/initial)*100 + "%"); - - if(remaining <= 0) { - clearInterval(i); - secondsElem.closest(".propose-upgrade-timer").hide(); - secondsElem.closest(".modal").find(".modal-footer").show(); - } - }, 1000) - + 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(); + var i = setInterval(function() { + + var remaining = parseInt(secondsElem.html()); + remaining -= 1; + secondsElem.html(remaining); + + secondsElem.closest(".propose-upgrade-timer").find(".progress-bar").css("width", (remaining/initial)*100 + "%"); + + if(remaining <= 0) { + clearInterval(i); + secondsElem.closest(".propose-upgrade-timer").hide(); + secondsElem.closest(".modal").find(".modal-footer").show(); + } + }, 1000) {{{ concat "" }}} diff --git a/client/assets/js/Controller/Application.js b/client/assets/js/Controller/Application.js index 8aec36aa..b99e1e9f 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(true || count % 3 == 0) { setCookie("propose-upgrade-count", 0); new Popup({ title : i18n('Upgrade!'), diff --git a/client/assets/js/helpers.js b/client/assets/js/helpers.js index 089783e8..deaf5c19 100755 --- a/client/assets/js/helpers.js +++ b/client/assets/js/helpers.js @@ -235,3 +235,4 @@ function findNestedHashKey(o, k) { } } } + diff --git a/client/editor-layout.tt b/client/editor-layout.tt index aecc6217..93fa20bf 100644 --- a/client/editor-layout.tt +++ b/client/editor-layout.tt @@ -39,15 +39,15 @@ [% INCLUDE app.tt %] From a8e856e0b810c58cd1942bad410555b577c9e2fe Mon Sep 17 00:00:00 2001 From: Julien Semaan Date: Mon, 12 May 2025 14:27:13 +0000 Subject: [PATCH 2/5] infolinks in propose upgrade --- client/_propose_upgrade.html | 44 ++++++++++++++++++------------------ 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/client/_propose_upgrade.html b/client/_propose_upgrade.html index 9077b0c8..eab71cbe 100644 --- a/client/_propose_upgrade.html +++ b/client/_propose_upgrade.html @@ -35,28 +35,28 @@

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 secondsElem = $("#propose-upgrade-seconds-remaining"); - var initial = secondsElem.html(); - var i = setInterval(function() { - - var remaining = parseInt(secondsElem.html()); - remaining -= 1; - secondsElem.html(remaining); - - secondsElem.closest(".propose-upgrade-timer").find(".progress-bar").css("width", (remaining/initial)*100 + "%"); - - if(remaining <= 0) { - clearInterval(i); - secondsElem.closest(".propose-upgrade-timer").hide(); - secondsElem.closest(".modal").find(".modal-footer").show(); - } - }, 1000) + 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(); + var i = setInterval(function() { + + var remaining = parseInt(secondsElem.html()); + remaining -= 1; + secondsElem.html(remaining); + + secondsElem.closest(".propose-upgrade-timer").find(".progress-bar").css("width", (remaining/initial)*100 + "%"); + + if(remaining <= 0) { + clearInterval(i); + secondsElem.closest(".propose-upgrade-timer").hide(); + secondsElem.closest(".modal").find(".modal-footer").show(); + } + }, 1000) {{{ concat "" }}} From 1b5a3f01dd6266da1d0ed00b3ea445d5c2fb23f7 Mon Sep 17 00:00:00 2001 From: Julien Semaan Date: Mon, 12 May 2025 14:27:39 +0000 Subject: [PATCH 3/5] infolinks in propose upgrade --- client/_propose_upgrade.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/_propose_upgrade.html b/client/_propose_upgrade.html index eab71cbe..d9a67331 100644 --- a/client/_propose_upgrade.html +++ b/client/_propose_upgrade.html @@ -44,7 +44,6 @@

You can continue in 5 se var secondsElem = $("#propose-upgrade-seconds-remaining"); var initial = secondsElem.html(); var i = setInterval(function() { - var remaining = parseInt(secondsElem.html()); remaining -= 1; secondsElem.html(remaining); @@ -57,6 +56,7 @@

You can continue in 5 se secondsElem.closest(".modal").find(".modal-footer").show(); } }, 1000) + {{{ concat "" }}} From 0e13c2090eec3f5294cb2200e78e064ec9fda0fe Mon Sep 17 00:00:00 2001 From: Julien Semaan Date: Mon, 12 May 2025 15:43:37 +0000 Subject: [PATCH 4/5] try adcash --- client/_propose_upgrade.html | 9 +++++++-- client/app.tt | 10 +++++++--- client/editor-layout.tt | 2 ++ 3 files changed, 16 insertions(+), 5 deletions(-) diff --git a/client/_propose_upgrade.html b/client/_propose_upgrade.html index d9a67331..fd0c4386 100644 --- a/client/_propose_upgrade.html +++ b/client/_propose_upgrade.html @@ -3,12 +3,17 @@ -{{{script_open}}} type="text/javascript"> var infolinks_pid = 3221959; var infolinks_wsid = 0;{{{script_close}}} -{{{script_open}}} type="text/javascript" src="//resources.infolinks.com/js/infolinks_main.js">{{{script_close}}} +{{{script_open}}} id="aclib" type="text/javascript" src="//acscdn.com/script/aclib.js">{{{script_close}}} +
+ {{{script_open}}} type="text/javascript"> + aclib.runBanner({ + zoneId: '9935426', + }); + {{{script_close}}}
diff --git a/client/app.tt b/client/app.tt index df2d532b..5af14808 100644 --- a/client/app.tt +++ b/client/app.tt @@ -43,9 +43,13 @@ [% IF WITH_ADS %]
- +
[% END %] diff --git a/client/editor-layout.tt b/client/editor-layout.tt index 93fa20bf..11c66439 100644 --- a/client/editor-layout.tt +++ b/client/editor-layout.tt @@ -20,6 +20,8 @@ + +