This repository was archived by the owner on Sep 10, 2022. It is now read-only.
File tree 1 file changed +10
-3
lines changed
1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change 22
22
}
23
23
}
24
24
{%- endcapture -%}
25
- {% include java_visualizer.html code=HelloWorld caption="Hello, world!"
26
- label="Visualize Code" curInstr="0" args='["arg1", ...]' stdin="stdin" %}
25
+ {% include java_visualizer.html mode="display" code=HelloWorld
26
+ caption="Hello, world!" label="Visualize Code" class="btn" curInstr="0"
27
+ args='["arg1", ...]' stdin="stdin" showStringsAsObjects=""
28
+ showAllFields="" disableNesting="" verticalLists="" %}
27
29
{% endcomment %}
28
30
31
+ {% assign mode = include.mode | default: 'display' %}
29
32
{% assign code = include.code | default: '' %}
30
33
{% assign caption = include.caption | default: '' %}
31
34
{% assign label = include.label | default: 'Visualize Code' %}
32
35
{% assign class = include.class | default: 'btn' %}
33
36
{% assign curInstr = include.curInstr | default: 0 %}
34
37
{% assign args = include.args | default: '[]' %}
35
38
{% assign stdin = include.stdin | default: '' %}
39
+ {% assign showStringsAsObjects = include.showStringsAsObjects | default: '' %}
40
+ {% assign showAllFields = include.showAllFields | default: '' %}
41
+ {% assign disableNesting = include.disableNesting | default: '' %}
42
+ {% assign verticalLists = include.verticalLists | default: '' %}
36
43
37
44
{% capture codeBlock %}
38
45
```java
46
53
{{ codeBlock }}
47
54
< figcaption >
48
55
{{ caption }}
49
- < a class ="{{ class }} " target ="_blank " href ="https://cscircles.cemc.uwaterloo.ca/java_visualize/#code={{ code | url_encode }}&mode=edit &showStringsAsObjects=& disableNesting=&args={{ args | url_encode }}&stdin={{ stdin | url_encode }}&curInstr={{ curInstr }} ">
56
+ < a class ="{{ class }} " target ="_blank " href ="https://cscircles.cemc.uwaterloo.ca/java_visualize/#code={{ code | url_encode }}&mode={{ mode }} &showStringsAsObjects={{ showSringsAsObjects }}&showAllFields={{ showAllFields }}& disableNesting={{ disableNesting }}&verticalLists={{ verticalLists }} &args={{ args | url_encode }}&stdin={{ stdin | url_encode }}&curInstr={{ curInstr }} ">
50
57
{{ label }}
51
58
</ a >
52
59
</ figcaption >
You can’t perform that action at this time.
0 commit comments