here is a fiddle that shows the logic of a possible solution, it should be straight forward to put this kind of logic into a widget
http://codepen.io/jmperez/pen/yYjPER all the best BJ On Thursday, September 29, 2016 at 4:45:29 AM UTC+1, John Newell wrote: > > Hi Tobias / Mario > > I may not have communicated this objective clearly - for which I apologise > - but the solution provided by Mario works perfectly. > > The issue is not whether TW needs to detect online connection - as the > TWebook will have (on probably its FIRST SCREEN) the option of online / > offline delivery.... > THAT STATUS will be known by the user - > as the target for these TWebooks is for USE on mobile devices. > The user will know whether they are online or offline - > and even if they aren't sure - the lack of imagery ( or the note that does > appear where an image should be when offline ) > will prompt them to click "the OFFLINE button" ) > > THIS series of regional tourism directories IS targetted at People on the > move: > tourists, locals, vacationers, etc - roaming between venues and events > over a week or just a weekend - MOBILE in-hand. > > If someone wants to look at the TW Yarra Valley Ddirectory content on a > laptop, desktop or bigscreen - > they can do so by simply opening *www.yarravalley.directory > <http://www.yarravalley.directory>* as the full website. > The content there is essentially the same - though ... > > the website has these important differences : > > - it satisfies those who prefer to view on a bigger screen > - it allows for easier use of several interactive components better > used where mouse and keyboard are avaiable / preferred > - *importantly *- creates Search engine listings results, links, > traffic and other benefits - such as new customers / users of the TWebook > - it continues to find new people who will download the APP > > > This has brought up a realisation for me > > *TW - in the way I will deliver THIS project - is far more like an APP > than an ebook.* > > In the same way an APP works - TW - as a READ ONLY version has these > similarities in the "*YarraValley.directory"* *TWebook:* > > - The "package" is downloaded FULLY by the user. > - Most of what is needed to deliver the content is now native to the > user's device ( IN their iphone / ipad or equivalents ) > - External content can be utilised > > TWebook - as an APP - has these benefits OVER a website - > > - The current number of mobile users EXCEEDS the number of desktop > users. > - Mobile APPS work faster that mobile websites as the native content > delivers faster and more reliably > - Brand Presence is enhanced within a "closed environment" (app) which > obviates the need for other search options. > - Unlike a website than can suffer (in search) from bad "bounce rates" > - embedded, pulled and referred links can boost the website's search > collateral. > - There is a higher likelihood of social sharing as a result of "App > Connectedness" > - ( in this "collective case" - cost of advertiser access is low > compared to beuild own website or app ) > - Leaner, cleaner, faster to produce. > - App-opening frequency exceeds most website performances > - App ownership - where it REPLACES the option of a website visitation > - INCREASES user access frequency and time on site. > - and ..... of course ..... works online or offline ! > > TWebook - as an APP - has these benefits OVER an APP BUILDER - > > - Product Cost - free > - Cheap to host > - Easy to distribute > - Support & innovation ( certainly in my experience ) - I feel part of > something growing and emerging... > - Online reliance and frustrations in building an app. ( TW : build > offline ) > > > In other cases that I am working on for clients - the use of TW5 is more > like that of an* eBook* - BUT - > with far *more element*s that make it more *attractive *and *dynamic*. > > These include : > > - a "*children's book*", > - a "*Wedding Brochure*" > - a Retailer's *catalogue* > - a Winery's "*Annual Report*" and "*Vintage Reports*" ( a collective > using content such as this : > http://helenshill.com.au/2013-vintage-report/ ) and "*Wine Range > Brochures*" > - Artist's portfolios > > > In respect of the ebooks that *are* novels ...... they *are *just a > variant to EPUBs and PDFs etc > > Keen to hear : > > - comments > - what the TW community can suggest as app-like options for inclusion > in my projects > - any small groups wanting to explore these adventures together > > > John > > > On Thursday, September 29, 2016 at 6:12:26 AM UTC+10, Tobias Beer wrote: >> >> Hi Mario / John, >> >> Unfortunately, I don't know a possibility to auto-detect online offline >>> mode. So the user needs to set it. >>> >> >> tobibeer/sysinfo <http://tobibeer.github.io/tw5-plugins/#sysinfo> provides >> some means to detect the kind of environment you're in, i.e. offline >> (local) vs. online (http). >> >> Best wishes, >> >> Tobias. >> > -- 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 post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/tiddlywiki. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/ef56e166-61d0-4900-ac82-932546ef179c%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.

