{"id":88431,"date":"2022-04-26T17:43:11","date_gmt":"2022-04-26T07:43:11","guid":{"rendered":"https:\/\/itt.com.au\/?page_id=88431"},"modified":"2024-05-01T20:00:43","modified_gmt":"2024-05-01T10:00:43","slug":"events","status":"publish","type":"page","link":"https:\/\/itt.com.au\/insights\/events\/","title":{"rendered":"events"},"content":{"rendered":"
Insights > <\/span> <\/span><\/span> <\/span><\/p>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/section>\n for (let index = 0; index < dateEvents.length; index++) { .event-list .date{ <\/a><\/div>\n<\/div>\n <\/span> <\/span><\/p>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n Copyright © 1994 – 2024 IT&T Pty Ltd<\/span><\/p>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n Terms & Conditions <\/a>Cookie Policy<\/a><\/p>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/section>\n <\/p>\n","protected":false},"excerpt":{"rendered":" Insights > document.addEventListener(“DOMContentLoaded”, function(){ var dateEvents=document.querySelectorAll(“.event-date .text-population”); \/\/ .toLocaleString(‘default’, { month: ‘long’ }); let month,dayNumber,text,parnet; for (let index = 0; index < dateEvents.length; index++) { let when=new Date(dateEvents[index].innerText); console.log(when); month=when.toLocaleString('default', { month: 'long' }); console.log(month); day=when.toISOString().substr(8,2); console.log(day); parent=dateEvents[index].parentElement.parentElement.parentElement parent.classList.add('date'); parent.innerHTML=` ${day} ${month}`; } }); .event-list .date{ text-align:center; } .event-list div.date h3 { font-size: 60px; font-weight: […]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":93515,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"brizy-blank-template.php","meta":{"site-sidebar-layout":"no-sidebar","site-content-layout":"page-builder","ast-site-content-layout":"","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"disabled","ast-hfb-above-header-display":"disabled","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"disabled","site-post-title":"disabled","ast-breadcrumbs-content":"disabled","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""}},"footnotes":""},"yoast_head":"\n
\n var dateEvents=document.querySelectorAll(“.event-date .text-population”);
\n \/\/ .toLocaleString(‘default’, { month: ‘long’ });
\n let month,dayNumber,text,parnet;<\/p>\n
\n let when=new Date(dateEvents[index].innerText);
\n console.log(when);
\n month=when.toLocaleString('default', { month: 'long' });
\n console.log(month);
\n day=when.toISOString().substr(8,2);
\n \tconsole.log(day);
\n parent=dateEvents[index].parentElement.parentElement.parentElement
\n parent.classList.add('date');
\n parent.innerHTML=`<\/p>\n ${day}<\/p>\n
${month}`;
\n }
\n});<\/p>\n
\n text-align:center;
\n }
\n .event-list div.date h3 {
\n font-size: 60px;
\n font-weight: 700;
\n color: #fff;
\n font-family:’Roboto’;
\n }
\n .event-list div.date h4 {
\n color: #fff;
\n font-weight: 700;
\n font-size: 26px;
\n line-height: 1em;
\n font-family:’Roboto’;
\n}\n<\/p><\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/span> <\/span><\/h1>\n<\/div>\n<\/div>\n<\/div>\n
<\/h3>\n