What I really would like to happen is to have no sidebar, and toolbars when it is deployed to the webserver or host.
I wrote this code at the very bottom of the wiki file:
<!--~~ Raw markup for the bottom of the body section ~~-->
<div id="tta-read-only-mode"></div>
<script>
var readOnlySetting = window.location.href;
if (readOnlySetting.match("http://") || readOnlySetting.match("https://")) {
var readOnlyStyles = "";
readOnlyStyles += "<style>";
readOnlyStyles += "span.tc-tiddler-controls,";
readOnlyStyles += "div.tc-sidebar-scrollable {";
readOnlyStyles += "display: none !important;";
readOnlyStyles += "}";
readOnlyStyles += "</style>";
document.getElementById("tta-read-only-mode").innerHTML = readOnlyStyles;
}
</script>
I am wondering if there is a TiddlyWiki way of doing something like this.