show fps in stream header

This commit is contained in:
Devaev Maxim
2018-10-06 02:03:58 +03:00
parent 5feb54d3c4
commit 370b5b672c
2 changed files with 26 additions and 3 deletions

View File

@@ -10,6 +10,13 @@ var tools = new function() {
return http;
};
this.getCookie = function(name) {
var matches = document.cookie.match(new RegExp(
"(?:^|; )" + name.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g, "\\$1") + "=([^;]*)" // eslint-disable-line no-useless-escape
));
return (matches ? decodeURIComponent(matches[1]) : "");
};
this.setOnClick = function(el, callback) {
el.onclick = el.ontouchend = function(event) {
event.preventDefault();