It looks like it's a complex Dynamic Component [DC] using 'onClick' methods to increase its size.
First learn about DCs, and get as many examples as you can - there are many on the web...
Then experiment...

PS: You posted in the wrong forum... I'll relocate it...