Auto-update Age
A Carrd plugin to auto-update your age or any age-related number.
đ The age number below auto-updates based on the current year. It really does! Try changing the Date & Time settings of your computer to see the difference.
"Hello, I'm born in 2000 and my age is {age}.""The company started in 2000. In the past {age} years, we had grown..."
âšī¸ This is done using a native Carrd text element to set the auto-updating age â that means you can edit the style of the text easily without code. Just type {age}
normally and it automagically shows the age number based on the current year. Requires Pro Plus.
Made by @jasonleowsg.
TUTORIAL
âšī¸ HOW TO SET UP:- Download the Carrd template and open it in your Carrd /dashboard. Note: This template requires Pro Plus or higher due to its use of Advanced Settings and Embeds.- Click on the Embed element "auto update age".- Copy all the the embedded code, paste it into a new Embed element in your own Carrd site. Label this new Embed "auto update age".- In the embedded code in your Carrd site, find this code:// Set the start year
const startYear = 2000;
Edit the year 2000
to the birth/start year you want.- Click on the Text element you want to add the age to. In the text body, add {age}
where you want to show the age number. The plugin will auto-calculate and update that {age}
into the right age number based on the birth/start year you entered in the code.- Publish, and you're done!