BAM: Horizontal Marquis app: using it as a "service" with custom messages
#1
Mixing a little bit of old-school BASIC with a little bit of modern stuff.

This is just a demo app to test some features for the next release of BAM:

To customise the message displayed in the Marquis:

The message displayed in the marquis can be set via a key-value (the key = text) pair provided in the "query string" part added to the URL.  For example:

Code: (Select All)
https://basicanywheremachine.neocities.org/Test/Horizontal%20Marquis.prod.run?text=How's she goin', buddy?


To use this program as a "service" for some website or locally-stored HTML files:

A BAM program exported to a single HTML file is very convenient for deploying, whether that be to a web server or file hosting service (whether outside your firewall or inside your firewall), or to any local storage device.  Everything is self-contained in the one file, ready to go for online/offline access.

Click on the "Run the marquis program" link above.

(Chrome web browser) For the browser tab/window opened, find your browser's "Save page as" menu item, and save the webpage as HTML. 

You'll want that webpage saved to a spot available to your website or locally-stored HTML.

Here's a template for what you need to use the marquis program as a "service":
Code: (Select All)
<iframe src="https://basicanywheremachine.neocities.org/Test/Horizontal%20Marquis.prod.run.html?text=How' she goin', buddy?" width=300px height=200px>
</iframe>
Reply
#2
Nice!
b = b + ...
Reply
#3
(06-17-2023, 06:50 PM)bplus Wrote: Nice!

Imagine a "Marquis Construction Set" application, i which you make all kinds of selections to create a personalised marquis app (say colors, style of border (if any), speed of scrolling, etc.

Then click the export button to generate the HTML file for your marquis program.

Plop that HTML file wherever you need it, add the iframe to your website or local HTML file, and setup the URL with your message.

So a non-programmer can use the "Marquis Construction Set" to generate custom programs.  I find that kind of cool.
Reply
#4
Back in 90's I made Marquis style txt file reader. Your eyes never get lost going from the end of one line and the start of another. Think it needed a pause and backup button like a tape player.
b = b + ...
Reply
#5
Here's an example of a dynamically generated URL for the "service".

In https://tiddlywiki.com/, create a new tiddler (press that "+" button in the sidebar on the right.)

In the body of the "New Tiddler" (where it says "Type the text for this tiddler"), paste the following and then click on the save button (the checkmark at the top-right position of the tiddler):


Code: (Select All)
<iframe src={{{ [[https://basicanywheremachine.neocities.org/Test/Horizontal%20Marquis.prod.run.html?text=]addsuffix{$:/SiteTitle}addsuffix[  ]addsuffix<now>] }}} style="width:100%;height:250px">
</iframe>

The stuff in between the triple-curly-brackets is TiddlyWiki scripting.
It takes the URL, which already has the "?text=" part of the query string, and appends the title of the TiddlyWiki instance and the current time and date to the URL.

{$:/SiteTitle} gets the site title.

<now> gets the current date and time in the default format.
Reply




Users browsing this thread: 6 Guest(s)