Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only show DAX Optimizer banner on whats new page for pre-3.18 versions #122

Merged
merged 1 commit into from
Oct 31, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions whats-new/3-17-1.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<h2>Tabular Editor 3.17.0</h2>
<p>This release: <a href="https://blog.tabulareditor.com/2024/08/14/tabular-editor-3-august-2024-release/">August 2024</a> (v. 3.17.0, <a href="https://docs.tabulareditor.com/te3/other/release-notes/3_17_0.html">release notes</a>)</p>
<ul>
<li>.NET 8 support and self-contained portable versions!</li>
<li><a href="https://docs.tabulareditor.com/te3/features/dax-debugger.html#locals">Inspect Locals in DAX Debugger</a> to easier understand intermediate values</li>
<li>New Databricks connector for other sources than Azure (MultiCloud)</li>
<li>Added ability to set Fixed and Ignored in DAX Optimizer Integration (Preview)</li>
<li>Shared Expression can independently be deployed in the Deployment Wizard</li>
<li>Fixed several ODBC connector bugs for Oracle and Snowflake</li>
<li><a href="https://docs.tabulareditor.com/te3/other/release-notes/3_17_0.html">And more...</a></li>
</ul>
25 changes: 21 additions & 4 deletions whats-new/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -113,11 +113,11 @@
<body>
<div id="content-wrapper">
<!--- CONTENT GOES BELOW THIS LINE -->
<section>
<section id="dax-optimizer-banner">
<div style="width: 80%; border-radius: 0 0 1rem 1rem; border: 1px solid rgb(41, 170, 151); background-color: rgb(41, 170, 151); padding: 0.2rem; text-align: center; color: white; margin: 0 auto;height: 70px; overflow: hidden;">
<div class="announcement-header" style="display: flex; flex-direction: column; justify-content: center; height: 100%;">
<h1 style="font-size: 1rem; margin: 0;">Coming soon: Free DAX Optimizer runs for Enterprise Edition customers</h1>
<p style="font-size: 0.8rem; margin: 0;">Sign up for a <a style="text-decoration: underline; color: white;" href="https://www.daxoptimizer.com/free-tour/">DAX Optimizer Account</a> and check out <a style="text-decoration: underline; color: white;" href="https://youtu.be/Tr4copX0JO0">this video</a> for more information.</p>
<h1 style="font-size: 1rem; margin: 0;">Important update: Free DAX Optimizer access for Enterprise Edition customers</h1>
<p style="font-size: 0.8rem; margin: 0;">Download the <a style="text-decoration: underline; color: white;" href="https://docs.tabulareditor.com/te3/other/downloads.html">latest Tabular Editor 3</a> version, sign up for a <a style="text-decoration: underline; color: white;" href="https://www.daxoptimizer.com/free-tour/">DAX Optimizer Account</a>, and check out <a style="text-decoration: underline; color: white;" href="https://youtu.be/Tr4copX0JO0">this video</a> for more information.</p>
</div>
</div>
</section>
Expand Down Expand Up @@ -195,11 +195,28 @@ <h3>The Tabular Editor Team will be at the following conferences:</h3>
function init()
{
var version = getParameterByName("version");
if(!version) version = "generic";
if (!version) version = "generic";
else if (is_3_18_orGreater(version)) {
deleteElementById("dax-optimizer-banner");
}
loadDivContent("/whats-new/" + urlify(version) + ".html", "version-specific-content");
applyStyle();
}

function is_3_18_orGreater(version) {
// Split the version string into an array of parts
const parts = version.split('.');
// Check if the middle number meets or exceeds the threshold
return parseInt(parts[0], 10) >= 3 && parseInt(parts[1], 10) >= 18;
}

function deleteElementById(tagId) {
var element = document.getElementById(tagId);
if (element) {
element.parentNode.removeChild(element);
}
}

function loadDivContent(url, divId) {
// Create a new XMLHttpRequest object
var xhr = new XMLHttpRequest();
Expand Down
Loading