diff --git a/css/ui.css b/css/ui.css
index e2fc2540..b7cc9027 100644
--- a/css/ui.css
+++ b/css/ui.css
@@ -438,7 +438,8 @@ div.markdown th {
background-color:#333;
}
.logo-gradient {
- font-size: 1.5em;
+ font-size: 1.25em;
+ margin-top: 0.15em;
background: linear-gradient(to right, #ff9999, #ffff99, #99ff99, #99ffff);
background-clip: text;
-webkit-background-clip: text;
diff --git a/index.html b/index.html
index 8abadea9..320ec6f3 100644
--- a/index.html
+++ b/index.html
@@ -262,9 +262,9 @@ if (window.location.host.endsWith('8bitworkshop.com')) {
-
- 8bitworkshop
+ 8bitworkshop
diff --git a/src/ide/ui.ts b/src/ide/ui.ts
index 5cf76fdc..a6fad22f 100644
--- a/src/ide/ui.ts
+++ b/src/ide/ui.ts
@@ -2041,13 +2041,24 @@ async function startPlatform() {
await initProject();
await loadProject(qs['file']);
setupDebugControls();
- updateSelector();
addPageFocusHandlers();
showInstructions();
- updateBooksMenu();
+ if (qs['embed']) {
+ hideControlsForEmbed();
+ } else {
+ updateSelector();
+ updateBooksMenu();
+ showWelcomeMessage();
+ }
revealTopBar();
}
+function hideControlsForEmbed() {
+ $('#dropdownMenuButton').hide();
+ $('#platformsMenuButton').hide();
+ $('#booksMenuButton').hide();
+}
+
function updateBooksMenu() {
if (getRootBasePlatform(platform_id) == 'nes') $(".book-nes").addClass("book-active");
else if (getRootBasePlatform(platform_id) == 'vcs') $(".book-vcs").addClass("book-active");
@@ -2062,7 +2073,7 @@ function revealTopBar() {
export function setupSplits() {
const splitName = 'workspace-split3-' + platform_id;
var sizes = [0, 50, 50];
- if (!platform_id.startsWith('vcs'))
+ if (!platform_id.startsWith('vcs') && !qs['embed'])
sizes = [12, 44, 44];
var sizesStr = hasLocalStorage && localStorage.getItem(splitName);
if (sizesStr) {
@@ -2210,7 +2221,6 @@ async function loadAndStartPlatform() {
console.log("starting platform", platform_id); // loaded required .js file
try {
await startPlatform();
- showWelcomeMessage();
document.title = document.title + " [" + platform_id + "] - " + (repo_id?('['+repo_id+'] - '):'') + current_project.mainPath;
} finally {
revealTopBar();
diff --git a/src/ide/waveform.ts b/src/ide/waveform.ts
index 631236bb..a519d480 100644
--- a/src/ide/waveform.ts
+++ b/src/ide/waveform.ts
@@ -86,6 +86,7 @@ export class WaveformView {
wlc.tabIndex = -1; // make it focusable
//wlc.style = "overflow-x: hidden"; // TODO?
this.toolbar = new Toolbar(this.parent, this.parent);
+ this.toolbar.span.css('display','inline-block');
$(this.parent).append(wlc);
var down = false;
var selfn = (e) => {