Posts

Click to Copy with Toast and No Alert Pop Up (thanks chatGPT and Sam Altman)

Click to Copy with a Toast Message (No Alert) Here’s how you can display code like the one below: hiSetBindKey("Schematics" " F5" "hiDeiconifyWindow(window(1)) && hiRaiseWindow(window(1))") ...and allow users to: Click the code to copy it to clipboard See a small toast saying Copied! next to the label All without triggering an alert box 🔧 Full HTML + CSS + JS (Paste in a blog post) This version is safe even with quotes and parentheses — it programmatically sets the text to avoid HTML escaping issues. <style> .copy-container { position: relative; margin: 1.5em 0; } .copy-label { font-weight: bold; margin-bottom: 0.4em; } .copy-text { display: inline-block; padding: 0.5em 0.8em; border: 1px solid #ccc; background: #f4f4f4; font-family: monospace; white-space: pre-wrap; cursor: pointer; user-select: none; transition: background 0.2s ease; } .copy-text:h...

Verse2

Trying to get a handle on how JS meshes with Blogger

Verse1

Trying to get a handle on how JS meshes with Blogger

AI In Your Digital Marketing Strategy

https://www.score.org/event/how-use-ai-in-digital-marketing-strategy

Can You Get a Button to Change More Conspicuously When Pressed?

Yes.. thank you chat.. Click Me Click Me    Not good enough? Use what Josh Comeau has come up with :  https://www.joshwcomeau.com/animation/3d-button/

Tester

General Washington

Your Paint Tool, Courtesy of chatGPT

Who doesn't love chatGPT? Draw on Canvas Width: Height: Color: Brush Size: Clear Canvas Ok, took some doing to get there.. Somehow, the code from the codepen worked right away when pasted into blogger, not so with the code from chatG. Create a web page containing a canvas element whose size comes from the values contained in two input fields labelled "Width" and "Height". The viewer will be able to click and drag to draw on the canvas. The color he draws with can be set by a color selection input. Can you set the background of the canvas to white? Nothing happens when I click and drag on the canvas Actually, the previous JavaScript does work - in CodePen, but not in Blogger (Blogspot). Any idea why? Why is it that the code you gave me doesn't work, but the below code works in Blogger? The code you provided seems to work in Blogger because it's handling mouse events directly on t...