Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
e2e-coref
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
guanxing
e2e-coref
Commits
44d5a26a
Commit
44d5a26a
authored
Sep 18, 2017
by
Kenton Lee
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix trailing slash bug in visualization.
parent
22085000
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
10 deletions
+17
-10
main.js
viz/main.js
+17
-10
No files found.
viz/main.js
View file @
44d5a26a
...
...
@@ -145,15 +145,22 @@ function load_example(lines) {
}
$
(
document
).
ready
(
function
()
{
$
.
ajax
({
url
:
get_param
(
"path"
),
dataType
:
"text"
,
success
:
function
(
data
)
{
var
lines
=
data
.
split
(
"
\
n"
);
$
(
window
).
on
(
"hashchange"
,
function
()
{
load_example
(
lines
);
});
load_example
(
lines
);
var
path
=
get_param
(
"path"
);
if
(
path
.
length
>=
1
)
{
if
(
path
[
path
.
length
-
1
]
==
"/"
)
{
// Strip trailing slash if present.
path
=
path
.
substr
(
0
,
path
.
length
-
1
);
}
});
$
.
ajax
({
url
:
path
,
dataType
:
"text"
,
success
:
function
(
data
)
{
var
lines
=
data
.
split
(
"
\
n"
);
$
(
window
).
on
(
"hashchange"
,
function
()
{
load_example
(
lines
);
});
load_example
(
lines
);
}
});
}
});
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment