diff --git a/src/assets/new-project/assets/js/code-editor.js b/src/assets/new-project/assets/js/code-editor.js index d8e82c4033..22de25f873 100644 --- a/src/assets/new-project/assets/js/code-editor.js +++ b/src/assets/new-project/assets/js/code-editor.js @@ -186,7 +186,7 @@ function _openURLInTauri(url) { function _updateProBranding() { try { const $freeTitle = $('.phoenix-free-title'); - const $proTitle = $('.phoenix-pro-title'); + const $proTitle = $('#phoenix-pro-title'); const $proTitleSpan = $('.pro-plan-name'); if (!$freeTitle.length || !$proTitle.length || !$proTitleSpan.length) { @@ -222,6 +222,10 @@ function initCodeEditor() { Metrics.countEvent(Metrics.EVENT_TYPE.NEW_PROJECT, "main.Click", "viewMore"); window.location.href = 'new-project-more.html'; }; + document.getElementById("phoenix-pro-title").onclick = function() { + Metrics.countEvent(Metrics.EVENT_TYPE.NEW_PROJECT, "main.Click", "proTitle"); + _openURLInTauri("https://account.phcode.dev"); + }; document.getElementById("githubStarsButton").onclick = function() { Metrics.countEvent(Metrics.EVENT_TYPE.NEW_PROJECT, "main.Click", "githubStars"); _openURLInTauri("https://github.com/phcode-dev/phoenix"); diff --git a/src/assets/new-project/code-editor.html b/src/assets/new-project/code-editor.html index 6362e1adf2..eb0f86a489 100644 --- a/src/assets/new-project/code-editor.html +++ b/src/assets/new-project/code-editor.html @@ -16,7 +16,7 @@