graciarnia
producenci
nokia
samsung
lg
htc
wyszukiwarka
żabsearch
kategorie
kompatybilne urządzenia
sprawdź listę urządzeń
.
/* =========================================================
LICZNIK
========================================================= */
const counterDisplay = document.getElementById('visit-count');
const adminMenu = document.getElementById('admin-menu');
const adminTrigger = document.getElementById('admin-trigger');
function loadCounter() {
fetch('https://api.countapi.xyz/hit/kotmruk/visits')
.then(res => res.json())
.then(data => {
counterDisplay.innerText = data.value;
})
.catch(() => {
counterDisplay.innerText = "offline";
});
}
/* =========================================================
ŻABSEARCH
========================================================= */
function search() {
const q = document.getElementById('q').value;
if(q) {
window.open(
'https://duckduckgo.com/?q=' +
encodeURIComponent(q),
'_blank'
);
}
}
/* =========================================================
ADMIN
========================================================= */
function resetMoe() {
const newKey = prompt(
"Wpisz nowe ID (np. kotmruk_v2):"
);
if(newKey) {
alert(
"1. Stwórz: https://api.countapi.xyz/create?namespace=" +
newKey +
"&key=visits\n2. Zmień 'kotmruk' w kodzie na '" +
newKey +
"'"
);
location.reload();
}
}
function hideCounter() {
counterDisplay.parentElement.style.visibility =
'hidden';
}
if (/Win|Linux|Mac/.test(navigator.platform)) {
adminTrigger.onclick = () => {
adminMenu.style.display =
adminMenu.style.display === 'block'
? 'none'
: 'block';
};
} else {
adminTrigger.style.display = 'none';
}
loadCounter();