More work

This commit is contained in:
Emupedia
2022-09-01 08:09:11 +03:00
parent b7f3d39e7d
commit 9308b52a65

View File

@@ -28,28 +28,6 @@
var versionCheckInterval = null;
var $window = $(window);
if (typeof $.fn.getSelector === 'undefined') {
$.fn.getSelector = function() {
if ($(this).attr('id')) {
return '#' + $(this).attr('id');
}
if ($(this).prop('tagName').toLowerCase() === 'body') {
return 'body';
}
var myOwn = $(this).attr('class');
if (!myOwn) {
myOwn = '>' + $(this).prop('tagName');
} else {
myOwn = '.' + myOwn.split(' ').join('.');
}
return $(this).parent().getSelector() + ' ' + myOwn;
}
}
if (typeof $.fn.hasScrollBar === 'undefined') {
$.fn.hasScrollBar = function() {
var el = this.get(0);