This commit is contained in:
2020-07-30 13:31:47 +06:00
parent 1bb0f4ec91
commit f38a9dd3a8
3 changed files with 11 additions and 10222 deletions

View File

@ -44,6 +44,14 @@ Date.prototype.toTimeString = function ()
str+=('0'+this.getHours()).slice(-2)+":"+('0'+this.getMinutes()).slice(-2)+":"+('0'+this.getSeconds()).slice(-2);
return str;
};
Date.prototype.toDateString = function (){
let d = this.getDate();
let m = this.getMonth() + 1; //Month from 0 to 11
let y = this.getFullYear();
return '' + y + '-' + (m<=9 ? '0' + m : m) + '-' + (d <= 9 ? '0' + d : d);
}
//Расширяем класс строки для удаления HTML тегов
String.prototype.stripTags = function() {
return this.replace(/<\/?[^>]+>/g, '');
@ -426,7 +434,7 @@ function fixPNG(element)
if (src) element.runtimeStyle.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + src + "',sizingMethod='scale')";
}
}
// получить окно по тегу
// Получить из iframe его document
function getIframeDocument(iframeNode)
{
if (iframeNode.contentDocument) return iframeNode.contentDocument;