Neděle, Září 18, 2022

Widget na počasí

1) cut from picture http://portal.chmi.c … teo/kam/dukovany.jpg

<META HTTP-EQUIV="Refresh" CONTENT="120">
<iframe id="Pocasi" name="Pocasi" allowtransparency="true"  title="Pocasi"  width="220"    height="66"    frameborder="0"    scrolling="no"  marginheight="0"  marginwidth="0"   align="middle"  style="transform:scale(1);background-image:url(http://portal.chmi.cz/files/portal/docs/meteo/kam/dukovany.jpg);background-position: top -30px right 0px" src=""></iframe>

2) picture from https://www.in-pocas … p?stanice=rouchovany

<a href="https://www.in-pocasi.cz/aktualni-pocasi/rouchovany/" title="meteostanice Rouchovany" target="_blank"><img src="https://www.in-pocasi.cz/aktualni-pocasi/img/line_chart.img.php?stanice=rouchovany" style="width:220px; height:180px; border:0px; padding:0px; margin:0px;"/></a>

3) picture from https://www.chmi.cz/ … at/mobile/msg2a6.gif

<a href="https://www.chmi.cz/files/portal/docs/meteo/rad/inca-cz/short.html" title="webkamera Dukovany" target="_blank"><img src="https://www.chmi.cz/files/portal/docs/meteo/sat/mobile/msg2a6.gif" style="width:220px; height:160px; border:0px; padding:0px; margin:0px;"/></a>

4) widget from https://www.meteoblu … vany_czechia_3066735

<iframe src="https://www.meteoblue.com/cs/po%C4%8Das%C3%AD/widget/three/rouchovany_czechia_3066735?geoloc=fixed&nocurrent=0&nocurrent=1&noforecast=0&days=4&tempunit=CELSIUS&windunit=KILOMETER_PER_HOUR&layout=dark"  frameborder="0" scrolling="NO" allowtransparency="true" sandbox="allow-same-origin allow-scripts allow-popups allow-popups-to-escape-sandbox" style="width: 400px; height: 400px"></iframe>

5) counter from https://toplist.cz/stat/1814104/

<center><a href="https://www.toplist.cz/" target="_top"><img src="https://toplist.cz/count.asp?id=814104&logo=mc&start=1000&http=encodeURIComponent(document.referrer)&t=encodeURIComponent(document.title)&l=encodeURIComponent(document.URL)'&wi=encodeURIComponent(window.screen.width)&he=encodeURIComponent(window.screen.height)&cd=encodeURIComponent(window.screen.colorDepth)" alt="TOPlist" border="0" align="center"></a></center>

pocasi-widget.jpg yrno.jpg

Dlouhodobá předpověď počasí z yr.no, dwd.de, noaa.gov https://yrno.cz/poca … ouhodobe-predpovedi/
Cut from the page, testing: http://jsfiddle.net/nh43f5mb/

<html>
<head>
<style>
#mydiv{
    margin:30px;
    position:relative;
    overflow:hidden;
    height:250px;
    width:416px;
}
#myframe{
    position:absolute;
    top:-1340px;
    left:-90px;
}
p{margin:5px 30px;}
</style>
</head>
<div id="mydiv">
    <iframe id="myframe" 
        height="2000px" 
        scrolling="no" 
        src="https://yrno.cz/pocasi/Vysocina/Rouchovany/graf-dlouhodobe-predpovedi/" 
        width="1000px">
    </iframe>
</div>

Sobota, Březen 20, 2021

GPX Viewer

gpx_screenshot.jpg
Nový plugin GPX Viewer přidává tag [gpx=”attachs/file.gpx”] který zobrazí vaši trasu na mapě.

V mobilu si uložíš projetou/prošlou trasu do formátu .gpx např. aplikací GPX Recorder

Sobota, Únor 20, 2021

Sociální sítě

Přidání ikon sociálních sítí do každého příspěvku

