From e96ec4489c00846da64ac7a5baf53e141be87cc7 Mon Sep 17 00:00:00 2001 From: Sam El-Husseini Date: Mon, 8 Jun 2020 09:53:45 -0700 Subject: [PATCH] Update the advanced playground to include the new Blockly playground --- tests/playground.html | 15 +- tests/playgrounds/advanced_playground.html | 269 +++++---------------- 2 files changed, 69 insertions(+), 215 deletions(-) diff --git a/tests/playground.html b/tests/playground.html index 48674ec72..5d8d058ad 100644 --- a/tests/playground.html +++ b/tests/playground.html @@ -269,18 +269,6 @@ function addToolboxButtonCallbacks() { Blockly.TestBlocks.insertConnectionStatements); } -function changeRenderingConstant(value) { - var type = document.getElementById('rendering-constant-selector').value; - if (type == 'fontSize') { - var fontStyle = { - 'size': value - }; - workspace.getTheme().setFontStyle(fontStyle); - } - // Refresh theme. - workspace.setTheme(workspace.getTheme()); -} - function setBackgroundColour() { // Set background colour to differentiate server vs local copy. if (location.protocol == 'file:') { @@ -536,7 +524,8 @@ var spaghettiXml = [

Blockly Playground

Show - - Hide

+ - Hide + - Advanced