List Utilities

Total Items found in Utilities is 6.
A Collection of Web Utilities
date and time
generate date time id stamp

This should take the current date and time and generate a unique id from it, this is based on the sites time zone. So maybe slightly off to your own timezone.  Timezone: 'Australia/Sydney' Form..

12:13 am, January 11, 2023
number formatting
restyle and shorten number

Format a number 1k 1mil etc Takes a number like 1000000 and converts it into 1mil. I also have a version of this that adds an abbr tag to the output in case you want to see the exact value.  1m..

5:27 am, December 5, 2022
file extention
Return a file extention from a string

This is a limited function, and it has an issue where if there is more than one . in the string it may return not the file extention, but it basically extracts the ".txt" or the end part after the dot..

5:37 am, December 2, 2022
unique id
create a unique id from a html string

Type in a string or a html string and this utility will produce a unique and url safe id from it, so it strips out all the spaces and other characters that urls and browsers generally dont like. ..

2:48 am, December 1, 2022
number calculations
calculate a percentage difference based on two numbers

This calculation takes two numbers, the Total Value and the Difference from the Total Value and returns the Difference and the Difference as a Percentage. I still cant remember why i made this functi..

2:30 am, November 30, 2022
user name generation
Generate a Random Username - Version 1

This utility will generate a random username every time its run it uses an array of random names and can also apply a prefix to the username.  This will generate 10 usernames randomly each time ..

8:55 am, November 29, 2022
Welcome

This is my test area for webdev. I keep a collection of code here, mostly for my reference. Also if i find a good link, i usually add it here and then forget about it. more...

Subscribe to weekly updates about things i have added to the site or thought interesting during the last week.

You could also follow me on twitter or not... does anyone even use twitter anymore?

If you found something useful or like my work, you can buy me a coffee here. Mmm Coffee. ☕

❤️👩‍💻🎮

🪦 2000 - 16 Oct 2022 - Boots
Random Quote
time you enjoyed wasting is not wasted time
Unknown
Random CSS Property

scroll-padding-bottom

The scroll-padding-bottom property defines offsets for the bottom of the optimal viewing region of the scrollport: the region used as the target region for placing things in view of the user. This allows the author to exclude regions of the scrollport that are obscured by other content (such as fixed-positioned toolbars or sidebars) or to put more breathing room between a targeted element and the edges of the scrollport.
scroll-padding-bottom css reference