<!doctype html>
<html>
<title>SSL at RJM Programming - RJM Programming - May, 2017</title>
<head>
<link href='//www.rjmprogramming.com.au/PHP/emboss_h1.css' rel='stylesheet' type='text/css'>
<script type='text/javascript'>
var isoft=-1;
var selsoft="<select style='font-size:36px;' onchange='sfill(this);' id='sf'><option value=>Web Applications</option></select>"
var softwares=[
"Weather;//www.rjmprogramming.com.au/weather",
"Google Charts;//www.rjmprogramming.com.au/PHP/PieChart/pie_chart.php?justmenu=justmenu&desc=",
"YouTube Embedded Iframe;//www.rjmprogramming.com.au/HTMLCSS/karaoke_youtube_api.htm",
"Landing Page;//www.rjmprogramming.com.au/"
];

function sfill(fo) {
if (fo.value != '') {
document.getElementById('dcontent').style.height='1500px';
if (document.getElementById('wa').innerHTML == "Web Applications") change(document.getElementById('wa'));
document.getElementById('dcontent').innerHTML="<iframe src='" + fo.value + "' style='width:100%;height:100%;' title='" + fo.options[fo.selectedIndex].text + "'></iframe>";
}
}

function fill(fo) {
document.getElementById('dcontent').style.height='1500px';
if (document.getElementById('wa').innerHTML == "Web Applications") change(document.getElementById('wa'));
document.getElementById('dcontent').innerHTML="<iframe src='" + fo.title + "' style='width:100%;height:100%;' title='" + fo.value + "'></iframe>";
}

function startoff() {
var j;
if (isoft < 0) {
if (document.URL.indexOf('HTTP') != 0 && document.URL.indexOf('https:') != 0) location.href='https:' + document.URL.replace('http:','').replace('https:','');
for (j=0; j<softwares.length; j++) {
selsoft=selsoft.replace("</select>",String.fromCharCode(10) + "<option value='" + softwares[j].split(';')[1] + "'>" + softwares[j].split(';')[0] + "</option></select>");
}
document.getElementById('wa').title="Click to have here the dropdown " + selsoft;
}
isoft=eval((isoft + 1) % softwares.length);
if (document.getElementById('dcontent').innerHTML.indexOf('<iframe ') == -1) {
document.getElementById('ibut').value=softwares[isoft].split(';')[0];
document.getElementById('ibut').title=softwares[isoft].split(';')[1];
}
setTimeout(startoff,5000);
}

function change(wh) {
if (wh.innerHTML == "Web Applications") {
wh.innerHTML=selsoft;
}
}
</script>
</head>
<body onload='startoff();' style='background-color:lightblue;'>
<h1 id='myh1'>SSL <span style='cursor:pointer;' id='wa' title=' ' onclick='change(this);'>Web Applications</span> at RJM Programming</h1>
<h3>RJM Programming - May, 2017</h3>
<div id='dcontent' style='width:100%;height:500px;'>
<input style='font-size:64px;width:100%;height:100%;background-color:yellow;' id='ibut' type='button' value='Weather' title='//www.rjmprogramming.com.au/weather' onclick='fill(this);'></input>
</div>
</body>
</html>