Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
explosurf
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Vincent Nivoliers
explosurf
Commits
7b0982f1
Commit
7b0982f1
authored
8 years ago
by
Vincent Nivoliers
Browse files
Options
Downloads
Patches
Plain Diff
fixing non standard innerText
parent
af1dfbdb
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
explorer.php
+4
-4
4 additions, 4 deletions
explorer.php
js/explorer.js
+7
-3
7 additions, 3 deletions
js/explorer.js
js/pgm_construction.js
+1
-1
1 addition, 1 deletion
js/pgm_construction.js
with
12 additions
and
8 deletions
explorer.php
+
4
−
4
View file @
7b0982f1
...
...
@@ -21,20 +21,20 @@
href=
"
<?php
echo
$rootpath
?>
/css/style.css"
/>
<!--}}}-->
</head>
<body
onload=
"javascript:Explosurf.explorer.init(
<body>
<div
class=
"hidden"
id=
"planet-file"
>
<?php
// get the XML planet descriptor
$search
=
glob
(
"*.xml"
)
;
$len
=
count
(
$search
)
;
if
(
$len
>
0
)
{
$file
=
$search
[
0
]
;
echo
"'
$file
'"
;
echo
$file
;
}
else
{
echo
""
;
}
?>
);"
>
</div>
<div
class=
"container"
>
<!--{{{ top bar-->
<div
class=
"navbar navbar-default"
>
...
...
This diff is collapsed.
Click to expand it.
js/explorer.js
+
7
−
3
View file @
7b0982f1
...
...
@@ -127,7 +127,9 @@ function openXML(filename, handler) {
xhttp
.
addEventListener
(
"
error
"
,
handle_request_error
);
xhttp
.
addEventListener
(
"
readystatechange
"
,
function
()
{
handler
(
this
);});
xhttp
.
open
(
"
GET
"
,
filename
)
;
xhttp
.
overrideMimeType
(
'
text/xml
'
);
if
(
xhttp
.
overrideMimeType
)
{
xhttp
.
overrideMimeType
(
'
text/xml
'
);
}
xhttp
.
send
(
null
)
;
}
...
...
@@ -260,7 +262,8 @@ function check_boundary(edge) {
/*export*/
Xpl
.
check_boundary
=
check_boundary
;
function
init
(
filename
)
{
function
init
()
{
var
filename
=
document
.
getElementById
(
'
planet-file
'
).
innerHTML
;
openXML
(
filename
,
function
(
response
)
{
if
(
response
.
readyState
==
4
&&
response
.
status
==
200
)
{
load_planet
(
response
.
responseXML
)
;
...
...
@@ -270,6 +273,7 @@ function init(filename) {
})
;
}
Xpl
.
init
=
init
document
.
addEventListener
(
"
DOMContentLoaded
"
,
init
)
;
})
//end of namespace
This diff is collapsed.
Click to expand it.
js/pgm_construction.js
+
1
−
1
View file @
7b0982f1
...
...
@@ -196,7 +196,7 @@ document.getElementById('pgm-load-local').addEventListener(
for
(
var
i
=
0
;
i
<
pgm_list
.
children
.
length
;
++
i
)
{
var
item
=
pgm_list
.
children
[
i
]
;
if
(
item
.
className
.
match
(
/active/
))
{
var
name
=
item
.
children
[
1
].
inner
Text
;
var
name
=
item
.
children
[
1
].
inner
HTML
;
local_load
(
'
Explosurf:all:pgm:
'
+
name
)
;
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment