TiddlyWiki: remove the SplashScreenPlugin
This is an obsolete feature, since the JavaScript engine in modern browsers is way faster than it used to be, and people are accustomed to some loading time due to all those "single page applications". I haven't seen this splash screen even on the old Firefox for quite some time; moreover, the TiddlyWiki 2.9.1 now displays a "JavaScript is required" alert anyway, so there is really no need for all this messing around.
This commit is contained in:
parent
a8429671c5
commit
e9d38d4987
1 changed files with 1 additions and 72 deletions
|
|
@ -42,7 +42,7 @@ DAMAGE.
|
|||
" />
|
||||
<!--PRE-HEAD-START-->
|
||||
<!--{{{-->
|
||||
<link rel='alternate' type='application/rss+xml' title='RSS' href='index.xml'/>
|
||||
<link rel='alternate' type='application/rss+xml' title='RSS' href='index.xml' />
|
||||
<!--}}}-->
|
||||
|
||||
<!--PRE-HEAD-END-->
|
||||
|
|
@ -64,8 +64,6 @@ DAMAGE.
|
|||
<body onload="main();" onunload="if(window.unload) unload();">
|
||||
<!--PRE-BODY-START-->
|
||||
|
||||
<style type="text/css">#contentWrapper {display:none;}</style>
|
||||
<div id="SplashScreen" style="border: 3px solid #ccc; display: block; text-align: center; width: 320px; margin: 100px auto; padding: 50px; color:#000; font-size: 28px; font-family:Serif; background-color:#eee;">loading <b>Lumiera</b> development notes ...<br/><br/><span style="font-size: 14px; color:red;">Requires Javascript.</span></div>
|
||||
<!--PRE-BODY-END-->
|
||||
<div id="copyright">
|
||||
Welcome to TiddlyWiki created by Jeremy Ruston; Copyright © 2004-2007 Jeremy Ruston, Copyright © 2007-2011 UnaMesa Association
|
||||
|
|
@ -4206,17 +4204,6 @@ This Design strives to achieve a StrongSeparation between the low-level Structur
|
|||
__10/2008__: the allocation mechanism can surely be improved later, but for now I am going for a simple implementation based on heap allocated objects owned by a vector or smart-ptrs. For each segment of the render nodes network, we have several families of objects, each of with will be maintained by a separate low-level memory manager (as said, for now implemented as vector of smart-ptrs). Together, they form an AllocationCluster; all objects contained in such a cluster will be destroyed together.
|
||||
</pre>
|
||||
</div>
|
||||
<div title="MarkupPreBody" modifier="Ichthyostega" created="201810200151" modified="201810200212" changecount="2">
|
||||
<pre>
|
||||
<style type="text/css">#contentWrapper {display:none;}</style>
|
||||
<div id="SplashScreen" style="border: 3px solid #ccc; display: block; text-align: center; width: 320px; margin: 100px auto; padding: 50px; color:#000; font-size: 28px; font-family:Serif; background-color:#eee;">loading <b>Lumiera</b> development notes ...<br/><br/><span style="font-size: 14px; color:red;">Requires Javascript.</span></div></pre>
|
||||
</div>
|
||||
<div title="MarkupPreHead" modifier="Ichthyostega" created="200706172303" modified="201810200212" changecount="1">
|
||||
<pre><!--{{{-->
|
||||
<link rel='alternate' type='application/rss+xml' title='RSS' href='index.xml'/>
|
||||
<!--}}}-->
|
||||
</pre>
|
||||
</div>
|
||||
<div title="MediaAsset" modifier="Ichthyostega" created="200709021530" modified="201003140236" tags="def classes img">
|
||||
<pre>The Interface asset::Media is a //key abstraction// It ties together several concepts and enables to deal with them on the interfaces in a uniform manner. Besides, like every Asset kind, it belongs rather to the bookkeeping view: an asset::Media holds the specific properties and parametrisation of the media source it stands for. Regarding the __inward interface__ &mdash; as used from within the [[model|HighLevelModel]] or the [[render nodes|ProcNode]], it is irrelevant if any given asset::Media object stands for a complete media source, just a clip taken from this source or if a placeholder version of the real media source is used instead.
|
||||
[img[Asset Classess|uml/fig130437.png]]
|
||||
|
|
@ -7284,64 +7271,6 @@ Shutdown is initiated by sending a message to the dispatcher loop. This causes t
|
|||
<div title="SplashScreen" modifier="just me" created="200706220430">
|
||||
<pre>{{red{killme}}}</pre>
|
||||
</div>
|
||||
<div title="SplashScreenPlugin" modifier="Ichthyostega" created="200607191631" modified="201810200148" tags="lewcidExtension systemConfig" changecount="1">
|
||||
<pre>/***
|
||||
|
||||
''Inspired by [[TiddlyPom|http://www.warwick.ac.uk/~tuspam/tiddlypom.html]]''
|
||||
|
||||
|Name|SplashScreenPlugin|
|
||||
|Created by|SaqImtiaz|
|
||||
|Location|http://tw.lewcid.org/#SplashScreenPlugin|
|
||||
|Version|0.21 |
|
||||
|Requires|~TW2.08+|
|
||||
!Description:
|
||||
Provides a simple splash screen that is visible while the TW is loading.
|
||||
|
||||
!Installation
|
||||
Copy the source text of this tiddler to your TW in a new tiddler, tag it with systemConfig and save and reload. The SplashScreen will now be installed and will be visible the next time you reload your TW.
|
||||
|
||||
!Customizing
|
||||
Once the SplashScreen has been installed and you have reloaded your TW, the splash screen html will be present in the MarkupPreHead tiddler. You can edit it and customize to your needs.
|
||||
|
||||
!History
|
||||
* 20-07-06 : version 0.21, modified to hide contentWrapper while SplashScreen is displayed.
|
||||
* 26-06-06 : version 0.2, first release
|
||||
|
||||
!Code
|
||||
***/
|
||||
//{{{
|
||||
var old_lewcid_splash_restart=restart;
|
||||
|
||||
restart = function()
|
||||
{ if (document.getElementById("SplashScreen"))
|
||||
document.getElementById("SplashScreen").style.display = "none";
|
||||
if (document.getElementById("contentWrapper"))
|
||||
document.getElementById("contentWrapper").style.display = "block";
|
||||
|
||||
old_lewcid_splash_restart();
|
||||
|
||||
if (splashScreenInstall)
|
||||
{if(config.options.chkAutoSave)
|
||||
{saveChanges();}
|
||||
displayMessage("TW SplashScreen has been installed, please save and refresh your TW.");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
var oldText = store.getTiddlerText("MarkupPreBody") || '';
|
||||
if (oldText.indexOf("SplashScreen")==-1)
|
||||
{var siteTitle = store.getTiddlerText("SiteTitle");
|
||||
var splasher='\n\n<style type="text/css">#contentWrapper {display:none;}</style><div id="SplashScreen" style="border: 3px solid #ccc; display: block; text-align: center; width: 320px; margin: 100px auto; padding: 50px; color:#000; font-size: 28px; font-family:Tahoma; background-color:#eee;"><b>'+siteTitle +'</b> is loading<blink> ...</blink><br><br><span style="font-size: 14px; color:red;">Requires Javascript.</span></div>';
|
||||
if (! store.tiddlerExists("MarkupPreBody"))
|
||||
{var myTiddler = store.createTiddler("MarkupPreBody");}
|
||||
else
|
||||
{var myTiddler = store.getTiddler("MarkupPreBody");}
|
||||
myTiddler.set(myTiddler.title,oldText+splasher,config.options.txtUserName,null,null);
|
||||
store.setDirty(true);
|
||||
var splashScreenInstall = true;
|
||||
}
|
||||
//}}}</pre>
|
||||
</div>
|
||||
<div title="StateAdapter" modifier="Ichthyostega" created="200806261912" modified="201109151535" tags="Rendering impl def">
|
||||
<pre>A small (in terms of storage) and specifically configured StateProxy object which is created on the stack {{red{Really on the stack? 9/11}}} for each individual {{{pull()}}} call. It is part of the invocation state of such a call and participates in the buffer management. Thus, in a calldown sequence of {{{pull()}}} calls we get a corresponding sequence of "parent" states. At each level, the &rarr; WiringDescriptor of the respective node defines a Strategy how the call is passed on.</pre>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Reference in a new issue