From: stephan Date: Sat, 2 Aug 2025 15:04:50 +0000 (+0000) Subject: Fiddle: move the About button into the main toolbar. Extend the About text with some... X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8c30f16a2e2dd7670d0592efe8a75e6d11d14935;p=thirdparty%2Fsqlite.git Fiddle: move the About button into the main toolbar. Extend the About text with some info which only shows up (or is only hidden) when terminal mode is available. FossilOrigin-Name: da524d6c61330fb004dade810c5ad84bb6d37625786c1d0fd473593f2448d904 --- diff --git a/ext/wasm/fiddle/fiddle.js b/ext/wasm/fiddle/fiddle.js index cf20345f01..877a877721 100644 --- a/ext/wasm/fiddle/fiddle.js +++ b/ext/wasm/fiddle/fiddle.js @@ -857,6 +857,12 @@ prompt: 'sqlite> ', greetings: false /* note that the docs incorrectly call this 'greeting' */ }); + EAll('.unhide-if-terminal-available').forEach(e=>{ + e.classList.remove('hidden'); + }); + EAll('.remove-if-terminal-available').forEach(e=>{ + e.parentElement.removeChild(e); + }); /* Set up a button to toggle the views... */ const ePlaceholder = E('#terminal-button-placeholder'); ePlaceholder.classList.add('labeled-input'); diff --git a/ext/wasm/fiddle/index.html b/ext/wasm/fiddle/index.html index 36f07df460..7f79b754b9 100644 --- a/ext/wasm/fiddle/index.html +++ b/ext/wasm/fiddle/index.html @@ -225,7 +225,6 @@ Powered by SQLite3 - @@ -314,12 +313,24 @@

Usage Summary