A ridiculously simple setup for Alert Box functionality.

Download the attached and drag into TiddlyWiki.com

This has three tiddlers:

   - Alert Box Tester
   - Alert Box Tiddler CSS
   - Alert Box Tiddler

After importing, take a look at Alert Box Tester.

Then open Alert Box Tiddler, and start playing.
On Saturday, August 13, 2022 at 12:37:50 PM UTC-3 Charlie Veniot wrote:

> Follow-up to Just a goofy thought: a way to get javascript into a Tiddler 
> <https://groups.google.com/g/tiddlywiki/c/BVokrn0VQa8/m/57vB6HYbBgAJ>
>
> The "Hello World" alert box sample:
>
> Download the attachment and drag into TiddlyWiki.com
>
>
> The content of the "Hello World" tiddler:
>
> ```
> <$vars this_html={{{ [[data:text/html,<script>alert('Hello World !!! 
> \n\n]addsuffix[Today is ]addsuffix<now "DDD, DDth of MMM, 
> YYYY">addsuffix[.]addsuffix[');</script>]] }}} >
> <iframe srcdoc={{{ [<this_html>] }}} sandbox="allow-scripts 
> allow-popups-to-escape-sandbox allow-same-origin allow-modals" 
>  style="display:none;"></iframe>
> </$vars>
> ```
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/935ca646-222f-4101-a8fd-7bc3275411dan%40googlegroups.com.

Attachment: SimpleAlertBoxSetup.json
Description: application/json

Reply via email to