f0dfbfc3d7
RequirementsTest / build (windows-latest, 3.9) (push) Has been cancelled
RequirementsTest / build (macos-latest, 3.9) (push) Has been cancelled
RequirementsTest / build (ubuntu-latest, 3.9) (push) Has been cancelled
CodeQL / Analyze (javascript) (push) Has been cancelled
CodeQL / Analyze (python) (push) Has been cancelled
Pylint / build (3.9) (push) Has been cancelled
31 lines
852 B
JavaScript
31 lines
852 B
JavaScript
/**
|
|
* @license
|
|
* Copyright 2019 Google LLC
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
goog.provide('Main');
|
|
// Core
|
|
// Either require 'Blockly.requires', or just the components you use:
|
|
goog.require('Blockly');
|
|
goog.require('Blockly.geras.Renderer');
|
|
goog.require('Blockly.VerticalFlyout');
|
|
// Blocks
|
|
goog.require('Blockly.Constants.Logic');
|
|
goog.require('Blockly.Constants.Loops');
|
|
goog.require('Blockly.Constants.Math');
|
|
goog.require('Blockly.Constants.Text');
|
|
goog.require('Blockly.Constants.Lists');
|
|
goog.require('Blockly.Constants.Colour');
|
|
goog.require('Blockly.Constants.Variables');
|
|
goog.require('Blockly.Constants.VariablesDynamic');
|
|
goog.require('Blockly.Blocks.procedures');
|
|
|
|
Main.init = function() {
|
|
Blockly.inject('blocklyDiv', {
|
|
'toolbox': document.getElementById('toolbox')
|
|
});
|
|
};
|
|
|
|
window.addEventListener('load', Main.init);
|