This is just for testing, and was originally copied directly from ph-scale
Query parameters can be used to customize the simulation. Query parameters are added by appending a ?
to the sim URL, and separating each query parameter with a &
.
Example: set sim language to Spanish (locale=es
) and only include the first screen (screens=1
)
Standalone sim: ../../phet-io-test-sim_all_phet-io.html?postMessageOnError&phetioStandalone&locale=es&screens=1
Query parameters used within PhET-iO Studio will be maintained when the HTML code for the simulation and its customization wrapper is launched or downloaded.
Query Parameter | Values | Description | Examples |
---|---|---|---|
autofill |
true false |
If true, the dropper will autofill the beaker to 0.50 L when switching solutes. Default is true. |
autofill=false Standalone sim Studio |
Query Parameter | Values | Description | Examples |
---|---|---|---|
locale |
en es fr zh_CN etc. |
The value is the locale code. See the sim page for available locales. Default is English. |
locale=es Standalone sim Studio |
screens |
1 2 3 |
Specifies which screens are included in the sim and their order. Note: It is also possible to customize the screens within PhET-iO studio, but we do not recommend it. Please use the query parameter. Default is all screens. |
screens=1 Standalone sim Studio screens=2,1 Standalone sim Studio |
initialScreen |
1 2 3 |
Used to specify the screen open on startup. Default is home screen. |
initialScreen=2 Standalone sim Studio |
homeScreen |
true false |
If false, hides the home screen. Default is true. |
homeScreen=false Standalone sim Studio |
allowLinks |
true false |
If false, disables external links. Default is true. |
allowLinks=false Standalone sim Studio |
phScale.microScreen.view.viewProperties.moleculeCountVisibleProperty
) and setting the current value to true.*property
in the studio tree.
visibleProperty
: used to show/hide elementsenabledProperty
: used to enable/disable elementspickableProperty
: used to make elements unclickable/unmovablevisibleProperty
of the top-level element to false. phScale.microScreen.view.beakerControlPanel.visibleProperty
to false). You do not need to hide each individual checkbox. Basic webpage structure of an embedded, customized PhET-iO simulation
/**
* Option to add sim state information
* {boolean}
*/
emitStates: false,