He yanked the plug. The screen went black. But on his desk, the slime continued to pulse, slowly spelling out a new search query in mid-air:
A droplet hit his desk. Then another. Leo swiveled his chair. A thick, translucent strand of digital slime was oozing out of his monitor’s USB port, puddling around his keyboard. He heard a faint, cheerful plink —the same sound effect Mr. Doob used for clicking debris. Google Gravity Slime Mr Doob
: Built to showcase the capabilities of JavaScript and HTML5 in modern browsers, specifically focusing on real-time physics simulations. The Effect He yanked the plug
Whether you call it , Google Slime , or the full Google Gravity Slime Mr Doob — the magic is still there. It’s a reminder that the web doesn’t always have to be useful. Sometimes, it just has to fall apart. Then another
Section B — Practical tasks (40 marks — 2 × 20) 5. JavaScript snippet (20 marks): Write a minimal, self-contained JavaScript + HTML structure (no external frameworks) that creates a single draggable DOM element that falls with gravity and bounces when hitting the bottom of the viewport. Include comments and explain three lines that control physics behavior. (Mark: 10 for working code, 10 for explanations and clarity.)
You can click, drag, and "toss" the collapsed elements around the screen using your mouse or finger on touch devices.