Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
debomatic-webui
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
debomatic-webui-admins
debomatic-webui
Commits
7dcaf7ac
Commit
7dcaf7ac
authored
Mar 07, 2014
by
Leo Iannacone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
reflects changes in html
parent
117d2203
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
2 deletions
+28
-2
debomatic-webui/views/index.ejs
debomatic-webui/views/index.ejs
+1
-1
debomatic-webui/views/layout.ejs
debomatic-webui/views/layout.ejs
+27
-1
No files found.
debomatic-webui/views/index.ejs
View file @
7dcaf7ac
<h1><%= title %></h1>
<p>Welcome to <%= title %></p>
\ No newline at end of file
<p>Welcome to <%= title %></p>
debomatic-webui/views/layout.ejs
View file @
7dcaf7ac
...
...
@@ -3,8 +3,34 @@
<head>
<title><
%=
title
%
></title>
<link
rel=
'stylesheet'
href=
'/stylesheets/style.css'
/>
<script
src=
'//code.jquery.com/jquery-1.7.2.min.js'
></script>
<script
src=
'//localhost:3000/socket.io/socket.io.js'
></script>
<script>
function
get_path
(
path
)
{
info
=
path
.
split
(
'
/
'
);
if
(
info
.
length
==
1
)
{
socket
.
emit
(
"
get-distribution
"
,
path
);
}
}
var
socket
=
io
.
connect
(
'
//localhost:3000
'
);
socket
.
on
(
'
distributions
'
,
function
(
distributions
)
{
$
(
'
#distributions
'
).
html
(
''
);
distributions
.
forEach
(
function
(
name
){
$
(
'
#distributions
'
).
append
(
'
<li><a href="#
'
+
name
+
'
">
'
+
name
+
'
</li>
'
);
});
});
socket
.
on
(
'
error
'
,
function
()
{
console
.
error
(
arguments
)
});
$
(
window
).
on
(
'
hashchange
'
,
function
()
{
get_path
(
window
.
location
.
hash
.
replace
(
'
#
'
,
''
));
});
</script>
</head>
<body>
<ul
id=
'messages'
></ul>
<ul
id=
"distributions"
></ul>
<
%
-
body
%
>
</body>
</html>
\ No newline at end of file
</html>
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