User Defined Menu: Difference between revisions

m
(Initial edit)
 
 
<nowiki><li class='nav-item dropdown'>
<!-- Just put a link on the UserMenu text -->
<a class='nav-link dropdown-toggle' href='#' id='navbarDropdown' role='button' data-toggle='dropdown' aria-haspopup='true' aria-expanded='false'>
<!-- a class='nav-link' href='http://google.com'>Google</a -->
NL
</a>
<div class='dropdown-menu' aria-labelledby='navbarDropdown'>
<a class='nav-link' href="https://topotijdreis.nl" target="_blank">Topo NL</a>
<a class='nav-link' href="https://waterinfo.rws.nl/#!/kaart/waterhoogte-t-o-v-nap/" target="_blank">Waterstanden NL</a>
<a class='nav-link' href="https://vaarweginformatie.nl/frp/main/#/home" target="_blank">Waterwegen NL</a>
<span class='nav-link' onclick="LoadUtilsReport('Ahn.txt');">Hoogtekaart NL</span>
<!-- div class='dropdown-divider'></div -->
</div>
</li>
<li class='nav-item dropdown'>
<a class='nav-link dropdown-toggle' href='#' id='navbarDropdown' role='button' data-toggle='dropdown' aria-haspopup='true' aria-expanded='false'>
Extra
</a>
<div class='dropdown-menu' aria-labelledby='navbarDropdown'>
<span class='nav-link' onclick="LoadUtilsReport('Sat24-zonwolken.txt');">Sateliet</span>
<span class='nav-link' onclick="LoadUtilsReport('Sat24-infrarood.txt');">Infrarood</span>
<span class='nav-link' onclick="LoadUtilsReport('Radar-regen.txt');">Radar</span>
<span class='nav-link' onclick="LoadUtilsReport('Blitzortnung.txt');">Blitzortnung</span>
<span class='nav-link' onclick="LoadUtilsReport('MeteoAlarm.txt');">Meteo Alarm</span>
<a class='nav-link' href='https://effis.jrc.ec.europa.eu/static/effis_current_situation/public/index.html' target="_blank">Effis</a>
 
<a class='nav-link dropdown-toggle' href='#' id='navbarDropdown' role='button' data-bs-toggle='dropdown' aria-haspopup='true' aria-expanded='false'>
<div class='dropdown-divider'></div>
NL
</a>
<divul class='dropdown-menu' aria-labelledby='navbarDropdown'>
<li class='nav-link' onclick="LoadUtilsReport('Waterstanden.txt');">Waterstanden</li>
<spanli class='nav-link' onclick="LoadUtilsReport('WindyTopoNL.txt');">WindyTopoNL</spanli>
<spanli class='nav-link' onclick="LoadUtilsReport('Ahn.txt');">Hoogtekaart NL</spanli>
<li class='nav-link' onclick="LoadUtilsReport('Cropmap.txt');">Crop map</li>
<!-- a class='nav-link' href="https://topotijdreis.nl" target="_blank">Topo NL</a -->
<li><a class='nav-link' href="https://waterinfo.rws.nl/#!/kaart/waterhoogte-t-o-v-nap/" target="_blank">Waterstanden NL</a></li>
<!-- div class='dropdown-divider'></div -->
</divul>
</li>
 
<li class='nav-item dropdown'>
<span class='nav-link' onclick="LoadUtilsReport('GlobalWinds.txt');">Global Winds</span>
<!-- Just put a link on the UserMenu text -->
<span class='nav-link' onclick="LoadUtilsReport('Windy.txt');">Windy</span>
<span!-- a class='nav-link' onclickhref="LoadUtilsReport('WXchartshttp://google.txtcom');">WXchartsGoogle</spana -->
 
<a class='nav-link dropdown-toggle' href='#' id='navbarDropdown' role='button' data-bs-toggle='dropdown' aria-haspopup='true' aria-expanded='false'>
<div class='dropdown-divider'></div>
Maps
 
</a>
<a class='nav-link' href="https://cumulus.hosiene.co.uk/viewforum.php?f=44" target="_blank">Forum</a>
<divul class='dropdown-menu' aria-labelledby='navbarDropdown'>
<a class='nav-link' href="https://meteo-wagenborgen.nl/wp/" target="_blank">The Blog</a>
<li class='nav-link' onclick="LoadUtilsReport('Effis.txt');">European Forest Fire Information System</li>
</div>
<div class='dropdown-divider'></div>
</li>
<!-- li> <a class='nav-link' href="https://cumuluswww.hosienewindy.co.ukcom/viewforum.phpstation/pws-f06f5696?f=4453.259,6.932,8" target="_blank">ForumWindy (excl)</a> </li -->
<li class='nav-link' onclick="LoadUtilsReport('Windy.txt');">Windy</span>
<spanli class='nav-link' onclick="LoadUtilsReport('GlobalWinds.txt');">Global Winds</spanli>
<spanli class='nav-link' onclick="LoadUtilsReport('Sat24-infrarood.txt');">InfraroodSat24 IR</spanli>
<spanli class='nav-link' onclick="LoadUtilsReport('Sat24-zonwolken.txt');">SatelietSat24 Visual</spanli>
<div class='dropdown-divider'></div>
<spanli class='nav-link' onclick="LoadUtilsReport('Radar-regen.txt');">Radar-regen</span>
<spanli class='nav-link' onclick="LoadUtilsReport('Blitzortnung.txt');">Blitzortnung</span>
<spanli class='nav-link' onclick="LoadUtilsReport('MeteoAlarm.txt');">Meteo Alarm</span>
<div class='dropdown-divider'></div>
<li><a class='nav-link' href='"https://effiswow.jrcknmi.ec.europa.eunl/static/effis_current_situation/public/index.html'#1211bb08-6c93-e911-80e7-0003ff59889d" target="_blank">EffisKNMI WOW</a></li>
<li><a class='nav-link' href="https://vaarweginformatiewww.nlwunderground.com/frpdashboard/mainpws/#/homeIWAGEN6" target="_blank">WaterwegenWU NLiwagen6</a></li>
</divul>
</li>
</nowiki>
 
=== User report shown in the Report View Area ===
Any user report or external website can be shown in the Report View Area by simply loading the User Report in that area with the LoadUtilsReport function with a spanli-tag as below:
 
<nowiki><spanli class='nav-link' onclick="LoadUtilsReport('User report name.txt');">Sateliet</spanli></nowiki>
 
=== URL shown in the Report View Area ===
The Report View Area can contain reports but maybe you would like to see a website in that area. That can be accomplished by putting that URL in an IFrame text file and to load that IFrame with a call to the LoadUtilsReport function like e.g. for Windy below:
 
<nowiki><spanli class='nav-link' onclick="LoadUtilsReport('Windy.txt');">Windy</spanli></nowiki>
 
Where Windy.txt is a plain text file containgcontaining the following:
 
<iframe src="The Embedded URL given by Windy" width="100%" frameborder="0" style="border:0;height:75vh;"></iframe>
 
The width definition of the IFrameiFrame guarantees it won't fall beside the window, the height definition keeps most URLs within the given viewport. Some may get higher which happens often when you are using a tablet. Creating dynamic sizing within the available viewport is however a bit beyond the scope of this exercise as most site work fine like this. Of course you could experiment yourself with the IFrame parameters. Look on the map for examples how users create their menu's, some really do great things!
 
You need to read [https://cumulus.hosiene.co.uk/viewtopic.php?t=20357 this post] when wanting to use iFrame.
 
[[Category:CumulusUtils]]