Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
baas-ide
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
guxukai
baas-ide
Commits
e22e7ccd
Commit
e22e7ccd
authored
Oct 12, 2015
by
d11e9
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use query params instead of hash
parent
a8752918
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
index.html
index.html
+6
-6
No files found.
index.html
View file @
e22e7ccd
...
@@ -128,21 +128,21 @@
...
@@ -128,21 +128,21 @@
return
match
;
return
match
;
}
}
var
location_
hash_params
=
window
.
location
.
has
h
.
substr
(
1
).
split
(
"="
);
var
location_
query_params
=
window
.
location
.
searc
h
.
substr
(
1
).
split
(
"="
);
var
loadingFromGist
=
false
;
var
loadingFromGist
=
false
;
if
(
location_
hash_params
.
indexOf
(
'gist'
)
!==
-
1
&&
location_hash
_params
.
length
>=
2
)
{
if
(
location_
query_params
.
indexOf
(
'gist'
)
!==
-
1
&&
location_query
_params
.
length
>=
2
)
{
var
index
=
location_
hash
_params
.
indexOf
(
'gist'
);
var
index
=
location_
query
_params
.
indexOf
(
'gist'
);
var
gistId
;
var
gistId
;
var
key
=
location_
hash
_params
[
index
+
1
];
var
key
=
location_
query
_params
[
index
+
1
];
if
(
key
===
''
)
{
if
(
key
===
''
)
{
var
str
=
prompt
(
"Enter the URL or ID of the Gist you'd like to load."
);
var
str
=
prompt
(
"Enter the URL or ID of the Gist you'd like to load."
);
if
(
str
!==
''
)
{
if
(
str
!==
''
)
{
gistId
=
getGistId
(
str
);
gistId
=
getGistId
(
str
);
loadingFromGist
=
true
;
loadingFromGist
=
!!
gistId
;
}
}
}
else
{
}
else
{
gistId
=
getGistId
(
key
);
gistId
=
getGistId
(
key
);
loadingFromGist
=
true
;
loadingFromGist
=
!!
gistId
;
}
}
$
.
ajax
({
$
.
ajax
({
url
:
'https://api.github.com/gists/'
+
gistId
,
url
:
'https://api.github.com/gists/'
+
gistId
,
...
...
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