FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
prettydiff/tests/browser-demo.js at master · prettydiff/prettydiff · GitHub
prettydiff
/
prettydiff
Public
Uh oh!
There was an error while loading.
Please reload this page
.
Notifications
You must be signed in to change notification settings
Fork
138
Star
1.8k
Code
Issues
44
Pull requests
0
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
prettydiff
/
tests
/
browser-demo.js
Copy path
More file actions
More file actions
Latest commit
History
History
History
17 lines (17 loc) · 626 Bytes
Breadcrumbs
prettydiff
/
tests
/
browser-demo.js
Copy path
File metadata and controls
17 lines (17 loc) · 626 Bytes
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
import
"../js/browser.js"
;
(
function
(
)
{
let
button
=
document
.
getElementsByTagName
(
"button"
)
[
0
]
,
execute
=
function
(
)
{
let
prettydiff
=
window
.
prettydiff
,
options
=
prettydiff
.
options
,
output
=
""
;
options
.
api
=
"dom"
;
options
.
language
=
"auto"
;
options
.
lexer
=
"script"
;
options
.
mode
=
"beautify"
;
options
.
source
=
document
.
getElementById
(
"input"
)
.
value
;
output
=
prettydiff
(
options
)
;
document
.
getElementById
(
"output"
)
.
value
=
output
;
}
;
button
.
onclick
=
execute
;
}
(
)
)
;
Back
|
FazBrowse Home
|
New Git URL