FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
jsoneditor/test/test_large_array.html at master · MixLab-Tech/jsoneditor · GitHub
MixLab-Tech
/
jsoneditor
Public
forked from
josdejong/jsoneditor
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
jsoneditor
/
test
/
test_large_array.html
Copy path
More file actions
More file actions
Latest commit
History
History
History
84 lines (73 loc) · 1.71 KB
Breadcrumbs
jsoneditor
/
test
/
test_large_array.html
Copy path
File metadata and controls
84 lines (73 loc) · 1.71 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
<!DOCTYPE HTML
>
<
html
>
<
head
>
<
meta
http-equiv
="
Content-Type
"
content
="
text/html;charset=utf-8
"
>
<
link
href
="
../dist/jsoneditor.css
"
rel
="
stylesheet
"
type
="
text/css
"
>
<
script
src
="
../dist/jsoneditor.js
"
>
</
script
>
<
style
type
="
text/css
"
>
body
{
font
:
10.5
pt
arial;
color
:
#
4d4d4d
;
line-height
:
150
%
;
width
:
500
px
;
padding-left
:
40
px
;
}
code
{
background-color
:
#
f5f5f5
;
}
#
jsoneditor
{
width
:
500
px
;
height
:
500
px
;
}
</
style
>
</
head
>
<
body
>
<
p
>
Switch editor mode using the mode box.
Note that the mode can be changed programmatically as well using the method
<
code
>
editor.setMode(mode)
</
code
>
, try it in the console of your browser.
</
p
>
<
div
id
="
jsoneditor
"
>
</
div
>
<
script
>
var
container
=
document
.
getElementById
(
'jsoneditor'
)
;
var
options
=
{
mode
:
'tree'
,
modes
:
[
'code'
,
'form'
,
'text'
,
'tree'
,
'view'
]
,
// allowed modes
onError
:
function
(
err
)
{
console
.
error
(
err
)
;
alert
(
err
.
toString
(
)
)
;
}
,
onChange
:
function
(
)
{
console
.
log
(
'change'
)
;
}
,
indentation
:
4
,
escapeUnicode
:
true
}
;
var
json
=
{
empty
:
[
]
,
numbers
:
[
]
,
abc
:
123
,
array
:
[
]
,
object
:
{
a
:
2
,
b
:
3
}
}
;
for
(
var
i
=
0
;
i
<
10000
;
i
++
)
{
var
longitude
=
4
+
i
/
10000
;
var
latitude
=
51
+
i
/
10000
;
json
.
numbers
.
push
(
i
)
;
json
.
array
.
push
(
{
name
:
'Item '
+
i
,
id
:
String
(
i
)
,
index
:
i
,
time
:
new
Date
(
)
.
toISOString
(
)
,
location
:
{
latitude
:
longitude
,
longitude
:
latitude
,
coordinates
:
[
longitude
,
latitude
]
}
,
random
:
Math
.
random
(
)
}
)
;
}
var
editor
=
new
JSONEditor
(
container
,
options
,
json
)
;
</
script
>
</
body
>
</
html
>
Back
|
FazBrowse Home
|
New Git URL