mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-01-31 01:51:53 +08:00
show fps in stream header
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user