Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
La Quadrature du Net
piphone
piphone-front
Commits
96d4f491
Commit
96d4f491
authored
Jan 19, 2017
by
okhin
Browse files
Adding some feedback
parent
41a645e6
Pipeline
#776
passed with stage
in 1 second
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
templates/feedbackform.html
View file @
96d4f491
...
...
@@ -131,9 +131,9 @@
$
(
'
#step5
'
).
addClass
(
'
red
'
);
$
(
'
#step6
'
).
addClass
(
'
red
'
);
$
(
'
#step_connected
'
).
addClass
(
'
visible
'
);
window
.
clearInterval
(
intervall
);
};
};
console
.
log
(
call_state
[
0
]);
};
function
fetch
()
{
$
.
ajax
({
...
...
templates/monitor.html
deleted
100644 → 0
View file @
41a645e6
<script>
var
call
=
JSON
.
parse
(
"
{{ @call | raw }}
"
);
function
update_call
(
call
)
{
var
call_url
=
call
[
'
data
'
][
'
call_url
'
];
var
call_history
=
call
[
'
data
'
][
'
history
'
];
// call_states is now a list of states, each of them is a
// tuple of the form 'state, date'
// getting the current state is a matter of sorting this list of
// tuple on the second element of the tuple
call_state
=
call_history
.
sort
(
function
(
a
,
b
)
{
var
date1
=
new
Date
(
a
[
1
]);
var
date2
=
new
Date
(
b
[
1
]);
return
date1
-
date2
;
})[
0
];
console
.
log
(
call_state
);
};
$
(
document
).
ready
(
update_call
);
</script>
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment