Loading a non WordPress HTML page into WordPress

An existing page from some time ago (before WP) needed loading into a page in WordPress. While there are several ways to accomplish this I wanted the result to appear seamless. ie. No borders or scrolling required.

The source HTML contains references to a relative directory ‘vietnam_files’. It was necessary to alter the path to this directory as this reloading changes the path, thinking they must be beneath the WP root. This is where the use of innerHTML.replace() comes in. It substitutes the full path for the relative one. Here is the result.

This code was the result:-

<iframe style="height:0px; width:0px; visibility: hidden" id="SourceObject" type="text/html" src="/~ianm/vietnam.html" onload="iframeReady()"></iframe>
<div id="LocalDiv"></div>

<script>
iframeReady = function() {
  LocalDiv.innerHTML = sourceObject.contentDocument.getElementById("VietnamContent").innerHTML.replace(/vietnam_files/g,'/~ianm/vietnam_files');
}
var sourceObject = document.getElementById('SourceObject');
var localDiv = document.getElementById("LocalDiv")
</script>

 

Android Mapping

There are plenty of GPS/Mapping apps for both Android and iOS but my favorite, so far, is Oruxmaps. This app seems to offer all the features I could want including:

  • Offline mapping from online sources
  • Offline mapping in vector format downloadable to the device
  • Offline mapping in Geo-Located PDF format which is useful for Motor Vehicle Use Maps as per the National Forest Service and available from staythetrail.org

Vector maps are available from OpenAndroMaps and are easily installed to the device by clicking the  button.

A good source of Digital Elevation Model (DEM) files is archive.org

Other options include BackCountry Navigator, All Trails, Avenza and Gaia and others. Neither of these apps offer as much flexibility as Oruxmaps however.

 

 

Poll

What is your preferred date for the September book club meeting?
  • Sept 7 50%, 1 vote
    1 vote 50%
    1 vote - 50% of all votes
  • Sept 8 50%, 1 vote
    1 vote 50%
    1 vote - 50% of all votes
  • Sept 14 0%, 0 votes
    0 votes
    0 votes - 0% of all votes
  • Sept 15 0%, 0 votes
    0 votes
    0 votes - 0% of all votes
  • Sept 21 0%, 0 votes
    0 votes
    0 votes - 0% of all votes
  • Sept 22 0%, 0 votes
    0 votes
    0 votes - 0% of all votes
Total Votes: 2
Voters: 1
August 15, 2018
Only registered users can vote. Login to vote.

Really tasty Thai fish recipe

Cooked  up Fish in Thai sauce  a while ago with a few changes. Paired it with some Yellow Jasmine Rice. It worked rather well.

Tilapia in Thai sauce

Changes:

  1. We used Barramundi instead of Tilapia because that’s what we had. Definitely take the hint of cooking TWICE as much as the recipe says. At least!
  2. We used some Knorr concentrate.

Just delicious! Like we had gone out to eat.