Zobraz si zdrojový kód přikladu a zkopíruj jej včetně .css do šablony entry-default.tpl

Ukázky použití fontu Awesome

Úterý, Únor 16, 2021

PHP tag

Ukázky použití pluginu inlinephp

[ exec]$datum = StrFTime("%d.%m.%Y %H:%M:%S", Time());
echo($datum);[/exec]

[ exec]$ip = $_SERVER['HTTP_CLIENT_IP'] ? $_SERVER['HTTP_CLIENT_IP'] : ($_SERVER['HTTP_X_FORWARDED_FOR'] ? $_SERVER['HTTP_X_FORWARDED_FOR'] : $_SERVER['REMOTE_ADDR']);
echo "IP: ".($ip);[/exec]

[ exec]header('Refresh: 60');[/exec]

[ exec]
echo "random ".(rand(10,100))."<br>";
echo "PHP ".PHP_VERSION."<br>";
echo "FLATPRESS ".$smarty.SYSTEM_VER."<br>";
$locale = locale_accept_from_http($_SERVER['HTTP_ACCEPT_LANGUAGE']);
echo $locale."<br>";
echo dirname( __FILE__ )."<br>";
[/exec]

[ exec]echo password_hash("loginpassword", PASSWORD_DEFAULT);[/exec]

you can run file: /fp-plugins/locale.php
[ exec]require_once('../locale.php');[/exec]

Add random “Lorem ipsum” z https://loripsum.net/api/5/medium
Parametery jsou (short, medium, long, verylong)

$themeReplace['description'] = file_get_contents('http://loripsum.net/api');

27.07.2024 06:45:54

IP: 3.135.192.97

random 96
PHP 7.4.6
FLATPRESS 1.2.beta1

/web/htdocs3/mohelnocz/home/www/flatpress/fp-plugins/inlinephp

$2y$10$BinwHMmD4VoMZuKExEsZzuibYAbubOxhF1ejFii6y4YbYRXt0REcC

HTML tag


všechny odkazy se otevřou v novém okně
[html]<base target="_blank">[/html]

<pre>Chorus:
          Em            A
A common love for each other
          F#m          Bm
A common gift to the Saviour
</pre>

Odpočet
[html]<script>
var start = 60;
var interval = setInterval(function() {
   start--;
   if (start == 0) {
       clearInterval( interval );
   }
   document.getElementById("time").innerHTML = start;
},1000);
</script>
<span id="time">60</span><p>[/html]

[html]<table border="1">
    <tr>
        <td>Buňka 1</td>
        <td>Buňka 2</td>
        <td>Buňka 3</td>
    </tr>
    <tr>
        <td>Buňka 4</td>
        <td>Buňka 5</td>
        <td>Buňka 6</td>
    </tr>
</table>[/html]

iframe
[html]<iframe src="http://mohelno.cz/radar.html" style="border:none" width="200" height="400"></iframe>[/html]

rolující text
[html]<marquee bgcolor="#999999" behavior=alternate scrolldelay=250 width=50%>
<strong><font face="verdana" color="#ffffff">rolující text</font></strong></marquee>[/html]

   <div class="col-lg-6 col-md-6  col-sm-14" style="background-color: red">
      Column 1
    </div>
    <div class="col-lg-6 col-md-6  col-sm-16" style="background-color: green">
      Column 2
    </div> 

move to the previous page
[html]<a href="javascript:history.back(1)">Back</a>[/html]

open new window
[html]<a href="#" onClick="window.open('http://mohelno.cz/radar.html', 'titulek','resizable, status, width=480,height=360,')">Open new window</a>[/html]
Chorus:
          Em            A
A common love for each other
          F#m          Bm
A common gift to the Saviour

Odpočet 60

Buňka 1 Buňka 2 Buňka 3
Buňka 4 Buňka 5 Buňka 6

Column 1
Column 2

Back

Open new window