some css tweaks and other minor improvements/fixes
This commit is contained in:
@@ -214,6 +214,15 @@ if (typeof video !== 'undefined') {
|
||||
}
|
||||
|
||||
videoElem.addEventListener('play', animationLoop);
|
||||
|
||||
$(window).keypress(function(e) {
|
||||
if (e.which == 32) {
|
||||
if (videoElem.paused)
|
||||
videoElem.play();
|
||||
else
|
||||
videoElem.pause();
|
||||
}
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
@@ -235,6 +244,16 @@ $("[data-toggle=popover]").popover({
|
||||
}
|
||||
});
|
||||
|
||||
$('body').on('click', function (e) {
|
||||
$('[data-toggle="popover"]').each(function () {
|
||||
//the 'is' for buttons that trigger popups
|
||||
//the 'has' for icons within a button that triggers a popup
|
||||
if (!$(this).is(e.target) && $(this).has(e.target).length === 0 && $('.popover').has(e.target).length === 0) {
|
||||
$(this).popover('hide');
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
(function ($) {
|
||||
function updaterow(ctx, video) {
|
||||
if($('video').length) {
|
||||
@@ -1286,3 +1305,12 @@ document.querySelectorAll("#layoutSwitcher [id^=layout]").forEach(el => el.addEv
|
||||
else
|
||||
console.warn(response.status, await response.text());
|
||||
}));
|
||||
|
||||
// Copy Link
|
||||
function Copy() {
|
||||
var Url = document.getElementById("url");
|
||||
Url.innerHTML = window.location.href;
|
||||
console.log(Url.innerHTML)
|
||||
Url.select();
|
||||
document.execCommand("copy");
|
||||
}
|
Reference in New Issue
Block a user