Hi
I need to add something like this timeline https://codepen.io/bcarvalho/pen/RZqmZX in a specific confluence page. It contains 3 Part, HTML, JAVA Script and CSS.
I add CSS to Spaces style sheet and Add HTML and Javascript inside HTML Macro. I add js between <script> </script>tag. What is missing here that I couldn't render a page like a demo provided in that link?
When I save the page, I see this error on the Console tab of the browser:
batch.js?locale=en-US:1975 Failed to run init function: Cannot read property 'top' of undefined ƒ (){var a;sessionStorage.viewPort&&(a=JSON.parse(sessionStorage.viewPort));if(a&&a.pageId==d.params.pageId){var b;b=c("#main-content");var f=c("#header");b=-1!==a.blockIndex?b.children().first().child… TypeError: Cannot read property 'top' of undefined
at batch.js?build-numbe…e&locale=en-US:3256
at batch.js?locale=en-US:2110 TypeError: Cannot read property 'top' of undefined