Посмотрите видео ниже, чтобы узнать, как установить наш сайт как веб-приложение на главный экран.
Примечание: Эта функция может быть недоступна в некоторых браузерах.
// Функция аналог "$(document).ready" без использования jQuery
(function() {
var onDomReadyIdentifier = 'onDomReady';
var isBound = false;
var readyList = [];
if (window[onDomReadyIdentifier] && typeof window[onDomReadyIdentifier] == 'function') {
return;
}
var whenReady = function() {
// Make sure body exists, at least, in case IE gets a little overzealous.
// This is taked directly from jQuery's implementation.
if (!document.body) {
return setTimeout(whenReady, 13);
}
for (var i=0; i<readyList.length; i++) {
readyList[i]();
}
readyList = [];
};
var bindReady = function() {
// Mozilla, Opera and webkit nightlies currently support this event
if (document.addEventListener) {
var DOMContentLoaded = function() {
document.removeEventListener("DOMContentLoaded", DOMContentLoaded, false);
whenReady();
};
document.addEventListener("DOMContentLoaded", DOMContentLoaded, false);
window.addEventListener("load", whenReady, false); // fallback
// If IE event model is used
} else if (document.attachEvent) {
var onreadystatechange = function() {
if (document.readyState === "complete") {
document.detachEvent("onreadystatechange", onreadystatechange);
whenReady();
}
};
document.attachEvent("onreadystatechange", onreadystatechange);
window.attachEvent("onload", whenReady); // fallback
// If IE and not a frame, continually check to see if the document is ready
var toplevel = false;
try {
toplevel = window.frameElement == null;
} catch(e) {}
// The DOM ready check for Internet Explorer
if (document.documentElement.doScroll && toplevel) {
var doScrollCheck = function() {
// stop searching if we have no functions to call
// (or, in other words, if they have already been called)
if (readyList.length == 0) {
return;
}
try {
// If IE is used, use the trick by Diego Perini
// http://javascript.nwbox.com/IEContentLoaded/
document.documentElement.doScroll("left");
} catch(e) {
setTimeout(doScrollCheck, 1);
return;
}
// and execute any waiting functions
whenReady();
}
doScrollCheck();
}
}
};
window[onDomReadyIdentifier] = function(callback) {
// Push the given callback onto the list of functions to execute when ready.
// If the dom has alredy loaded, call 'whenReady' right away.
// Otherwise bind the ready-event if it hasn't been done already
readyList.push(callback);
if (document.readyState == "complete") {
whenReady();
} else if (!isBound) {
bindReady();
isBound = true;
}
};
})();
// Сама функция замены домена
function changeOrgTo(targetDomain){
var iframes = document.getElementsByTagName("iframe");
for(var i = 0; i < iframes.length; i++){
if(iframes[i].hasAttribute("src")){
var playerSrc = iframes[i].getAttribute("src");
}
if(playerSrc !== undefined){
if (playerSrc.search(/kodik\.cc/gi) != -1){
playerSrc = playerSrc.replace(/kodik\.cc/, targetDomain);
iframes[i].setAttribute("src", playerSrc);
iframes[i].setAttribute("AllowFullScreen", "");
}
}
}
}
onDomReady(function(){changeOrgTo("kodik.biz");});
ни разу не заметил вапа. Фильтров из-за вапа тьфу тьфу тоже не было@hanks, а ты не вкурсе что они вап сливают по полной????
попроси меня вежливо, я подумаю 😀 Блять такой просто пизд##, как за 100 рублей так в каждой теме, а как за шаблон "скинь пожалуйста", ага - добрый бл#ть души человек.@pouf, вот еще один нарисовался.... я тебе кошелек скинул....
Те тут пол форума заторчало 😀@pouf, вот еще один нарисовался.... я тебе кошелек скинул....
в лс, у меня последние время память подводит 😀@pouf, тебе напомнить всю историю?
ну я не знаю о чем речь, давай сначала в лс что-ли. А вдруг ты раскроешь мой секрет как я в попу давал парням с форума нихуясимогу при людно во всех красках, ты этого желашь?
в лс напиши о "@@pouf, тебе напомнить всю историю?"@pouf я тебе свой кошель скдывал
Что не обосновано то? Ты попросил киноникс я разве тебе отказал ?@pouf, не чувак я протв тея ничего не имею и не имел, а тво прдъявы которые ты не делал были не обоснованы.... так что извини и веерни пожалуйсто!



