So totally off the TiddlyWiki track for a moment:
Mark, you had me a "solar cooker". To me, there is nothing that is more
environmentally friendly than building a solar cooker, and nothing more
sustainable than using the energy of the sun. Well, in summertime, to
avoid generating heat inside the house. I had thought of buying something
pre-frabricated, but what I've found is so frigging expensive. So I must
find the time and quickly build one next summer.
I've been so focused on winter time heating, and just recently really
focused on the notion of "heating oneself instead of heating the entire
room."
- For anybody interested, check out the thread of discussion "making the
best of electric heat" at permies.com
<https://permies.com/t/4906/making-electric-heat>
- I am experimenting with a USB Lens Heater as a portable (using a
power bank) and free energy (charging the power bank via solar panels)
method of heating oneself (my notes here
<https://intertwingularityslicendice.neocities.org/CJ_ProductReviews.html#USB%20Lens%20Warmer%20as%20Personal%20Heater>
)
Back to TiddlyWiki:
Well, not so much that I want to support Internet Explorer. That thing
cannot go the way of the dodo quick enough for my liking.
And trying to support all the browsers in the wild is much too great of a
pain in the caboose for my liking. I see no joy in that.
I much prefer the approach: I've got this thing working on my computer and
browser; now, how do I go about simply making sure that if this doesn't
work for somebody out there, that it just gracefully does nothing at all
versus generate some nasty javascript error.
Tones had suggested an alternative approach using wikitext/macros. Let me
go find that thread, and I'll link to that in reply to Tones' reply (right
after yours) in this thread.
Cheers !
On Tuesday, October 27, 2020 at 1:13:41 AM UTC-3, Mark S. wrote:
>
> IE is getting kind of old. I'm sure there is sample code for dealing with
> multiple browsers. That kind of thing is why frameworks like jQuery were
> (are?) so popular -- it does the detection and compensation for you.
>
> Looking at the code, it looks like you're expecting your site to be called
> with ?context="ProductReviews" and then setting the title accordingly. I'm
> wondering if all that couldn't be accomplished via wikitext/macros inside a
> startup tiddler (see InfoMechanism ). Or maybe you've already tried that
> route?
>
> When suggesting "lite" off-gridding, don't forget solar cookers, the most
> efficient and cost-effective way to use the sun's energy. ;-)
>
>
> On Monday, October 26, 2020 at 3:47:28 PM UTC-7, Charlie Veniot wrote:
>>
>> G'day,
>>
>> Javascript and I have never gotten along, but once in a while I've got no
>> choice have simply must surrender to it.
>>
>> Working on my Chromebook, when I get something working, I never think of
>> making sure it works with other browsers. Sure enough, I discovered today
>> that some javascript in my TiddlyWiki doesn't work with Internet Explorer.
>>
>> Specifically, the offending bit of code: a call to URLSearchParams.
>>
>> Figuring that I want error-handling that simply/gracefully/quietly exits
>> the code, I decided to wrap all of the code with "try" and "catch"
>> processing (having just discovered that today).
>>
>> If anybody has any related experience and/or interesting/educative info
>> to share: please please please ?
>>
>> Related snipit of code (from this TiddlyWiki's tiddler
>> <https://intertwingularityslicendice.neocities.org/CJ_ProductReviews.html#%24%3A%2Fmacros%2Fcharlie%2Fgetstartupcontext.js>)
>>
>> further below.
>>
>> Cheers !
>>
>> exports.run = function() {
>> const queryString = window.location.search;
>> try {
>> const urlParams = new URLSearchParams(queryString);
>> const wikicontext = urlParams.get('context');
>> var output = wikicontext;
>>
>> if ( (output !== "OffGridding") && (output !== "HydroCutting") &&
>> (output !== "Chromebook") ){
>> output = "ProductReviews";
>> };
>> document.title = output;
>> }
>> catch(err) {
>> output = "ProductReviews";
>> }
>> return output;
>>
>>
>>
>>
--
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/9d34065b-7543-4002-875a-fbb4d1f091f7o%40googlegroups.com.