This application is the property of Kirov Dynamics Technology (KDT). Unauthorised use, copying or redistribution is prohibited. By using this app you agree to the KDT terms of service.
',
'
Free trial complete! Your free trial of this app has ended. Upgrade to Pro to continue enjoying all features.
',
'
Upgrade to KDT Pro
',
'
',
'
R49
per month
',
'
Save 16%
R490
per year
',
"
",
'',
'
On upgrade, an email request is sent to KDT. Once approved, your Pro access will be activated.
',
"
",
"
",
"
",
].join("");
document.body.appendChild(el);
var modal = el.querySelector("#kdt-modal");
var badge = el.querySelector("#kdt-badge");
var xBtn = el.querySelector(".kdt-x");
var upgradeBtn = el.querySelector("#kdt-upgrade");
var plans = Array.prototype.slice.call(el.querySelectorAll(".kdt-plan"));
var selectedPlan = "monthly";
var trialText = el.querySelector("#kdt-trial-text");
if (trialOver) { trialText.style.display = ""; badge.style.background = "rgba(220,38,38,.9)"; badge.style.borderColor = "rgba(255,255,255,.35)"; }
function close() { modal.classList.remove("kdt-open"); }
badge.addEventListener("click", function () { modal.classList.add("kdt-open"); });
xBtn.addEventListener("click", close);
modal.addEventListener("click", function (e) { if (e.target === modal) close(); });
document.addEventListener("keydown", function (e) { if (e.key === "Escape") close(); });
plans.forEach(function (p) {
p.addEventListener("click", function () {
plans.forEach(function (q) { q.classList.remove("kdt-sel"); });
p.classList.add("kdt-sel");
selectedPlan = p.getAttribute("data-plan");
});
});
upgradeBtn.addEventListener("click", function () {
var planLabel = selectedPlan === "monthly" ? "Monthly (R49/month)" : "Yearly (R490/year)";
var subject = encodeURIComponent("[KDT PRO UPGRADE] " + APP_NAME + " - " + planLabel);
var body = encodeURIComponent(
"Hello Kirov Dynamics Technology,\n\n" +
"I would like to upgrade to KDT Pro for the following application:\n\n" +
"Application: " + APP_NAME + "\n" +
"Plan: " + planLabel + "\n" +
"Date: " + new Date().toISOString() + "\n\n" +
"Please activate my Pro access. Thank you!"
);
window.location.href = "mailto:" + UPGRADE_EMAIL + "?subject=" + subject + "&body=" + body;
});
})();