-
Notifications
You must be signed in to change notification settings - Fork 1
/
externalJSDemo.tws
229 lines (229 loc) · 2.41 KB
/
externalJSDemo.tws
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
(dp0
S'buildDestination'
p1
VC:\u005cUsers\u005cDave\u005cDocuments\u005cCoding\u005cTwine Stuff\u005ctest.html
p2
sS'saveDestination'
p3
S'C:\\Users\\Dave\\Documents\\GitHub\\TwineAV\\externalJSDemo.tws'
p4
sS'target'
p5
S'sugarcane'
p6
sS'storyPanel'
p7
(dp8
S'widgets'
p9
(lp10
(dp11
S'selected'
p12
I00
sS'pos'
p13
(lp14
I10
aI10
asS'passage'
p15
(itiddlywiki
Tiddler
p16
(dp17
S'text'
p18
VHello World.\u000a<<loadJS "audio.js">>\u000a\u000a[[test|test]]
p19
sS'tags'
p20
(lp21
sS'created'
p22
ctime
struct_time
p23
((I2014
I1
I22
I2
I52
I42
I2
I22
I0
tp24
(dp25
tp26
Rp27
sS'modified'
p28
g27
sS'title'
p29
VStart
p30
sbsa(dp31
g12
I00
sg13
(lp32
I424
aI152
asg15
(itiddlywiki
Tiddler
p33
(dp34
g18
Vtry {\u000a version.extensions['htmlaudio'] = { \u000a major:1, minor:0, revision:0 \u000a };\u000a macros['audio'] = {\u000a handler: function(place, macroName, params, parser) {\u000a playAudio(params[0])\u000a },\u000a init: function() { },\u000a };\u000a} catch(e) {\u000a throwError(place,"audio Setup Error: "+e.message); \u000a}\u000a\u000atry {\u000a version.extensions['htmlvideo'] = { \u000a major:1, minor:0, revision:0 \u000a };\u000a macros['video'] = {\u000a handler: function(place, macroName, params, parser) {\u000a playVideo(params[0], place)\u000a },\u000a init: function() { },\u000a };\u000a} catch(e) {\u000a throwError(place,"video Setup Error: "+e.message); \u000a}\u000a\u000a\u000amacros['loadJS'] =\u000a{\u000a handler: function(place, object, parameters)\u000a {\u000a var se = document.createElement("script");\u000a se.type = 'text/javascript';\u000a se.src = parameters[0];\u000a var hT = document.getElementsByTagName("HEAD")[0];\u000a hT.appendChild(se);\u000a if(se.innerText) {eval(se.innerText);}\u000a else {eval(se.textContent);}\u000a }\u000a}
p35
sg20
(lp36
Vscript
p37
asg22
g23
((I2014
I1
I22
I2
I52
I55
I2
I22
I0
tp38
(dp39
tp40
Rp41
sg28
g41
sg29
Vfunctions
p42
sbsa(dp43
g12
I01
sg13
(lp44
I26
aI159
asg15
(itiddlywiki
Tiddler
p45
(dp46
g18
V<<video "test.ogv">>\u000a\u000a[[test2|test2]]
p47
sg20
(lp48
sg22
g23
((I2014
I1
I22
I3
I10
I19
I2
I22
I0
tp49
(dp50
tp51
Rp52
sg28
g52
sg29
Vtest
p53
sbsa(dp54
g12
I00
sg13
(lp55
I253
aI275
asg15
(itiddlywiki
Tiddler
p56
(dp57
g18
VYou made it!
p58
sg20
(lp59
sg22
g23
((I2014
I1
I22
I3
I19
I55
I2
I22
I0
tp60
(dp61
tp62
Rp63
sg28
g63
sg29
Vtest2
p64
sbsasS'scale'
p65
I1
ss.