diff --git a/website/assets/js/pages/get-started.page.js b/website/assets/js/pages/get-started.page.js new file mode 100644 index 0000000000..2cde1d82c3 --- /dev/null +++ b/website/assets/js/pages/get-started.page.js @@ -0,0 +1,30 @@ +parasails.registerPage('get-started', { + // ╦╔╗╔╦╔╦╗╦╔═╗╦ ╔═╗╔╦╗╔═╗╔╦╗╔═╗ + // ║║║║║ ║ ║╠═╣║ ╚═╗ ║ ╠═╣ ║ ║╣ + // ╩╝╚╝╩ ╩ ╩╩ ╩╩═╝ ╚═╝ ╩ ╩ ╩ ╩ ╚═╝ + data: { + //… + }, + + // ╦ ╦╔═╗╔═╗╔═╗╦ ╦╔═╗╦ ╔═╗ + // ║ ║╠╣ ║╣ ║ ╚╦╝║ ║ ║╣ + // ╩═╝╩╚ ╚═╝╚═╝ ╩ ╚═╝╩═╝╚═╝ + beforeMount: function() { + + // If the user navigated to this page from the 'try it now' button, we'll strip the '?tryitnow' from the url. + if(window.location.search){ + // https://caniuse.com/mdn-api_history_replacestate + window.history.replaceState({}, document.title, '/get-started' ); + } + }, + mounted: async function() { + //… + }, + + // ╦╔╗╔╔╦╗╔═╗╦═╗╔═╗╔═╗╔╦╗╦╔═╗╔╗╔╔═╗ + // ║║║║ ║ ║╣ ╠╦╝╠═╣║ ║ ║║ ║║║║╚═╗ + // ╩╝╚╝ ╩ ╚═╝╩╚═╩ ╩╚═╝ ╩ ╩╚═╝╝╚╝╚═╝ + methods: { + //… + } +}); diff --git a/website/views/layouts/layout-customer.ejs b/website/views/layouts/layout-customer.ejs index f0dae19631..91f5f3e435 100644 --- a/website/views/layouts/layout-customer.ejs +++ b/website/views/layouts/layout-customer.ejs @@ -152,6 +152,7 @@ + diff --git a/website/views/layouts/layout.ejs b/website/views/layouts/layout.ejs index b234388cd6..dd3a7168cd 100644 --- a/website/views/layouts/layout.ejs +++ b/website/views/layouts/layout.ejs @@ -307,6 +307,7 @@ +