123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187 |
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="UTF-8">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <meta http-equiv="X-UA-Compatible" content="ie=edge">
- <title>Home</title>
- <link rel="stylesheet" href="../styles/homepage.css">
- <link href="favicon.png" rel="shortcut icon" type="image/x-icon" />
- </head>
- <body>
- <div id="search">
- <input id="search-field" type="text" name="search-field" />
- </div>
- <div class="container">
- <div id="clock"></div>
- <div class="weather-container">
- <div class="row">
- <div id="city-name" class="inline"></div>
- <div id="weather-description" class="inline"></div>
- <!-- <div class="inline">-</div> -->
- <div id="temp" class="inline"></div>
- </div>
- </div>
- <div class="bookmark-container">
- <div class="bookmark-set">
- <div class="bookmark-title">Most_used</div>
- <div class="bookmark-inner-container">
- <a class="bookmark" href="https://www.bps-sberbank.by/loginsbol" target="_blank">БПС-Сбербанк</a>
- <a class="bookmark" href="https://www.google.com/intl/ru/gmail/about/" target="_blank">GMail</a>
- <a class="bookmark" href="https://mail.yandex.ru/?from=vbff" target="_blank">YandexMail</a>
- <a class="bookmark" href="https://www.evernote.com/Login.action" target="_blank">Evernote</a>
- <a class="bookmark" href="https://www.deepl.com/translator" target="_blank">DeepL_Translate</a>
- <a class="bookmark" href="https://www.startpage.com/do/mypage.pl?prfe=e004f0542b4c9503bf0d89ea505333ad0386fee62ae1bdbf76516b783c510983c2dbad2de7bb68b5" target="_blank">StartPage</a>
- <a class="bookmark" href="https://www.speedtest.net/ru" target="_blank">Speedtest.net</a>
- <a class="bookmark" href="https://2ip.ru/speed/" target="_blank">2ip.ru</a>
- <a class="bookmark" href="https://rutracker.org/forum/index.php" target="_blank">RuTracker.org</a>
- <a class="bookmark" href="https://booktracker.org/" target="_blank">BookTracker.org</a>
- <a class="bookmark" href="https://gomelcgp.by/" target="_blank">ГГЦПоликлиника</a>
- <a class="bookmark" href="https://talon.by/" target="_blank">Талон.бай</a>
- </div>
- </div>
- <div class="bookmark-set">
- <div class="bookmark-title">Social/Video</div>
- <!-- <div class="bookmark-title">Social & Video</div> -->
- <div class="bookmark-inner-container">
- <a class="bookmark" href="https://youtube.com/" target="_blank">Youtube</a>
- <a class="bookmark" href="https://kinogo.eu/" target="_blank">kinogo.eu</a>
- <a class="bookmark" href="https://github.com/alkostuchkov/" target="_blank">GitHub (My)</a>
- <a class="bookmark" href="https://lbry.tv/@DistroTube:2" target="_blank">LBRY (DT)</a>
- <a class="bookmark" href="https://gitlab.com/dwt1" target="_blank">GitLab (DT)</a>
- <a class="bookmark" href="https://www.odnoklassniki.ru/" target="_blank">OK.RU</a>
- <a class="bookmark" href="http://tvext.ru/" target="_blank">КомфортноеТВ</a>
- <!-- <a class="bookmark" href="https://mastodon.technology/@distrotube" target="_blank">Mastodon</a> -->
- <!-- <a class="bookmark" href="https://diasp.org/stream" target="_blank">Diaspora</a> -->
- <!-- <a class="bookmark" href="https://netflix.com" target="_blank">Netflix</a> -->
- </div>
- </div>
- <div class="bookmark-set">
- <div class="bookmark-title">Devices(settings)</div>
- <div class="bookmark-inner-container">
- <a class="bookmark" href="http://192.168.1.1/" target="_blank">TL-WR841N</a>
- <a class="bookmark" href="http://tplinkrepeater.net/" target="_blank">TL-WA850RE</a>
- <a class="bookmark" href="http://192.168.8.1/" target="_blank">Wi-Fi USB-модем</a>
- <a class="bookmark" href="http://192.168.1.1/html/home.html" target="_blank">HiLink</a>
- </div>
- </div>
- <div class="bookmark-set">
- <div class="bookmark-title">Linux_News</div>
- <div class="bookmark-inner-container">
- <a class="bookmark" href="https://distrotube.com/" target="_blank">DistroTube.com</a>
- <a class="bookmark" href="https://www.linuxtoday.com/" target="_blank">LinuxToday</a>
- <a class="bookmark" href="https://www.linuxinsider.com/" target="_blank">LinuxInsider</a>
- <a class="bookmark" href="https://omgubuntu.co.uk/" target="_blank">OMG Ubuntu</a>
- <a class="bookmark" href="https://itsfoss.com/" target="_blank">It's Foss</a>
- <a class="bookmark" href="https://phoronix.com/" target="_blank">Phoronix</a>
- <a class="bookmark" href="https://www.zdnet.com/topic/linux/" target="_blank">ZDNet</a>
- </div>
- </div>
- <div class="bookmark-set">
- <div class="bookmark-title">Arch/Debian</div>
- <div class="bookmark-inner-container">
- <!-- <a class="bookmark" href="https://www.archlinux.org/" target="_blank">Arch Homepage</a> -->
- <a class="bookmark" href="https://wiki.archlinux.org/" target="_blank">Arch Wiki</a>
- <!-- <a class="bookmark" href="https://www.archlinux.org/packages/" target="_blank">Arch Packages</a> -->
- <!-- <a class="bookmark" href="https://aur.archlinux.org/" target="_blank">AUR Home</a> -->
- <!-- <a class="bookmark" href="https://bugs.archlinux.org/" target="_blank">Arch Bugs</a> -->
- <a class="bookmark" href="https://bbs.archlinux.org/" target="_blank">Arch Forums</a>
- <a class="bookmark" href="https://www.archlinux.org/planet/" target="_blank">Planet Arch</a>
- <a class="bookmark" href="https://wiki.debian.org/" target="_blank">Debian Wiki</a>
- </div>
- </div>
- <div class="bookmark-set">
- <div class="bookmark-title">Reddit</div>
- <div class="bookmark-inner-container">
- <a class="bookmark" href="https://reddit.com/r/linux" target="_blank">/r/linux</a>
- <a class="bookmark" href="https://reddit.com/r/archlinux" target="_blank">/r/archlinux</a>
- <a class="bookmark" href="https://reddit.com/r/commandline" target="_blank">/r/commandline</a>
- <a class="bookmark" href="https://reddit.com/r/linux4noobs" target="_blank">/r/linux4noobs</a>
- <a class="bookmark" href="https://reddit.com/r/linuxquestions" target="_blank">/r/linuxquestions</a>
- <a class="bookmark" href="https://reddit.com/r/linuxmemes" target="_blank">/r/linuxmemes</a>
- <a class="bookmark" href="https://reddit.com/r/suckless" target="_blank">/r/suckless</a>
- <a class="bookmark" href="https://reddit.com/r/unixporn" target="_blank">/r/unixporn</a>
- <a class="bookmark" href="https://reddit.com/r/vim" target="_blank">/r/vim</a>
- <a class="bookmark" href="https://reddit.com/r/emacs" target="_blank">/r/emacs</a>
- </div>
- </div>
- <div class="bookmark-set">
- <div class="bookmark-title">Suckless</div>
- <div class="bookmark-inner-container">
- <a class="bookmark" href="https://www.suckless.org/" target="_blank">Suckless Homepage</a>
- <a class="bookmark" href="https://git.suckless.org/" target="_blank">Suckless(Source_Code)</a>
- <a class="bookmark" href="https://tools.suckless.org/tabbed/" target="_blank">tabbed</a>
- </div>
- </div>
- </div>
- </div>
- <script>
- // Search on enter key event
- document.getElementById("search-field").addEventListener("keydown", event => {
- if (event.keyCode === 13) {
- var val = document.getElementById("search-field").value;
- window.open("https://google.com/search?q=" + val);
- }
- });
- // Get current time and format
- getTime = () => {
- let date = new Date(),
- min = date.getMinutes(),
- sec = date.getSeconds(),
- hour = date.getHours();
- return "" +
- (hour < 10 ? ("0" + hour) : hour) + ":" +
- (min < 10 ? ("0" + min) : min) + ":" +
- (sec < 10 ? ("0" + sec) : sec);
- }
- window.onload = () => {
- let xhr = new XMLHttpRequest();
- // Request to open weather map
- // xhr.open('GET', 'http://api.openweathermap.org/data/2.5/weather?id=4737316&units=imperial&appid=e5b292ae2f9dae5f29e11499c2d82ece');
- // 6cc6bc11b81b8fbc306d48dc50bbb88a
- // xhr.open('GET', 'https://api.openweathermap.org/data/2.5/weather?id=498817&units=metric&appid=6cc6bc11b81b8fbc306d48dc50bbb88a&lang=ru');
- // xhr.open('GET', 'https://api.openweathermap.org/data/2.5/weather?q=Homel&appid=6cc6bc11b81b8fbc306d48dc50bbb88a&units=metric&lang=ru');
- xhr.open('GET', 'https://api.openweathermap.org/data/2.5/weather?lat=52.4345&lon=30.9754&appid=6cc6bc11b81b8fbc306d48dc50bbb88a&units=metric&lang=en');
- xhr.onload = () => {
- if (xhr.readyState === 4) {
- if (xhr.status === 200) {
- let json = JSON.parse(xhr.responseText);
- console.log(json);
- document.getElementById("temp").innerHTML = json.main.temp.toFixed(0) + " C";
- document.getElementById("weather-description").innerHTML = json.weather[0].description;
- document.getElementById("city-name").innerHTML = json.name + ": ";
- } else {
- console.log('error msg: ' + xhr.status);
- }
- }
- }
- xhr.send();
- // Set up the clock
- document.getElementById("clock").innerHTML = getTime();
- // Set clock interval to tick clock
- setInterval(() => {
- document.getElementById("clock").innerHTML = getTime();
- }, 100);
- }
- document.addEventListener("keydown", event => {
- if (event.keyCode == 32) { // Spacebar code to open search
- document.getElementById('search').style.display = 'flex';
- document.getElementById('search-field').focus();
- } else if (event.keyCode == 27) { // Esc to close search
- document.getElementById('search-field').value = '';
- document.getElementById('search-field').blur();
- document.getElementById('search').style.display = 'none';
- }
- });
- </script>
- </body>
- </html>
|