Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
website
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
chaotikum
website
Commits
39a1f003
Commit
39a1f003
authored
4 years ago
by
Lukas Ruge
Browse files
Options
Downloads
Patches
Plain Diff
test bbb status
parent
614bb0d0
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#2540
passed
4 years ago
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
_includes/space-status.html
+22
-5
22 additions, 5 deletions
_includes/space-status.html
with
22 additions
and
5 deletions
_includes/space-status.html
+
22
−
5
View file @
39a1f003
<script
src=
"https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"
></script>
<script>
$
(
document
).
ready
(
function
(){
spaceopen
();
//spaceopen();
bbbopen
();
});
function
spaceopen
()
{
...
...
@@ -11,15 +12,31 @@ function spaceopen() {
console
.
log
(
data
);
if
(
data
.
open
)
{
console
.
log
(
"
OPEN
"
);
//
$("#spaceopen").css( "border", "3px solid green" );
//
$("#spaceopen").html("
<
div
style
=
'
float:left
'
><
img
src
=
'
{{ site.baseurl }}/assets/open.png
'
width
=
'
35
'
><
/div>Der Nbsp ist offen!<br><div style='text-align: right;'><a href='http:/
/
status
.
chaotikum
.
org
/
'
target=
'
_blank
'
style=
'
color
:
#EAEAEA
;
'
>Status</a></div>");
$
(
"
#spaceopen
"
).
css
(
"
border
"
,
"
3px solid green
"
);
$
(
"
#spaceopen
"
).
html
(
"
<div style='float:left'><img src='{{ site.baseurl }}/assets/open.png' width='35'></div>Der Nbsp ist offen!<br><div style='text-align: right;'><a href='http://status.chaotikum.org/' target='_blank' style='color: #EAEAEA;'>Status</a></div>
"
);
}
else
{
console
.
log
(
"
CLOSED
"
);
//
$("#spaceopen").css( "border", "3px solid red" );
//
$("#spaceopen").html("<div style=
'
float
:
left
'
><img src=
'
{{
site
.
baseurl
}}
/assets/
closed
.
png
'
width=
'
35
'
></div>Der Nbsp ist geschlossen!<br><div style=
'
text
-
align
:
right
;
'
><a href=
'
http
:
//status.chaotikum.org/' target='_blank' style='color: #EAEAEA;'>Status
<
/a></
div
>
"
);
$
(
"
#spaceopen
"
).
css
(
"
border
"
,
"
3px solid red
"
);
$
(
"
#spaceopen
"
).
html
(
"
<div style='float:left'><img src='{{ site.baseurl }}/assets/closed.png' width='35'></div>Der Nbsp ist geschlossen!<br><div style='text-align: right;'><a href='http://status.chaotikum.org/' target='_blank' style='color: #EAEAEA;'>Status</a></div>
"
);
}
});
}
function
bbbopen
()
{
$
.
get
(
"
https://plaudern.chaotikum.org/status
"
,
function
(
data
)
{
console
.
log
(
data
);
if
(
data
.
participantCount
>
1
)
{
console
.
log
(
"
OPEN
"
);
$
(
"
#spaceopen
"
).
css
(
"
border
"
,
"
3px solid green
"
);
$
(
"
#spaceopen
"
).
html
(
"
<div style='float:left'><img src='{{ site.baseurl }}/assets/open.png' width='35'></div>Menschen unterhalten sich im BBB<br><div style='text-align: right;'><a href='https://plaudern.chaotikum.org/b/reakspace/' target='_blank' style='color: #EAEAEA;'>Schau Vorbei</a></div>
"
);
}
else
{
console
.
log
(
"
CLOSED
"
);
$
(
"
#spaceopen
"
).
css
(
"
border
"
,
"
3px solid red
"
);
$
(
"
#spaceopen
"
).
html
(
"
<div style='float:left'><img src='{{ site.baseurl }}/assets/closed.png' width='35'></div>Derzeit ist niemand im BBB<br><div style='text-align: right;'><a href='https://plaudern.chaotikum.org/b/reakspace/' target='_blank' style='color: #EAEAEA;'>BBB</a></div>
"
);
}
});
}
</script>
<div
id=
"spacehint"
>
...
...
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