| | Version at: 19/01/2014, 15:28 vs. version at: 19/01/2014, 16:07 |
---|
1 | 1 | # Sandbox |
---|
2 | 2 | |
---|
3 | 3 | Use this page to experiment with wiki markup. |
---|
4 | 4 | |
---|
5 | 5 | Nested bulleted list: |
---|
6 | 6 | |
---|
7 | 7 | * a |
---|
8 | 8 | * a.b |
---|
9 | 9 | * a.b.c |
---|
10 | 10 | * a.v |
---|
11 | 11 | * z |
---|
12 | 12 | |
---|
13 | 13 | Code sample (note that the format differs between preview mode and final presentation): |
---|
14 | 14 | |
---|
15 | 15 | ` |
---|
16 | 16 | if (a) |
---|
17 | 17 | b |
---|
18 | 18 | else |
---|
19 | 19 | c |
---|
20 | 20 | ` |
---|
21 | 21 | |
---|
22 | | Bookmarklet text: |
---|
| 22 | Bookmarklet test: |
---|
23 | 23 | |
---|
24 | 24 | [test][1] |
---|
25 | 25 | |
---|
26 | 26 | [1]: javascript:var%20p=Math.floor((Math.random()*100)+1);location.href=%22http://tatoeba.org/eng/sentences/show_all_in/epo/und/eng/indifferent/page:%22+p; |
---|
27 | 27 | |
---|
| 28 | |
---|
| 29 | Second bookmarklet test: |
---|
| 30 | |
---|
| 31 | javascript:var%20u%20=%20%22%22;var%20e=window.prompt%28%22Enter%20URL%20or%20number%20of%22+%22%20sentence%20to%20link%20to%20this%20one%22,%22%22%29;if%28e!=null%29{var%20r=/%28http:\/\/[^\/]+\/[a-z]{3}\/%29?%28sentences\/show\/%29?%28[1-9][0-9]%29%28#.%29?/;var%20em=e.match%28r%29;if%28em!=null%29{var%20h=location.href;var%20hm=h.match%28r%29;u=hm1+%22links/add/%22+hm[3]+%22/%22+em[3];location.href=u;}else{alert%28%22Invalid%20input.%22%29};} |
---|
diff view generated by jsdifflib |
---|
Version at: 19/01/2014, 15:28
# Sandbox
Use this page to experiment with wiki markup.
Nested bulleted list:
* a
* a.b
* a.b.c
* a.v
* z
Code sample (note that the format differs between preview mode and final presentation):
`
if (a)
b
else
c
`
Bookmarklet text:
[test][1]
[1]: javascript:var%20p=Math.floor((Math.random()*100)+1);location.href=%22http://tatoeba.org/eng/sentences/show_all_in/epo/und/eng/indifferent/page:%22+p;
version at: 19/01/2014, 16:07
# Sandbox
Use this page to experiment with wiki markup.
Nested bulleted list:
* a
* a.b
* a.b.c
* a.v
* z
Code sample (note that the format differs between preview mode and final presentation):
`
if (a)
b
else
c
`
Bookmarklet test:
[test][1]
[1]: javascript:var%20p=Math.floor((Math.random()*100)+1);location.href=%22http://tatoeba.org/eng/sentences/show_all_in/epo/und/eng/indifferent/page:%22+p;
Second bookmarklet test:
javascript:var%20u%20=%20%22%22;var%20e=window.prompt%28%22Enter%20URL%20or%20number%20of%22+%22%20sentence%20to%20link%20to%20this%20one%22,%22%22%29;if%28e!=null%29{var%20r=/%28http:\/\/[^\/]+\/[a-z]{3}\/%29?%28sentences\/show\/%29?%28[1-9][0-9]%29%28#.%29?/;var%20em=e.match%28r%29;if%28em!=null%29{var%20h=location.href;var%20hm=h.match%28r%29;u=hm1+%22links/add/%22+hm[3]+%22/%22+em[3];location.href=u;}else{alert%28%22Invalid%20input.%22%29};}
Note
The lines in green are the lines that have been added in the new version.
The lines in red are those that have been removed.
Actions