<!DOCTYPE html>
<html lang="en-AU">
<head>
<meta id="myviewport" name="viewport" content="width=device-width, initial-scale=1.0">
<meta charset="UTF-8" />
<title>MacOS and Other Mobile Media Record Tutorial | Robert James Metcalfe Blog</title>
<meta name="description" content="MacOS and Other Mobile Media Record RJM Programming WordPress Blog Tutorial " />
<meta name="keywords" content="Adobe, Apple, audio, capture, client pre-emptive iframe, copy, cross-browser, curl, dictation, email, exec, Flash, IFRAME, inline html email, input, internationalization, language, language code, local web server, Mac OS X, macOS, MAMP, media, microphone, mobile, operating system, paste, PHP, plugin, popup, programming, Safari, say, share, sharing, smart device, speech, speech to audio, text to audio, Text to Speech, textarea, tutorial, voice, voice memo, voiceover, web server, window, window.open, window.opener" />
<link rel="profile" href="//gmpg.org/xfn/11" />
<link rel="stylesheet" type="text/css" media="all" href="https://www.rjmprogramming.com.au/ITblog/wp-content/themes/twentyten/style.css" />
<link rel='stylesheet' type='text/css' href='//www.rjmprogramming.com.au/HTMLCSS/body_border.css' />
<style>
/* Thanks to https://www.sitepoint.com/css3-shuffled-paper/#:~:text=Creating%20a%20crumpled%20paper%20effect,add%20texture%20to%20the%20paper. */
.papXers, .papXers:before, .papXers:after {
background-color: #fff;
border: 1px solid #ccc;
box-shadow: inset 0 0 30px rgba(0,0,0,0.1), 1px 1px 3px rgba(0,0,0,0.2);
}
.papXers {
position: relative;
width: 50%;
padding: 2em;
margin: 50px auto;
}
.papXers:before, .papXers:after {
content: "";
position: absolute;
left: 0;
top: 0;
/* width: 100%;
height: 100%; */
-webkit-transform: rotateZ(2.5deg);
-o-transform: rotate(2.5deg);
transform: rotateZ(2.5deg);
z-index: -1;
}
.storybook {
border-image: url('data:image/svg+xml,<svg style="font-size:26px;background-color:rgb(255,255,240,0.8);border-right:1px solid black;" width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><text style="opacity:0.5;" x="15%" y="80%">☌</text><rect x="18.5" y="0" width="1.5" height="20" stroke-width="1.5" stroke="black" fill="black"></rect></svg>');
border-image-slice: 0 0 0 100;
border-image-width: 20px;
border-image-outset: 1px;
border-image-repeat: repeat;
padding-left: 20px;
}
.papers {
background-color: #fefefe;
background-image: linear-gradient(
30deg,
rgba(83,148,253,0.05) 12%,
transparent 12.5%,
transparent 87%,
rgba(83,148,253,0.05) 87.5%,
rgba(83,148,253,0.05)
),
linear-gradient(
150deg,
rgba(83,148,253,0.05) 12%,
transparent 12.5%,
transparent 87%,
rgba(83,148,253,0.05) 87.5%,
rgba(83,148,253,0.05)
),
linear-gradient(
30deg,
rgba(83,148,253,0.05) 12%,
transparent 12.5%,
transparent 87%,
rgba(83,148,253,0.05) 87.5%,
rgba(83,148,253,0.05)
),
linear-gradient(
150deg,
rgba(83,148,253,0.05) 12%,
transparent 12.5%,
transparent 87%,
rgba(83,148,253,0.05) 87.5%,
rgba(83,148,253,0.05)
),
linear-gradient(
60deg,
rgba(83,148,253,0.05) 25%,
transparent 25.5%,
transparent 75%,
rgba(83,148,253,0.05) 75%,
rgba(83,148,253,0.05)
),
linear-gradient(
60deg,
rgba(83,148,253,0.05) 25%,
transparent 25.5%,
transparent 75%,
rgba(83,148,253,0.05) 75%,
rgba(83,148,253,0.05)
);
background-size: 48px 84px;
background-position:
0 0,
0 0,
24px 42px,
24px 42px,
0 0,
24px 42px;
}
@media only screen and (min-device-width: 320px) and (max-device-width: 765px) and (orientation: portrait) {
.nav-previous a { z-index:187; font-size:24px; opacity:0.6; font-stretch:condensed; background-color:rgba(250,218,221,0.7); }
.nav-next a { z-index:187; font-size:24px; opacity:0.6; font-stretch:condensed; background-color:rgba(184,188,134,0.7); }
}
@media only screen and (min-device-width: 320px) and (max-device-width: 765px) and (orientation: landscape) {
.nav-previous a { z-index:187; font-size:24px; opacity:0.6; font-stretch:condensed; background-color:rgba(250,218,221,0.7); }
.nav-next a { z-index:187; font-size:24px; opacity:0.6; font-stretch:condensed; background-color:rgba(184,188,134,0.7); }
}
td code { overflow-x:scroll; }
.linkhints {
-webkit-animation: glow 1s ease-in-out infinite alternate;
-moz-animation: glow 1s ease-in-out infinite alternate;
animation: glow 1s ease-in-out infinite alternate;
margin-top:10px;
}
.zglow {
-webkit-animation: xglow 1s ease-in-out infinite alternate;
-moz-animation: xglow 1s ease-in-out infinite alternate;
animation: xglow 1s ease-in-out infinite alternate;
margin-top:10px;
}
.custom-alert {
display: inline-block;
visibility: visible;
background-color: rgba(102,102,102,0.8);
color: #fff;
text-align: enter;
margin: 5% auto;
padding: 12px 28px;
position: fixed;
z-index: 123;
top: 50px;
left: 100px;
}
/* Portrait and Landscape ... thanks to https://css-tricks.com/snippets/css/media-queries-for-standard-devices/ */
@media only screen
and (min-device-width: 768px)
and (max-device-width: 1024px)
and (-webkit-min-device-pixel-ratio: 1) {
.alignnone { width: 98% !important; }
.alignnone > img { width: 98% !important; }
}
/* Portrait and Landscape iPhone */
@media only screen and (min-device-width: 320px) and (max-device-width: 765px) and (orientation: portrait) {
div.entry-content > div.wp-caption.alignnone { width: 98% !important; }
div.entry-content > div.wp-caption.alignnone > a > img { width: 98% !important; }
}
@media only screen and (min-device-width: 320px) and (max-device-width: 765px) and (orientation: landscape) {
div.entry-content > div.wp-caption.alignnone { width: 98% !important; }
div.entry-content > div.wp-caption.alignnone > a > img { width: 98% !important; }
}
/* Thanks to https://www.w3schools.com/howto/tryit.asp?filename=tryhow_css_glowing_text */
@-webkit-keyframes glow {
from {
box-shadow: 0 0 3px #fff, 0 0 5px #fff, 0 0 37px #e60073, 0 0 9px #e60073, 0 0 11px #e60073, 0 0 13px #e60073, 0 0 15px #e60073;
}
to {
box-shadow: 0 0 24px #fff, 0 0 6px #ff4da6, 0 0 8px #ff4da6, 0 0 10px #ff4da6, 0 0 12px #ff4da6, 0 0 14px #ff4da6, 0 0 16px #ff4da6;
}
}
@keyframes xglow {
from {
box-shadow: 0 0 3px #fff, 0 0 5px #fff, 0 0 37px #e60073, 0 0 9px #e60073, 0 0 11px #e60073, 0 0 13px #e60073, 0 0 15px #e60073;
}
to {
box-shadow: 0 0 24px #fff, 0 0 6px #ff4da6, 0 0 8px #ff4da6, 0 0 10px #ff4da6, 0 0 12px #ff4da6, 0 0 14px #ff4da6, 0 0 16px #ff4da6;
}
}
@-webkit-keyframes xglow {
from {
box-shadow: 0 0 3px #fff, 0 0 5px #fff, 0 0 37px #e60073, 0 0 9px #e60073, 0 0 11px #e60073, 0 0 13px #e60073, 0 0 15px #e60073;
}
to {
box-shadow: 0 0 24px #fff, 0 0 6px #ff4da6, 0 0 8px #ff4da6, 0 0 10px #ff4da6, 0 0 12px #ff4da6, 0 0 14px #ff4da6, 0 0 16px #ff4da6;
}
}
ol { counter-reset: item; }
ol>li { display: block; }
ol>li:before { content: " " counter(item) " "; counter-increment: item; color: #1f1f1f; background-color: #f0f0f0; border:1px solid olive; }
ol li:not(ul>li):nth-of-type(1) { list-style: none; }
ol li:not(ul>li):nth-of-type(2) { list-style: none; }
ol li:not(ul>li):nth-of-type(3) { list-style: none; }
ol li:not(ul>li):nth-of-type(4) { list-style: none; }
ol li:not(ul>li):nth-of-type(5) { list-style: none; }
ol li:not(ul>li):nth-of-type(6) { list-style: none; }
ol li:not(ul>li):nth-of-type(7) { list-style: none; }
ol li:not(ul>li):nth-of-type(8) { list-style: none; }
ol li:not(ul>li):nth-of-type(9) { list-style: none; }
ol li:not(ul>li):nth-of-type(10) { list-style: none; }
ol li:not(ul>li):nth-of-type(11) { list-style: none; }
ol li:not(ul>li):nth-of-type(12) { list-style: none; }
ol li:not(ul>li):nth-of-type(13) { list-style: none; }
ol li:not(ul>li):nth-of-type(14) { list-style: none; }
ol li:not(ul>li):nth-of-type(15) { list-style: none; }
ol li:not(ul>li):nth-of-type(16) { list-style: none; }
ol li:not(ul>li):nth-of-type(17) { list-style: none; }
ol li:not(ul>li):nth-of-type(18) { list-style: none; }
ol li:not(ul>li):nth-of-type(19) { list-style: none; }
ol li:not(ul>li):nth-of-type(20) { list-style: none; }
ol li:not(ul>li):nth-of-type(21) { list-style: none; }
ol li:not(ul>li):nth-of-type(22) { list-style: none; }
ol li:not(ul>li):nth-of-type(23) { list-style: none; }
ol li:not(ul>li):nth-of-type(24) { list-style: none; }
ol li:not(ul>li):nth-of-type(25) { list-style: none; }
ol li:not(ul>li):nth-of-type(26) { list-style: none; }
ol li:not(ul>li):nth-of-type(27) { list-style: none; }
ol li:not(ul>li):nth-of-type(28) { list-style: none; }
ol li:not(ul>li):nth-of-type(29) { list-style: none; }
ol li:not(ul>li):nth-of-type(30) { list-style: none; }
ol li:not(ul>li):nth-of-type(1)::before { background-color:#f0c0c0; content:'\000031\00fe0f\0020e3'; }
ol li:not(ul>li):nth-of-type(2)::before { background-color:#f0c0c0; content:'\000032\00fe0f\0020e3'; }
ol li:not(ul>li):nth-of-type(3)::before { background-color:#f0c0c0; content:'\000033\00fe0f\0020e3'; }
ol li:not(ul>li):nth-of-type(4)::before { background-color:#f0c0c0; content:'\000034\00fe0f\0020e3'; }
ol li:not(ul>li):nth-of-type(5)::before { background-color:#f0c0c0; content:'\000035\00fe0f\0020e3'; }
ol li:not(ul>li):nth-of-type(6)::before { background-color:#f0c0c0; content:'\000036\00fe0f\0020e3'; }
ol li:not(ul>li):nth-of-type(7)::before { background-color:#f0c0c0; content:'\000037\00fe0f\0020e3'; }
ol li:not(ul>li):nth-of-type(8)::before { background-color:#f0c0c0; content:'\000038\00fe0f\0020e3'; }
ol li:not(ul>li):nth-of-type(9)::before { background-color:#f0c0c0; content:'\000039\00fe0f\0020e3'; }
ol li:not(ul>li):nth-of-type(10)::before { background-color:#f0c0c0; content:'\000031\00fe0f\0020e3\000030\00fe0f\0020e3'; }
ol li:not(ul>li):nth-of-type(11)::before { background-color:#f0c0c0; content:'\000031\00fe0f\0020e3\000031\00fe0f\0020e3'; }
ol li:not(ul>li):nth-of-type(12)::before { background-color:#f0c0c0; content:'\000031\00fe0f\0020e3\000032\00fe0f\0020e3'; }
ol li:not(ul>li):nth-of-type(13)::before { background-color:#f0c0c0; content:'\000031\00fe0f\0020e3\000033\00fe0f\0020e3'; }
ol li:not(ul>li):nth-of-type(14)::before { background-color:#f0c0c0; content:'\000031\00fe0f\0020e3\000034\00fe0f\0020e3'; }
ol li:not(ul>li):nth-of-type(15)::before { background-color:#f0c0c0; content:'\000031\00fe0f\0020e3\000035\00fe0f\0020e3'; }
ol li:not(ul>li):nth-of-type(16)::before { background-color:#f0c0c0; content:'\000031\00fe0f\0020e3\000036\00fe0f\0020e3'; }
ol li:not(ul>li):nth-of-type(17)::before { background-color:#f0c0c0; content:'\000031\00fe0f\0020e3\000037\00fe0f\0020e3'; }
ol li:not(ul>li):nth-of-type(18)::before { background-color:#f0c0c0; content:'\000031\00fe0f\0020e3\000038\00fe0f\0020e3'; }
ol li:not(ul>li):nth-of-type(19)::before { background-color:#f0c0c0; content:'\000031\00fe0f\0020e3\000039\00fe0f\0020e3'; }
ol li:not(ul>li):nth-of-type(20)::before { background-color:#f0c0c0; content:'\000032\00fe0f\0020e3\000030\00fe0f\0020e3'; }
ol li:not(ul>li):nth-of-type(21)::before { background-color:#f0c0c0; content:'\000032\00fe0f\0020e3\000031\00fe0f\0020e3'; }
ol li:not(ul>li):nth-of-type(22)::before { background-color:#f0c0c0; content:'\000032\00fe0f\0020e3\000032\00fe0f\0020e3'; }
ol li:not(ul>li):nth-of-type(23)::before { background-color:#f0c0c0; content:'\000032\00fe0f\0020e3\000033\00fe0f\0020e3'; }
ol li:not(ul>li):nth-of-type(24)::before { background-color:#f0c0c0; content:'\000032\00fe0f\0020e3\000034\00fe0f\0020e3'; }
ol li:not(ul>li):nth-of-type(25)::before { background-color:#f0c0c0; content:'\000032\00fe0f\0020e3\000035\00fe0f\0020e3'; }
ol li:not(ul>li):nth-of-type(26)::before { background-color:#f0c0c0; content:'\000032\00fe0f\0020e3\000036\00fe0f\0020e3'; }
ol li:not(ul>li):nth-of-type(27)::before { background-color:#f0c0c0; content:'\000032\00fe0f\0020e3\000037\00fe0f\0020e3'; }
ol li:not(ul>li):nth-of-type(28)::before { background-color:#f0c0c0; content:'\000032\00fe0f\0020e3\000038\00fe0f\0020e3'; }
ol li:not(ul>li):nth-of-type(29)::before { background-color:#f0c0c0; content:'\000032\00fe0f\0020e3\000039\00fe0f\0020e3'; }
ol li:not(ul>li):nth-of-type(30)::before { background-color:#f0c0c0; content:'\000033\00fe0f\0020e3\000030\00fe0f\0020e3'; }
.mypclass { color:rgb(185,127,206); }
#mypid { color:rgb(185,127,206); }
.mypclass2 { background-color:rgb(185,127,206); color:'black'; }
.mypclass22 { background-color:rgb(185,127,206); color:'black'; }
#mypid2 { background-color:rgb(185,127,206); color:'black'; }
#s {
width: 55% !important;
}
#ahomeis {
color: #ffffff;
font: 24pt Arial;
text-shadow: 0 1px 0 #ccc, 0 2px 0 #c9c9c9, 0 3px 0 #bbb, 0 4px 0 #b9b9b9, 0 5px 0 #aaa, 0 6px 1px rgba(0, 0, 0, 0.1), 0 0 5px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.3), 0 3px 5px rgba(0, 0, 0, 0.2), 0 5px 10px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.2), 0 20px 20px rgba(0, 0, 0, 0.15);
}
code {
width:90%;
background-color:#F9F9F9;
margin-top: 10px;
margin-bottom: 10px;
padding:20px 20px;
border:1px dashed blue;
display: inline-block;
text-overflow: ellipsis;
white-space: pre-wrap; /* css-3 */
white-space: -moz-pre-wrap; /* Mozilla, since 1999 */
white-space: -pre-wrap; /* Opera 4-6 */
white-space: -o-pre-wrap; /* Opera 7 */
word-wrap: break-word; /* Internet Explorer 5.5+ */
}
blockquote {
display: block;
padding: 18px;
border-top: 1px solid #e1cc89;
border-bottom: 1px solid #e1cc89;
margin: 5px;
text-indent: 4px;
background: url('//www.rjmprogramming.com.au/ITblog/closequote1.gif') bottom right no-repeat,url('//www.rjmprogramming.com.au/ITblog/openquote1.gif') top left no-repeat;
background-color: #faebbc;
}
blockquote p {
display: block;
padding: 18px;
margin: 5px;
text-indent: 4px;
background: url('//www.rjmprogramming.com.au/ITblog/closequote1.gif') bottom right no-repeat,url('//www.rjmprogramming.com.au/ITblog/openquote1.gif') top left no-repeat;
background-color: #faebbc;
}
blockquote.rightbq {
float: right;
width: 250px;
}
blockquote.rightbq p {
display: inline;
float: right;
width: 250px;
}
div.rightbq {
margin-top: -22px;
}
.iconlist
{
list-style: none;
margin: 0;
padding: 0;
}
li.one {
background-image: url('//www.rjmprogramming.com.au/PHP/one.jpg?rnd=5685542');
background-position: left;
background-repeat: no-repeat;
background-size: 128px 80px;
height: 150px;
text-indent: 0px;
}
li.two {
background-image: url('//www.rjmprogramming.com.au/PHP/two.jpg?rnd=19795978');
background-position: left;
background-repeat: no-repeat;
background-size: 128px 80px;
height: 150px;
text-indent: 0px;
}
li.three {
background-image: url('//www.rjmprogramming.com.au/PHP/three.jpg?rnd=12696188');
background-position: left;
background-repeat: no-repeat;
background-size: 128px 80px;
height: 150px;
text-indent: 0px;
}
li.four {
background-image: url('//www.rjmprogramming.com.au/PHP/four.jpg?rnd=5697099');
background-position: left;
background-repeat: no-repeat;
background-size: 128px 80px;
height: 150px;
text-indent: 0px;
}
li.five {
background-image: url('//www.rjmprogramming.com.au/PHP/five.jpg?rnd=315790');
background-position: left;
background-repeat: no-repeat;
background-size: 128px 80px;
height: 150px;
text-indent: 0px;
}
li.six {
background-image: url('//www.rjmprogramming.com.au/PHP/six.jpg?rnd=18883508');
background-position: left;
background-repeat: no-repeat;
background-size: 128px 80px;
height: 150px;
text-indent: 0px;
}
li.seven {
background-image: url('//www.rjmprogramming.com.au/PHP/seven.jpg?rnd=6975640');
background-position: left;
background-repeat: no-repeat;
background-size: 128px 80px;
height: 150px;
text-indent: 0px;
}
li.eight {
background-image: url('//www.rjmprogramming.com.au/PHP/eight.jpg?rnd=14272794');
background-position: left;
background-repeat: no-repeat;
background-size: 128px 80px;
height: 150px;
text-indent: 0px;
}
/* Thanks to https://cssgradient.io/blog/css-gradient-text/ below */
/*
b:not(.dyk) {
background: -webkit-linear-gradient(#eee, #333);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
code b {
background: -webkit-linear-gradient(#eee, #333);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
*/
/*
strong:not(.dyk) {
background: -webkit-linear-gradient(#eee, #333);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
*/
code strong {
background: -webkit-linear-gradient(#eee, #333);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
/* Thanks to https://codepen.io/bibby0912/pen/mErWyA for basis of idea below ...
applied at http://www.rjmprogramming.com.au/ITblog/marquee-placeholder-primer-tutorial/ */
.container {
/* margin: auto; */
/* width: 100%;
height: 900px; */
/* display:flex; */
/* width: 40vw;
height: 40vh; */
/* outline: 1px solid red;*/
/* border: 20px solid transparent; */
/* margin-bottom: 100px; */
height: 100%;
width: 100%;
border: 8px solid transparent;
box-sizing: border-box;
padding: 1rem;
overflow: visible;
display:flex;
/* text-transform: uppercase;
font-weight: 900;
font-family: "Open Sans","Source Sans Pro",Helvetica,sans-serif;
font-size: 1em;
letter-spacing: 1em;
padding: 1rem;
display:flex;
justify-content: center;
align-items: center; */
}
.demo {
/*background-image:
linear-gradient(white, white),
linear-gradient(180deg, cornflowerblue, purple);*/
background-image:
linear-gradient(white, white),
linear-gradient(270deg, #00D7B9, #B95DD7 50%, #FFB367 100%);
background-repeat: no-repeat;
background-origin: padding-box, border-box;
/* text-align: center; */
}
.animated {
background-image:
linear-gradient(white, white),
/* linear-gradient(180deg, cornflowerblue, purple 50%, cornflowerblue); */
linear-gradient(180deg, green, lightblue 50%, yellow);
background-repeat: no-repeat;
background-size: 100% 100%, 100% 200%;
/* background-size: cover; */
background-position: 0 0, 0 100%;
background-origin: padding-box, border-box;
animation: highlight 1s infinite alternate;
}
@keyframes highlight {
100% {
background-position: 0 0, 0 0;
}
}
/* Like ... Glyph, by Harry Roberts ... at //css-tricks.com/examples/hrs/ ... thanks */
hr:not(.ybi) {
padding: 0;
border: none;
border-top: medium double #333;
color: blue;
text-align: center;
}
hr:not(.ybi):after {
content: '\00261f'; /* via ... //www.utf8-chartable.de/unicode-utf8-table.pl?start=9728 ... thanks */
display: inline-block;
position: relative;
top: -0.55em; /* 7em; */
font-size: 1.2em; /* 1.5em; */
padding: 0 0.2em; /* 0.25em; */
background: #fffff0;
}
.dyk { background-color: yellow; border-bottom: 7px solid #f7f7f7; border-top: 7px solid #f7f7f7; }
.dyk + * { background-color: #f7f7f7; border-bottom: 7px solid #f7f7f7; border-top: 7px solid #f7f7f7; }
span.comments-link:after {
content: '\A ___________________________';
white-space: pre;
word-wrap: break-word;
color: green;
font-size: 48px;
}
ul.children li.page_item:before {
color: maroon;
content: '\🎨 \0000a0';
}
ul.children li.page_item:after {
content: no-close-quote;
}
ul.noclass {
list-style: none;
}
ul.children {
font-size: 10px;
width: 580px !important;
column-count: 3;
-webkit-column-count: 3;
-moz-column-count: 3;
}
ul.noclass li:before {
list-style: none;
float: left;
margin-left: -15px;
color: teal;
content: '\⛪ \0000a0';
font-size: 1.2em;
font-weight: bold;
}
ul.noclass li:after {
list-style: none;
color: teal;
content: no-close-quote;
font-size: 1.2em;
font-weight: bold;
}
ul.confounded li:before {
font-family: Georgia,'Bitstream Charter',serif;
font-size: 16px;
font-style: normal;
font-weight: normal;
list-style: none;
float: left;
color: black;
content: 'Maybe you are used to Emoji in conversations so hope you are not confused 😖';
}
ul.happy li:before {
font-family: Georgia,'Bitstream Charter',serif;
font-size: 16px;
font-style: normal;
font-weight: normal;
list-style: none;
float: left;
color: black;
content: 'seeing such characters as bullet points here in these blog postings. We are happy 😁';
}
ul.relieved li:before {
font-family: Georgia,'Bitstream Charter',serif;
font-size: 16px;
font-style: normal;
font-weight: normal;
list-style: none;
float: left;
color: black;
content: 'to share with you some UTF-8 syntax, as above that is not very difficult to learn. 😌';
}
/* Portrait and Landscape */
@media only screen
and (min-device-width: 1024px)
and (max-device-width: 1366px)
and (-webkit-min-device-pixel-ratio: 2) {
code { opacity: 0.7 !important; }
}
@media only screen
and (min-device-width: 1024px)
and (max-device-width: 1024px)
and (orientation: portrait)
and (-webkit-min-device-pixel-ratio: 2) {
code { opacity: 0.7 !important; }
}
</style>
<link rel="pingback" href="https://www.rjmprogramming.com.au/ITblog/xmlrpc.php" />
<meta name='robots' content='max-image-preview:large' />
<link rel="alternate" type="application/rss+xml" title="Robert James Metcalfe Blog » Feed" href="https://www.rjmprogramming.com.au/ITblog/feed/" />
<link rel="alternate" type="application/rss+xml" title="Robert James Metcalfe Blog » Comments Feed" href="https://www.rjmprogramming.com.au/ITblog/comments/feed/" />
<link rel="alternate" type="application/rss+xml" title="Robert James Metcalfe Blog » MacOS and Other Mobile Media Record Tutorial Comments Feed" href="https://www.rjmprogramming.com.au/ITblog/macos-and-other-mobile-media-record-tutorial/feed/" />
<script type="text/javascript">
/* <![CDATA[ */
window._wpemojiSettings = {"baseUrl":"https:\/\/s.w.org\/images\/core\/emoji\/15.0.3\/72x72\/","ext":".png","svgUrl":"https:\/\/s.w.org\/images\/core\/emoji\/15.0.3\/svg\/","svgExt":".svg","source":{"concatemoji":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-includes\/js\/wp-emoji-release.min.js?ver=6.6.3"}};
/*! This file is auto-generated */
!function(i,n){var o,s,e;function c(e){try{var t={supportTests:e,timestamp:(new Date).valueOf()};sessionStorage.setItem(o,JSON.stringify(t))}catch(e){}}function p(e,t,n){e.clearRect(0,0,e.canvas.width,e.canvas.height),e.fillText(t,0,0);var t=new Uint32Array(e.getImageData(0,0,e.canvas.width,e.canvas.height).data),r=(e.clearRect(0,0,e.canvas.width,e.canvas.height),e.fillText(n,0,0),new Uint32Array(e.getImageData(0,0,e.canvas.width,e.canvas.height).data));return t.every(function(e,t){return e===r[t]})}function u(e,t,n){switch(t){case"flag":return n(e,"\ud83c\udff3\ufe0f\u200d\u26a7\ufe0f","\ud83c\udff3\ufe0f\u200b\u26a7\ufe0f")?!1:!n(e,"\ud83c\uddfa\ud83c\uddf3","\ud83c\uddfa\u200b\ud83c\uddf3")&&!n(e,"\ud83c\udff4\udb40\udc67\udb40\udc62\udb40\udc65\udb40\udc6e\udb40\udc67\udb40\udc7f","\ud83c\udff4\u200b\udb40\udc67\u200b\udb40\udc62\u200b\udb40\udc65\u200b\udb40\udc6e\u200b\udb40\udc67\u200b\udb40\udc7f");case"emoji":return!n(e,"\ud83d\udc26\u200d\u2b1b","\ud83d\udc26\u200b\u2b1b")}return!1}function f(e,t,n){var r="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?new OffscreenCanvas(300,150):i.createElement("canvas"),a=r.getContext("2d",{willReadFrequently:!0}),o=(a.textBaseline="top",a.font="600 32px Arial",{});return e.forEach(function(e){o[e]=t(a,e,n)}),o}function t(e){var t=i.createElement("script");t.src=e,t.defer=!0,i.head.appendChild(t)}"undefined"!=typeof Promise&&(o="wpEmojiSettingsSupports",s=["flag","emoji"],n.supports={everything:!0,everythingExceptFlag:!0},e=new Promise(function(e){i.addEventListener("DOMContentLoaded",e,{once:!0})}),new Promise(function(t){var n=function(){try{var e=JSON.parse(sessionStorage.getItem(o));if("object"==typeof e&&"number"==typeof e.timestamp&&(new Date).valueOf()<e.timestamp+604800&&"object"==typeof e.supportTests)return e.supportTests}catch(e){}return null}();if(!n){if("undefined"!=typeof Worker&&"undefined"!=typeof OffscreenCanvas&&"undefined"!=typeof URL&&URL.createObjectURL&&"undefined"!=typeof Blob)try{var e="postMessage("+f.toString()+"("+[JSON.stringify(s),u.toString(),p.toString()].join(",")+"));",r=new Blob([e],{type:"text/javascript"}),a=new Worker(URL.createObjectURL(r),{name:"wpTestEmojiSupports"});return void(a.onmessage=function(e){c(n=e.data),a.terminate(),t(n)})}catch(e){}c(n=f(s,u,p))}t(n)}).then(function(e){for(var t in e)n.supports[t]=e[t],n.supports.everything=n.supports.everything&&n.supports[t],"flag"!==t&&(n.supports.everythingExceptFlag=n.supports.everythingExceptFlag&&n.supports[t]);n.supports.everythingExceptFlag=n.supports.everythingExceptFlag&&!n.supports.flag,n.DOMReady=!1,n.readyCallback=function(){n.DOMReady=!0}}).then(function(){return e}).then(function(){var e;n.supports.everything||(n.readyCallback(),(e=n.source||{}).concatemoji?t(e.concatemoji):e.wpemoji&&e.twemoji&&(t(e.twemoji),t(e.wpemoji)))}))}((window,document),window._wpemojiSettings);
/* ]]> */
</script>
<style id='wp-emoji-styles-inline-css' type='text/css'>
img.wp-smiley, img.emoji {
display: inline !important;
border: none !important;
box-shadow: none !important;
height: 1em !important;
width: 1em !important;
margin: 0 0.07em !important;
vertical-align: -0.1em !important;
background: none !important;
padding: 0 !important;
}
</style>
<link rel='stylesheet' id='wp-block-library-css' href='https://www.rjmprogramming.com.au/ITblog/wp-includes/css/dist/block-library/style.min.css?ver=6.6.3' type='text/css' media='all' />
<style id='classic-theme-styles-inline-css' type='text/css'>
/*! This file is auto-generated */
.wp-block-button__link{color:#fff;background-color:#32373c;border-radius:9999px;box-shadow:none;text-decoration:none;padding:calc(.667em + 2px) calc(1.333em + 2px);font-size:1.125em}.wp-block-file__button{background:#32373c;color:#fff;text-decoration:none}
</style>
<style id='global-styles-inline-css' type='text/css'>
:root{--wp--preset--aspect-ratio--square: 1;--wp--preset--aspect-ratio--4-3: 4/3;--wp--preset--aspect-ratio--3-4: 3/4;--wp--preset--aspect-ratio--3-2: 3/2;--wp--preset--aspect-ratio--2-3: 2/3;--wp--preset--aspect-ratio--16-9: 16/9;--wp--preset--aspect-ratio--9-16: 9/16;--wp--preset--color--black: #000000;--wp--preset--color--cyan-bluish-gray: #abb8c3;--wp--preset--color--white: #ffffff;--wp--preset--color--pale-pink: #f78da7;--wp--preset--color--vivid-red: #cf2e2e;--wp--preset--color--luminous-vivid-orange: #ff6900;--wp--preset--color--luminous-vivid-amber: #fcb900;--wp--preset--color--light-green-cyan: #7bdcb5;--wp--preset--color--vivid-green-cyan: #00d084;--wp--preset--color--pale-cyan-blue: #8ed1fc;--wp--preset--color--vivid-cyan-blue: #0693e3;--wp--preset--color--vivid-purple: #9b51e0;--wp--preset--gradient--vivid-cyan-blue-to-vivid-purple: linear-gradient(135deg,rgba(6,147,227,1) 0%,rgb(155,81,224) 100%);--wp--preset--gradient--light-green-cyan-to-vivid-green-cyan: linear-gradient(135deg,rgb(122,220,180) 0%,rgb(0,208,130) 100%);--wp--preset--gradient--luminous-vivid-amber-to-luminous-vivid-orange: linear-gradient(135deg,rgba(252,185,0,1) 0%,rgba(255,105,0,1) 100%);--wp--preset--gradient--luminous-vivid-orange-to-vivid-red: linear-gradient(135deg,rgba(255,105,0,1) 0%,rgb(207,46,46) 100%);--wp--preset--gradient--very-light-gray-to-cyan-bluish-gray: linear-gradient(135deg,rgb(238,238,238) 0%,rgb(169,184,195) 100%);--wp--preset--gradient--cool-to-warm-spectrum: linear-gradient(135deg,rgb(74,234,220) 0%,rgb(151,120,209) 20%,rgb(207,42,186) 40%,rgb(238,44,130) 60%,rgb(251,105,98) 80%,rgb(254,248,76) 100%);--wp--preset--gradient--blush-light-purple: linear-gradient(135deg,rgb(255,206,236) 0%,rgb(152,150,240) 100%);--wp--preset--gradient--blush-bordeaux: linear-gradient(135deg,rgb(254,205,165) 0%,rgb(254,45,45) 50%,rgb(107,0,62) 100%);--wp--preset--gradient--luminous-dusk: linear-gradient(135deg,rgb(255,203,112) 0%,rgb(199,81,192) 50%,rgb(65,88,208) 100%);--wp--preset--gradient--pale-ocean: linear-gradient(135deg,rgb(255,245,203) 0%,rgb(182,227,212) 50%,rgb(51,167,181) 100%);--wp--preset--gradient--electric-grass: linear-gradient(135deg,rgb(202,248,128) 0%,rgb(113,206,126) 100%);--wp--preset--gradient--midnight: linear-gradient(135deg,rgb(2,3,129) 0%,rgb(40,116,252) 100%);--wp--preset--font-size--small: 13px;--wp--preset--font-size--medium: 20px;--wp--preset--font-size--large: 36px;--wp--preset--font-size--x-large: 42px;--wp--preset--spacing--20: 0.44rem;--wp--preset--spacing--30: 0.67rem;--wp--preset--spacing--40: 1rem;--wp--preset--spacing--50: 1.5rem;--wp--preset--spacing--60: 2.25rem;--wp--preset--spacing--70: 3.38rem;--wp--preset--spacing--80: 5.06rem;--wp--preset--shadow--natural: 6px 6px 9px rgba(0, 0, 0, 0.2);--wp--preset--shadow--deep: 12px 12px 50px rgba(0, 0, 0, 0.4);--wp--preset--shadow--sharp: 6px 6px 0px rgba(0, 0, 0, 0.2);--wp--preset--shadow--outlined: 6px 6px 0px -3px rgba(255, 255, 255, 1), 6px 6px rgba(0, 0, 0, 1);--wp--preset--shadow--crisp: 6px 6px 0px rgba(0, 0, 0, 1);}:where(.is-layout-flex){gap: 0.5em;}:where(.is-layout-grid){gap: 0.5em;}body .is-layout-flex{display: flex;}.is-layout-flex{flex-wrap: wrap;align-items: center;}.is-layout-flex > :is(*, div){margin: 0;}body .is-layout-grid{display: grid;}.is-layout-grid > :is(*, div){margin: 0;}:where(.wp-block-columns.is-layout-flex){gap: 2em;}:where(.wp-block-columns.is-layout-grid){gap: 2em;}:where(.wp-block-post-template.is-layout-flex){gap: 1.25em;}:where(.wp-block-post-template.is-layout-grid){gap: 1.25em;}.has-black-color{color: var(--wp--preset--color--black) !important;}.has-cyan-bluish-gray-color{color: var(--wp--preset--color--cyan-bluish-gray) !important;}.has-white-color{color: var(--wp--preset--color--white) !important;}.has-pale-pink-color{color: var(--wp--preset--color--pale-pink) !important;}.has-vivid-red-color{color: var(--wp--preset--color--vivid-red) !important;}.has-luminous-vivid-orange-color{color: var(--wp--preset--color--luminous-vivid-orange) !important;}.has-luminous-vivid-amber-color{color: var(--wp--preset--color--luminous-vivid-amber) !important;}.has-light-green-cyan-color{color: var(--wp--preset--color--light-green-cyan) !important;}.has-vivid-green-cyan-color{color: var(--wp--preset--color--vivid-green-cyan) !important;}.has-pale-cyan-blue-color{color: var(--wp--preset--color--pale-cyan-blue) !important;}.has-vivid-cyan-blue-color{color: var(--wp--preset--color--vivid-cyan-blue) !important;}.has-vivid-purple-color{color: var(--wp--preset--color--vivid-purple) !important;}.has-black-background-color{background-color: var(--wp--preset--color--black) !important;}.has-cyan-bluish-gray-background-color{background-color: var(--wp--preset--color--cyan-bluish-gray) !important;}.has-white-background-color{background-color: var(--wp--preset--color--white) !important;}.has-pale-pink-background-color{background-color: var(--wp--preset--color--pale-pink) !important;}.has-vivid-red-background-color{background-color: var(--wp--preset--color--vivid-red) !important;}.has-luminous-vivid-orange-background-color{background-color: var(--wp--preset--color--luminous-vivid-orange) !important;}.has-luminous-vivid-amber-background-color{background-color: var(--wp--preset--color--luminous-vivid-amber) !important;}.has-light-green-cyan-background-color{background-color: var(--wp--preset--color--light-green-cyan) !important;}.has-vivid-green-cyan-background-color{background-color: var(--wp--preset--color--vivid-green-cyan) !important;}.has-pale-cyan-blue-background-color{background-color: var(--wp--preset--color--pale-cyan-blue) !important;}.has-vivid-cyan-blue-background-color{background-color: var(--wp--preset--color--vivid-cyan-blue) !important;}.has-vivid-purple-background-color{background-color: var(--wp--preset--color--vivid-purple) !important;}.has-black-border-color{border-color: var(--wp--preset--color--black) !important;}.has-cyan-bluish-gray-border-color{border-color: var(--wp--preset--color--cyan-bluish-gray) !important;}.has-white-border-color{border-color: var(--wp--preset--color--white) !important;}.has-pale-pink-border-color{border-color: var(--wp--preset--color--pale-pink) !important;}.has-vivid-red-border-color{border-color: var(--wp--preset--color--vivid-red) !important;}.has-luminous-vivid-orange-border-color{border-color: var(--wp--preset--color--luminous-vivid-orange) !important;}.has-luminous-vivid-amber-border-color{border-color: var(--wp--preset--color--luminous-vivid-amber) !important;}.has-light-green-cyan-border-color{border-color: var(--wp--preset--color--light-green-cyan) !important;}.has-vivid-green-cyan-border-color{border-color: var(--wp--preset--color--vivid-green-cyan) !important;}.has-pale-cyan-blue-border-color{border-color: var(--wp--preset--color--pale-cyan-blue) !important;}.has-vivid-cyan-blue-border-color{border-color: var(--wp--preset--color--vivid-cyan-blue) !important;}.has-vivid-purple-border-color{border-color: var(--wp--preset--color--vivid-purple) !important;}.has-vivid-cyan-blue-to-vivid-purple-gradient-background{background: var(--wp--preset--gradient--vivid-cyan-blue-to-vivid-purple) !important;}.has-light-green-cyan-to-vivid-green-cyan-gradient-background{background: var(--wp--preset--gradient--light-green-cyan-to-vivid-green-cyan) !important;}.has-luminous-vivid-amber-to-luminous-vivid-orange-gradient-background{background: var(--wp--preset--gradient--luminous-vivid-amber-to-luminous-vivid-orange) !important;}.has-luminous-vivid-orange-to-vivid-red-gradient-background{background: var(--wp--preset--gradient--luminous-vivid-orange-to-vivid-red) !important;}.has-very-light-gray-to-cyan-bluish-gray-gradient-background{background: var(--wp--preset--gradient--very-light-gray-to-cyan-bluish-gray) !important;}.has-cool-to-warm-spectrum-gradient-background{background: var(--wp--preset--gradient--cool-to-warm-spectrum) !important;}.has-blush-light-purple-gradient-background{background: var(--wp--preset--gradient--blush-light-purple) !important;}.has-blush-bordeaux-gradient-background{background: var(--wp--preset--gradient--blush-bordeaux) !important;}.has-luminous-dusk-gradient-background{background: var(--wp--preset--gradient--luminous-dusk) !important;}.has-pale-ocean-gradient-background{background: var(--wp--preset--gradient--pale-ocean) !important;}.has-electric-grass-gradient-background{background: var(--wp--preset--gradient--electric-grass) !important;}.has-midnight-gradient-background{background: var(--wp--preset--gradient--midnight) !important;}.has-small-font-size{font-size: var(--wp--preset--font-size--small) !important;}.has-medium-font-size{font-size: var(--wp--preset--font-size--medium) !important;}.has-large-font-size{font-size: var(--wp--preset--font-size--large) !important;}.has-x-large-font-size{font-size: var(--wp--preset--font-size--x-large) !important;}
:where(.wp-block-post-template.is-layout-flex){gap: 1.25em;}:where(.wp-block-post-template.is-layout-grid){gap: 1.25em;}
:where(.wp-block-columns.is-layout-flex){gap: 2em;}:where(.wp-block-columns.is-layout-grid){gap: 2em;}
:root :where(.wp-block-pullquote){font-size: 1.5em;line-height: 1.6;}
</style>
<link rel="https://api.w.org/" href="https://www.rjmprogramming.com.au/ITblog/wp-json/" /><link rel="alternate" title="JSON" type="application/json" href="https://www.rjmprogramming.com.au/ITblog/wp-json/wp/v2/posts/49579" /><link rel="EditURI" type="application/rsd+xml" title="RSD" href="https://www.rjmprogramming.com.au/ITblog/xmlrpc.php?rsd" />
<meta name="generator" content="WordPress 6.6.3" />
<link rel="canonical" href="https://www.rjmprogramming.com.au/ITblog/macos-and-other-mobile-media-record-tutorial/" />
<link rel='shortlink' href='https://www.rjmprogramming.com.au/ITblog/?p=49579' />
<link rel="alternate" title="oEmbed (JSON)" type="application/json+oembed" href="https://www.rjmprogramming.com.au/ITblog/wp-json/oembed/1.0/embed?url=https%3A%2F%2Fwww.rjmprogramming.com.au%2FITblog%2Fmacos-and-other-mobile-media-record-tutorial%2F" />
<link rel="alternate" title="oEmbed (XML)" type="text/xml+oembed" href="https://www.rjmprogramming.com.au/ITblog/wp-json/oembed/1.0/embed?url=https%3A%2F%2Fwww.rjmprogramming.com.au%2FITblog%2Fmacos-and-other-mobile-media-record-tutorial%2F&format=xml" />
<link rel="stylesheet" href="https://www.rjmprogramming.com.au/ITblog/wp-content/plugins/responsive-twentyten/css/style.css" media="screen and (min-device-width: 481px)" type="text/css" />
<link type="text/css" rel="stylesheet" media="only screen and (max-device-width: 480px)" href="https://www.rjmprogramming.com.au/ITblog/wp-content/plugins/responsive-twentyten/css/phone_style.css" />
<meta name="viewport" content="width=device-width, minimum-scale=1.0,
maximum-scale=1.0"><link rel="icon" href="https://www.rjmprogramming.com.au/ITblog/wp-content/uploads/2024/12/cropped-logo_512_512-32x32.jpg" sizes="32x32" />
<link rel="icon" href="https://www.rjmprogramming.com.au/ITblog/wp-content/uploads/2024/12/cropped-logo_512_512-192x192.jpg" sizes="192x192" />
<link rel="apple-touch-icon" href="https://www.rjmprogramming.com.au/ITblog/wp-content/uploads/2024/12/cropped-logo_512_512-180x180.jpg" />
<meta name="msapplication-TileImage" content="https://www.rjmprogramming.com.au/ITblog/wp-content/uploads/2024/12/cropped-logo_512_512-270x270.jpg" />
<script type='text/javascript' src='//www.rjmprogramming.com.au/onrightclick.js?rand=588216'></script>
<script type='text/javascript' src='//www.rjmprogramming.com.au/ytaudioonly.js?rand=54374' defer></script>
<script type='text/javascript' src='//www.rjmprogramming.com.au/wordpress/wp-admin/js/hexlib.js'></script>
<script type='text/javascript' src='//www.rjmprogramming.com.au/wordpress/wp-admin/js/noughtsandcrosses.js?x=x'></script>
<script type='text/javascript' src='//www.rjmprogramming.com.au/wordpress/wp-admin/js/englishverb.js'></script>
<script type='text/javascript' src='//www.rjmprogramming.com.au/ITblog/wp-admin/js/wajax.js?rand=302476'></script>
<script type="text/javascript" src="//www.rjmprogramming.com.au/HTMLCSS/longhover_sup.js?period=5000&from=+&to=-"></script>
<script type='text/javascript' src='//www.rjmprogramming.com.au/marquee_placeholder.js'></script>
<script type='text/javascript' src='//www.rjmprogramming.com.au/hashtag_and_a_bit.js?rand=1467005'></script>
<script type='text/javascript' src='/personal_links.js?rand=1404218'></script>
<script type='text/javascript' src='/apple_script_url.js?mustconZtain=&&left=calc(65% + 5px)&top=calc(0% + 58px)&emojXi=128220&css=font-size:22px;opacity:0.8;' defer></script>
<script type=text/javascript src=/web_share_api_test.js?populate=as_necessary9876&rand=200589 defer></script>
<script>
var getsc="";
var dgsbi='';
var dbihis='';
var cttcs=[];
var lte='';
var oncm=' oncontextmenu=';
var oncmt=' or right click or two finger gesture ';
if (navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i)) {
oncm=' ontouchmove=';
oncmt=' or drag over gesture ';
}
var hight=' ';
var cafd=-1; //false;
var ismulti=false;
var sit=-1;
var ourtwo=2;
var ourselo=null;
var sitlist='';
var sitdelim='';
var lastsit='';
var sitideastarted=false;
var callwhat=[];
var ocb='_BLANK';
var cwl=-1;
var prevcmd="";
var prevxcmd="";
var jjxhr=null;
var rppspana=null;
var offurls=[];
var offchild=null;
var offchildclose=null;
var nohlist=";";
var morethanfifty=75, refw='';
var ourfs=21, zzzspare='';
var ourck=location.search.split('ck=')[1] ? location.search.split('ck=')[1].split('&')[0] : '';
var ourpp=location.search.split('pp=')[1] ? location.search.split('pp=')[1].split('&')[0] : '';
var ourpn=location.search.split('pn=')[1] ? location.search.split('pn=')[1].split('&')[0] : '';
var ourpage=location.search.split('page_id=')[1] ? location.search.split('page_id=')[1].split('&')[0] : '';
var ourp=location.search.split('p=')[1] ? location.search.split('p=')[1].split('&')[0] : '';
var ourcourseurl='';
var ourcoursetitle='';
var ua = navigator.userAgent;
var isiPad = /iPad/i.test(ua) || /iPhone OS 3_1_2/i.test(ua) || /Android/i.test(ua) || /iPhone OS 3_2_2/i.test(ua);
var precb=0;
var partopokay="y";
var nopartopokay="";
var ilpxframe="ilp" + "frame";
var framexilp="frame" + "ilp";
var ourtopic = "";
var idea = "";
var coption='option';
var cdisabled='disabled';
var chidden='hidden';
var cblank='_blank';
var incat='/category/';
var a1='<br><br><a id=g';
var a2=' href=#'; //i';
var a3=' title=Top align=center style=color:yellow;>Back to Blog Course Top Menu</a><br><br><iframe id=frame';
//var a4='ilp src=//www.rjmprogramming.com.au/Learning/Programming/index.php?ourtopic=';
var a4='ilp src=//www.rjmprogramming.com.au/Learning/Programming/index.php?ourtopic=';
var a5='!&endthis=Y&isMobile=n width=100% height=900></iframe>';
var b1='<br><br><a id=h';
var b2=' href=#'; //j';
var b3=' title=Top align=center style=color:yellow;>Back to Blog Course Top Menu</a><br><br><iframe id=ilp';
//var b4='frame src=//www.rjmprogramming.com.au/Learning/Programming/index.php?ourtopic=';
var b4='frame src=//www.rjmprogramming.com.au/Learning/Programming/index.php?ourtopic=';
var b5='&endthis=Y&isMobile=n width=100% height=900></iframe>';
if (isiPad) {
}
var threaddivs=[], threaddivstwo=[], thisthre='', thisthrei=-1, thisthrerecttop=-1, xelms=[], lastthre=null;
var wodivc=null, divcih='', antidivcih='', hrsa=[], hroh='', twobits='', cdivid='con' + 't' + 'ent', onlok=true;
var foundIt=false;
var bb=0;
var iofframe = 0;
var suffixis = "";
var suffixon = ", Learning Programming, Multiplayer Nimh and Battleships and Cruisers";
var suffis = "-" + " Learning Programming, Multiplayer Nimh and Battleships and Cruisers";
var azero = "";
var xxsuffix='';
var hgsuffix='';
var prehgsuffix='';
var zhr=null, thisbpt='';
var cntthrough=true;
var cntsuffft=8000;
var cnttsuff=document.title;
var cntsuffixes=[];
var cntsuffixzhr=null;
var cntsuffixiiiz=0;
var cntsuffixsi=null;
var cntsuffixi=0;
var cntsuffix='';
if (('' + location.hash).indexOf('tentcon') != -1) {
cntsuffix='#tentcon'; cntsuffft=9000; setTimeout(vthen, 3000);
} else if (('' + location.hash).replace('#','').replace('1','0').replace('2','0').replace('3','0').replace('4','0').replace('5','0').replace('6','0').replace('7','0').replace('8','0').replace('9','0').indexOf('0') == 0) {
setTimeout(vthen, 3000);
}
var vwo=null;
function ondblc(eo) {
if (eo.outerHTML.indexOf('<video') == 0) {
vwo=window.open('','_blank');
} else {
vwo=window.open('','_blank','top=100,left=100,height=600,width=600');
}
vwo.document.write('<html><body>' + eo.outerHTML + '</body></html>');
}
if (window.location.href.indexOf("=0189") > 0) {
//alert('here');
suffixis = suffixon;
iofframe = 3;
azero = "0";
suffis = "+" + " Learning Programming, Multiplayer Nimh and Battleships and Cruisers";
}
/**
* Convert a string to HTML entities ... thanks to https://stackoverflow.com/questions/18749591/encode-html-entities-in-javascript
*/
String.prototype.toHtmlEntities = function() {
return this.replace(/./gm, function(s) {
// return "" + s.charCodeAt(0) + ";";
return (s.match(/[a-z0-9\s]+/i)) ? s : "" + s.charCodeAt(0) + ";";
});
};
/**
* Create string from HTML entities
*/
String.fromHtmlEntities = function(string) {
return (string+"").replace(/\d+;/gm,function(s) {
return String.fromCharCode(s.match(/\d+/gm)[0]);
})
};
// Most common words on current post ... RJM Programming ... May, 2016
var histogramurl='';
var hwordlist='';
var thecwords="";
var thetwords="MacOS and Other Mobile Media Record Tutorial";
var fivething=5;
var minwl=4;
if (document.URL.indexOf('workwithcontent') != -1) {
var qwpo=document.URL.split('workwithcontent');
var xqwpo=qwpo[1].replace('=','').replace('+','').split('.');
if (qwpo[1].replace('=','').substring(0,1) == '+') histogramurl=' ';
if (xqwpo[0] != '') {
fivething=eval(xqwpo[0].replace('+',''));
if (xqwpo.length > 1) {
var prexxqwpo=xqwpo[1].split('#');
var xxqwpo=prexxqwpo[0].split('&');
minwl=eval(xxqwpo[0]);
}
}
thetwords="MacOS and Other Mobile Media Record Tutorial";
thecwords="MacOS and Other Mobile Media Record Tutorial [/caption] We're letting a little dishevelment continue with today's work on top of yesterday's MacOS Speech to Flash Player Audio Record Tutorial . The reason (to our mind) is that involving mobile functionality into a media web application's sphere of influence is a big step with more than the usual time needed for testing ... well, that's my excuse, anyway . The major reason for this is that the ... <input type=file accept= video/*,audio/* capture ></input> ... is an incredible recent development (allowing dynamic media creation, with retake possibilities, all because of that one capture property above) separating the mobile (smart device) platforms from the previous laptop media capture capabilities, and at least doubles the amount of unit testing needed to prove the code workings. And so, for a little while, some users will be annoyed that they see web application functionality not meant for their platform characteristics. Sometimes dishevelment can work, too, or stewing for a day , because it turns out a piece of functionality you thought to be impossible with a particular platform amazingly becomes possible the next day?! Hence the adage ... mulling is amazing ! Code wise ... calls (just like Animated GIF Audio or Video Foreground Tutorial did) the HTML/Javascript the changed client_browsing.htm child web application to handle this HTML input capture usage and interfacing to (now various) parent.window scenarios ... called by a changed macos_say_record.php live run link ... that relies on our ... Inhouse HTML Email helper/creator's key interfacing code now goes ... <?php $smt= ; if (isset($_GET['sliceminusten'])) { $smt=' (' . str_replace( , + ,urldecode($_GET['sliceminusten'])) . ')'; } if (strlen($smt) == 13 && strpos(str_replace( + , ,('' . urldecode($_GET['to']))), @ ) !== false && str_replace( + , ,('' . urldecode($_GET['subj']))) != '') { echo <html><head><script type='text/javascript'> var smt=(' . $smt . ').substring(2).substring(0,10), smts=''; function onsm() { var wpr=null; var wp=window.parent; if (wp) { wpr=parent.document.getElementById('result'); } if ((window.opener && window.opener !== window) || (wp && wpr)) { if (5 == 5) { // window.opener.document.getElementById('result')) { document.getElementById('divplace').innerHTML='Email sent' + smts + '.'; //alert(window.opener.document.getElementById('result').slice(-10) + ' vs ' + smt); return true; } else { document.getElementById('divplace').innerHTML='Other green textbox not detected.'; return false; } } else { document.getElementById('divplace').innerHTML='Not a popup window.'; return false; } } function fixta() { if (document.getElementById('taready').value.indexOf('#') == -1 && ((document.getElementById('taready').value.indexOf('data:audio/') == 0 || document.getElementById('taready').value.indexOf('data:video/') == 0) || document.getElementById('taready').value == '')) { if (document.getElementById('taready').value == '' || (' ' + document.getElementById('taready').value).slice(-10) == smt) { if (document.getElementById('taready').value != '') { var midbit=document.getElementById('taready').value.split('data:')[1].split(';')[0] + ' src=' + \\ '\\ ; document.getElementById('taready').value='<body><' + midbit.substring(0,5) + ' id=thisaudio controls loop><source type=' + midbit + document.getElementById('taready').value.replace(/\\ /g,'+') + \\ '\\ + '></source></' + midbit.substring(0,5) + '></body>'; } else { document.getElementById('taready').value='<body><p></p></body>'; smts=' with the subject only'; } return true; } else { //document.getElementById('divplace').innerHTML='Copy failed because ' + (' ' + document.getElementById('taready').value).slice(-10) + ' paste does not match ' + smt + ' copy.'; document.getElementById('divplace').innerHTML='Copy failed because paste does not match copy.'; return false; } } else { document.getElementById('divplace').innerHTML='Incorrect data'; return false; } } </script></head><body onload=\\ document.getElementById('taready').focus();\\ ><h1 id=status>Paste to lightgreen here (already copied from lightgreen there (but recopy and repaste yourself if last characters . $smt . do not match) and click yellow button to Email off this Audio player ...</h1> <form target=ifplace onsubmit=\\ if (fixta()) { return onsm(); } else { return false; }\\ action=./emailhtml.php method=POST> <input type=hidden name=inline value=''></input> To: <input style=width:80%; type=text name=to value=' . str_replace( + , ,urldecode($_GET['to'])) . '></input><br> Subject: <input style=width:80%; type=text name=subj value=' . str_replace( + , ,urldecode($_GET['subj'])) . '></input><br> <textarea style=width:100%;background-color:lightgreen; cols=80 rows=10 name=tdhuhta id=taready></textarea><br><br> <input id=sub type=submit style=background-color:yellow; value='Email'></input></form><br> <iframe style=display:none; name=ifplace id=ifplace src=./emailhtml.php></iframe> <div id=divplace></div> </body></html> ; } else { echo <html><body><p>Incorrect usage.</p></body></html> ; } exit; ?> Please feel free to try it out yourself, email sharing as you go. You can also see this play out at WordPress 4.1.1's New MacOS Speech to Flash Player Audio Record Tutorial . ";
var hblurbis='', negoff=0;
var huhacc=nthMostCommon(eval(100 + fivething));
var ksofar=0, isofar=0, lasthsuff='';
while (ksofar < fivething && isofar < huhacc.length) {
negoff=0;
if (huhacc[isofar].word.substring(0,1) >= 'A' && huhacc[isofar].word.substring(0,1) <= 'Z') negoff=-1;
if ((huhacc[isofar].word + '~').indexOf(',~') != -1) huhacc[isofar].word=(huhacc[isofar].word + '~').replace(',~','');
if (huhacc[isofar].word.trim() != '' && huhacc[isofar].word.indexOf('(') == -1 && huhacc[isofar].word.indexOf('<') == -1 && huhacc[isofar].word.indexOf('&') == -1 && huhacc[isofar].word.indexOf('=') == -1 && huhacc[isofar].word.indexOf('[') == -1 && eval(huhacc[isofar].word.length) >= eval(negoff + minwl)) {
hblurbis+='"' + huhacc[isofar].word + '" occurs ' + huhacc[isofar].occurences + ' times ' + String.fromCharCode(10);
if (histogramurl != '') {
lasthsuff=" (" + huhacc[isofar].occurences + ")";
if (histogramurl == ' ') {
hwordlist=huhacc[isofar].word.replace(/'/g,"`") + lasthsuff;
histogramurl=" , [~" + huhacc[isofar].word.replace(/'/g,"`") + "~," + huhacc[isofar].occurences + "]";
} else {
hwordlist=huhacc[isofar].word.replace(/'/g,"`") + " " + hwordlist;
histogramurl+=" , [~" + huhacc[isofar].word.replace(/'/g,"`") + "~," + huhacc[isofar].occurences + "]";
}
}
ksofar++;
}
isofar++;
}
//alert(hblurbis);
hwordlist=hwordlist.replace(" ", lasthsuff + " ");
setTimeout(mcAndThen, 2000);
}
function iframeov(fthis) {
fthis.target='ifov';
document.getElementById('ifov').style.position='absolute';
document.getElementById('ifov').style.left='0px';
document.getElementById('ifov').style.top='0px';
document.getElementById('ifov').style.width='100%';
document.getElementById('ifov').style.height='100%';
document.getElementById('ifov').style.zIndex='987';
document.getElementById('ifov').style.display='block';
return true;
}
function offlen() {
if (window.opener) {
return '' + window.opener.offlen();
} else {
return '' + eval(-1 + eval('' + document.getElementById('justshow').innerHTML.split('<detail').length)); //offurls.length;
}
}
function vthen() {
var swith='';
if (document.URL.indexOf('wopenall=') != -1) {
var reles=document.URL.replace('?tag=','/tag/').replace('?category=','/category/').replace('?cat=','/category/').split('#')[0].split('/?')[0].split('/page/')[0].split('/');
if (reles.length >= 2) {
swith=' searching ' + reles[eval(-2 + reles.length)] + ' <i>' + reles[eval(-1 + reles.length)] + '</i> for "</i>' + decodeURIComponent(document.URL.split('wopenall=')[1].split('&')[0].split('#')[0]) + '</i>"';
} else {
swith=' searching within tag or category for "<i>' + decodeURIComponent(document.URL.split('wopenall=')[1].split('&')[0].split('#')[0]) + '</i>"';
}
}
if (document.getElementById('spfound') && ('' + location.hash).indexOf('tentcon') != -1) {
swith=swith.replace(' searching ',' searching content ');
document.getElementById('spfound').innerHTML=(' <font size=1>(' + ('' + location.hash).split('tentcon')[1] + ' postings accessed so far' + swith + ')</font>').replace('( postings','(0 postings');
} else if (document.getElementById('spfound') && ('' + location.hash).replace('#','') != '') {
document.getElementById('spfound').innerHTML=(' <font size=1>(' + ('' + location.hash).replace('#','') + ' postings accessed so far' + swith + ')</font>').replace('( postings','(0 postings');
}
}
function maybevp() {
if (navigator.userAgent.match(/iPhone/i)) { // it is a mobile device
//alert('' + screen.width + ' ' + screen.height); // 375 667 portrait
if (1 == 1 || screen.width < 700) {
if (window.innerWidth > window.innerHeight) {
var mvp = document.getElementById('myviewport');
//mvp.setAttribute('content','width=device-width, initial-scale=' + eval(1100 / screen.height));
mvp.setAttribute('content','width=device-width, initial-scale=' + eval(1100 / screen.height));
//mvp.setAttribute('initial-scale', '0.7');
} else {
//landthen();
//var pmvp = document.getElementById('myviewport');
//alert(279);
//mvp.setAttribute('content','width=device-width, initial-scale=' + eval(1100 / screen.height));
//pmvp.setAttribute('content','width=device-width, initial-scale=0.8');
var xcoxli=docgetclass("entry-title", "h2");
if (xcoxli[0]) {
//if (document.body.innerHTML.indexOf('ytaud' + 'ioonly') != -1) {
// alert('here at ' + xcoxli[0].innerHTML);
//}
//if (xcoxli[0].innerHTML.indexOf('External Javascript You') != 0) {
xcoxli[0].scrollIntoView();
xcoxli[0].style.marginLeft='-3px';
//}
//} else {
//document.body.innerHTML+='<style> h1.entry-title { margin-left: -40px; font-size: 90%; } h2.entry-title { margin-left: -40px; font-size: 90%; } </style>';
}
}
}
// Listen for orientation changes
window.addEventListener('orientationchange', function() {
// Announce the new orientation number
if (1 == 1 || screen.width < 700) {
var mvp = document.getElementById('myviewport');
if (window.innerWidth > window.innerHeight) {
mvp.setAttribute('content','width=device-width, initial-scale=' + eval(1100 / screen.height));
//mvp.setAttribute('initial-scale', '0.7');
} else {
mvp.setAttribute('content','width=device-width, initial-scale=' + eval(1100 / 1100));
}
}
}, false);
}
}
function prehideIt() {
if (onlok) {
if (!foundIt) {
if (document.getElementById('custom-alert-1')) {
if (('' + document.getElementById('custom-alert-1').style.visibility).indexOf('visible') != -1) {
foundIt=true;
setTimeout(hideIt, 10000);
}
}
}
}
}
function hideIt() {
if (document.getElementById('custom-alert-1')) {
document.getElementById('custom-alert-1').style.display='none';
document.getElementById('custom-alert-1').style.visibility='hidden';
foundIt=false;
}
}
function gohmnow(hmany, wlenis) {
var wsuffis="+5.4";
if (hmany == "" && wlenis == "") {
wsuffis=prompt("Separate by . the number of " + thetwords + " most used words to show and the minumum length of word (capital letter start adds one) ... leaving the '+' in shows histogram", wsuffis);
if (wsuffis == null) wsuffis="+5.4";
var pdsa=wsuffis.split('.');
if (pdsa.length > 1) {
hmany=wsuffis;
} else {
hmany=pdsa[0];
}
}
if (hmany.indexOf('.') != -1) {
wsuffis=hmany;
} else {
if (eval(hmany) < 0) {
wsuffis="5.";
} else {
wsuffis=hmany + ".";
}
if (wlenis == "") {
wsuffis+="4";
} else if (eval(wlenis) < 0) {
wsuffis+="4";
} else {
wsuffis+=wlenis;
}
}
var prehis=document.URL.split('#');
var pprehis=prehis[0].split('?');
if (pprehis.length == 1) {
location.href=pprehis[0].replace('workwithcontent','workXwithXcontent').replace(/content=+/g,'content=') + '?workwithcontent=' + wsuffis;
} else {
location.href=pprehis[0] + '?' + pprehis[1].replace('workwithcontent','workXwithXcontent').replace(/content=+/g,'content=') + '&workwithcontent=' + wsuffis;
}
}
function mcAndThen() {
if (histogramurl.indexOf(',') != -1) {
window.open("//www.rjmprogramming.com.au/PHP/HistogramChart/histogram_chart.php?title=Most Popular Words (" + ("" + fivething).replace('+','') + '.' + minwl + ") in " + thetwords + " ... " + (hwordlist) + "&onclick=y&task=Word&desc=Count&data=" + (histogramurl), "_blank", "top=50,left=50,width=900,height=800");
histogramurl='';
setTimeout(mcAndThen, 2000);
} else {
alert(hblurbis);
}
}
function nthMostCommon(ammount) { // thanks to //stackoverflow.com/questions/6565333/using-javascript-to-find-most-common-words-in-string
var wordsArray = thecwords.split(/\s/);
var wordOccurrences = {}
for (var i = 0; i < wordsArray.length; i++) {
wordOccurrences['_'+wordsArray[i]] = ( wordOccurrences['_'+wordsArray[i]] || 0 ) + 1;
}
var result = Object.keys(wordOccurrences).reduce(function(acc, currentKey) {
/* you may want to include a binary search here */
for (var i = 0; i < ammount; i++) {
if (!acc[i]) {
acc[i] = { word: currentKey.slice(1, currentKey.length), occurences: wordOccurrences[currentKey] };
break;
} else if (acc[i].occurences < wordOccurrences[currentKey]) {
acc.splice(i, 0, { word: currentKey.slice(1, currentKey.length), occurences: wordOccurrences[currentKey] });
if (acc.length > ammount)
acc.pop();
break;
}
}
return acc;
}, []);
return result;
}
function xtargout(){
var outtarg = "";
var languagex = "";
try {
try {
var qwpre = document.getElementById('ahomeis');
var qwe = qwpre.href;
if (qwe.length != 0) {
//alert(qwe);
var xxqwe = qwe.indexOf("tl=");
var ais = "&";
if (xxqwe != (0 - 1)) {
outtarg = "?langid=";
xxqwe = xxqwe + 3;
while (qwe.substring(xxqwe, (xxqwe+1)) != ais.substring(0,1)) {
outtarg = outtarg + qwe.substring(xxqwe, (xxqwe+1));
xxqwe = xxqwe + 1;
}
}
}
} catch (pwer) {
}
outtarg = outtarg;
} catch (exxq) {
}
return outtarg;
}
function targout(intarg){
var outtarg = intarg;
try {
var qwe = document.getElementById('site-title').innerHTML;
if (qwe.indexOf(" Metcalfe Blog") == (0 - 1)) {
outtarg = "_top";
}
} catch (exxq) {
}
return outtarg;
}
function olderChangeLcode2Now(val){
//var val = document.getElementById('x2language');
//alert(val.value);
if (val.value.length != 0 && val.value.indexOf('en') == (0 - 1)) {
//alert(val.value);
var pprefix = val[val.selectedIndex].id;
window.location = '//translate.google.com/translate?sl=en&js=n&prev=_t&hl=en&ie=UTF-8&layout=2&eotf=1&u=http%3A%2F%2Fwww.rjmprogramming.com.au%2FITblog%2F%3Fp%3D' + pprefix + '316&tl=' + val.value;
//window.open('//translate.google.com/translate?sl=en&js=n&prev=_t&hl=en&ie=UTF-8&layout=2&eotf=1&u=http%3A%2F%2Fwww.rjmprogramming.com.au%2Fwordpress&tl=' + val.value, '_blank');
//alert("yes" + val.value);
}
}
function ChangeLcode2Now(val){
//var val = document.getElementById('x2language');
//alert(val.value);
if (val.value.length != 0 && val.value.indexOf('en') == (0 - 1)) {
//alert(val.value);
var pprefix = ('' + val[val.selectedIndex].id);
var postns=top.document.body.innerHTML.split('<div i' + 'd="post-');
if (eval('' + postns.length) > 1) {
pprefix=postns[1].split('"')[0]; //alert(pprefix + ' ' + postns[1].split('"')[0]);
//window.open('https://www-rjmprogramming-com-au.translate.goog/ITblog/?p=' + postns[1].split('"')[0] + '&_x_tr_sl=en&_x_tr_tl=' + val.value + '&_x_tr_hl=en-GB&_x_tr_pto=nui', '_blank', 'top=50,left=50,width=800,height=800');
}
window.location = 'https://www-rjmprogramming-com-au.translate.goog/ITblog?p=' + pprefix + '&_x_tr_sl=en&_x_tr_hl=en-GB&_x_tr_pto=nui&_x_tr_tl=' + val.value + '&_x_tr_pto=wapp';
//window.open('//translate.google.com/translate?sl=en&js=n&prev=_t&hl=en&ie=UTF-8&layout=2&eotf=1&u=http%3A%2F%2Fwww.rjmprogramming.com.au%2Fwordpress&tl=' + val.value, '_blank');
//alert("yes" + val.value);
}
}
function ChangeLcodeNow(){
var val = document.getElementById('language');
//alert(val.value);
if (val.value.length != 0 && val.value.indexOf('en') == (0 - 1)) {
//alert(val.value);
var pprefix = val[val.selectedIndex].id;
var postns=top.document.body.innerHTML.split('<div i' + 'd="post-');
if (eval('' + postns.length) > 1) {
pprefix=postns[1].split('"')[0]; //alert('2:' + pprefix + ' ' + postns[1].split('"')[0]);
//window.open('https://www-rjmprogramming-com-au.translate.goog/ITblog/?p=' + postns[1].split('"')[0] + '&_x_tr_sl=en&_x_tr_tl=' + val.value + '&_x_tr_hl=en-GB&_x_tr_pto=nui', '_blank', 'top=50,left=50,width=800,height=800');
}
window.open('https://www-rjmprogramming-com-au.translate.goog/ITblog/language/?_x_tr_sl=en&_x_tr_hl=en-GB&_x_tr_pto=nui&_x_tr_tl=' + val.value + '&_x_tr_pto=wapp', '_top');
//window.open('//translate.google.com/translate?sl=en&js=n&prev=_t&hl=en&ie=UTF-8&layout=2&eotf=1&u=http%3A%2F%2Fwww.rjmprogramming.com.au%2Fwordpress&tl=' + val.value, '_blank');
//alert("yes" + val.value);
}
}
function newChangeLcodeNow(){
//<![CDATA[
var val = document.getElementById('language');
if (val.value.length != 0 && val.value.indexOf('en') == (0 - 1)) {
var pprefix = val[val.selectedIndex].id;
window.open('https://www-rjmprogramming-com-au.translate.goog/About_Us.html?_x_tr_sl=en&_x_tr_hl=en-GB&_x_tr_pto=nui&_x_tr_tl=' + val.value + '&_x_tr_pto=wapp', '_blank');
}
//]]>
}
function ulchange() {
var ourul=document.getElementById('topul');
//ourul.innerHTML = "<li><a target='_blank' href='//www.youtube.com/watch?v=Ok70cZEIW3I' title='Hello World iPhone 5 app (simulated) ... yay!'>Click to see an excellent Youtube tutorial for iPhone app (Hello World level) at //www.youtube.com/watch?v=Ok70cZEIW3I ...</a></li><li><img alt='Hello World iPhone 5 app (simulated) ... yay!' src='//www.rjmprogramming.com.au/wordpress/wp-content/uploads/2012/09/IOS_HelloWorld.jpg' /></li>";
ourul.innerHTML = "<li><a target='_blank' href='//www.youtube.com/watch?v=Ok70cZEIW3I' title='Hello World iPhone 5 app (simulated) ... yay!'>Click to see an excellent Youtube tutorial for iPhone app (Hello World level) at //www.youtube.com/watch?v=Ok70cZEIW3I ...</a></li><li><img alt='Hello World iPhone 5 app (simulated) ... yay!' src='//www.rjmprogramming.com.au/wordpress/wp-content/uploads/2012/09/IOS_HelloWorld.jpg' /></li>";
}
function toggleiframe(atif, assx, hfx) {
//alert('here1');
var tif=document.getElementById(atif);
var ohfo=document.getElementById(hfx);
var assxo=document.getElementById(assx);
var one=ohfo.innerHTML;
//alert('here2');
if (suffixis != "") {
//alert('here2a');
//assxo.href = "//www.rjmprogramming.com.au/wordpress/?page_id=189";
//assxo.href = "//www.rjmprogramming.com.au/wordpress/?page_id=189";
assxo.href = "//www.rjmprogramming.com.au/ITblog/?page_id=189";
suffixis = "";
iofframe = 0;
azero = "";
suffis = "-" + " Learning Programming, Multiplayer Nimh and Battleships and Cruisers";
//alert('here2aa');
var two = one.replace("+", "-");
two = two.replace("+", "-");
two = two.replace("=0189", "=189");
tif.innerHTML = suffis;
ohfo.innerHTML = two;
//alert('here2aaaaa ' + suffis + two);
} else {
//alert('here2b');
//assxo.href = "//www.rjmprogramming.com.au/wordpress/?page_id=0189";
//assxo.href = "//www.rjmprogramming.com.au/wordpress/?page_id=0189";
assxo.href = "//www.rjmprogramming.com.au/ITblog/?page_id=0189";
suffixis = suffixon;
iofframe = 3;
azero = "0";
suffis = "+" + " Learning Programming, Multiplayer Nimh and Battleships and Cruisers";
var son = suffixon + ")";
var twoa = one.replace("-", "+");
twoa = twoa.replace("-", "+");
twoa = twoa.replace("=189", "=0189");
//alert('here2bb');
tif.innerHTML = suffis;
ohfo.innerHTML = twoa;
//alert('here2bbb');
//alert('here2bbbbb ' + suffis + twoa);
}
//alert('here3');
}
function chatiframe(alin) {
//alert("here");
try {
//alert(alin.innerHTML);
var al=document.getElementById('aplus');
//alert(al.innerHTML);
if (al.innerHTML.indexOf("RJM Programming Chat") > 0) {
//al.innerHTML = "<iframe src='//www.rjmprogramming.com.au/plus' width=675 height=810 />";
al.innerHTML = "<iframe src='//www.rjmprogramming.com.au/plus' width=675 height=810 />";
}
} catch (ex) {
}
}
function dobringback() {
if (bb > 9) {
bb = bb;
} else {
bb = bb + 1;
var ob="bringback" + bb;
var objb=document.getElementById(ob);
if (objb != null) objb.style.display = 'block';
setTimeout(dobringback, 3000);
}
}
function randomiframe(alin) {
try {
var i=Math.floor((Math.random()*(1 + 6 + 1 + 1 + iofframe))-1*1);
var pr=document.getElementById('prandom');
switch(i)
{
case -1:
pr.innerHTML = "<li><span><h4 id='hfour-1'>Street Art (others in random list are Bygone, Walking Trip, Ephemeral, The Commute, Virtual Tour, Pyrmont Ultimo - Inner Sydney 'Burbs " + suffixis + ", <a target='_blank' href='//www.rjmprogramming.com.au/About_Us.html'>other</a>, <a target='_blank' href='//www.rjmprogramming.com.au/News.html'>news</a>, <a id='ass0' href='//www.rjmprogramming.com.au/wordpress/?page_id=" + azero + "189'>shuffle</a> <a id='tif0' href='#' onmouseover='toggleiframe(" + '"tif-1","ass-1","hfour-1"' + ");'>" + suffis + "</a>)</h4><br><iframe src='//www.rjmprogramming.com.au/streetart' width=675 height=810 /></span></li>";
break;
case 0:
pr.innerHTML = "<li><span><h4 id='hfour0'>Orange and Bathurst and Blue Mountains (others in random list are Street Art, Bygone, Walking Trip, Ephemeral, The Commute, Virtual Tour, Pyrmont Ultimo - Inner Sydney 'Burbs " + suffixis + ", <a target='_blank' href='//www.rjmprogramming.com.au/About_Us.html'>other</a>, <a target='_blank' href='//www.rjmprogramming.com.au/News.html'>news</a>, <a id='ass0' href='//www.rjmprogramming.com.au/wordpress/?page_id=" + azero + "189'>shuffle</a> <a id='tif0' href='#' onmouseover='toggleiframe(" + '"tif0","ass0","hfour0"' + ");'>" + suffis + "</a>)</h4><br><iframe src='//www.rjmprogramming.com.au/thewest' width=675 height=810 /></span></li>";
break;
case 1:
pr.innerHTML = "<li><span><h4 id='hfour1'>Ephemeral (others in random list are Street Art, Bygone, Walking Trip, Orange and Bathurst and Blue Mountains, The Commute, Virtual Tour, Pyrmont Ultimo - Inner Sydney 'Burbs " + suffixis + ", <a target='_blank' href='//www.rjmprogramming.com.au/About_Us.html'>other</a>, <a target='_blank' href='//www.rjmprogramming.com.au/News.html'>news</a>, <a id='ass1' href='//www.rjmprogramming.com.au/wordpress/?page_id=" + azero + "189'>shuffle</a> <a id='tif1' href='#' onmouseover='toggleiframe(" + '"tif1","ass1","hfour1"' + ");'>" + suffis + "</a>)</h4><br><iframe src='//www.rjmprogramming.com.au/ephemeral' width=675 height=810 /></span></li>";
break;
case 2:
pr.innerHTML = "<li><span><h4 id='hfour2'>Bygone (others in random list are Street Art, Ephemeral, Walking Trip, Orange and Bathurst and Blue Mountains, The Commute, Virtual Tour, Pyrmont Ultimo - Inner Sydney 'Burbs " + suffixis + ", <a target='_blank' href='//www.rjmprogramming.com.au/About_Us.html'>other</a>, <a target='_blank' href='//www.rjmprogramming.com.au/News.html'>news</a>, <a id='ass2' href='//www.rjmprogramming.com.au/wordpress/?page_id=" + azero + "189'>shuffle</a> <a id='tif2' href='#' onmouseover='toggleiframe(" + '"tif2","ass2","hfour2"' + ");'>" + suffis + "</a>)</h4><br><iframe src='//www.rjmprogramming.com.au/bygone' width=675 height=810 /></span></li>";
break;
case 3:
pr.innerHTML = "<li><span><h4 id='hfour3'>The Commute (others in random list are Street Art, Ephemeral, Bygone, Walking Trip, Orange and Bathurst and Blue Mountains, Virtual Tour, Pyrmont Ultimo - Inner Sydney 'Burbs " + suffixis + ", <a target='_blank' href='//www.rjmprogramming.com.au/About_Us.html'>other</a>, <a target='_blank' href='//www.rjmprogramming.com.au/News.html'>news</a>, <a id='ass3' href='//www.rjmprogramming.com.au/wordpress/?page_id=" + azero + "189'>shuffle</a> <a id='tif3' href='#' onmouseover='toggleiframe(" + '"tif3","ass3","hfour3"' + ");'>" + suffis + "</a>)</h4><br><iframe src='//www.rjmprogramming.com.au/thecommute' width=675 height=810 /></span></li>";
break;
case 4:
pr.innerHTML = "<li><span><h4 id='hfour4'>Virtual Tour (others in random list are Street Art, Ephemeral, Bygone, Walking Trip, Orange and Bathurst and Blue Mountains, The Commute, Pyrmont Ultimo - Inner Sydney 'Burbs " + suffixis + ", <a target='_blank' href='//www.rjmprogramming.com.au/About_Us.html'>other</a>, <a target='_blank' href='//www.rjmprogramming.com.au/News.html'>news</a>, <a id='ass4' href='//www.rjmprogramming.com.au/wordpress/?page_id=" + azero + "189'>shuffle</a> <a id='tif4' href='#' onmouseover='toggleiframe(" + '"tif4","ass4","hfour4"' + ");'>" + suffis + "</a>)</h4><br><iframe src='//www.rjmprogramming.com.au/virtualtour' width=675 height=810 /></span></li>";
break;
case 5:
pr.innerHTML = "<li><span><h4 id='hfour5'>Pyrmont, Ultimo - Inner Sydney 'Burbs (others in random list are Street Art, Ephemeral, Bygone, Walking Trip, Orange and Bathurst and Blue Mountains, The Commute, Virtual Tour " + suffixis + ", <a target='_blank' href='//www.rjmprogramming.com.au/About_Us.html'>other</a>, <a target='_blank' href='//www.rjmprogramming.com.au/News.html'>news</a>, <a id='ass5' href='//www.rjmprogramming.com.au/wordpress/?page_id=" + azero + "189'>shuffle</a> <a id='tif5' href='#' onmouseover='toggleiframe(" + '"tif5","ass5","hfour5"' + ");'>" + suffis + "</a>)</h4><br><iframe src='//www.rjmprogramming.com.au/pyrmontultimo' width=675 height=810 /></span></li>";
break;
case 6:
pr.innerHTML = "<li><span><h4 id='hfour6'>Walking Trip (others in random list are Street Art, Ephemeral, Bygone, Orange and Bathurst and Blue Mountains, The Commute, Pyrmont Ultimo - Inner Sydney 'Burbs, Virtual Tour " + suffixis + ", <a target='_blank' href='//www.rjmprogramming.com.au/About_Us.html'>other</a>, <a target='_blank' href='//www.rjmprogramming.com.au/News.html'>news</a>, <a id='ass6' href='//www.rjmprogramming.com.au/wordpress/?page_id=" + azero + "189'>shuffle</a> <a id='tif6' href='#' onmouseover='toggleiframe(" + '"tif6","ass6","hfour6"' + ");'>" + suffis + "</a>)</h4><br><iframe src='//www.rjmprogramming.com.au/walkingtrip' width=675 height=810 /></span></li>";
break;
case (4 + 1 + iofframe):
pr.innerHTML = "<li><span><h4 id='hfour7'>Learning Programming (others in random list are Street Art, Ephemeral, Bygone, Walking Trip, Orange and Bathurst and Blue Mountains, The Commute, Virtual Tour, Pyrmont Ultimo - Inner Sydney 'Burbs " + suffixis.replace(", Learning Programming", "") + ", <a target='_blank' href='//www.rjmprogramming.com.au/About_Us.html'>other</a>, <a target='_blank' href='//www.rjmprogramming.com.au/News.html'>news</a>, <a id='ass7' href='//www.rjmprogramming.com.au/wordpress/?page_id=" + azero + "189'>shuffle</a> <a id='tif7' href='#' onmouseover='toggleiframe(" + '"tif7","ass7","hfour7"' + ");'>" + suffis + "</a>)</h4><br><iframe src='//www.rjmprogramming.com.au/Learning/Programming' width=675 height=810 /></span></li>";
break;
case (5 + 1 + iofframe):
pr.innerHTML = "<li><span><h4 id='hfour8'>Multiplayer Nimh (others in random list are Street Art, Ephemeral, Bygone, Walking Trip, Orange and Bathurst and Blue Mountains, The Commute, Virtual Tour, Pyrmont Ultimo - Inner Sydney 'Burbs " + suffixis.replace(", Multiplayer Nimh", "") + ", <a target='_blank' href='//www.rjmprogramming.com.au/About_Us.html'>other</a>, <a target='_blank' href='//www.rjmprogramming.com.au/News.html'>news</a>, <a id='ass8' href='//www.rjmprogramming.com.au/wordpress/?page_id=" + azero + "189'>shuffle</a> <a id='tif8' href='#' onmouseover='toggleiframe(" + '"tif8","ass8","hfour8"' + ");'>" + suffis + "</a>)</h4><br><iframe src='//www.rjmprogramming.com.au/Games/Nimh' width=675 height=810 /></span></li>";
break;
case (6 + 1 + iofframe):
pr.innerHTML = "<li><span><h4 id='hfour9'>Battleships and Cruisers (others in random list are Street Art, Ephemeral, Bygone, Walking Trip, Orange and Bathurst and Blue Mountains, The Commute, Virtual Tour, Pyrmont Ultimo - Inner Sydney 'Burbs " + suffixis.replace(", Battleships and Cruisers", "") + ", <a target='_blank' href='//www.rjmprogramming.com.au/About_Us.html'>other</a>, <a target='_blank' href='//www.rjmprogramming.com.au/News.html'>news</a>, <a id='ass9' href='//www.rjmprogramming.com.au/wordpress/?page_id=" + azero + "189'>shuffle</a> <a id='tif9' href='#' onmouseover='toggleiframe(" + '"tif9","ass9","hfour9"' + ");'>" + suffis + "</a>)</h4><br><iframe src='//www.rjmprogramming.com.au/Games/Battleshipsandcruisers' width=675 height=810 /></span></li>";
break;
default:
break;
}
} catch (ex) {
}
}
function streetartiframe(alin) {
//alert("here");
try {
//alert(alin.innerHTML);
var al=document.getElementById('astreetart');
//alert(al.innerHTML);
if (al.innerHTML.indexOf("streetart") > 0) {
al.innerHTML = "<iframe src='//www.rjmprogramming.com.au/streetart' width=675 height=810 />";
}
} catch (ex) {
}
}
function thewestiframe(alin) {
//alert("here");
try {
//alert(alin.innerHTML);
var al=document.getElementById('athewest');
//alert(al.innerHTML);
if (al.innerHTML.indexOf("thewest") > 0) {
al.innerHTML = "<iframe src='//www.rjmprogramming.com.au/thewest' width=675 height=810 />";
}
} catch (ex) {
}
}
function bygoneiframe(alin) {
//alert("here");
try {
//alert(alin.innerHTML);
var al=document.getElementById('abygone');
//alert(al.innerHTML);
if (al.innerHTML.indexOf("Bygone") > 0) {
al.innerHTML = "<iframe src='//www.rjmprogramming.com.au/bygone' width=675 height=810 />";
}
} catch (ex) {
}
}
function ephemeraliframe(alin) {
//alert("here");
try {
//alert(alin.innerHTML);
var al=document.getElementById('aephemeral');
//alert(al.innerHTML);
if (al.innerHTML.indexOf("Ephemeral") > 0) {
al.innerHTML = "<iframe src='//www.rjmprogramming.com.au/ephemeral' width=675 height=810 />";
}
} catch (ex) {
}
}
function pyrmontultimoiframe(alin) {
//alert("here");
try {
//alert(alin.innerHTML);
var al=document.getElementById('apyrmontultimo');
//alert(al.innerHTML);
if (al.innerHTML.indexOf("Pyrmont") > 0) {
al.innerHTML = "<iframe src='//www.rjmprogramming.com.au/pyrmontultimo' width=675 height=810 />";
}
} catch (ex) {
}
}
function thecommuteiframe(alin) {
//alert("here");
try {
//alert(alin.innerHTML);
var al=document.getElementById('athecommute');
//alert(al.innerHTML);
if (al.innerHTML.indexOf("ommute") > 0) {
al.innerHTML = "<iframe src='//www.rjmprogramming.com.au/thecommute' width=675 height=810 />";
}
} catch (ex) {
}
}
function virtualtouriframe(alin) {
//alert("here");
try {
//alert(alin.innerHTML);
var al=document.getElementById('avirtualtour');
//alert(al.innerHTML);
if (al.innerHTML.indexOf("Virtual") > 0) {
al.innerHTML = "<iframe src='//www.rjmprogramming.com.au/virtualtour' width=675 height=810 />";
}
} catch (ex) {
}
}
function topViaDelay() {
if (partopokay != "" && 1 == 7) {
parent.scroll(0, 0); // more work here
}
}
function quizmaybe(firstidea, secondidea) {
var isdone="", ftopic = "", gradedfirst = "";
var ijk, sstr;
//var ourtopic = "";
var ourlooks = "", ourlook = "";
var ourtopicArray = new Array("C#:Chash:C~", "C++", "Python", "C", "CSS", "PHP", "HTML", "SQL", "ASP.Net", "VB.Net", "Java", "JavaScript");
var alink = null;
idea = firstidea;
try {
alink=document.getElementById(firstidea);
} catch (exx) {
}
if (alink == null) {
gradedfirst = "y";
idea=secondidea;
try {
alink=document.getElementById(secondidea);
} catch (exxs) {
}
}
ourtopic = "C#";
if (alink != null) {
for (ijk=0; ijk<ourtopicArray.length; ijk++) {
sstr = ourtopicArray[ijk].split(":");
ourtopic = sstr[0];
ourlook = sstr[0];
if (sstr.length > 2) {
ourlooks = sstr[2];
ourtopic = sstr[1];
} else if (sstr.length > 1) {
ourlooks = sstr[1];
ourlook = sstr[1];
} else {
ourlooks = sstr[0];
}
if (alink.href.toUpperCase().indexOf(("title=" + ourlooks + "~").toUpperCase()) != -1 || alink.href.toUpperCase().indexOf(("title=" + ourlooks + " ").toUpperCase()) != -1 || alink.href.toUpperCase().indexOf(("title=" + ourlooks + "%20").toUpperCase()) != -1) {
ftopic = ourtopic;
if (gradedfirst != "") {
alink.innerHTML = alink.innerHTML + '</a><br><a href="#g' + ourtopic + '" onclick="partopokay=nopartopokay; if (document.body.innerHTML.indexOf(framexilp) == -1) { document.body.innerHTML = document.body.innerHTML + a1 + ourtopic + a2 + idea + a3 + a4 + ourtopic + a5; } " title="Graded ' + ourtopic + ' ... if Quiz is pale the Finish button could help" id="i' + ourtopic + '" style="margin-left:20px;color:lightgreen;">Graded</a><a href="#h' + ourtopic + '" onclick="partopokay=nopartopokay; if (document.body.innerHTML.indexOf(framexilp) == -1) { document.body.innerHTML = document.body.innerHTML + b1 + ourtopic + b2 + idea + b3 + b4 + ourtopic + b5; } " title="' + ourtopic + ' ... if Quiz is pale the Finish button could help" id="j' + ourtopic + '" style="margin-left:10px;color:green;">' + ourlook + ' Quiz';
} else {
alink.innerHTML = alink.innerHTML + '</a><br><a href="#h' + ourtopic + '" onclick="partopokay=nopartopokay; if (document.body.innerHTML.indexOf(framexilp) == -1) { document.body.innerHTML = document.body.innerHTML + b1 + ourtopic + b2 + idea + b3 + b4 + ourtopic + b5; } " title="' + ourtopic + ' ... if Quiz is pale the Finish button could help" id="j' + ourtopic + '" style="margin-left:20px;color:green;">' + ourlook + ' Quiz</a><a href="#g' + ourtopic + '" onclick="partopokay=nopartopokay; if (document.body.innerHTML.indexOf(framexilp) == -1) { document.body.innerHTML = document.body.innerHTML + a1 + ourtopic + a2 + idea + a3 + a4 + ourtopic + a5; } " title="Graded ' + ourtopic + ' ... if Quiz is pale the Finish button could help" id="i' + ourtopic + '" style="margin-left:10px;color:lightgreen;">Graded';
}
}
}
ourtopic=ftopic;
}
}
function checkMarginLeftImages() {
var imyi;
var myimgs=document.getElementsByTagName("img");
if (myimgs.length > 0) {
for (imyi=0; imyi<myimgs.length; imyi++) {
if (myimgs[imyi].style.border.indexOf("15") != -1) {
myimgs[imyi].style.marginLeft = "-20px";
}
}
}
}
function newrptwo() {
var tworp=document.getElementById('recent-posts-2');
if (tworp != null) {
if (tworp.innerHTML.indexOf('<u' + 'l>') != -1) {
var ihs=tworp.innerHTML.split("</a>");
tworp.innerHTML = tworp.innerHTML.replace('<u' + 'l>', '<u' + 'l class="iconlist">');
var eight=new Array("one", "two", "three", "four", "five", "six", "seven", "eight");
var ieight;
//tworp.innerHTML = tworp.innerHTML.replace(/<\/a>/g, "</a><img class='iiconlist' src='http://www.rjmprogramming.com.au/wordpress/transparent.png' style='z-index:3;margin-left:0px;margin-top:0px;opacity:0.2;width:140px;height:100px;box-shadow:rgba(0,0,255,0.2) 2px 2px 2px 2px inset;' onmouseover='getRpnow();' onmouseout='yehBut();' ontouchstart='getRpnow();' ontouchend='yehBut();' title=' ... welcome to the long hover functionality that shows Blog Post regarding Recent Post images'>");
tworp.innerHTML = tworp.innerHTML.replace(/<\/a>/g, "</a><img class='iiconlist' src='//www.rjmprogramming.com.au/wordpress/transparent.png' style='z-index:3;margin-left:0px;margin-top:0px;opacity:0.2;width:140px;height:100px;box-shadow:rgba(0,0,255,0.2) 2px 2px 2px 2px inset;' onmouseover='getRpnow();' onmouseout='yehBut();' ontouchstart='getRpnow();' ontouchend='yehBut();' title=' ... welcome to the long hover functionality that shows Blog Post regarding Recent Post images' alt=' ... welcome to the long hover functionality that shows Blog Post regarding Recent Post images'>");
for (ieight=0; ieight<eight.length; ieight++) {
if (ihs.length > eval(0 + ieight)) {
tworp.innerHTML = tworp.innerHTML.replace("<li>", "<li title='Cut to the Chase ... double click " + oncmt + " for blog posting image involvement' oncontextmenu='window.open(\"//www.rjmprogramming.com.au/slideshow.html?rc=y&title=" + encodeURIComponent(ihs[eval(0 + ieight)].split('>')[eval(-1 + ihs[eval(0 + ieight)].split('>').length)]) + "\",\"_blank\");' ondblclick='window.open(\"//www.rjmprogramming.com.au/slideshow.html?dc=y&title=" + encodeURIComponent(ihs[eval(0 + ieight)].split('>')[eval(-1 + ihs[eval(0 + ieight)].split('>').length)]) + "\",\"_blank\");' onclick='window.open(\"//www.rjmprogramming.com.au/slideshow.html?title=" + encodeURIComponent(ihs[eval(0 + ieight)].split('>')[eval(-1 + ihs[eval(0 + ieight)].split('>').length)]) + "\",\"_blank\");' class='" + eight[ieight] + "'>");
} else {
tworp.innerHTML = tworp.innerHTML.replace("<li>", "<li class='" + eight[ieight] + "'>");
}
//tworp.innerHTML = tworp.innerHTML.replace("<img class=", "<img onclick='clickaid(\"a" + eight[ieight] + "\");' class=").replace("<img title=\" ", "<img onclick=\"clickaid('a" + eight[ieight] + "');\" title=\"");
tworp.innerHTML = tworp.innerHTML.replace("<img class=", "<img onclick=\"clickaid('a" + eight[ieight] + "');\" class=").replace("<img title=\" ", "<img onclick=\"clickaid('a" + eight[ieight] + "');\" title=\"");
}
}
}
}
var nothanks=false, findthing="", rptdlist=[], rptdhref=[], rptdtitle=[], rptdsrc=[], rptdcmd=[];
function rptds(iois) {
var thistdis='';
if (iois != null) {
var xaaconto = (iois.contentWindow || iois.contentDocument);
if (xaaconto != null) {
if (xaaconto.document) { xaaconto = xaaconto.document; }
if (xaaconto.body != null) {
var ltds=xaaconto.body.innerHTML.split('<td');
for (var iltds=1; iltds<ltds.length; iltds++) {
thistdis='<td' + ltds[iltds].split('</td>')[0] + '</td>';
rptdlist.push(thistdis);
console.log('thistdis=' + thistdis);
if (thistdis.indexOf(' href="') != -1) {
rptdhref.push(thistdis.split(' href="')[eval(-1 + thistdis.split(' href="').length)].split('"')[0]);
}
if (thistdis.indexOf(' title="') != -1) {
rptdtitle.push(thistdis.split(' title="')[eval(-1 + thistdis.split(' title="').length)].split('"')[0]);
}
if (thistdis.indexOf(' src="') != -1) {
rptdsrc.push(thistdis.split(' src="')[eval(-1 + thistdis.split(' src="').length)].split('"')[0]);
}
}
}
console.log('rptdtitle=' + rptdtitle);
console.log('rptdhref=' + rptdhref);
console.log('rptdsrc=' + rptdsrc);
}
}
}
function btb(iois) {
if (iois != null) {
console.log('1: good iois.src=' + iois.src);
var xzaaconto = (iois.contentWindow || iois.contentDocument);
console.log('111: good iois.src=' + iois.src);
if (xzaaconto != null && iois.src.indexOf('?populate=') != -1 && iois.src.indexOf('&extraget=') != -1) {
console.log('1111: good iois.src=' + iois.src);
if (xzaaconto.document) { xzaaconto = xzaaconto.document; }
console.log('11111: good iois.src=' + iois.src);
if (xzaaconto.body != null) {
alert(xzaaconto.body.innerHTML);
}
}
} else {
console.log('no good iois.src=' + iois.src);
}
}
function rplater() {
if (findthing != "") {
window.open("//www.rjmprogramming.com.au/slideshow.html?title=" + encodeURIComponent(findthing), "_blank");
findthing="";
}
nothanks=false;
}
function dblrplatern(ft) {
window.open("//www.rjmprogramming.com.au/slideshow.html?dc=y&title=" + encodeURIComponent(ft), "_blank");
}
function rcrplatern(ft) {
window.open("//www.rjmprogramming.com.au/slideshow.html?rc=y&title=" + encodeURIComponent(ft), "_blank");
}
function dblrplater() {
if (findthing != "") {
window.open("//www.rjmprogramming.com.au/slideshow.html?dc=y&title=" + encodeURIComponent(findthing), "_blank");
findthing="";
}
nothanks=false;
}
function rcrplater() {
if (findthing != "") {
window.open("//www.rjmprogramming.com.au/slideshow.html?rc=y&title=" + encodeURIComponent(findthing), "_blank");
findthing="";
}
nothanks=false;
}
function doitlatr() {
var wer='';
var tworp=document.getElementById('recent-posts-2');
var tworpinnerHTML=tworp.innerHTML;
for (var ieight=0; ieight<rptdcmd.length; ieight++) {
//wer=prompt(rptdcmd[ieight] + ' ' + tworp.innerHTML, rptdcmd[ieight] + ' ' + tworp.innerHTML);
tworpinnerHTML=tworpinnerHTML.replace(' src="//www.rjmprogramming.com.au/wordpress/transparent.png"', ' src="' + rptdcmd[ieight] + '"');
}
tworp.innerHTML=tworpinnerHTML.replace(/\<ul\>/g,'<ul data-done=y>');
//alert('at doitlatr');
}
function rptwo() {
var tworp=document.getElementById('recent-posts-2');
if (tworp != null) {
if (tworp.innerHTML.indexOf('<u' + 'l>') != -1) {
//alert('at rptwo');
var ihs=tworp.innerHTML.split("</a>");
tworp.innerHTML = tworp.innerHTML.replace('<u' + 'l>', '<u' + 'l class="iconlist">').replace(/a href/g,'a style="border:1px solid rgba(0,127,0,0.6);background: rgba(0,255,0,0.6); background: -webkit-linear-gradient(left top, rgba(0,255,0,0.6), rgba(255,255,0,0.6)); background: -o-linear-gradient(bottom right, rgba(0,255,0,0.5), rgba(255,255,0,0.6)); background: -moz-linear-gradient(bottom right, rgba(0,255,0,0.6), rgba(255,255,0,0.6)); background: linear-gradient(to bottom right, rgba(0,255,0,0.6), rgba(255,255,0,0.6));" title="Go to tutorial" onclick="if (1 == 2) { findthing=' + "''" + '; } nothanks=true;" href');
var eight=new Array("one", "two", "three", "four", "five", "six", "seven", "eight");
var ieight;
tworp.innerHTML = tworp.innerHTML.replace(/<\/a>/g, "</a><img class='iiconlist' src='//www.rjmprogramming.com.au/wordpress/transparent.png' style='z-index:3;margin-left:0px;margin-top:0px;opacity:0.2;width:140px;height:100px;box-shadow:rgba(0,0,255,0.2) 2px 2px 2px 2px inset;' onmouseover='getRpnow();' onmouseout='yehBut();' ontouchstart='getRpnow();' ontouchend='yehBut();' title=' ... welcome to the long hover functionality that shows Blog Post regarding Recent Post images' alt=' ... welcome to the long hover functionality that shows Blog Post regarding Recent Post images'>");
for (ieight=0; ieight<eight.length; ieight++) {
if (ihs.length > eval(0 + ieight)) {
//alert(ieight);
if (rptdsrc.length > ieight) {
//alert(rptdsrc[ieight]);
//tworp.innerHTML=tworp.innerHTML.replace('//www.rjmprogramming.com.au/wordpress/transparent.png', rptdsrc[ieight]);
if (('' + top.document.URL).indexOf('rjmprogramming-com-au') == -1) {
if (eval('' + rptdcmd.length) == 0) {
setTimeout(doitlatr, 12000);
rptdcmd.push(rptdsrc[ieight]);
} else {
rptdcmd.push(rptdsrc[ieight]);
}
}
}
}
}
for (ieight=0; ieight<eight.length; ieight++) {
if (ihs.length > eval(0 + ieight)) {
if (rptdtitle.length > ieight) {
if (ihs[eval(0 + ieight)].split(">")[eval(-1 + ihs[eval(0 + ieight)].split(">").length)] != rptdtitle[ieight]) {
tworp.innerHTML = tworp.innerHTML.replace(ihs[eval(0 + ieight)], ihs[eval(0 + ieight)].replace(' href=', ' href="' + rptdhref[ieight].replace('?p=', '?rx=' + Math.floor(Math.random() * 198765434) + '&p=') + '" data-href=').replace('>' + ihs[eval(0 + ieight)].split(">")[eval(-1 + ihs[eval(0 + ieight)].split(">").length)] + '<', '>' + rptdtitle[ieight] + '<'));
tworp.innerHTML = tworp.innerHTML.replace("<li>", "<li title='Cut to The Chase ... ... double click " + oncmt + " for blog posting image involvement' " + oncm + "' findthing=\"" + rptdtitle[ieight] + "\"; setTimeout(rcrplater,1000); nothanks=false; ' ondblclick=' findthing=\"" + rptdtitle[ieight] + "\"; setTimeout(dblrplater,1000); nothanks=false; ' onclick=' findthing=\"" + rptdtitle[ieight] + "\"; setTimeout(rplater,1000); nothanks=false; ' class='" + eight[ieight] + "'>");
} else {
tworp.innerHTML = tworp.innerHTML.replace("<li>", "<li title='Cut to tHe Chase ... ... double click " + oncmt + " for blog posting image involvement' " + oncm + "' findthing=\"" + rptdtitle[ieight] + "\"; setTimeout(rcrplater,1000); nothanks=false; ' ondblclick=' findthing=\"" + rptdtitle[ieight] + "\"; setTimeout(dblrplater,1000); nothanks=false; ' onclick=' findthing=\"" + ihs[eval(0 + ieight)].split(">")[eval(-1 + ihs[eval(0 + ieight)].split(">").length)] + "\"; setTimeout(rplater,1000); nothanks=false; ' class='" + eight[ieight] + "'>");
}
} else {
tworp.innerHTML = tworp.innerHTML.replace("<li>", "<li title='Cut to thE Chase ... ... double click " + oncmt + " for blog posting image involvement' " + oncm + "' findthing=\"" + rptdtitle[ieight] + "\"; setTimeout(rcrplater,1000); nothanks=false; ' ondblclick=' findthing=\"" + rptdtitle[ieight] + "\"; setTimeout(dblrplater,1000); nothanks=false; ' onclick=' findthing=\"" + ihs[eval(0 + ieight)].split(">")[eval(-1 + ihs[eval(0 + ieight)].split(">").length)] + "\"; setTimeout(rplater,1000); nothanks=false; ' class='" + eight[ieight] + "'>");
}
} else {
tworp.innerHTML = tworp.innerHTML.replace("<li>", "<li class='" + eight[ieight] + "'>");
}
//tworp.innerHTML = tworp.innerHTML.replace("<img class=", "<img onclick='clickaid(\"a" + eight[ieight] + "\");' class=").replace("<img title=\" ", "<img onclick=\"clickaid('a" + eight[ieight] + "');\" title=\"");
tworp.innerHTML = tworp.innerHTML.replace("<img class=", "<img onclick=\"if (1 == 2) { findthing=''; } nothanks=true; clickaid('a" + eight[ieight] + "');\" class=").replace("<img title=\" ", "<img onclick=\"clickaid('a" + eight[ieight] + "');\" title=\"");
}
}
}
}
function wasrptwo() {
var tworp=document.getElementById('recent-posts-2');
if (tworp != null) {
if (tworp.innerHTML.indexOf('<u' + 'l>') != -1) {
tworp.innerHTML = tworp.innerHTML.replace('<u' + 'l>', '<u' + 'l class="iconlist">');
var eight=new Array("one", "two", "three", "four", "five", "six", "seven", "eight");
var ieight;
//tworp.innerHTML = tworp.innerHTML.replace(/<\/a>/g, "</a><img class='iiconlist' src='//www.rjmprogramming.com.au/wordpress/transparent.png' style='z-index:3;margin-left:0px;margin-top:0px;opacity:0.2;width:140px;height:100px;box-shadow:rgba(0,0,255,0.2) 2px 2px 2px 2px inset;' onmouseover='getRpnow();' onmouseout='yehBut();' ontouchstart='getRpnow();' ontouchend='yehBut();' title=' ... welcome to the long hover functionality that shows Blog Post regarding Recent Post images'>");
tworp.innerHTML = tworp.innerHTML.replace(/<\/a>/g, "</a><img class='iiconlist' src='//www.rjmprogramming.com.au/wordpress/transparent.png' style='z-index:3;margin-left:0px;margin-top:0px;opacity:0.2;width:140px;height:100px;box-shadow:rgba(0,0,255,0.2) 2px 2px 2px 2px inset;' onmouseover='getRpnow();' onmouseout='yehBut();' ontouchstart='getRpnow();' ontouchend='yehBut();' title=' ... welcome to the long hover functionality that shows Blog Post regarding Recent Post images' alt=' ... welcome to the long hover functionality that shows Blog Post regarding Recent Post images'>");
for (ieight=0; ieight<eight.length; ieight++) {
tworp.innerHTML = tworp.innerHTML.replace("<li>", "<li class='" + eight[ieight] + "'>");
//tworp.innerHTML = tworp.innerHTML.replace("<img class=", "<img onclick='clickaid(\"a" + eight[ieight] + "\");' class=").replace("<img title=\" ", "<img onclick=\"clickaid('a" + eight[ieight] + "');\" title=\"");
tworp.innerHTML = tworp.innerHTML.replace("<img class=", "<img onclick=\"clickaid('a" + eight[ieight] + "');\" class=").replace("<img title=\" ", "<img onclick=\"clickaid('a" + eight[ieight] + "');\" title=\"");
}
}
}
}
function ul_li_noclass() {
var limyli;
var mylis=document.getElementsByTagName("ul");
if (mylis.length > 0) {
for (limyli=1; limyli<mylis.length; limyli++) {
if (mylis[limyli].className == "") {
mylis[limyli].className = "noclass";
} else if (mylis[limyli].className == "iconlist") {
mylis[limyli].className += " noclass";
}
}
}
}
function checkpt() {
var du=document.URL, ih;
//var abit=" <a target='myccor' onclick=\" document.getElementById('myccor').style.width='100%'; document.getElementById('myccor').style.height='1200'; \" title=' ... welcome to the long hover functionality that shows oldest Blog Posts within a category or tag or normal search' ontouchend=' yehBut(); ' onmouseover=' getOldestPost(); ' ontouchstart=' getOldestPost(); ' onmouseout=' yehBut(); ' href='//www.rjmprogramming.com.au/ITblog/gotoend.php?";
var abit=" <a target='myccor' onclick=\" document.getElementById('myccor').style.width='100%'; document.getElementById('myccor').style.height='1200'; \" title=' ... welcome to the long hover functionality that shows oldest Blog Posts within a category or tag or normal search' alt=' ... welcome to the long hover functionality that shows oldest Blog Posts within a category or tag or normal search' ontouchend=' yehBut(); ' onmouseover=' getOldestPost(); ' ontouchstart=' getOldestPost(); ' onmouseout=' yehBut(); ' href='//www.rjmprogramming.com.au/ITblog/gotoend.php?";
var h1s;
if (du.indexOf("&paged=") == -1) {
if (du.indexOf("?cat=") != -1 || du.indexOf("?tag=") != -1 || du.indexOf("?s=") != -1) {
if (document.body.innerHTML.indexOf("Older posts") != -1) {
h1s=document.getElementsByTagName("h1");
for (ih=0; ih<h1s.length; ih++) {
if (h1s[ih].className == "page-title") {
if (h1s[ih].innerHTML.indexOf("</span>") != -1) {
abit = abit + location.search.substring(1) + "&max=256&step=256'>(oldest)</a>";
h1s[ih].innerHTML = h1s[ih].innerHTML.replace("</span>", abit + "</span>");
}
}
}
}
}
}
}
function allthecombos(thisgetisme) {
var previs=" (previous ... default)",ourgetisme=thisgetisme,nextis=thisgetisme.replace('-GETME','GETME'),retselval='', tempbit='//www.rjmprogramming.com.au/PHP/Geographicals/diff.php?two=&one=' + thisgetisme;
var prefixtoreplace=thisgetisme.replace(thisgetisme.split('/')[eval(-1 + thisgetisme.split('/').length)],"");
if (nextis == ourgetisme && thisgetisme.indexOf('_GETME') != -1) {
retselval+="<option value='" + '//www.rjmprogramming.com.au/PHP/Geographicals/diff.php?one=' + thisgetisme.replace('_GETME','') + '&two=' + thisgetisme + "'>" + thisgetisme.replace('_GETME','').replace(prefixtoreplace,"") + " (latest) versus " + thisgetisme.replace(prefixtoreplace,"") + "</option>";
} else {
while (nextis != ourgetisme) {
if (nextis.indexOf('_GETME') == -1 && nextis.indexOf('-GETME') == -1) nextis=nextis.replace('GETME','_GETME');
retselval+="<option value='" + tempbit.replace('?two=', '?two=' + nextis) + "'>" + thisgetisme.replace(prefixtoreplace,"") + " (this) versus " + nextis.replace(prefixtoreplace,"") + previs + "</option>";
previs="";
ourgetisme=nextis;
if (nextis != ourgetisme.replace('-GETME','GETME')) {
nextis=ourgetisme.replace('-GETME','GETME');
} else if (ourgetisme.indexOf('-GETME') != -1) {
nextis=ourgetisme.replace('-GETME','_GETME');
}
if (nextis != ourgetisme) {
if (nextis.indexOf('_GETME') == -1 && nextis.indexOf('-GETME') == -1) nextis=nextis.replace('GETME','_GETME');
}
}
if (retselval != '') return "<option value='" + '//www.rjmprogramming.com.au/PHP/Geographicals/diff.php?one=' + nextis.replace('_GETME','') + '&two=' + thisgetisme + "'>" + nextis.replace('_GETME','').replace(prefixtoreplace,"") + " (latest) versus " + thisgetisme.replace(prefixtoreplace,"") + " (this)</option>" + retselval + "<option value='" + '//www.rjmprogramming.com.au/PHP/Geographicals/diff.php?one=' + nextis.replace('_GETME','') + '&two=' + nextis + "'>" + nextis.replace('_GETME','').replace(prefixtoreplace,"") + " (latest) versus " + nextis.replace(prefixtoreplace,"") + " (oldest)</option>";
}
return retselval;
}
function changeasfordownload() {
var selbitis='',origcafd=cafd,outs=null,extis,postprexp,prexp,xp,aorig, idmjk=0, newaspare='', big='----------------------GETME', stuffs, prestuffs;
var admjk = document.getElementsByTagName('a');
if (cafd < 0) {
cafd=1000;
} else if (cafd > 0) {
outs=document.getElementById('spn' + cafd);
if (origcafd > 0) {
if (outs != null) {
if (outs.style.border == null || outs.style.border == '') {
xp=outs.getAttribute("data-alt");
if (outs.innerHTML.indexOf('<iframe ') == -1) {
if (xp.indexOf("slideshow.htm") != -1) {
outs.innerHTML+='<br><iframe src="' + xp + '" title="' + xp + '" style="width:100%;height:100px;"></iframe><br>';
} else {
outs.innerHTML+='<br><iframe src="' + xp + '" title="' + xp + '" style="width:100%;height:500px;"></iframe><br>';
}
}
outs.style.border='2px solid yellow';
outs.title+=' (to new window)';
} else {
xp=outs.getAttribute("data-alt");
if (xp.indexOf("slideshow.htm") != -1) {
window.open(xp,"_blank","top=100,left=100,width=650,height=100");
} else {
window.open(xp,"_blank","top=100,left=100,width=500,height=500");
}
outs.style.border='';
outs.title=outs.title.replace(' (to new window)','');
}
}
}
}
if (outs == null) {
var dnprefix=decodeURIComponent(('' + localStorage.getItem('download_copy_to_folder')).replace(/^null$/g,'')).replace(/\+/g,' ').replace(/\\\\/g, '_').replace(/\//g, '_').replace(/\:/g, '_');
for (idmjk=0; idmjk<admjk.length; idmjk++) {
if (admjk[idmjk].href.indexOf('GETME') != -1 && admjk[idmjk].href.indexOf('diff.php') == -1) {
if (origcafd < 0) { //!cafd) {
xp=admjk[idmjk].href.split("GETME");
prexp=xp[0].split("/");
postprexp=prexp[-1 + prexp.length].split(".");
extis = postprexp[-1 + postprexp.length].replace(/_/g,"").replace(/-/g,"").replace(/GETME/g,"");
outs="//www.rjmprogramming.com.au/getmelist.htm?topoff=150&tsp=" + (Math.floor(Math.random() * 1999900) + 100) + "#" + postprexp[0] + "." + postprexp[-1 + postprexp.length].replace(extis,"").replace(extis,"").replace(extis,"") + "GETME" + extis;
aorig=admjk[idmjk].innerHTML;
console.log(aorig);
admjk[idmjk].innerHTML=admjk[idmjk].innerHTML.replace(".","<span data-alt='" + outs + "' id='spn" + cafd + "' title=\" + Code Download Table\" onclick=\"if (cafd == cafd) { cafd=" + cafd + "; changeasfordownload(); } else { window.open('" + outs + "','_blank','top=100,left=100,width=500,height=500'); } return false; \">⚫</span>");
//console.log('1:' + admjk[idmjk].innerHTML);
if (aorig == admjk[idmjk].innerHTML && admjk[idmjk].innerHTML.indexOf('er posts') == -1) {
admjk[idmjk].innerHTML=admjk[idmjk].innerHTML.replace(" ","<span data-alt='" + outs + "' id='spn" + cafd + "' title=\" + Code Download Table\" onclick=\"if (cafd == cafd) { cafd=" + cafd + "; changeasfordownload(); } else { window.open('" + outs + "','_blank','top=100,left=100,width=500,height=500'); } return false; \">⚪</span>");
//console.log('2:' + admjk[idmjk].innerHTML);
}
cafd++;
} else {
prestuffs = admjk[idmjk].href.split('/');
newaspare = admjk[idmjk].href.replace('_-GETME', '').replace('__GETME', '').replace('_GETME', '').replace(big, '');
while (big.indexOf('-') != -1) {
big = big.replace('-', '');
newaspare = newaspare.replace(big, '');
}
big = '----------------------GETME';
stuffs = newaspare.split('/');
if (dnprefix != '') {
admjk[idmjk].download = dnprefix + prestuffs[stuffs.length - 1];
} else {
admjk[idmjk].download = dnprefix + stuffs[stuffs.length - 1];
}
admjk[idmjk].title = "(Really download) " + admjk[idmjk].title + ' ... welcome to the long hover functionality that shows allows for a Download Mode for the blog that can be toggled';
admjk[idmjk].onmouseover = " getDownloadMode(); ";
admjk[idmjk].onmouseout = " yehBut(); ";
admjk[idmjk].ontouchstart = " getDownloadMode(); ";
admjk[idmjk].ontouchend = " yehBut(); ";
}
} else if (admjk[idmjk].href.indexOf('GETME') != -1 && origcafd < 0) { //!cafd) {
xp=admjk[idmjk].href.split("GETME");
prexp=xp[0].split("/");
postprexp=prexp[-1 + prexp.length].split(".");
extis = postprexp[-1 + postprexp.length].replace(/_/g,"").replace(/-/g,"").replace(/GETME/g,"");
outs="//www.rjmprogramming.com.au/getmelist.htm?topoff=150&tsp=" + (Math.floor(Math.random() * 1999900) + 100) + "#" + postprexp[0] + "." + postprexp[-1 + postprexp.length].replace(extis,"").replace(extis,"").replace(extis,"") + "GETME" + extis;
aorig=admjk[idmjk].innerHTML;
selbitis=allthecombos((admjk[idmjk].href + '=').split('=')[1].split('&')[0]);
admjk[idmjk].innerHTML=admjk[idmjk].innerHTML.replace(".","<span data-alt='" + outs + "' id='spn" + cafd + "' title=\" + Code Download Table\" onclick=\"if (cafd == cafd) { cafd=" + cafd + "; changeasfordownload(); } else { window.open('" + outs + "','_blank','top=100,left=100,width=500,height=500'); } return false; \"><select onchange=\" if (this.value.length > 0) { window.open(this.value,'_blank'); } return false; \" style='margin-bottom:0px;width:40px;' id='sel" + cafd + "'><option value=>⚫</option>" + selbitis + "</select></span>");
if (aorig == admjk[idmjk].innerHTML && admjk[idmjk].innerHTML.indexOf('er posts') == -1) admjk[idmjk].innerHTML=admjk[idmjk].innerHTML.replace(" ","<span data-alt='" + outs + "' id='spn" + cafd + "' title=\" + Code Download Table\" onclick=\"if (cafd == cafd) { cafd=" + cafd + "; changeasfordownload(); } else { window.open('" + outs + "','_blank','top=100,left=100,width=500,height=500'); } return false; \"><select onchange=\" if (this.value.length > 0) { window.open(this.value,'_blank'); } return false; \" style='margin-bottom:0px;width:40px;' id='sel" + cafd + "'><option value=>⚪</option>" + selbitis + "</select></span>");
cafd++;
} else if ((admjk[idmjk].innerHTML.indexOf('live run') != -1 || admjk[idmjk].title.toLowerCase().indexOf('click picture') != -1) && origcafd < 0) { //!cafd) {
outs="//www.rjmprogramming.com.au/slideshow.html#tuts";
admjk[idmjk].innerHTML=admjk[idmjk].innerHTML.replace(" ","<span data-alt='" + outs + "' id='spn" + cafd + "' title=\" + Cut to the Chase ... double click " + oncmt + " for blog posting image involvement ... see the blog post list related to live runs and slideshows ... ie. the main point of the blog posting\" onclick=\"if (cafd == cafd) { cafd=" + cafd + "; changeasfordownload(); } else { window.open('" + outs + "','_blank','top=100,left=100,width=650,height=100'); } return false; \">✂</span>");
cafd++;
}
}
}
}
function docgetclass(inc, intag) {
if (document.getElementsByClassName) {
return document.getElementsByClassName(inc);
} else {
var ijl;
var anarris=[];
var huhs=document.getElementsByTagName(intag);
for (ijl=0; ijl<huhs.length; ijl++) {
if (huh[ijl].className.indexOf(inc) != -1) {
anarris.push(huhs[ijl]);
}
}
return anarris;
}
}
function download_mode() {
var dmjk=0;
}
function ajaxcontexthelp_mode() {
var chdmjk=0;
}
function landthen() {
if (navigator.userAgent.match(/Android|BlackBerry|iPhone|iPod|Opera Mini|IEMobile/i)) {
window.scrollBy(30,0);
}
}
function sandthen() {
if (navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i)) {
osf=document.getElementById('s');
// if (osf != null) osf.style.width = "50%";
}
}
function imgedit(evt) {
if (('' + evt.target.outerHTML.split('>')[0]).indexOf(' class="iiconlist') == -1) {
preonrightclickask(evt);
}
}
function laterimg() {
var imgi = document.getElementsByTagName('img');
for (iyt=0; iyt<imgi.length; iyt++) {
if (('' + top.document.URL).indexOf('rjmprogramming-com-au') != -1) {
if (iyt == 0) {
if (!navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i)) {
if (document.getElementById('text-2') && document.getElementById('searchform') && document.getElementById('recent-posts-2')) {
var gtrectis=document.getElementById('text-2').getBoundingClientRect();
//document.getElementById('text-2').style.height='' + ('' + eval(-10 + eval('' + gtrectis.height))) + 'px';
var gsfis=document.getElementById('searchform').getBoundingClientRect();
document.getElementById('searchform').style.position='absolute';
document.getElementById('searchform').style.left='' + eval(-7 + eval('' + gtrectis.left)) + 'px';
document.getElementById('searchform').style.top='' + eval(-10 + 36 + eval('' + gtrectis.bottom)) + 'px';
document.getElementById('searchform').style.backgroundColor='yellow';
document.getElementById('recent-posts-2').style.position='absolute';
document.getElementById('recent-posts-2').style.left='' + gtrectis.left + 'px';
document.getElementById('recent-posts-2').style.top='' + eval(-10 + 24 + eval('' + gtrectis.bottom) + eval('' + gsfis.height)) + 'px';
document.getElementById('recent-posts-2').style.listStyleType='none';
document.getElementById('recent-posts-2').style.backgroundColor='#F0F8FF';
}
}
}
if (('' + imgi[iyt].src).indexOf('&u=//') != -1) {
imgi[iyt].src=imgi[iyt].src.split('&u=')[1];
}
}
}
}
function img_alt() {
if (1 == 2) {
var ilis, clis;
var nfo, nfos;
var lis = document.getElementsByTagName("li");
for (ilis=0; ilis<lis.length; ilis++) {
clis = " " + lis[ilis].className + " ";
if (clis.indexOf(" page-item-80 ") != -1) {
lis[ilis].innerHTML = lis[ilis].innerHTML.replace(/ Statement/g, "");
} else if (clis.indexOf(" page-item-189 ") != -1) {
lis[ilis].innerHTML = lis[ilis].innerHTML.replace(/One Image Site/g, "1Image");
} else if (clis.indexOf(" page-item-366 ") != -1) {
lis[ilis].innerHTML = lis[ilis].innerHTML.replace(/All Posts/g, "All");
}
}
lis = document.getElementsByTagName("a");
for (ilis=0; ilis<lis.length; ilis++) {
if (lis[ilis].innerHTML.indexOf("pink;") != -1) {
lis[ilis].innerHTML = lis[ilis].innerHTML.replace("pink;", "pink;width:580px;"); //180px;"); //212px;");
}
}
var h1st = document.getElementById("site-title");
if (!navigator.userAgent.match(/Android|BlackBerry|iPhone|iPod|Opera Mini|IEMobile/i)) {
h1st.style.width = "250px"; //"350px";
h1st.style.marginTop = "-34px";
h1st.style.marginLeft = "20px";
h1st = document.getElementById("site-description");
h1st.style.position = "absolute";
h1st.style.left = "80px";
h1st.style.top = "35px";
h1st.style.fontSize = "8px";
h1st.style.marginLeft = "36px"; //"350px";
h1st = document.getElementById("site-info");
h1st.style.width = "250px"; // "350px";
h1st = document.getElementById("mywtoi");
if (h1st != null) {
h1st.style.width = "190px"; //"212px";
h1st.style.height = "254px"; //"282px";
}
h1st = document.getElementById("content");
if (h1st != null) {
h1st.style.width = "320px";
}
}
}
var osf=document.getElementById('marquee-style-rss-news-ticker');
//if (document.URL.indexOf('?page_id=') == -1) {
if (osf != null) osf.style.marginTop = "-2px";
osf=document.getElementById('searchform');
if (osf != null) osf.style.marginTop = "-20px";
osf=document.getElementById('recent-posts-2');
if (osf != null) osf.style.marginTop = "-10px"; //"-20px";
osf=document.getElementById('text-5');
if (osf != null) osf.style.marginTop = "-15px";
//}
osf=document.getElementById('wrapper');
//var iwq=Math.floor((Math.random()*(3)));
//if (iwq == 0) {
osf.style.backgroundColor = '#fffff0';
//} else if (iwq == 1) {
// osf.style.backgroundColor = '#ffeff0';
//}
if (navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i)) {
setTimeout(sandthen,1000);
}
var iyt, altis, titleis;
var imgi = document.getElementsByTagName('img');
for (iyt=0; iyt<imgi.length; iyt++) {
if (('' + top.document.URL).indexOf('rjmprogramming-com-au') != -1) {
setTimeout(laterimg, 12000);
}
if (navigator.userAgent.match(/Android/i)) {
//alert(2);
if (iyt == 0) {
document.getElementById('styleandroid').innerHTML='<sty' + "le> .wp-caption-text { text-decoration: underline; } .wp-caption-text::before { content: '\\01F517 '; } </sty" + 'le>';
}
if (imgi[iyt].parentElement) {
//alert(22);
if (imgi[iyt].parentNode.href) {
//alert(imgi[iyt].parentNode.href + ' ' + imgi[iyt].outerHTML);
imgi[iyt].parentNode.ontouchend=function(event){ top.location.href=event.target.href; };
//imgi[iyt].ontouchstart=function(evt){ top.location.href=evt.target.parentNode.href; };
}
}
}
altis = imgi[iyt].alt;
titleis = imgi[iyt].title;
if (altis == null) {
if (titleis != null) {
if (titleis != '') {
imgi[iyt].alt = titleis;
}
}
} else if (altis == '') {
if (titleis != null) {
if (titleis != '') {
imgi[iyt].alt = titleis;
}
}
}
}
}
function metasepnext() {
// alert(999);
var pse, pseone, psetwo;
var doprefix="<html><body><table><tr></tr></table></body></html>";
var sin=document.getElementById("stutsm");
for (var im=0; im<sin.options.length; im++) {
if (sin.options[im].selected) {
if (sin.options[im].value == " ") justifyit();
if (sin.options[im].value.indexOf("=") != -1) {
pseone=sin.options[im].value.split("&");
pse=sin.options[im].value.split("=");
psetwo=pse[1].split("&");
if (sin.options[im].value.indexOf("?page_id=") != -1) {
doprefix=doprefix.replace("</tr>", "<iframe style='width:610;height:900;' src='" + pseone[0] + "'></iframe></td></tr>");
//} else if (document.body.innerHTML.indexOf('ytaud' + 'ioonly') != -1) {
//doprefix=doprefix.replace("</tr>", "<iframe style='width:610;height:900;' src='" + pseone[0] + "#post-" + psetwo[0] + "'></iframe></td></tr>");
} else {
doprefix=doprefix.replace("</tr>", "<iframe style='width:610;height:900;' src='" + pseone[0] + "#post-" + psetwo[0] + "#andabit=-70'></iframe></td></tr>");
}
}
}
}
if (doprefix.indexOf("<tr></tr>") == -1) {
var mywo=window.open("", "_blank", "top=20,left=20,width=1250,height=950");
mywo.document.write(doprefix);
}
}
function metasep() {
var mss;
if (document.getElementsByClassName) {
mss=document.getElementsByClassName("meta-sep");
} else {
mss=document.getElementsByTagName("span");
}
var imss, jmss=-1;
for (imss=0; imss<mss.length; imss++) {
if (jmss < 0 && mss[imss].innerHTML == "by") {
jmss = imss;
}
}
if (jmss >= 0 && 1 == 1) {
// mss[jmss].style.height = "50px";
// mss[jmss].style.width = "50px";
// mss[jmss].innerHTML = "<iframe src='//www.rjmprogramming.com.au/wordpress/bytheby.php' title='by'></iframe>";
//if (1 == 2) mss[jmss].innerHTML = "<select ontouchend=' yehBut(); ' onmouseover=' getBytheby(); ' ontouchstart=' getBytheby(); ' onmouseout=' yehBut(); ' onclick=' this.style.display=\"none\"; document.getElementById(\"stutsm\").style.display=\"inline\"; document.getElementById(\"bstutsm\").style.display=\"inline\"; document.getElementById(\"sstutsm\").style.display=\"inline\"; document.getElementById(\"istutsm\").src= document.getElementById(\"istutsm\").src + \"?populate=stutsm\"; ' style='width:50px;' id='stuts' title=' ... welcome to the long hover functionality that shows multiple Blog Post showing functionality'><option value=''>by</option><option value='by'>by</option></select><select multiple size=5 style='width:300px;display:none;' id='stutsm' title='Show multiple tutorials'></select><input type='button' onclick='metasepnext();' style='display:none;margin-top:-8px;' value='<-Show' id='bstutsm'></input><span id='sstutsm' style='display:none;'> by </span><iframe style='width:1;height:1;' width=1 height=1 id='istutsm' src='//www.rjmprogramming.com.au/ITblog/bytheby.php'></iframe>";
if (1 == 2) mss[jmss].innerHTML = "<select ontouchend=' yehBut(); ' onmouseover=' getBytheby(); ' ontouchstart=' getBytheby(); ' onmouseout=' yehBut(); ' onclick=' this.style.display=\"none\"; document.getElementById(\"stutsm\").style.display=\"inline\"; document.getElementById(\"bstutsm\").style.display=\"inline\"; document.getElementById(\"sstutsm\").style.display=\"inline\"; document.getElementById(\"istutsm\").src= document.getElementById(\"istutsm\").src + \"?populate=stutsm\"; ' style='width:50px;' id='stuts' title=' ... welcome to the long hover functionality that shows multiple Blog Post showing functionality' alt=' ... welcome to the long hover functionality that shows multiple Blog Post showing functionality'><option value=''>by</option><option value='by'>by</option></select><select multiple size=5 style='width:300px;display:none;' id='stutsm' title='Show multiple tutorials'></select><input type='button' onclick='metasepnext();' style='display:none;margin-top:-8px;' value='<-Show' id='bstutsm'></input><span id='sstutsm' style='display:none;'> by </span><iframe style='width:1;height:1;' width=1 height=1 id='istutsm' src='//www.rjmprogramming.com.au/ITblog/bytheby.php' onload=btb(this);></iframe>";
//mss[jmss].innerHTML = "<select onchange=' if (this.value == \" \") { justifyit(); } \" ontouchend=' yehBut(); ' onmouseover=' getBytheby(); ' ontouchstart=' getBytheby(); ' onmouseout=' yehBut(); ' onclick=' this.style.display=\"none\"; document.getElementById(\"stutsm\").style.display=\"inline\"; document.getElementById(\"bstutsm\").style.display=\"inline\"; document.getElementById(\"sstutsm\").style.display=\"inline\"; document.getElementById(\"istutsm\").src= document.getElementById(\"istutsm\").src + \"?populate=stutsm\"; setTimeout(stutsmlast, 3000); ' style='width:50px;' id='stuts' title=' ... welcome to the long hover functionality that shows multiple Blog Post showing functionality'><option value=''>by</option><option value='by'>by</option><option ontouchdown=' justifyit(); ' onclick=' justifyit(); ' value=''>BY</option></select><select multiple size=5 style='width:300px;display:none;' id='stutsm' title='Show multiple tutorials'></select><input type='button' onclick='metasepnext();' style='display:none;margin-top:-8px;' value='<-Show' id='bstutsm'></input><span id='sstutsm' style='display:none;'> by </span><iframe style='width:1;height:1;' width=1 height=1 id='istutsm' src='//www.rjmprogramming.com.au/ITblog/bytheby.php'></iframe>";
mss[jmss].innerHTML = "<select onchange=' if (this.value == \" \") { justifyit(); } \" ontouchend=' yehBut(); ' onmouseover=' getBytheby(); ' ontouchstart=' getBytheby(); ' onmouseout=' yehBut(); ' onclick=' this.style.display=\"none\"; document.getElementById(\"stutsm\").style.display=\"inline\"; document.getElementById(\"bstutsm\").style.display=\"inline\"; document.getElementById(\"sstutsm\").style.display=\"inline\"; document.getElementById(\"istutsm\").src= document.getElementById(\"istutsm\").src + \"?populate=stutsm\"; setTimeout(stutsmlast, 3000); ' style='width:50px;' id='stuts' title=' ... welcome to the long hover functionality that shows multiple Blog Post showing functionality' alt=' ... welcome to the long hover functionality that shows multiple Blog Post showing functionality'><option value=''>by</option><option value='by'>by</option><option ontouchdown=' justifyit(); ' onclick=' justifyit(); ' value=''>BY</option></select><select multiple size=5 style='width:300px;display:none;' id='stutsm' title='Show multiple tutorials'></select><input type='button' onclick='metasepnext();' style='display:none;margin-top:-8px;' value='<-Show' id='bstutsm'></input><span id='sstutsm' style='display:none;'> by </span><iframe style='width:1;height:1;' width=1 height=1 id='istutsm' src='//www.rjmprogramming.com.au/ITblog/bytheby.php'></iframe>";
}
}
function justifyit() {
var ps=document.getElementsByTagName("p");
for (var i=0; i<ps.length; i++) {
ps[i].style.textAlign='justify';
ps[i].style.textJustify='inter-word';
ps[i].style.width='100%;';
}
}
function postcaptionsearchit() {
if (document.getElementById('searchform')) {
document.getElementById('searchform').innerHTML+='<span id=spanback style=display:none;><a title="Back to reading ..." id=aback href="#psi0" style=text-decoration:none;cursor:pointer;>🔙</a></span>';
} else {
setTimeout(postcaptionsearchit, 5000);
}
}
function captionsearchit() {
var fone=-1, was_ih='', kk=0, anymore='';
var ps=document.getElementsByTagName("p");
for (var i=0; i<ps.length; i++) {
if (('' + ps[i].className) == 'wp-caption-text') {
if (fone < 0) { fone=i; }
was_ih=ps[i].innerHTML;
if (('' + ps[i].id).indexOf('psi') != -1) {
ps[i].innerHTML+=" <a title='Search ...' data-title='" + was_ih + "' id=apsi" + i + " onclick=\"if (document.getElementById('spanback')) { document.getElementById('spanback').style.display='inline-block'; document.getElementById('aback').title='Back to reading ' + this.getAttribute('data-title') + ' ...'; this.title=this.getAttribute('data-title'); document.getElementById('aback').href=('#' + this.id).replace('#a','#'); } document.getElementById('s').scrollIntoView(); document.getElementById('s').focus(); \" style=text-decoration:none;cursor:pointer; title=Search>🔍</a>";
} else {
ps[i].id='psi' + i;
if (('' + location.search + location.hash).indexOf('psi') != -1) {
var sps=document.getElementsByTagName("span");
for (var si=0; si<sps.length; si++) {
if (('' + sps[si].className).indexOf('entry-date') != -1 && anymore == '') {
anymore='<br> <a onclick="window.scrollBy(0,-130);" title=Image style=text-decoration:none;cursor:pointer;>🖼</a> <font size=1>' + sps[si].innerHTML + '</font>';
ps[i].ondblclick=function(){ window.open(document.URL.split('#')[0] + '#content','_blank','top=100,left=100,width=700,height=700'); };
ps[i].title+=' ... double click opens in new popup window.';
ps[i].title+=' ' + String.fromCharCode(10) + (document.getElementById('content').innerText || document.getElementById('content').contentWindow || document.getElementById('content').contentDocument).split('BY')[1].trim();
document.body.title='' + (document.getElementById('content').innerText || document.getElementById('content').contentWindow || document.getElementById('content').contentDocument).split('BY')[1].trim();
}
}
}
ps[i].innerHTML+=" <a title='Search ...' data-title='" + was_ih + "' id=apsi" + i + " onclick=\"if (document.getElementById('spanback')) { document.getElementById('spanback').style.display='inline-block'; document.getElementById('aback').title='Back to reading ' + this.getAttribute('data-title') + ' ...'; this.title=this.getAttribute('data-title'); document.getElementById('aback').href=('#' + this.id).replace('#a','#'); } document.getElementById('s').scrollIntoView(); document.getElementById('s').focus(); \" style=text-decoration:none;cursor:pointer; title=Search>🔍</a>" + anymore;
if (kk == 0 && ('' + location.hash).indexOf('psi') != -1) {
kk=1;
document.getElementById('psi' + i).scrollIntoView();
}
}
}
}
postcaptionsearchit();
}
function stutsmlast() {
document.getElementById('stutsm').innerHTML += "<option ontouchdown=' justifyit(); ' onclick=' justifyit(); ' value=' '>Left and Right Paragraph Justification</option>";
}
var morex=0;
var prevred="";
var thisred="";
var pleaseclickit=false;
function sctop() {
if (prevred != "") {
document.getElementById(prevred).style.borderColor='orange';
}
if (thisred != "") {
document.getElementById(thisred).style.borderColor='red';
prevred=thisred;
}
if (pleaseclickit) {
document.getElementById(thisred.replace('td_','top_')).click();
pleaseclickit=false;
}
window.scrollBy(morex,-50);
morex=0;
}
function urlit(upc) {
var retlc=upc.toLowerCase();
while (retlc.indexOf("/") != -1) {
retlc=retlc.replace("/","-");
}
while (retlc.indexOf("+") != -1) {
retlc=retlc.replace("+","");
}
while (retlc.indexOf("'") != -1) {
retlc=retlc.replace("'","");
}
while (retlc.indexOf(" ") != -1) {
retlc=retlc.replace(" ","-");
}
return retlc;
}
function breadcrumbit(thisa, statuschars, prevt, nextt) {
var reta=thisa;
var topp="top";
if (thisa.indexOf("bottom_") != -1) topp="bottom";
if (statuschars == " " && prevt != "" && nextt != "") {
reta='<a id="ps_' + urlit(prevt) + '" onclick="thisred=' + "'td_" + urlit(prevt) + "'" + '; pleaseclickit=true; morex=-350; setTimeout(sctop,1000); " href=#' + topp + '_' + urlit(prevt) + " title='" + prevt + "'> ⇇ </a>" + '<a id="s_' + urlit(prevt) + '" onclick="thisred=' + "'td_" + urlit(prevt) + "'" + '; morex=-350; setTimeout(sctop,1000); " href=#' + topp + '_' + urlit(prevt) + " title='" + prevt + "'> ← </a>" + thisa + '<a id="e_' + urlit(nextt) + '" onclick="thisred=' + "'td_" + urlit(nextt) + "'" + '; morex=350; setTimeout(sctop,1000); " href=#' + topp + '_' + urlit(nextt) + " title='" + nextt + "'> → </a>" + '<a id="e_' + urlit(nextt) + '" onclick="thisred=' + "'td_" + urlit(nextt) + "'" + '; pleaseclickit=true; morex=350; setTimeout(sctop,1000); " href=#' + topp + '_' + urlit(nextt) + " title='" + nextt + "'> ⇉ </a>";
} else if (statuschars == " " && prevt != "" && nextt == "") {
reta='<a id="ps_' + urlit(prevt) + '" onclick="thisred=' + "'td_" + urlit(prevt) + "'" + '; pleaseclickit=true; morex=-350; setTimeout(sctop,1000); " href=#' + topp + '_' + urlit(prevt) + " title='" + prevt + "'> ⇇ </a>" + '<a id="s_' + urlit(prevt) + '" onclick="thisred=' + "'td_" + urlit(prevt) + "'" + '; morex=-350; setTimeout(sctop,1000); " href=#' + topp + '_' + urlit(prevt) + " title='" + prevt + "'> ← </a>" + thisa;
} else if (nextt != "" && prevt == "") {
reta=thisa + '<a id="e_' + urlit(nextt) + '" onclick="thisred=' + "'td_" + urlit(nextt) + "'" + '; morex=350; setTimeout(sctop,1000); " href=#' + topp + '_' + urlit(nextt) + " title='" + nextt + "'> → </a>" + '<a id="ne_' + urlit(nextt) + '" onclick="thisred=' + "'td_" + urlit(nextt) + "'" + '; pleaseclickit=true; morex=350; setTimeout(sctop,1000); " href=#' + topp + '_' + urlit(nextt) + " title='" + nextt + "'> ⇉ </a>";
}
return reta;
}
var sscr=false;
var xsscr=0;
var presscr=false;
function startscrolling() {
if (sscr) {
document.getElementById('slide' + 'showdiv').style.borderStyle='dotted';
xsscr++;
var tdplaces=document.body.innerHTML.split('<td id="td_');
if (xsscr >= tdplaces.length) xsscr=1;
var pretdplaces=tdplaces[xsscr].split('"');
if (1 == 1) {
location.href='#td_' + pretdplaces[0];
} else {
document.title=xsscr;
window.scrollTo(xsscr, 0);
document.title='+' + xsscr;
}
setTimeout(startscrolling, 1000);
} else {
document.getElementById('slide' + 'showdiv').style.borderStyle='solid';
}
}
var uptopdiv='', wasih='';
function firstuptop() {
var ifnum=1, arrc=['cow', 'ime'], butsuff='', arrbw=['', ' of Selected Images'], arrolp=['vif','ime'];
var utd='<div id=divime style=display:none;>';
for (var jime=0; jime<2; jime++) {
if (jime > 0) {
utd+="</b><br><iframe name=my" + arrc[jime] + "ifr id=my" + arrc[jime] + "ifr style=display:none; src=/About_Us.html></iframe><form target=my" + arrc[jime] + "ifr action=/cowsay.php method=POST id=my" + arrc[jime] + "pf><div id=div" + arrc[jime] + "pf></div><input type=submit id=vlist" + butsuff + " style=display:none;background-color:lightblue; name=vlist" + butsuff + " value='Video 📹 " + arrbw[jime] + "'></input> <input type=submit style=display:none;background-color:lightblue; id=aglist" + butsuff + " name=aglist" + butsuff + " value='Animated GIF 🖼 " + arrbw[jime] + "'></input></form><table cellpadding=20><tbody><tr></tr></tbody></table></div><p id='backtoblog'></p>";
}
butsuff='ime';
}
utd+='</div>';
document.body.innerHTML+=utd;
}
function uptop() {
var ifnum=1, arrc=['cow', 'ime'], butsuff='', arrbw=['', ' of Selected Images'], arrolp=['vif','ime'];
//alert('45:');
if (onlok) {
var calign='center', endnextp, preendnextp, nexttitle="", prevtitle="", prevbprefix="", bprefix="", preexambit, exambit, ivsbitsare, preendp, endp, endpsuffix="", doittoday=false;
//alert('145:');
uptopdiv="<div title='Visual Synopsis (Slideshows)' class=zglow id='slide" + "showdiv' style='border: 20px solid yellow;height: 680px; overflow: scroll;' onclick='if (!presscr) { sscr=false; } presscr=false;'> <b><font color=green><h3 id='vssh'>Visual Synopsis (Slideshows) ... <a href='#backtoblog' title='Back to Blog'>Back to Blog</a> ... <a href='#vssh' id='asscr' onclick='if (!sscr) { presscr=true; sscr=true; startscrolling(); } else { sscr=false; }; ' title='Scroll to Right'>Scroll to Right</a></h3></font>";
for (var jime=0; jime<2; jime++) {
if (!document.getElementById('my' + arrc[jime] + 'ifr')) {
uptopdiv+="</b><br><iframe name=my" + arrc[jime] + "ifr id=my" + arrc[jime] + "ifr style=display:none; src=/About_Us.html></iframe><form target=my" + arrc[jime] + "ifr action=/cowsay.php method=POST id=my" + arrc[jime] + "pf><div id=div" + arrc[jime] + "pf></div><input type=submit id=vlist" + butsuff + " style=display:none;background-color:lightblue; name=vlist" + butsuff + " value='Video 📹 " + arrbw[jime] + "'></input> <input type=submit style=display:none;background-color:lightblue; id=aglist" + butsuff + " name=aglist" + butsuff + " value='Animated GIF 🖼 " + arrbw[jime] + "'></input></form><table cellpadding=20><tbody><tr></tr></tbody></table></div><p id='backtoblog'></p>";
}
butsuff='ime';
}
var vsbitsare=docgetclass("wp-caption", "div");
//alert('145:' + vsbitsare.length);
wasih=document.body.innerHTML.replace(/parent\.document\.getElementById\(\'slideshowdi/g, "parent.document.getElementById('slid' + 'eshowdi");
//if (wasih.indexOf("slid" + "eshowdiv") != -1) {
// alert('145:' + wasih.split("slid" + "eshowdiv")[0].slice(-267));
//}
if (wasih.indexOf("slid" + "eshowdiv") == -1) {
//alert('146:' + vsbitsare.length);
for (ivsbitsare=0; ivsbitsare<vsbitsare.length; ivsbitsare++) {
if (vsbitsare[ivsbitsare].innerHTML.indexOf("youtube.com/watch") == -1 && vsbitsare[ivsbitsare].innerHTML.indexOf("mywta") == -1) {
//alert('245:' + vsbitsare.length);
if (uptopdiv.indexOf(encodeURIComponent(vsbitsare[ivsbitsare].innerHTML)) == -1) {
//alert('345:' + vsbitsare.length);
bprefix="";
nexttitle="";
exambit=document.body.innerHTML.split(vsbitsare[ivsbitsare].innerHTML);
if (exambit.length > 1) {
//alert('445:' + vsbitsare.length);
preexambit=exambit[0].split("<");
//alert("" + preexambit[eval(-1 + preexambit.length)].indexOf("div ") + "" + preexambit[eval(-2 + preexambit.length)].indexOf("/p") + "" + preexambit[eval(-3 + preexambit.length)] + "..." + preexambit[eval(-4 + preexambit.length)]);
if (uptopdiv.indexOf(encodeURIComponent(vsbitsare[eval(0 + ivsbitsare)].innerHTML)) == -1 && preexambit[eval(-1 + preexambit.length)].indexOf("div ") == 0 && preexambit[eval(-2 + preexambit.length)].indexOf("/p") == 0 && preexambit[eval(-3 + preexambit.length)].indexOf("/a") == 0 && preexambit[eval(-4 + preexambit.length)].indexOf("a ") == 0 && preexambit[eval(-5 + preexambit.length)].indexOf("p ") == 0 && preexambit[eval(-6 + preexambit.length)].indexOf("hr") == 0) {
bprefix=" ";
if (eval(1 + ivsbitsare) < eval(vsbitsare.length)) {
endnextp=vsbitsare[eval(1 + ivsbitsare)].innerHTML.split("</p>");
if (endnextp.length > 1) {
if (endnextp[eval(-1 + endnextp.length)] == "") {
preendnextp=endnextp[eval(-2 + endnextp.length)].split(">");
} else {
preendnextp=endnextp[eval(-1 + endnextp.length)].split(">");
}
nexttitle=preendnextp[eval(-1 + preendnextp.length)];
exambit=document.body.innerHTML.split(vsbitsare[eval(1 + ivsbitsare)].innerHTML);
if (exambit.length > 1) {
preexambit=exambit[0].split("<");
if (uptopdiv.indexOf(encodeURIComponent(vsbitsare[eval(1 + ivsbitsare)].innerHTML)) == -1 && preexambit[eval(-1 + preexambit.length)].indexOf("div ") == 0 && preexambit[eval(-2 + preexambit.length)].indexOf("/p") == 0 && preexambit[eval(-3 + preexambit.length)].indexOf("/a") == 0 && preexambit[eval(-4 + preexambit.length)].indexOf("a ") == 0 && preexambit[eval(-5 + preexambit.length)].indexOf("p ") == 0 && preexambit[eval(-6 + preexambit.length)].indexOf("hr") == 0) {
nexttitle=nexttitle; //preendnextp[eval(-1 + preendnextp.length)];
} else {
nexttitle="";
}
}
}
}
} else if (eval(1 + ivsbitsare) < eval(vsbitsare.length)) {
//alert('545:' + vsbitsare.length);
endnextp=vsbitsare[eval(eval(1 + ivsbitsare))].innerHTML.split("</p>");
if (endnextp.length > 1) {
if (endnextp[eval(-1 + endnextp.length)] == "") {
preendnextp=endnextp[eval(-2 + endnextp.length)].split(">");
} else {
preendnextp=endnextp[eval(-1 + endnextp.length)].split(">");
}
if (1 == 2) nexttitle=preendnextp[eval(-1 + preendnextp.length)];
}
exambit=document.body.innerHTML.split(vsbitsare[eval(1 + ivsbitsare)].innerHTML);
if (exambit.length > 1) {
//alert('645:' + vsbitsare.length);
preexambit=exambit[0].split("<");
if (uptopdiv.indexOf(encodeURIComponent(vsbitsare[eval(1 + ivsbitsare)].innerHTML)) == -1 && preexambit[eval(-1 + preexambit.length)].indexOf("div ") == 0 && preexambit[eval(-2 + preexambit.length)].indexOf("/p") == 0 && preexambit[eval(-3 + preexambit.length)].indexOf("/a") == 0 && preexambit[eval(-4 + preexambit.length)].indexOf("a ") == 0 && preexambit[eval(-5 + preexambit.length)].indexOf("p ") == 0 && preexambit[eval(-6 + preexambit.length)].indexOf("hr") == 0) {
bprefix=" ";
prevtitle="";
nexttitle=preendnextp[eval(-1 + preendnextp.length)];
} else {
nexttitle="";
}
}
}
}
if (bprefix == "") prevtitle="";
endpsuffix="";
endp=vsbitsare[ivsbitsare].innerHTML.split("</p>");
calign='center';
if (bprefix == " ") calign='left';
if (bprefix == " " && nexttitle == "") calign='right';
if (endp.length > 1) {
if (endp[eval(-1 + endp.length)] == "") {
preendp=endp[eval(-2 + endp.length)].split(">");
endpsuffix="<br><div align='" + calign + "'><font color=gray>" + breadcrumbit("<a id='top_" + urlit(preendp[eval(-1 + preendp.length)]) + "' target=_blank title='" + preendp[eval(-1 + preendp.length)] + "' href='//www.rjmprogramming.com.au/ITblog/" + urlit(preendp[eval(-1 + preendp.length)]) + "'>" + preendp[eval(-1 + preendp.length)] + "</a>", bprefix, prevtitle, nexttitle) + "</font></div>";
} else {
preendp=endp[eval(-1 + endp.length)].split(">");
endpsuffix="<br><div align='" + calign + "'><font color=gray>" + breadcrumbit("<a id='top_" + urlit(preendp[eval(-1 + preendp.length)]) + "' target=_blank title='" + preendp[eval(-1 + preendp.length)] + "' href='//www.rjmprogramming.com.au/ITblog/" + urlit(preendp[eval(-1 + preendp.length)]) + "'>" + preendp[eval(-1 + preendp.length)] + "</a>", bprefix, prevtitle, nexttitle) + "</font></div>";
}
}
prevbprefix=bprefix;
prevtitle=preendp[eval(-1 + preendp.length)];
if (uptopdiv.indexOf(encodeURIComponent(vsbitsare[eval(0 + ivsbitsare)].innerHTML)) == -1) { uptopdiv=uptopdiv.replace('</tr>', '<td id="td_' + urlit(preendp[eval(-1 + preendp.length)]) + '" style="border: 5px orange solid;">' + endpsuffix.replace('<br>','') + '<br><iframe id="vif' + ifnum + '" onload="vifchk(this);" style="width: 640px;height: 600px;" src="' + "//www.rjmprogramming.com.au/wordpress/clicktheslideshow.php?somebodyhtml=" + encodeURIComponent(vsbitsare[ivsbitsare].innerHTML) + '"></iframe>' + endpsuffix.replace(/top_/g, "bottom_").replace(/#bottom_/g, "#top_") + '</td></tr>'); ifnum++; }
doittoday=true;
}
}
}
//alert('845:' + vsbitsare.length);
if (doittoday) {
//alert('945:' + uptopdiv);
setTimeout(function(){
//alert('955:' + uptopdiv);
document.body.innerHTML = uptopdiv + wasih;
if (document.getElementById('sbyline')) {
document.getElementById('sbyline').innerHTML='';
}
setTimeout(function(){ window.scrollTo(0,0); }, 1000);
}, 1000);
}
}
}
}
function vifchk(iois) {
var myimgref=0;
if (('' + iois.id).indexOf('vif') == 0) {
myimgref='' + ('' + iois.id).substring(3);
if (iois != null) {
var gaaconto = (iois.contentWindow || iois.contentDocument);
if (gaaconto != null) {
if (gaaconto.document) { gaaconto = gaaconto.document; }
if (gaaconto.body != null) {
var imgsare=gaaconto.getElementsByTagName('img');
if (eval('' + imgsare.length) > 0) {
document.getElementById('divcowpf').innerHTML+='<input type=hidden name=vandagimg' + myimgref + ' value="' + ('' + imgsare[0].src) + '"></input>';
document.getElementById('aglist').style.display='inline-block';
document.getElementById('vlist').style.display='inline-block';
}
}
}
}
}
}
function eqworrydecodeURIComponent(instw) {
var eqis='=', ampis='';
var outstw=decodeURIComponent(instw);
if (outstw.trim() != '') {
if (outstw.indexOf(eqis) != -1) {
eqis='=';
ampis='&';
} else if (outstw.indexOf(encodeURIComponent(eqis)) != -1) {
if (1 == 1) {
ampis='&';
outstw=decodeURIComponent(outstw);
} else {
eqis=encodeURIComponent(eqis);
ampis=encodeURIComponent('&');
}
}
if (ampis != '') {
document.getElementById('listwimage').value=(outstw.split('listwimage=')[1] ? ('' + decodeURIComponent(outstw.split('listwimage=')[1].split('&')[0])) : "");
document.getElementById('listhimage').value=(outstw.split('listhimage=')[1] ? ('' + decodeURIComponent(outstw.split('listw\himage=')[1].split('&')[0])) : "");
document.getElementById('midpseudoclass').value=(outstw.split('midpseudoclass=')[1] ? ('' + decodeURIComponent(outstw.split('midpseudoclass=')[1].split('&')[0])) : "");
return (outstw.split('listimage=')[1] ? ('' + decodeURIComponent(outstw.split('listimage=')[1].split('&')[0])) : "");
}
}
return outstw;
}
function cookieAVal(cName) {
if (cName == 'forcedemoji') {
if (window.localStorage) {
if (decodeURIComponent(('' + localStorage.getItem('listimage')).replace(/^undefined/g,'').replace(/^null/g,'')) != '') {
return eqworrydecodeURIComponent(localStorage.getItem('listimage'));
}
if (decodeURIComponent(('' + sessionStorage.getItem('listimage')).replace(/^undefined/g,'').replace(/^null/g,'')) != '') {
return eqworrydecodeURIComponent(sessionStorage.getItem('listimage'));
}
}
if (cName == 'forcedemoji' && document.getElementById(cName)) {
return document.getElementById(cName).value;
}
return '';
}
var expireDate = new Date();
expireDate.setDate(expireDate.getDate()-1);
if (window.localStorage && cName == 'forced_emoji') {
if (decodeURIComponent(('' + localStorage.getItem('forced_emoji')).replace(/^undefined/g,'').replace(/^null/g,'')) != '') {
if (decodeURIComponent(('' + localStorage.getItem('forced_emoji')).replace(/^undefined/g,'').replace(/^null/g,'')).indexOf('`') != -1) {
document.cookie = cName + "=; expires=" + expireDate.toGMTString();
return decodeURIComponent(localStorage.getItem('forced_emoji'));
} else {
document.cookie = cName + "=; expires=" + expireDate.toGMTString();
return decodeURIComponent(localStorage.getItem('forced_emoji'));
}
}
}
if (document.cookie != '') {
var tCookie=document.cookie.split("; ");
for (var j=0; j<tCookie.length; j++) {
if (cName == tCookie[j].split("=")[0]) {
return decodeURIComponent(tCookie[j].split("=")[1]);
}
}
}
if (cName == 'forced_emoji' && document.getElementById(cName)) {
return document.getElementById(cName).value;
}
return '';
}
function deleteACookie(goodname) {
if (window.localStorage && goodname == 'forced_emoji') {
if (('' + localStorage.getItem('forced_emoji')).replace(/^undefined/g,'').replace(/^null/g,'') != '') {
localStorage.removeItem('forced_emoji');
}
}
var expireDate = new Date();
expireDate.setDate(expireDate.getDate()-1);
//if (("" + cookieAVal(goodname)).length != 0) {
document.cookie = goodname + "=; expires=" + expireDate.toGMTString();
//}
}
function newlsvsco(tvis, tvo) {
var origtvis=tvis;
if (tvis != '' && tvis.replace(/\-/g,'') == '') {
if (tvis.indexOf('--') != -1) {
if (decodeURIComponent(('' + window.localStorage.getItem('listimage')).replace(/^undefined/g,'').replace(/^null/g,'')) != '') {
window.localStorage.removeItem('listimage');
}
if (decodeURIComponent(('' + window.sessionStorage.getItem('listimage')).replace(/^undefined/g,'').replace(/^null/g,'')) != '') {
window.sessionStorage.removeItem('listimage');
}
if (decodeURIComponent(('' + window.localStorage.getItem('forced_emoji')).replace(/^undefined/g,'').replace(/^null/g,'')) != '') {
window.localStorage.removeItem('forced_emoji');
}
} else {
if (decodeURIComponent(('' + window.sessionStorage.getItem('listimage')).replace(/^undefined/g,'').replace(/^null/g,'')) != '') {
window.sessionStorage.removeItem('listimage');
}
}
document.getElementById('forced_emoji').value='';
document.getElementById('forcedemoji').value='';
return '';
}
if (tvo.id == 'forcedemoji') { // new window.localStorage way
if (tvis.indexOf('`') != -1 || (tvis.trim() == '' && tvis != '')) {
document.getElementById('forced_emoji').value=tvis;
tvo.value='';
document.getElementById('tdnew').style.display='none';
newlsvsco(tvis.replace(String.fromCharCode(32),String.fromCharCode(96)).replace(String.fromCharCode(44),String.fromCharCode(96)), document.getElementById('forced_emoji'));
return '';
}
if (tvis.indexOf('+') != -1) {
if (tvis.slice(-2) == '++') {
tvo.value=tvis.substring(0, eval(-2 + tvis.length)) + ' ';
tvis=tvis.substring(0, eval(-2 + tvis.length)) + ' ';
}
if (tvis.slice(-1) == '+') {
tvo.value=tvis.substring(0, eval(-1 + tvis.length)) + ' ';
tvis=tvis.substring(0, eval(-1 + tvis.length)) + ' ';
}
}
} else {
if (tvis.indexOf('`') != -1 && tvis.indexOf(',') != -1) {
document.getElementById('forcedemoji').value=tvis.replace(String.fromCharCode(96),String.fromCharCode(44)).replace(String.fromCharCode(96),String.fromCharCode(32), document.getElementById('forcedemoji'));
tvo.value='';
document.getElementById('tdoriginal').style.display='none';
newlsvsco(document.getElementById('forcedemoji').value, document.getElementById('forced_emoji'));
return '';
}
if (eval('' + tvis.length) > 0) {
while (tvis.indexOf(String.fromCharCode(92) + 'X') != -1) { tvis=tvis.replace(String.fromCharCode(92) + 'X',''); }
while (tvis.indexOf(String.fromCharCode(92) + 'x') != -1) { tvis=tvis.replace(String.fromCharCode(92) + 'x',''); }
while (tvis.indexOf(String.fromCharCode(92) + 'U') != -1) { tvis=tvis.replace(String.fromCharCode(92) + 'U',''); }
while (tvis.indexOf(String.fromCharCode(92) + 'u') != -1) { tvis=tvis.replace(String.fromCharCode(92) + 'u',''); }
while (tvis.indexOf(String.fromCharCode(92)) != -1) { tvis=tvis.replace(String.fromCharCode(92),''); }
tvis=tvis.replace(/\#/g,'').replace(/\&/g,'').replace(/\|/g,'`').replace(/\;/g,'`').replace(/\,/g,'`').replace('```','`').replace('``','`').replace('```','`').replace(/\`$/g,'').replace(/\`$/g,'');
if (window.localStorage) {
if (document.getElementById('forced_emoji')) {
document.getElementById('forced_emoji').name=document.getElementById('forced_emoji').id;
}
if (tvis.trim() != '') {
window.localStorage.setItem('forced_emoji', encodeURIComponent(tvis.trim()));
if (document.getElementById('forced_emoji') && (tvis != tvis.trim() || origtvis != tvis)) {
document.getElementById('forced_emoji').value=tvis.trim();
}
} else {
window.localStorage.setItem('forced_emoji', encodeURIComponent(tvis));
}
} else {
var xexpireDate = new Date();
xexpireDate.setMonth(xexpireDate.getMonth()+6);
if (tvis.trim() != '') {
document.cookie = 'forced_emoji=' + encodeURIComponent(tvis.trim()) + '; expires=' + xexpireDate.toGMTString();
if (document.getElementById('forced_emoji') && (tvis != tvis.trim() || origtvis != tvis)) {
document.getElementById('forced_emoji').value=tvis.trim();
}
} else {
document.cookie = 'forced_emoji=' + encodeURIComponent(tvis) + '; expires=' + xexpireDate.toGMTString();
}
}
}
if (1 == 2) { change_ff(this, this.value); }
}
}
function checkip(iois) {
return iois;
}
function lookAtCookies() {
//if (window.self !== window.top) {
//if (top.document.URL.indexOf('?pp') != -1) { return ''; }
//}
if (1 == 1 || document.URL.indexOf('?pp') == -1) {
console.log('prefe=');
if (window.localStorage) {
console.log('Prefe=');
if (('' + localStorage.getItem('forced_emoji')).replace(/^undefined/g,'').replace(/^null/g,'').trim() != '') {
console.log('PrefE=');
//var esubparts=decodeURIComponent(('=' + localStorage.getItem('forced_emoji')).split("=")[1]).split('`');
console.log('fe=' + decodeURIComponent(('' + localStorage.getItem('forced_emoji'))));
var esubparts=decodeURIComponent(('' + localStorage.getItem('forced_emoji'))).split('`');
if (eval('' + esubparts.length) >= 1) {
if (esubparts[-1 + esubparts.length].trim() != '' && eval('' + esubparts.length) > 1) {
console.log('Fe=' + decodeURIComponent(('' + localStorage.getItem('forced_emoji'))));
document.getElementById('bbottom').innerHTML+=(" <style> ul.children li.page_item:before { color:black; content: '" + String.fromCharCode(92) + esubparts[1] + " " + String.fromCharCode(92) + "0000a0' !important; } ul.noclass li" + (location.search.split('midpseudoclass=')[1] ? (':' + decodeURIComponent(location.search.split('midpseudoclass=')[1].split('&')[0])) : "") + ":before { list-style: none; float: left; margin-left: -15px; color: purple; font-size: 1.2em; font-weight: bold; content: '" + String.fromCharCode(92) + esubparts[0] + " " + String.fromCharCode(92) + "0000a0' !important; } </style> ");
console.log('postFe=' + document.getElementById('bbottom').innerHTML);
} else if (esubparts[-1 + esubparts.length].trim() != '') {
console.log('fE=' + decodeURIComponent(('' + localStorage.getItem('forced_emoji'))));
document.getElementById('bbottom').innerHTML+=(" <style> ul.children li.page_item:before { color:black; content: '" + String.fromCharCode(92) + esubparts[0] + " " + String.fromCharCode(92) + "0000a0' !important; } ul.noclass li" + (location.search.split('midpseudoclass=')[1] ? (':' + decodeURIComponent(location.search.split('midpseudoclass=')[1].split('&')[0])) : "") + ":before { list-style: none; float: left; margin-left: -15px; color: purple; font-size: 1.2em; font-weight: bold; content: '" + String.fromCharCode(92) + esubparts[0] + " " + String.fromCharCode(92) + "0000a0' !important; } </style> ");
}
}
if (document.URL.indexOf('?pp') == -1 || 1 == 1) { appendtoa("forced_emoji", "" + localStorage.getItem('forced_emoji')); }
}
}
if (document.cookie != '') {
var tCookie=(document.cookie + "; ").split("; ");
var tc='';
for (var j=0; j<tCookie.length; j++) {
if ("rjmwp_body-background" == tCookie[j].split("=")[0]) {
tc=tCookie[j].split("=")[1];
if (tc.indexOf('%20') != -1) tc=decodeURIComponent(tCookie[j].split("=")[1]);
document.getElementById('bbottom').innerHTML+=(" <style> body { background-color: " + tc + " !important; } </style> ");
appendtoa("rjmwp_body-background", "" + encodeURIComponent(tc));
}
if ("rjmwp_masthead-border" == tCookie[j].split("=")[0]) {
tc=tCookie[j].split("=")[1];
if (tc.indexOf('%20') != -1) tc=decodeURIComponent(tCookie[j].split("=")[1]);
document.getElementById('bbottom').innerHTML+=(" <style> #masthead { border: " + tc + " !important; } </style> ");
appendtoa("rjmwp_masthead-border", "" + encodeURIComponent(tc));
}
if ("rjmwp_base_font-family" == tCookie[j].split("=")[0]) {
tc=tCookie[j].split("=")[1];
if (tc.indexOf('%20') != -1) tc=decodeURIComponent(tCookie[j].split("=")[1]);
document.getElementById('bbottom').innerHTML+=(" <style> body, input, textarea, .page-title span, .pingback a.url { font-family: " + tc + " !important; } </style> ");
appendtoa("rjmwp_base_font-family", "" + encodeURIComponent(tc));
}
if ("rjmwp_posttitle_font-family" == tCookie[j].split("=")[0]) {
tc=tCookie[j].split("=")[1];
if (tc.indexOf('%20') != -1) tc=decodeURIComponent(tCookie[j].split("=")[1]);
document.getElementById('bbottom').innerHTML+=(" <style> h3#comments-title, h3#reply-title, #access .menu, #access div.menu ul, #cancel-comment-reply-link, .form-allowed-tags, #site-info, #site-title, #wp-calendar, .comment-meta, .comment-body tr th, .comment-body thead th, .entry-content label, .entry-content tr th, .entry-content thead th, .entry-meta, .entry-title, .entry-utility, #respond label, .navigation, .page-title, .pingback p, .reply, .widget-title, .wp-caption-text, input[type=\"submit\"] { font-family: " + tc + " !important; } </style> ");
appendtoa("rjmwp_posttitle_font-family", "" + encodeURIComponent(tc));
}
if ("rjmwp_blogtitle_font-family" == tCookie[j].split("=")[0]) {
tc=tCookie[j].split("=")[1];
if (tc.indexOf('%20') != -1) tc=decodeURIComponent(tCookie[j].split("=")[1]);
document.getElementById('bbottom').innerHTML+=(" <style> #ahomeis { font-family: " + tc + " !important; } </style> ");
appendtoa("rjmwp_blogtitle_font-family", "" + encodeURIComponent(tc));
}
if (1 == 2 && "forced_emoji" == tCookie[j].split("=")[0]) {
tc=tCookie[j].split("=")[1];
var esubparts=decodeURIComponent(tCookie[j].split("=")[1]).split('`');
if (eval('' + esubparts.length) >= 1) {
if (esubparts[-1 + esubparts.length].trim() != '' && eval('' + esubparts.length) > 1) {
document.getElementById('bbottom').innerHTML+=(" <style> ul.children li.page_item:before { color:black; content: '" + String.fromCharCode(92) + esubparts[1] + " " + String.fromCharCode(92) + "0000a0' !important; ul.noclass li" + (location.search.split('midpseudoclass=')[1] ? (':' + decodeURIComponent(location.search.split('midpseudoclass=')[1].split('&')[0])) : "") + ":before { list-style: none; float: left; margin-left: -15px; color: purple; font-size: 1.2em; font-weight: bold; content: '" + String.fromCharCode(92) + esubparts[0] + " " + String.fromCharCode(92) + "0000a0' !important; } </style> ");
} else if (esubparts[-1 + esubparts.length].trim() != '') {
document.getElementById('bbottom').innerHTML+=(" <style> ul.children li.page_item:before { color:black; content: '" + String.fromCharCode(92) + esubparts[0] + " " + String.fromCharCode(92) + "0000a0' !important; ul.noclass li" + (location.search.split('midpseudoclass=')[1] ? (':' + decodeURIComponent(location.search.split('midpseudoclass=')[1].split('&')[0])) : "") + ":before { list-style: none; float: left; margin-left: -15px; color: purple; font-size: 1.2em; font-weight: bold; content: '" + String.fromCharCode(92) + esubparts[0] + " " + String.fromCharCode(92) + "0000a0' !important; } </style> ");
}
}
if (document.URL.indexOf('?pp') == -1 || 1 == 1) { appendtoa("forced_emoji", "" + encodeURIComponent(tc)); }
}
}
}
}
return '';
}
function cookie_fonts() {
var oidea;
var base_font=location.search.split('rjmwp_base_font-family=')[1] ? decodeURIComponent(location.search.split('rjmwp_base_font-family=')[1].split('&')[0]) : ' ';
var blogtitle_font=location.search.split('rjmwp_blogtitle_font-family=')[1] ? decodeURIComponent(location.search.split('rjmwp_blogtitle_font-family=')[1].split('&')[0]) : ' ';
var posttitle_font=location.search.split('rjmwp_posttitle_font-family=')[1] ? decodeURIComponent(location.search.split('rjmwp_posttitle_font-family=')[1].split('&')[0]) : ' ';
var expireDate;
lookAtCookies();
var masthead_border=location.search.split('rjmwp_masthead-border=')[1] ? decodeURIComponent(location.search.split('rjmwp_masthead-border=')[1].split('&')[0]) : ' ';
var body_background=location.search.split('rjmwp_body-background=')[1] ? decodeURIComponent(location.search.split('rjmwp_body-background=')[1].split('&')[0]) : ' ';
if (body_background.replace(' ','') != '') {
expireDate = new Date();
expireDate.setMonth(expireDate.getMonth()+6);
document.cookie = "rjmwp_body-background=" + encodeURIComponent(body_background) + "; expires=" + expireDate.toGMTString();
appendtoa("rjmwp_body-background", "" + encodeURIComponent(body_background));
} else if (body_background == '' && document.URL.indexOf('-background=') != -1) {
deleteACookie('rjmwp_body-background');
}
oidea=document.getElementById('rjmwp_body-background');
if (oidea != null) {
oidea.value=cookieAVal('rjmwp_body-background');
}
var femojis=location.search.split('forced_emoji=')[1] ? decodeURIComponent(location.search.split('forced_emoji=')[1].split('&')[0]) : ' ';
if (femojis.replace(' ','') != '') {
expireDate = new Date();
expireDate.setMonth(expireDate.getMonth()+6);
document.cookie = "forced_emoji=" + encodeURIComponent(femojis) + "; expires=" + expireDate.toGMTString();
if (document.URL.indexOf('?pp') == -1 || 1 == 1) { appendtoa("forced_emoji", "" + encodeURIComponent(femojis)); }
} else if (femojis == '' && document.URL.indexOf('-background=') != -1) {
deleteACookie('forced_emoji');
}
oidea=document.getElementById('forced_emoji');
if (oidea != null) {
oidea.value=cookieAVal('forced_emoji');
}
if (masthead_border.replace(' ','') != '') {
expireDate = new Date();
expireDate.setMonth(expireDate.getMonth()+6);
document.cookie = "rjmwp_masthead-border=" + encodeURIComponent(masthead_border) + "; expires=" + expireDate.toGMTString();
appendtoa("rjmwp_masthead-border", "" + encodeURIComponent(masthead_border));
} else if (masthead_border == '' && document.URL.indexOf('-border=') != -1) {
deleteACookie('rjmwp_masthead-border');
}
oidea=document.getElementById('rjmwp_masthead-border');
if (oidea != null) {
oidea.value=cookieAVal('rjmwp_masthead-border');
}
if (base_font.replace(' ','') != '') {
expireDate = new Date();
expireDate.setMonth(expireDate.getMonth()+6);
document.cookie = "rjmwp_base_font-family=" + encodeURIComponent(base_font) + "; expires=" + expireDate.toGMTString();
appendtoa("rjmwp_base_font-family", "" + encodeURIComponent(base_font));
} else if (base_font == '' && document.URL.indexOf('-family=') != -1) {
deleteACookie('rjmwp_base_font-family');
}
oidea=document.getElementById('rjmwp_base_font-family');
if (oidea != null) {
oidea.value=cookieAVal('rjmwp_base_font-family');
}
if (blogtitle_font.replace(' ','') != '') {
expireDate = new Date();
expireDate.setMonth(expireDate.getMonth()+6);
//alert(918);
document.cookie = "rjmwp_blogtitle_font-family=" + encodeURIComponent(blogtitle_font) + "; expires=" + expireDate.toGMTString();
appendtoa("rjmwp_blogtitle_font-family", "" + encodeURIComponent(blogtitle_font));
} else if (blogtitle_font == '' && document.URL.indexOf('-family=') != -1) {
//alert(928);
deleteACookie('rjmwp_blogtitle_font-family');
}
oidea=document.getElementById('rjmwp_blogtitle_font-family');
if (oidea != null) {
oidea.value=cookieAVal('rjmwp_blogtitle_font-family');
}
if (posttitle_font.replace(' ','') != '') {
expireDate = new Date();
expireDate.setMonth(expireDate.getMonth()+6);
document.cookie = "rjmwp_posttitle_font-family=" + encodeURIComponent(posttitle_font) + "; expires=" + expireDate.toGMTString();
appendtoa("rjmwp_posttitle_font-family", "" + encodeURIComponent(posttitle_font));
} else if (posttitle_font == '' && document.URL.indexOf('-family=') != -1) {
deleteACookie('rjmwp_posttitle_font-family');
}
oidea=document.getElementById('rjmwp_posttitle_font-family');
if (oidea != null) {
oidea.value=cookieAVal('rjmwp_posttitle_font-family');
}
}
function user_encodeURIComponent(insr) {
var oursr=encodeURIComponent(insr);
var preeqs=[];
var oursrs=oursr.split(encodeURIComponent('&'));
for (var ioursr=1; ioursr<eval('' + oursrs.length); ioursr++) {
preeqs=oursrs[ioursr].split(encodeURIComponent('='));
if (eval('' + preeqs.length) > 1) {
if (decodeURIComponent(preeqs[0]) == preeqs[0]) {
oursr=oursr.replace(encodeURIComponent('&') + preeqs[0] + encodeURIComponent('='), '&' + preeqs[0] + '=');
}
}
}
return oursr;
}
function frnx() {
if (document.getElementById('forced_emoji')) {
if (window.localStorage) {
if (decodeURIComponent(('' + localStorage.getItem('forced_emoji')).replace(/^undefined/g,'').replace(/^null/g,'')) != '') {
if (decodeURIComponent(('' + localStorage.getItem('forced_emoji')).replace(/^undefined/g,'').replace(/^null/g,'')).indexOf('`') != -1) {
document.getElementById('forced_emoji').placeholder=String.fromCodePoint(parseInt(decodeURIComponent(localStorage.getItem('forced_emoji')).split('`')[0],16)) + ' ' + String.fromCodePoint(parseInt(decodeURIComponent(localStorage.getItem('forced_emoji')).split('`')[1],16));
} else {
document.getElementById('forced_emoji').placeholder=String.fromCodePoint(parseInt(decodeURIComponent(localStorage.getItem('forced_emoji')).split('`')[0],16));
}
}
}
}
var mfis=document.getElementById('fmyform');
if (mfis != null) mfis.action=rnxize(document.URL.replace(/-border=/g,'_border=').replace(/-family=/g,'_family='));
}
function rnxize(iuis) {
var inuis=iuis;
var rsuff='';
if (inuis.indexOf('rnx=') == -1) rsuff='rnx=' + Math.floor(Math.random() * 800000) + 5;
if (inuis.indexOf('#') != -1) {
if (inuis.indexOf('?') != -1) {
inuis=inuis.replace('#', '&' + rsuff + '#');
} else {
inuis=inuis.replace('#', '?' + rsuff + '#');
}
} else {
if (inuis.indexOf('?') != -1) {
inuis=inuis + '&' + rsuff;
} else {
inuis=inuis + '?' + rsuff;
}
}
//alert(inuis);
return inuis;
}
function appendtoa(thisiid, thisv) {
//if (window.self !== window.top) {
//if (top.document.URL.indexOf('?pp') != -1) { return ''; }
//}
if (1 == 1 || document.URL.indexOf('?pp') == -1) {
var asis=document.getElementsByTagName("a");
var rsuff='';
if (thisv.indexOf('%20') != -1) thisv=decodeURIComponent(thisv);
for (var i=0; i<asis.length; i++) {
if (asis[i].href.indexOf(thisiid) == -1) {
if (asis[i].href.indexOf("/wordpress/") != -1 || asis[i].href.indexOf("/ITblog/") != -1 && asis[i].href.indexOf("/sitemap") == -1) {
rsuff='';
if (asis[i].href.indexOf('rnx=') == -1) rsuff='&rnx=' + Math.floor(Math.random() * 800000) + 5;
if (asis[i].href.indexOf(thisiid + '=&') != -1) {
asis[i].href=asis[i].href.replace(thisiid + '=&', thisiid + '=' + encodeURIComponent(thisv) + rsuff + '&');
} else {
if (asis[i].href.indexOf('#') != -1) {
if (asis[i].href.indexOf('?') != -1) {
asis[i].href=asis[i].href.replace(thisiid + '=',thisiid.replace('-','_') + '=').replace('#', '&' + thisiid + '=' + encodeURIComponent(thisv) + rsuff + '#');
} else {
asis[i].href=asis[i].href.replace(thisiid + '=',thisiid.replace('-','_') + '=').replace('#', '?' + thisiid + '=' + encodeURIComponent(thisv) + rsuff + '#');
}
} else {
if (asis[i].href.indexOf('?') != -1) {
asis[i].href=asis[i].href.replace(thisiid + '=',thisiid.replace('-','_') + '=') + '&' + thisiid + '=' + encodeURIComponent(thisv) + rsuff;
} else {
asis[i].href=asis[i].href.replace(thisiid + '=',thisiid.replace('-','_') + '=') + '?' + thisiid + '=' + encodeURIComponent(thisv) + rsuff;
}
}
}
}
}
}
}
}
function change_ff(thisi, thisv) {
//thisi.title='#';
if (thisv != '' || 1 == 1) {
var rsuff='';
if (document.URL.indexOf('rnx=') == -1) rsuff='&rnx=' + Math.floor(Math.random() * 800000) + 5;
if (thisv.indexOf('%20') != -1) thisv=decodeURIComponent(thisv);
if (thisv != '' && thisi.id.indexOf("border") != -1) thisi.style.border = thisv;
if (thisv != '' && thisi.id.indexOf("background") != -1) thisi.style.backgroundColor = thisv;
if (thisv != '' && thisi.id.indexOf("family") != -1) thisi.style.fontFamily = thisv;
if (document.URL.indexOf(thisi.id + '=&') != -1) {
thisi.title=document.URL.replace(thisi.id + '=&', thisi.id + '=' + encodeURIComponent(thisv) + rsuff + '&');
} else {
if (document.URL.indexOf('#') != -1) {
if (document.URL.indexOf('?') != -1) {
thisi.title=document.URL.replace(thisi.id + '=',thisi.id.replace('-','_') + '=').replace('#', '&' + thisi.id + '=' + encodeURIComponent(thisv) + rsuff + '#');
} else {
thisi.title=document.URL.replace(thisi.id + '=',thisi.id.replace('-','_') + '=').replace('#', '?' + thisi.id + '=' + encodeURIComponent(thisv) + rsuff + '#');
}
} else {
if (document.URL.indexOf('?') != -1) {
thisi.title=document.URL.replace(thisi.id + '=',thisi.id.replace('-','_') + '=') + '&' + thisi.id + '=' + encodeURIComponent(thisv) + rsuff;
} else {
thisi.title=document.URL.replace(thisi.id + '=',thisi.id.replace('-','_') + '=') + '?' + thisi.id + '=' + encodeURIComponent(thisv) + rsuff;
}
}
}
if (thisv != '' && thisi.id.indexOf("border") != -1) document.getElementById(thisi.id.replace('-','_')).style.border = thisv;
if (thisv != '' && thisi.id.indexOf("background") != -1) document.getElementById(thisi.id.replace('-','_')).style.backgroundColor = thisv;
if (thisv != '' && thisi.id.indexOf("family") != -1) document.getElementById(thisi.id.replace('-','_')).style.fontFamily = thisv;
}
}
function printscreen(zeroissetup) { // Mac gets PrtScn button and Windows clicks its PrtScn button
var retstr='';
var isMac = navigator.platform.toUpperCase().indexOf('MAC')>=0; // thanks to //stackoverflow.com/questions/10527983/best-way-to-detect-mac-os-x-or-windows-computers-with-javascript-or-jquery
if (zeroissetup == 0) {
if (document.URL.indexOf('ourprint=') != -1 || document.URL.indexOf('printextra=') != -1) {
if (isMac) {
retstr=' <a style="background-color:transparent;" onclick=" printscreen(1); " title="Print Screen"><img src="//www.rjmprogramming.com.au/images/PrintScreen.jpg" style="width:45px;background-color:transparent;" title="Print Screen"></img></a>';
} else {
retstr=' <a style="background-color:transparent;" onclick=" printscreen(2); " title="Print Screen"><img src="//www.rjmprogramming.com.au/images/PrintScreen.jpg" style="width:45px;background-color:transparent;" title="Print Screen"></img></a>';
}
}
} else if (zeroissetup == 1) {
window.print();
} else if (zeroissetup == 2) {
window.print();
}
return retstr;
}
function mlater() {
if (onlok) {
if (1 == 1 || navigator.userAgent.match(/Android|BlackBerry|iPhone|iPod|Opera Mini|IEMobile/i)) {
if (dbihis == '') { dbihis=document.body.innerHTML; }
var xstih=document.getElementById('site-title').innerHTML;
if (xstih.indexOf("up" + "top") == -1) {
document.getElementById('site-title').innerHTML+='' + '<a id="avs" style="text-decoration:none;font-size:px;" href=# onmouseover="getVisualSynopsis(event);" onmouseout="yehbut();" ontouchstart="getVisualSynopsis(event);" ontouchend="yehbut();" onclick=" uptop(); " title="... you can wait for the long hover functionality about Visual Synopsis (Slideshows)">🎦</a> <button onclick="atclick();" id="share" type="button" title="Share your media or documents or link!" style="display:inline-block;">👥</button> <a style="cursor:pointer;text-decoration:none;font-size:px;" onclick="diffphpfix(this);" title="Code Difference Functional Links">📖</a> <a style="cursor:pointer;text-decoration:none;font-size: 22px;" onclick="popselid();" title="Filter Content via Div ID">➗</a> <a style="cursor:pointer;text-decoration:none;visibility:hidden;font-size:px;" title="Blog post contents reduced to summary" id="eds" onclick="pre_details_summary();">➖</a>' + printscreen(0);
if (document.URL.indexOf("visualsynopsis=") != -1) document.getElementById('avs').click();
}
}
}
}
function courseCookies() {
if (navigator.userAgent.match(/Android|BlackBerry|iPhone|iPod|Opera Mini|IEMobile/i)) {
mlater();
// cookie_fonts(); // User font checks
img_alt(); // Make sure all img have alt (=title)
} else {
img_alt(); // Make sure all img have alt (=title)
mlater();
}
ajaxcontexthelp_mode(); // Check on Context Help mode
download_mode(); // Check on Download mode
metasep(); // meta-sep class dropdown
checkpt(); // category and tag "oldest"
rptwo(); // Recent Post images
ul_li_noclass(); // Alternative to bullet ul/li lists
winit(); // Ajax functionality 26/11/2014 ... slow hover ... not for mobile
checkMarginLeftImages();
//setTimeout(checkAcourseBackground, 3000);
if ((ourpp != "" || ourpn != "") && ourpp != ourp && ourpn != ourp) {
quizmaybe('atopn','atopp');
}
if (1 == 1) {
setTimeout(mlater,2000);
} else {
var stih=document.getElementById('site-title').innerHTML;
if (stih.indexOf("up" + "top") == -1) {
document.getElementById('site-title').innerHTML+='<a id="avs" style="text-decoration:none;font-size: 22px;" href=# onmouseover="getVisualSynopsis(event);" onmouseout="yehbut();" ontouchstart="getVisualSynopsis(event);" ontouchend="yehbut();" onclick=" uptop(); " title="... you can wait for the long hover functionality about Visual Synopsis (Slideshows)">🎦</a> <a style="cursor:pointer;text-decoration:none;font-size: 22px;" onclick="diffphpfix(this);" title="Code Difference Functional Links">📖</a> <a style="cursor:pointer;text-decoration:none;font-size: 22px;" onclick="popselid();" title="Filter Content via Div ID">➗</a> <a style="font-size: 22px;cursor:pointer;text-decoration:none;visibility:hidden;" title="Blog post contents reduced to summary" id="eds" onclick="pre_details_summary();">➖</a>' + printscreen(0);
if (document.URL.indexOf("visualsynopsis=") != -1) document.getElementById('avs').click();
}
}
var ext = ".html"; // ".php"
var extp = ".html?"; // ".php"
var huhd = new Date();
if (isiPad) {
ext = ".php?date=" + huhd;
extp = ".php?date=" + huhd + "&";
if ((ourpp != "" || ourpn != "") && ourpp != ourp && ourpn != ourp) {
}
}
if (document.URL.indexOf("#content") != -1) {
setTimeout(topViaDelay, 2000);
} else {
var document_URL=document.URL;
if (document_URL.indexOf('-tutorial/?pp&pn') != -1 && document_URL.indexOf('/ITblog/') != -1) {
document_URL=document.URL.split('/ITblog/')[0] + '/ITblog/?pp&pn' + document.URL.split('?pp&pn')[1];
}
if ((ourpp != "" || ourpn != "") && ourpp != ourp && ourpn != ourp) {
if (navigator.userAgent.match(/Android|BlackBerry|iPhone|iPod|Opera Mini|IEMobile/i)) {
document.getElementById("content").innerHTML += "<iframe width=1 height=1 src='" + document_URL.replace("/ITblog/?", "/PHP/coursecookies" + extp).replace("/ITblog/", "/PHP/coursecookies" + extp) + "'></iframe>"; // + document.getElementById("content").innerHTML;
} else {
document.getElementById("content").innerHTML = "<iframe style='display:inline-block;' width=1 height=1 src='" + document_URL.replace("/ITblog/?", "/PHP/coursecookies" + extp).replace("/ITblog/", "/PHP/coursecookies" + extp) + "'></iframe>" + document.getElementById("content").innerHTML;
}
setTimeout(topViaDelay, 2000);
} else {
if (navigator.userAgent.match(/Android|BlackBerry|iPhone|iPod|Opera Mini|IEMobile/i)) {
document.getElementById("content").innerHTML += "<iframe width=1 height=1 src='" + document_URL.replace("/ITblog/?", "/PHP/coursecookies" + extp).replace("/ITblog/", "/PHP/coursecookies" + extp) + "'></iframe>"; // + document.getElementById("content").innerHTML;
} else {
document.getElementById("content").innerHTML = "<iframe style='display:inline-block;' width=1 height=1 src='" + document_URL.replace("/ITblog/?", "/PHP/coursecookies" + extp).replace("/ITblog/", "/PHP/coursecookies" + extp) + "'></iframe>" + document.getElementById("content").innerHTML;
}
}
}
setTimeout(dosweep, 2500);
}
function dosweep() {
if (document.getElementsByClassName) {
//alert(99);
var lipar=document.getElementsByClassName("page_item page-item-10014");
if (lipar != null) {
if (lipar.length >= 1) {
if (lipar[0].innerHTML.indexOf(">Last") != -1) {
//alert(98);
//alert("98a " + lipar[0].innerHTML);
if (lipar[0].innerHTML.indexOf("-30") == -1) {
//alert(lipar[0].innerHTML);
lipar[0].innerHTML=lipar[0].innerHTML.replace(">Course<", " style='margin-top:-30px;'>Course<");
}
}
}
}
}
}
var spslash='/', spplus='+', cnothing='', spc=' ', cminus='-', fmtname='w411tform', fmcname='w411cform', edelim='/', radis="", formihis="";
var precwopen='', cwopen='', scmdis='', tcdelay=0, ourtcdelay=0, ourtcprefix='', tcprefix='', tcsuffix=' ... prefixes: @!@ just dropdown, @+@ additional dropdown, @|@ just open dropdown, @*@ additional open dropdown, @[secsDelay]@';
var iurlcnt=0, jurlcnt=0, urllist = new Array(), whenlist = new Array(), nextis=-1, optcol='yellow';
function checkseltc() {
if (onlok) {
var wqe=document.getElementById('seltc').innerHTML.split('value=');
var zdelim=' ', zurllist;
jurlcnt=eval(-1 + wqe.length);
if (jurlcnt > 0) {
for (var iyt=2; iyt<wqe.length; iyt++) {
zdelim = wqe[iyt].substring(0,1);
zurllist = wqe[iyt].substring(1).split(zdelim);
urllist[eval(-2 + iyt)] = zurllist[0];
if (iyt == 2) {
whenlist[eval(-2 + iyt)] = tcdelay;
} else {
whenlist[eval(-2 + iyt)] = eval(tcdelay + eval(whenlist[eval(-3 + iyt)]));
}
if (nextis < 0) nextis = 0;
}
}
document.getElementById('seltc').size = eval(-1 + wqe.length);
iurlcnt++;
if (nextis >= 0) {
if (eval(nextis) < eval(whenlist.length)) {
if (eval(iurlcnt) == whenlist[nextis]) {
if (urllist[nextis] != "") tcwindowopen(urllist[nextis]);
nextis++;
if (eval(nextis) == eval(whenlist.length)) top.document.getElementById('seltc').style.display='block';
}
}
}
}
}
function reprompt(insg) {
tcprefix="";
if ((insg + " ").substring(0,1) == "@") {
var tcst=insg.substring(1).split("@");
if (tcst.length > 1) {
tcprefix = tcst[0];
insg=insg.replace("@" + tcprefix + "@", "");
if (tcprefix == "!") {
document.getElementById("wrapper").innerHTML = "<iframe id='tciframe' width=1 height=1 style='width:1; height:1;' src='//www.rjmprogramming.com.au/About_Us.html'></iframe>" + document.getElementById("wrapper").innerHTML;
} else if (tcprefix == "|") {
document.getElementById("wrapper").innerHTML = "<iframe id='tciframe' width=1 height=1 style='width:1; height:1;' src='//www.rjmprogramming.com.au/About_Us.html'></iframe>" + document.getElementById("wrapper").innerHTML;
} else if (tcprefix == "+") {
document.getElementById("wrapper").innerHTML = "<iframe id='tciframe' width=1 height=1 style='width:1; height:1;' src='//www.rjmprogramming.com.au/About_Us.html'></iframe>" + document.getElementById("wrapper").innerHTML;
} else if (tcprefix == "*") {
document.getElementById("wrapper").innerHTML = "<iframe id='tciframe' width=1 height=1 style='width:1; height:1;' src='//www.rjmprogramming.com.au/About_Us.html'></iframe>" + document.getElementById("wrapper").innerHTML;
} else if (tcprefix != "") {
var tcd=tcprefix.split(".");
tcdelay=eval(tcd[0]);
document.getElementById("wrapper").innerHTML = "<iframe id='tciframe' width=1 height=1 style='width:1; height:1;' src='//www.rjmprogramming.com.au/About_Us.html'></iframe>" + document.getElementById("wrapper").innerHTML;
tcprefix='';
optcol='lightgreen';
}
}
}
return insg;
}
function reurl(inu) {
var newinu;
if (inu.indexOf('&') != -1 && inu.indexOf('?') == -1) { inu=inu.replace('&','?'); }
if (tcprefix != "") {
if (tcprefix.substring(0,1) == '!' || tcprefix.substring(0,1) == '+' || tcprefix.substring(0,1) == '|' || tcprefix.substring(0,1) == '*') {
newinu=inu.replace('window.open(', '').replace('location.href=', '').replace(';', '').replace(';', '').split(', "_blank');
//alert('NeWinu=' + newinu);
document.getElementById('tciframe').src=eval(newinu[0]) + "&tcprefix=" + tcprefix;
if (tcprefix.substring(0,1) == '|' || tcprefix.substring(0,1) == '*') setInterval(checkseltc, 1000);
if (tcprefix.substring(0,1) == '!' || tcprefix.substring(0,1) == '|') {
return "";
}
}
inu = inu; //.replace("wopenall", "tcprefix=" + tcprefix + "&wopenall");
}
if (tcdelay != 0) {
inu = inu; //.replace("wopenall", "&tcdelay=" + tcdelay + "&wopenall");
newinu=inu.replace('window.open(', '').replace('location.href=', '').replace(';', '').replace(';', '').split(', "_blank');
//alert('Newinu=' + newinu);
document.getElementById('tciframe').src=eval(newinu[0]) + "&tcdelay=" + tcdelay;
setInterval(checkseltc, 1000);
return "";
}
//alert(inu);
return eval('offchild=' + inu); // + cntsuffix);
}
function sipreradiocc() {
if (document.getElementById('s')) {
//if (document.getElementById('s').value.trim().indexOf('GETME') != -1) { alert(document.getElementById('s').value); }
if (document.getElementById('s').value.indexOf('++') == -1) {
if ((document.getElementById('s').value + '~').replace('_GETME','-GETME').replace('GETME ','GETME+').indexOf('-GETME+~') != -1) {
//alert('yes');
if (document.URL.indexOf('?s=' + encodeURIComponent(document.getElementById('s').value.replace('GETME ','GETME+').replace(/\+$/g,'')) + '&') == -1) {
if (document.getElementById('s').value.replace('GETME ','GETME+').replace(/\+$/g,'').indexOf(' ') != -1 && document.getElementById('s').value.replace('GETME ','GETME+').replace(/\+$/g,'').indexOf('"') == -1) {
location.href=document.URL.split('?')[0].split('#')[0].split('/ITblog')[0].split('/wordpress')[0] + '/ITblog/?s="' + encodeURIComponent(document.getElementById('s').value.replace('GETME ','GETME+').replace(/\+$/g,'')) + '"&wopenall="' + encodeURIComponent(document.getElementById('s').value.replace('GETME ','GETME+').replace(/\+$/g,'')) + '"&ifnooldestdoone=y&paged=0';
} else {
location.href=document.URL.split('?')[0].split('#')[0].split('/ITblog')[0].split('/wordpress')[0] + '/ITblog/?s=' + encodeURIComponent(document.getElementById('s').value.replace('GETME ','GETME+').replace(/\+$/g,'')) + '&wopenall=' + encodeURIComponent(document.getElementById('s').value.replace('GETME ','GETME+').replace(/\+$/g,'')) + '&ifnooldestdoone=y&paged=0';
}
}
} else if ((document.getElementById('s').value + '~~').replace('_GETME','-GETME').indexOf('+~~') != -1) {
//alert(document.getElementById('s').value + '~~');
if (document.URL.indexOf('?s=' + encodeURIComponent(document.getElementById('s').value.replace(/\+$/g,'')) + '&') == -1) {
if (document.getElementById('s').value.replace('GETME ','GETME+').replace(/\+$/g,'').indexOf(' ') != -1 && document.getElementById('s').value.replace('GETME ','GETME+').replace(/\+$/g,'').indexOf('"') == -1) {
location.href=document.URL.split('?')[0].split('#')[0].split('/ITblog')[0].split('/wordpress')[0] + '/ITblog/?s="' + encodeURIComponent(document.getElementById('s').value.replace(/\+$/g,'')) + '"&max=256&step=256&ifnooldestdoone=y&paged=0#nav-below';
} else {
location.href=document.URL.split('?')[0].split('#')[0].split('/ITblog')[0].split('/wordpress')[0] + '/ITblog/?s=' + encodeURIComponent(document.getElementById('s').value.replace(/\+$/g,'')) + '&max=256&step=256&ifnooldestdoone=y&paged=0#nav-below';
}
}
} //else if (document.getElementById('s').value.trim().indexOf('GETME') != -1) {
//alert('why ' + (document.getElementById('s').value + '~').replace('_GETME','-GETME'));
//}
}
}
}
function preradiocc() {
if (document.getElementById('s')) {
//document.title='' + (document.getElementById('s').value + '~').replace('_GETME','-GETME').indexOf('-GETME ~') + ' ... ' + (document.getElementById('s').value + '~').replace('_GETME','-GETME');
if ((document.getElementById('s').value + '~').replace('_GETME','-GETME').indexOf('-GETME ~') != -1) {
location.href=document.URL.split('?')[0].split('#')[0].split('/ITblog')[0].split('/wordpress')[0] + '/ITblog/?s=' + encodeURIComponent(document.getElementById('s').value.trim()) + '&wopenall=' + encodeURIComponent(document.getElementById('s').value.trim()) + '&ifnooldestdoone=y&paged=0';
} else if (document.getElementById('s').value != "" && radis != "") {
radiocc(radis);
}
}
}
function radiocc(tvis) {
var cok=1;
if (document.getElementById('s')) {
cwopen="";
radis=tvis;
document.getElementById('tagselis').style.display='none';
document.getElementById('catselis').style.display='none';
document.getElementById('s').style.display='inline';
if (document.getElementById('s').value != "") {
cntsuffix='';
if (tvis == "Search") {
document.getElementById('searchsubmit').click();
} else if (tvis == "Tag") {
if (document.getElementById('s').value != document.getElementById('s').value.trim()) {
cntsuffix='#tentcon' + getsc;
document.getElementById('s').value=document.getElementById('s').value.trim();
}
cwopen=prompt("Please enter " + document.getElementById('s').value + " Tag findings Blog Posting Title search filter (blank causes no filtering" + tcsuffix + " and optional suffix &highlight=[highlightSearchString] highlights)", document.getElementById('s').value);
if (cwopen != null) {
if (cwopen.indexOf('highlight=') != -1) {
hgsuffix=decodeURIComponent(cwopen.split('highlight=')[1].split('&')[0].split('#')[0]).replace(/\'/g, '`');
if (hgsuffix == '') { hgsuffix=cwopen.split('&')[0]; cwopen=cwopen.replace('highlight=', 'highlight=' + hgsuffix); }
}
precwopen = document.getElementById("s").value;
cwopen=reprompt(cwopen);
//if (document.getElementById('searchform').action.indexOf("/wordpress") != -1) {
if (document.getElementById('searchform').action.indexOf("/ITblog") != -1) {
if (1 == 1) {
reurl('window.open(document.getElementById("searchform").action + "?tag=" + precwopen.toLowerCase().replace("+","").replace("/","-").replace(" ","-").replace("/","-").replace(" ","-").replace("/","-").replace(" ","-").replace("/","-").replace(" ","-").replace("/","-").replace(" ","-").replace(" ","-").replace(" ","-").replace(" ","-").replace(" ","-").replace(" ","-").replace(/---/g,"-").replace(/--/g,"-") + "&wopenall=" + cwopen + cntsuffix, "_blank");');
} else {
reurl('location.href=document.getElementById("searchform").action + "?tag=" + precwopen.toLowerCase().replace("+","").replace("/","-").replace(" ","-").replace("/","-").replace(" ","-").replace("/","-").replace(" ","-").replace("/","-").replace(" ","-").replace("/","-").replace(" ","-").replace(" ","-").replace(" ","-").replace(" ","-").replace(" ","-").replace(" ","-").replace(/---/g,"-").replace(/--/g,"-") + "&wopenall=" + cwopen + cntsuffix;');
}
} else {
if (1 == 1) {
reurl('window.open(document.getElementById("searchform").action + "tag/" + precwopen.toLowerCase().replace("+","").replace("/","-").replace(" ","-").replace("/","-").replace(" ","-").replace("/","-").replace(" ","-").replace("/","-").replace(" ","-").replace("/","-").replace(" ","-").replace(" ","-").replace(" ","-").replace(" ","-").replace(" ","-").replace(" ","-").replace(/---/g,"-").replace(/--/g,"-") + "/?wopenall=" + cwopen + cntsuffix, "_blank");');
} else {
reurl('location.href=document.getElementById("searchform").action + "tag/" + precwopen.toLowerCase().replace("+","").replace("/","-").replace(" ","-").replace("/","-").replace(" ","-").replace("/","-").replace(" ","-").replace("/","-").replace(" ","-").replace("/","-").replace(" ","-").replace(" ","-").replace(" ","-").replace(" ","-").replace(" ","-").replace(" ","-").replace(/---/g,"-").replace(/--/g,"-") + "/?wopenall=" + cwopen + cntsuffix;');
}
}
}
} else if (tvis == "Category") {
if (document.getElementById('s').value != document.getElementById('s').value.trim()) {
cntsuffix='#tentcon' + getsc;
document.getElementById('s').value=document.getElementById('s').value.trim();
}
//if (document.getElementById('searchform').action.indexOf("/wordpress") != -1) {
if (document.getElementById('searchform').action.indexOf("/ITblog") != -1) {
if (1 == 1 || (document.getElementById('s').value.substring(0,1) >= '0' && document.getElementById('s').value.substring(0,1) <= '9')) {
if (document.getElementById('s').value.substring(0,1) >= '0' && document.getElementById('s').value.substring(0,1) <= '9') {
incat='?cat=';
cwopen=prompt("Please enter " + document.getElementById('s').value + " Category (number) findings Blog Posting Title search filter (blank causes no filtering" + tcsuffix + " and optional suffix &highlight=[highlightSearchString] highlights)", "Tutorial");
} else {
cwopen=prompt("Please enter " + document.getElementById('s').value + " Category findings Blog Posting Title search filter (blank causes no filtering" + tcsuffix + " and optional suffix &highlight=[highlightSearchString] highlights)", "Tutorial");
}
if (cwopen != null) {
if (cwopen.indexOf('highlight=') != -1) {
hgsuffix=decodeURIComponent(cwopen.split('highlight=')[1].split('&')[0].split('#')[0]).replace(/\'/g, '`');
if (hgsuffix == '') { hgsuffix=cwopen.split('&')[0]; cwopen=cwopen.replace('highlight=', 'highlight=' + hgsuffix); }
}
precwopen = document.getElementById("s").value;
if (1 == 1) { cwopen=reprompt(cwopen); }
if (1 == 1) {
//reurl('window.open(document.getElementById("searchform").action + "?cat=" + precwopen.toLowerCase().replace("+","").replace("/","-").replace(" ","-").replace("/","-").replace(" ","-").replace("/","-").replace(" ","-").replace("/","-").replace(" ","-").replace("/","-").replace(" ","-").replace(" ","-").replace(" ","-").replace(" ","-").replace(" ","-").replace(" ","-").replace(/---/g,"-").replace(/--/g,"-") + "&wopenall=" + cwopen, "_blank");');
reurl('window.open(document.getElementById("searchform").action + incat + precwopen.toLowerCase().replace("+","").replace("/","-").replace(" ","-").replace("/","-").replace(" ","-").replace("/","-").replace(" ","-").replace("/","-").replace(" ","-").replace("/","-").replace(" ","-").replace(" ","-").replace(" ","-").replace(" ","-").replace(" ","-").replace(" ","-").replace(/---/g,"-").replace(/--/g,"-") + "&wopenall=" + cwopen + cntsuffix, "_blank");');
} else {
//reurl('location.href=document.getElementById("searchform").action + "?cat=" + precwopen.toLowerCase().replace("+","").replace("/","-").replace(" ","-").replace("/","-").replace(" ","-").replace("/","-").replace(" ","-").replace("/","-").replace(" ","-").replace("/","-").replace(" ","-").replace(" ","-").replace(" ","-").replace(" ","-").replace(" ","-").replace(" ","-").replace(/---/g,"-").replace(/--/g,"-") + "&wopenall=" + cwopen;');
reurl('location.href=document.getElementById("searchform").action + incat + precwopen.toLowerCase().replace("+","").replace("/","-").replace(" ","-").replace("/","-").replace(" ","-").replace("/","-").replace(" ","-").replace("/","-").replace(" ","-").replace("/","-").replace(" ","-").replace(" ","-").replace(" ","-").replace(" ","-").replace(" ","-").replace(" ","-").replace(/---/g,"-").replace(/--/g,"-") + "&wopenall=" + cwopen + cntsuffix;');
}
}
} else {
cok=0;
alert("Please enter the category as a number");
document.getElementById('s').value = '';
}
} else {
if (document.getElementById('s').value != document.getElementById('s').value.trim()) {
cntsuffix='#tentcon';
document.getElementById('s').value=document.getElementById('s').value.trim();
}
precwopen = document.getElementById("s").value;
cwopen=prompt("Please enter " + document.getElementById('s').value + " Category (alphabetic) findings Blog Posting Title search filter (blank causes no filtering" + tcsuffix + " and optional suffix &highlight=[highlightSearchString] highlights)", document.getElementById('s').value);
if (cwopen != null) {
if (cwopen.indexOf('highlight=') != -1) {
hgsuffix=decodeURIComponent(cwopen.split('highlight=')[1].split('&')[0].split('#')[0]).replace(/\'/g, '`');
if (hgsuffix == '') { hgsuffix=cwopen.split('&')[0]; cwopen=cwopen.replace('highlight=', 'highlight=' + hgsuffix); }
}
if (1 == 1) {
reurl('window.open(document.getElementById("searchform").action + "category/" + precwopen.toLowerCase().replace("+","").replace("/","-").replace(" ","-").replace("/","-").replace(" ","-").replace("/","-").replace(" ","-").replace("/","-").replace(" ","-").replace("/","-").replace(" ","-").replace(" ","-").replace(" ","-").replace(" ","-").replace(" ","-").replace(" ","-").replace(/---/g,"-").replace(/--/g,"-") + "/?wopenall=" + cwopen + cntsuffix, "_blank");');
} else {
reurl('location.href=document.getElementById("searchform").action + "category/" + precwopen.toLowerCase().replace("+","").replace("/","-").replace(" ","-").replace("/","-").replace(" ","-").replace("/","-").replace(" ","-").replace("/","-").replace(" ","-").replace("/","-").replace(" ","-").replace(" ","-").replace(" ","-").replace(" ","-").replace(" ","-").replace(" ","-").replace(/---/g,"-").replace(/--/g,"-") + "/?wopenall=" + cwopen + cntsuffix;');
}
}
}
}
if (cok == 1) {
document.getElementById('s').value = '';
radis="";
document.getElementById('searchform').innerHTML = formihis;
document.getElementById('s').onblur = preradiocc;
}
}
}
}
function preprecc(inidea) { // wopenallwas= form
}
function pretcwindowopen(inuis,whereto) {
if (whereto.toLowerCase() == whereto) {
console.log('32:' + inuis);
window.open(inuis, whereto);
} else {
inlooku=inuis;
inlookuwhere=whereto.toLowerCase();
setTimeout(iltcwindowopen, 4000);
}
}
function asksr() {
if (document.getElementById('s')) {
var av=prompt('Blog Posting Titles or Posting Date Criteria matching Regular Expression?', document.getElementById('s').value);
if (av != null) {
if (av != '') {
if (av.substring(0,1) == '.') {
location.href='//www.rjmprogramming.com.au/itnewblog/match/mapper.php?pm=' + encodeURIComponent(String.fromCharCode(92) + av); // + 'fRoM');
} else {
location.href='//www.rjmprogramming.com.au/itnewblog/match/mapper.php?pm=' + encodeURIComponent(av); // + 'fRoM');
}
}
}
}
}
function tcwindowopen(inuis) {
console.log('33:' + inuis);
window.open(inuis, '_blank');
}
function ovput(wois) {
document.getElementById('s').style.display='none';
if (wois.indexOf("ag") != -1) {
document.getElementById('tagselis').style.display='inline';
} else {
document.getElementById('catselis').style.display='inline';
}
}
function ovsel(iov, iovval) {
if (iovval.replace(' ') == '') {
iov.style.display='none';
document.getElementById('s').style.display='inline';
} else {
if (document.getElementById('s')) {
document.getElementById('s').value=iovval;
iov.style.display='none';
document.getElementById('s').style.display='inline';
if (iov.id.indexOf("ag") != -1) {
radiocc('Tag');
} else {
radiocc('Category');
}
}
}
}
var inlook="", inlooki=0, inlooku="", nlis="", tagtoggle=0, inlookuwhere="_blank";
var wasaction="";
var getalpha='';
var getsupalpha='<sup id=supalpha>+</sup>';
var getsuphl='<sup>^</sup>';
function athenl() {
if (nlis != "") {
location.href=nlis;
nlis="";
}
}
function lhref(inlis, inrlis) {
if (tagtoggle == 0) {
nlis=inrlis;
} else {
nlis=inlis;
}
return nlis;
}
function locationhref(inlis, inrlis) {
if (tagtoggle == 0) {
nlis=inrlis;
} else {
nlis=inlis;
}
setTimeout(athenl, 2000);
}
function andthenlater() {
var nextlis="#nav-below";
var gtnp="going to next page link in order to look for";
var fsis=document.getElementsByTagName('font');
var additionalbit=" tagtoggle=0; ";
var prevlis="#searchform";
for (var ijh=eval(fsis.length - 1); ijh>=0; ijh--) {
if (fsis[ijh].id) {
if (("*" + fsis[ijh].id).indexOf("*fca") != -1) {
fsis[ijh].style.zIndex=9;
eval("fsis[ijh].onmouseover = function(event) { locationhref('" + nextlis + "','" + prevlis + "'); " + additionalbit + " }");
eval("fsis[ijh].ontouchstart = function(event) { locationhref('" + nextlis + "','" + prevlis + "'); " + additionalbit + " }");
eval("fsis[ijh].onmouseout = function() { nlis=''; }");
eval("fsis[ijh].ontouchend = function() { nlis=''; }");
//eval("fsis[ijh].onmousemove = function(event) { nlis=''; }");
nextlis="#" + fsis[ijh].id;
fsis[ijh].title='Long very still hover over me to position for ' + gtnp + ' ' + inlook;
gtnp="another mention of";
additionalbit = "";
} else if (("*" + fsis[ijh].id).indexOf("*fc") != -1) {
fsis[ijh].style.zIndex=9;
eval("fsis[ijh].onclick = function(event) { nlis=''; lhref('" + nextlis + "','" + prevlis + "'); " + additionalbit + " }");
eval("fsis[ijh].onmouseover = function(event) { locationhref('" + nextlis + "','" + prevlis + "'); " + additionalbit + " }");
eval("fsis[ijh].ontouchstart = function(event) { locationhref('" + nextlis + "','" + prevlis + "'); " + additionalbit + " }");
eval("fsis[ijh].onmouseout = function() { nlis=''; }");
eval("fsis[ijh].ontouchend = function() { nlis=''; }");
//eval("fsis[ijh].onmousemove = function(event) { nlis=''; }");
nextlis="#" + fsis[ijh].id;
fsis[ijh].title='Click or long very still hover over me to position for ' + gtnp + ' ' + inlook;
gtnp="another mention of";
additionalbit = "";
}
prevlis="#" + fsis[ijh].id;
if (ijh == 1) additionalbit=" tagtoggle=1; ";
}
}
}
function sitidea() {
if (sit >= 0) {
if (sit == 0) sitdelim='';
sit++;
}
if (sit > 4) {
if (prevxcmd != "") {
eval(prevxcmd);
prevcmd="";
prevxcmd="";
document.getElementById('myp').innerHTML+="why0" + String.fromCharCode(10);
} else if (prevcmd != "") {
eval(prevcmd);
prevcmd="";
prevxcmd="";
//document.getElementById('myp').innerHTML+="why00" + String.fromCharCode(10);
}
if (sitlist.indexOf(',') != -1) {
//document.getElementById('myp').innerHTML+=callwhat.length + ' ' + sitlist + String.fromCharCode(10);
//cwl=eval(-1 + callwhat.length);
dowhat();
} else {
//cwl=eval(-1 + callwhat.length);
dowhat();
}
sitlist='';
setdelim='';
sit=-1;
cwl=sit;
} else if (sit < 0) {
if (prevxcmd != "") {
eval(prevxcmd);
prevcmd="";
prevxcmd="";
//document.getElementById('myp').innerHTML+="why000" + String.fromCharCode(10);
} else if (prevcmd != "") {
eval(prevcmd);
prevcmd="";
prevxcmd="";
//document.getElementById('myp').innerHTML+="why0000" + String.fromCharCode(10);
}
sitlist='';
setdelim='';
cwl=sit;
}
setTimeout(sitidea, 1000);
}
function ourchanged(via, p1, p2, p3, p4, p5, p6, p7, p8, p9) {
lastsit=p1;
if (sit >= 0) {
if (lastsit != '') {
if (sitlist != '') sitdelim=',';
if (sitlist.indexOf(lastsit) == -1) sitlist+=sitdelim + lastsit;
cwl=sitlist.split(',').length;
sitdelim=',';
lastsit='';
}
}
if (sitlist.indexOf(',') == -1 && sitlist != '' && ourtwo >= 2) {
prevcmd="parentwino('" + sitlist + "','" + p2 + "','')"; //alert(0);
}
if (ourtwo == 2) {
callwhat.push(via(p1,p2));
} else if (ourtwo == 1) {
callwhat.push(via(p1));
} else if (ourtwo == 3) {
callwhat.push(via(p1,p2,p3));
} else if (ourtwo == 4) {
callwhat.push(via(p1, p2, p3, p4));
} else if (ourtwo == 5) {
callwhat.push(via(p1, p2, p3, p4, p5));
} else if (ourtwo == 6) {
callwhat.push(via(p1, p2, p3, p4, p5, p6));
} else if (ourtwo == 7) {
callwhat.push(via(p1, p2, p3, p4, p5, p6, p7));
} else if (ourtwo == 8) {
callwhat.push(via(p1, p2, p3, p4, p5, p6, p7, p8));
} else if (ourtwo == 9) {
callwhat.push(via(p1, p2, p3, p4, p5, p6, p7, p8, p9));
}
if (callwhat.length > 1) {
ismulti=true;
//document.title='54 ';
} else {
ismulti=false;
//document.title+='540 ';
}
}
function rpcheck() {
if (rppspana == null) {
var h3sare=document.getElementsByTagName('h3');
for (var ih3sare=0; ih3sare<h3sare.length; ih3sare++) {
if (('' + h3sare[ih3sare].innerHTML).indexOf('cent Post') != -1) { rppspana=h3sare[ih3sare]; }
}
}
if (rppspana != null && document.getElementById('xdrpl')) {
if (rppspana.innerHTML.indexOf('cent Post') != -1 && document.getElementById('xdrpl').innerHTML != '') {
var dx=document.getElementById('xdrpl').innerHTML;
document.getElementById('xdrpl').innerHTML='';
rppspana.innerHTML=rppspana.innerHTML.replace('cent Post', 'cent ' + dx + ' Post');
} else {
setTimeout(rpcheck, 4000);
}
} else if (document.getElementById('xdrpl')) {
setTimeout(rpcheck, 4000);
} else if (rppspana != null) {
setTimeout(rpcheck, 4000);
}
}
function precheckclass() {
checkclass('');
}
function checkclass(proposedclass) {
var pclass=proposedclass, sels, isels, ijl, divo=null, divid='', fncnt=0, tbit='';
if (pclass == "") pclass="select_ms";
setTimeout(sitidea, 1000);
//var huhs=document.getElementsByTagName('div');
//for (ijl=0; ijl<huhs.length; ijl++) {
// if (huhs[ijl].innerHTML == '') {
// if (huhs[ijl].id != '') {
// divo=huhs[ijl];
// divid=huhs[ijl].id;
// }
// }
//}
//if (divid != '' || 1 == 1) {
sels=docgetclass(pclass, "select");
if (sels.length == 0 && document.getElementById(pclass)) {
sels.push(document.getElementById(pclass));
}
for (isels=0; isels<sels.length; isels++) {
if (typeof sels[isels].onchange === "undefined") {
if (1 == 3) alert("Sels[isels].onchange?");
} else if (sels[isels].onchange) {
if (('' + sels[isels].onchange).indexOf('(function(') == -1) {
fncnt++;
//document.getElementById(divid).innerHTML='<scr' + 'ipt type="text/javascript"> function ourchanged(x,y) { alert(96); } </scr' + 'ipt> ';
//alert(sels[isels].onchange);
var argbit='', argdelim='', rest='';
var precallis=('' + sels[isels].onchange).replace('function onchange(event)','').replace('{','').replace('}','').replace('(',',').replace(');','');
var postcallis='arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9'.split(',');
var callis=precallis.split(',');
ourtwo=0;
for (var ic=1; ic<callis.length; ic++) {
ourtwo++;
argbit+=argdelim + postcallis[ic];
if (ic > 2) rest+=argdelim + "String.fromCharCode(32)";
argdelim=',';
tbit+=argdelim + callis[ic];
}
//alert("setTimeout(" + ('' + sels[isels].onchange).replace(" onchange(event)", "()") + ", 4000);");
//if (fncnt == 1) sels[isels].addEventListener("change", fn3(changed,event), false); //eval("setTimeout(" + ('' + sels[isels].onchange).replace(' onchange(event)', '()') + ", 4000);");
//alert(' if (sit < 4) { sit=0; setTimeout(function(' + argbit + ') { ourchanged(' + callis[0] + ',' + argbit + '); }, 4000, this.value,this.innerHTML' + rest + '); } else { sit=-1; } ');
ourselo=sels[isels];
//alert(tbit);
eval("sels[" + isels + "].onchange=null");
if (window.addEventListener) {
eval("sels[" + isels + "].addEventListener('change', function() { if (sit < 4) { sit=0; setTimeout(function(" + argbit + ") { ourchanged(" + callis[0] + "," + argbit + "); }, 4000" + tbit + rest + "); } else { sit=-1; } })");
//alert("sels[" + isels + "].addEventListener('change', function() { if (sit < 0) { sit=0;} if (sit < 4) { setTimeout(function(" + argbit + ") { ourchanged(" + callis[0] + "," + argbit + "); }, 4000" + tbit + rest + "); } else { sit=-1; } })");
} else {
eval("sels[" + isels + "].attachEvent('change', function() { if (sit < 4) { sit=0; setTimeout(function(" + argbit + ") { ourchanged(" + callis[0] + "," + argbit + "); }, 4000" + tbit + rest + "); } else { sit=-1; } })");
}
//alert(sels[isels].onchange);
// //sels[isels].innerHTML=sels[isels].innerHTML.replace(/<option /g, '<option ontouchdown=" if (sit < 4) { sit=0; setTimeout(function(' + argbit + ') { ourchanged(' + callis[0] + ',' + argbit + '); }, 4000, this.value,this.innerHTML' + rest + '); } else { sit=-1; } " onmousedown=" if (sit < 4) { sit=0; setTimeout(function(' + argbit + ') { ourchanged(' + callis[0] + ',' + argbit + '); }, 4000, this.value,this.innerHTML' + rest + '); } else { sit=-1; alert(831); } " ');
//alert(sels[isels].innerHTML);
}
}
}
}
//function clicked(inval) {
//alert(inval);
//}
function changed(inval,intxt) {
if (1 == 1 || navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i)) {
//document.title='here ' + callwhat.length;
if (callwhat.length == 0) {
parentwino(inval,intxt.toLowerCase(),'');
}
}
if (callwhat.length > 1) {
//document.getElementById('myp').innerHTML+=inval + ' +.. ' + intxt + ' ..: ' + cwl + ' :.. ' + sitlist + ' ... ' + ismulti + ' ... ' + callwhat.length + String.fromCharCode(10);
if (prevxcmd != "") {
//document.getElementById('myp').innerHTML+=prevxcmd + String.fromCharCode(10);
if (1 == 7 && navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i)) {
document.title='everywhere';
}
eval(prevxcmd);
} else if (prevcmd != "") {
//document.getElementById('myp').innerHTML+=prevcmd.replace("''","'top=50,left=50,width=600,height=600'") + String.fromCharCode(10);
if (1 == 7 && navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i)) {
document.title='everyhere';
}
eval(prevcmd.replace("''","'top=50,left=50,width=600,height=600'"));
}
prevxcmd="parentwino('" + inval + "','" + intxt.toLowerCase() + "','top=50,left=50,width=600,height=600')";
prevcmd="";
//document.getElementById('myp').innerHTML+='... ' + prevxcmd + String.fromCharCode(10);
} else if (callwhat.length == 1) {
if (sitlist.indexOf(',') != -1) {
prevcmd="";
prevxcmd="";
var invala=sitlist.split(',');
for (var ip=0; ip<invala.length; ip++) {
//document.getElementById('myp').innerHTML+=invala[ip] + ' +.. ' + intxt + ' ..: ' + cwl + ' :.. ' + sitlist + ' ... ' + ismulti + ' ... ' + callwhat.length + String.fromCharCode(10);
if (prevxcmd != "") {
//document.getElementById('myp').innerHTML+=prevxcmd + String.fromCharCode(10);
if (1 == 7 && navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i)) {
document.title='evryhere';
}
eval(prevxcmd);
} else if (prevcmd != "") {
//document.getElementById('myp').innerHTML+=prevcmd.replace("''","'top=50,left=50,width=600,height=600'") + String.fromCharCode(10);
if (1 == 7 && navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i)) {
document.title='evehere';
}
eval(prevcmd.replace("''","'top=50,left=50,width=600,height=600'"));
}
prevxcmd="parentwino('" + invala[ip] + "','" + intxt.toLowerCase() + "','top=50,left=50,width=600,height=600')";
prevcmd="";
//document.getElementById('myp').innerHTML+='... ' + prevxcmd + String.fromCharCode(10);
}
} else if (1 == 1) {
if (1 == 7 && navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i)) {
document.title='there';
}
parentwino(inval,intxt.toLowerCase(),'');
} else {
//document.getElementById('myp').innerHTML+=inval + ' -.. ' + intxt + ' ..: ' + cwl + ' :.. ' + sitlist + ' ... ' + ismulti + ' ... ' + callwhat.length + String.fromCharCode(10);
if (prevcmd != "") {
//document.getElementById('myp').innerHTML+=prevxcmd + String.fromCharCode(10);
if (1 == 7 && navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i)) {
document.title='everythere';
}
eval(prevcmd);
} else if (prevxcmd != "") {
//document.getElementById('myp').innerHTML+=prevxcmd.replace("'top=50,left=50,width=600,height=600'", "''") + String.fromCharCode(10);
if (1 == 7 && navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i)) {
document.title='everytxhere';
}
eval(prevxcmd.replace("'top=50,left=50,width=600,height=600'", "''"));
}
prevcmd="parentwino('" + inval + "','" + intxt.toLowerCase() + "','')";
prevxcmd="";
//document.getElementById('myp').innerHTML+='... ' + prevcmd + String.fromCharCode(10);
}
}
}
function dowhat() {
if (cwl >= 0) {
//document.title='dowhat ' + callwhat[cwl];
callwhat[cwl];
//callwhat.pop();
if (cwl >= 1) {
cwl--;
setTimeout(dowhat,1000);
} else {
cwl=-1;
callwhat=[];
}
} else {
cwl=-1;
callwhat=[];
}
}
function antiaway() {
if (document.getElementById('hfloater') && document.getElementById('aaway')) {
document.getElementById('hfloater').innerHTML=document.getElementById('hfloater').innerHTML.replace(' ' + document.getElementById('aaway').outerHTML, '');
}
}
function parentwino(a, b, c) {
var woisp=null, eqas=null;
if (c == "") {
try {
if (woisp == null && document.getElementById('hfloater')) { // && !navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i)) {
document.getElementById('hfloater').innerHTML+=' <a id="aaway" target="_blank" href="' + a + '" style="display:none;">WOpen</a>';
document.getElementById('aaway').click();
setTimeout(antiaway, 4300);
} else {
woisp=window.open(a,b);
}
} catch(eqas) {
woisp=null;
}
return woisp; //window.open(a,b);
} else {
try {
if (woisp == null && document.getElementById('hfloater')) { // && !navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i)) {
document.getElementById('hfloater').innerHTML+=' <a id="aaway" target="_blank" href="' + a + '" style="display:none;">WOpen</a>';
document.getElementById('aaway').click();
setTimeout(antiaway, 4300);
} else {
woisp=window.open(a,b,c);
}
} catch(eqas) {
woisp=null;
}
}
return woisp; //window.open(a,b,c);
}
function oldparentwino(a, b, c) {
var woisp=null, eqas=null;
if (1 == 8 && navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i)) {
document.title='5';
}
if (c == "") {
if (1 == 8 && navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i)) {
document.title='55';
}
try {
if (woisp == null && document.getElementById('hfloater') && !navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i)) {
if (1 == 8 && navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i)) {
document.title='25';
}
if (1 == 8 && navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i)) {
//alert(document.getElementById('hfloater').outerHTML);
document.getElementById('hfloater').innerHTML+=' <iframe style="z-index:296;width:100%;height:900px;" id="aaway" src="' + a + '"></iframe>';
setTimeout(antiaway, 19000);
} else {
document.getElementById('hfloater').innerHTML+=' <a id="aaway" target="_blank" href="' + a + '" style="display:none;">WOpen</a>';
document.getElementById('aaway').click();
setTimeout(antiaway, 2300);
}
} else if (navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i)) {
//document.title='preOuch';
document.getElementById('hfloater').innerHTML+=' <a id="aaway" target="_blank" href="' + a + '" style="display:none;">WOpen</a>';
document.getElementById('aaway').click();
setTimeout(antiaway, 2300);
//document.getElementById('hfloater').innerHTML+=' <iframe style="z-index:296;width:100%;height:900px;" id="aaway" src="' + a + '"></iframe>';
//setTimeout(antiaway, 19000);
//document.title='Ouch';
} else {
woisp=window.open(a,b);
}
} catch(eqas) {
woisp=null;
}
return woisp; //window.open(a,b);
} else {
if (1 == 8 && navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i)) {
document.title='555';
}
try {
if (woisp == null && document.getElementById('hfloater') && !navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i)) {
if (1 == 8 && navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i)) {
document.title='15';
}
previhl=eval(1 + eval('' + document.getElementById('hfloater').innerHTML.length));
if (1 == 8 && navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i)) {
//alert('2:' + document.getElementById('hfloater').outerHTML);
document.getElementById('hfloater').innerHTML+=' <iframe style="z-index:296;width:100%;height:900px;" id="aaway" src="' + a + '"></iframe>';
setTimeout(antiaway, 19000);
} else {
document.getElementById('hfloater').innerHTML+=' <a id="aaway" target="_blank" href="' + a + '" style="display:none;">WOpen</a>';
document.getElementById('aaway').click();
setTimeout(antiaway, 2300);
}
} else if (navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i)) {
//document.title='preouch';
document.getElementById('hfloater').innerHTML+=' <a id="aaway" target="_blank" href="' + a + '" style="display:none;">WOpen</a>';
document.getElementById('aaway').click();
setTimeout(antiaway, 2300);
//document.getElementById('hfloater').innerHTML+=' <iframe style="z-index:296;width:100%;height:900px;" id="aaway" src="' + a + '"></iframe>';
//setTimeout(antiaway, 19000);
//document.title='ouch';
} else {
woisp=window.open(a,b,c);
}
} catch(eqas) {
woisp=null;
}
}
return woisp; //window.open(a,b,c);
}
function iltcwindowopen() {
//alert(45);
console.log('45:' + inlooku);
window.open(inlooku, inlookuwhere, 'top=50,left=50,width=50,height=50');
inlookuwhere='_blank';
}
function testih(insis, infis, defis) {
var retis=defis;
for (var ijh=infis; ijh>=0; ijh--) {
if (insis.substring(ijh, eval(1 + ijh)) == '>') {
inlooki++;
//if (insis.indexOf("Smaller panned out image") != -1 || document.URL.indexOf("paintbrush-panning-primer-tutorial") != -1) alert("1:" + insis);
return defis;
}
if (insis.substring(ijh, eval(1 + ijh)) == '<') return '';
}
inlooki++;
//if (insis.indexOf("Smaller panned out image") != -1 || document.URL.indexOf("paintbrush-panning-primer-tutorial") != -1) alert(insis.substring(0,1) + insis.substring(1,2) + "2:" + insis);
return defis;
}
function alphabeticaltest() {
////www.rjmprogramming.com.au/wordpress/gotoend.php?s=onion+of+the+4th&stype=Search&max=256&step=256
if (document.getElementById('searchform').action.indexOf("byorder=") == -1) {
var aso=document.getElementById('supalpha');
var andr="";
if (aso.innerHTML.indexOf('+') == -1) andr="&reverse=y";
if (document.getElementById('searchform').action.indexOf("?") != -1) {
document.getElementById('searchform').action = document.getElementById('searchform').action.replace("/wordpress/", "/wordpress/gotoend.php").replace("/ITblog/", "/wordpress/gotoend.php") + "&max=256&step=1" + andr + "&byorder="; // + encodeURIComponent("ORDER BY post_title ASC ");
} else {
document.getElementById('searchform').action = document.getElementById('searchform').action.replace("/ITblog/", "/wordpress/") + "gotoend.php?max=256&step=1" + andr + "&byorder="; // + encodeURIComponent("ORDER BY post_title ASC ");
}
aso.innerHTML=getsupalphabet(true);
}
highlighttest();
}
function getsupalphabet(togglesup) {
var asois=document.getElementById('supalpha').innerHTML;
if (togglesup) {
if (asois.indexOf('+') != -1) {
asois='-';
} else {
asois='+';
}
}
return asois;
}
function highlighttest() {
if (document.getElementById('s')) {
var sis=document.getElementById('s').value;
if (sis != '') {
var sisa=document.getElementById('searchform').action;
if (sisa.indexOf("?") != -1) {
inlooku=sisa + "&s=" + encodeURIComponent(sis);
} else {
inlooku=sisa + "?s=" + encodeURIComponent(sis) + "&highlight=";
}
document.getElementById('searchform').action = wasaction;
setTimeout(iltcwindowopen, 2000);
//window.open(sisa + "?s=" + encodeURIComponent(sis) + "&highlight=", "_blank");
}
}
}
function highlightsearch() {
var imb, ifound, spare, spare2, startfrom, atwo, atwodelim, athree, sprefix="<font color=orange>", ssuffix;
if (inlook != "") {
var pspana=document.getElementsByTagName("a");
for (imb=0; imb<pspana.length; imb++) {
if (pspana[imb].innerHTML.indexOf(inlook) != -1) {
spare=pspana[imb].innerHTML;
spare2=spare;
startfrom=0;
ifound=spare.substring(startfrom).indexOf(inlook);
while (ifound != -1) {
//alert("pre " + spare);
ssuffix=testih(spare2, ifound, "</font>");
spare=spare2.substring(0,ifound) + ssuffix.replace("</font>", sprefix.replace("font col", "font id='fca" + inlooki + "' col")) + "youllneverfind_this" + ssuffix + spare2.substring(ifound + inlook.length);
//alert(spare);
ifound=spare.substring(startfrom).indexOf(inlook);
spare2=spare;
}
pspana[imb].innerHTML=spare.replace(/youllneverfind_this/g, inlook);
}
}
pspana=document.getElementsByTagName("span");
for (imb=0; imb<pspana.length; imb++) {
if (pspana[imb].innerHTML.indexOf(inlook) != -1) {
spare=pspana[imb].innerHTML;
spare2=spare;
startfrom=0;
ifound=spare.substring(startfrom).indexOf(inlook);
while (ifound != -1) {
//alert("pre " + spare);
ssuffix=testih(spare2, ifound, "</font>");
spare=spare2.substring(0,ifound) + ssuffix.replace("</font>", sprefix.replace("font col", "font id='fcspan" + inlooki + "' col")) + "youllneverfind_this" + ssuffix + spare2.substring(ifound + inlook.length);
//alert(spare);
ifound=spare.substring(startfrom).indexOf(inlook);
spare2=spare;
}
pspana[imb].innerHTML=spare.replace(/youllneverfind_this/g, inlook);
}
}
pspana=document.getElementsByTagName("h1");
for (imb=0; imb<pspana.length; imb++) {
if (pspana[imb].innerHTML.indexOf(inlook) != -1) {
spare=pspana[imb].innerHTML;
spare2=spare;
startfrom=0;
ifound=spare.substring(startfrom).indexOf(inlook);
while (ifound != -1) {
//alert("pre " + spare);
ssuffix=testih(spare2, ifound, "</font>");
spare=spare2.substring(0,ifound) + ssuffix.replace("</font>", sprefix.replace("font col", "font id='fchone" + inlooki + "' col")) + "youllneverfind_this" + ssuffix + spare2.substring(ifound + inlook.length);
//alert(spare);
ifound=spare.substring(startfrom).indexOf(inlook);
spare2=spare;
}
pspana[imb].innerHTML=spare.replace(/youllneverfind_this/g, inlook);
}
}
pspana=document.getElementsByTagName("p");
for (imb=0; imb<pspana.length; imb++) {
if (pspana[imb].innerHTML.indexOf(inlook) != -1) {
spare=pspana[imb].innerHTML;
spare2=spare;
startfrom=0;
ifound=spare.substring(startfrom).indexOf(inlook);
while (ifound != -1) {
//alert("pre " + spare);
ssuffix=testih(spare2, ifound, "</font>");
spare=spare2.substring(0,ifound) + ssuffix.replace("</font>", sprefix.replace("font col", "font id='fcp" + inlooki + "' col")) + "youllneverfind_this" + ssuffix + spare2.substring(ifound + inlook.length);
//alert(spare);
ifound=spare.substring(startfrom).indexOf(inlook);
spare2=spare;
}
pspana[imb].innerHTML=spare.replace(/youllneverfind_this/g, inlook);
}
}
pspana=docgetclass("entry-title", "h2");
for (imb=0; imb<pspana.length; imb++) {
spare=pspana[imb].innerHTML;
atwo=spare.split("href=");
if (atwo.length > 1) {
atwodelim=atwo[1].substring(0,1);
athree=atwo[1].substring(1).split(atwodelim);
if (athree[0].indexOf("?") == -1 && athree[0].indexOf("highlight=") == -1) {
spare2=athree[0] + "?highlight=" + encodeURIComponent(inlook);
//alert("here1 " + spare + " ... now ... " + spare.replace(athree[0], spare2) + " ... via " + spare2);
pspana[imb].innerHTML=spare.replace(athree[0], spare2);
} else if (athree[0].indexOf("highlight=") == -1) {
spare2=athree[0] + '&' + "highlight=" + encodeURIComponent(inlook);
//alert("here2 " + spare + " ... now ... " + spare.replace(athree[0], spare2) + " ... via " + spare2);
pspana[imb].innerHTML=spare.replace(athree[0], spare2);
}
}
}
andthenlater();
}
}
function preresize_font(aois) {
if (navigator.userAgent.match(/Android|BlackBerry|iPhone|iPod|Opera Mini|IEMobile/i)) {
ourfs=ourfs;
} else {
setTimeout(rpcheck, 3000);
}
zzzspare=aois.id.replace('t','d');
resize_font();
}
function resize_font() {
ourfs=eval((ourfs + 5) % 45);
if (document.getElementById(zzzspare).innerHTML.indexOf('<select ') != -1) {
ourfs=21;
} else {
setTimeout(resize_font, 500);
}
document.getElementById(zzzspare).style.fontSize='' + ourfs + 'px';
}
function storyizecollect() {
var divsall=document.getElementsByTagName('div');
for (var ivd=0; ivd<divsall.length; ivd++) {
if (divsall[ivd].outerHTML.split('>')[0].indexOf(' post type-post ') != -1) {
threaddivs.push('' + divsall[ivd].id);
threaddivstwo.push('' + divsall[ivd].id);
}
}
}
function storyresize(atoo) {
atoo.style.width='' + atoo.getAttribute('data-w') + 'px';
//atoo.style.height='' + atoo.getAttribute('data-h') + 'px';
atoo.style.backgroundColor='rgba(255,155,55,0.3)';
atoo.style.overflow='hidden';
return atoo;
}
function storyreorder(atofind) {
var ivd=0, hrparts=[], hroh='', reorderedcontent='', hrih='', hrdone=false, hrplus='', hrcnt=0, midbit='';
var atobr=atofind.getBoundingClientRect();
if (document.getElementById('upto')) {
document.getElementById('upto').innerHTML='';
thisthre='';
thisthrei=-1;
lastthre=null;
thisthrerecttop=-1;
}
thisthre='' + atofind.id;
thisthrerecttop=eval(20 + eval('' + atofind.getBoundingClientRect().top));
//if (navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i)) {
// alert('' + thisthrerecttop);
//}
if (('' + atofind.getAttribute('data-w')) == '0') {
atofind.setAttribute('data-w',('' + atobr.width));
atofind.setAttribute('data-h',('' + atobr.height));
}
atofind.setAttribute('data-st',('' + document.body.scrollTop));
for (ivd=0; ivd<threaddivs.length; ivd++) {
if (document.getElementById(threaddivs[ivd])) {
if (document.getElementById(threaddivs[ivd]).innerHTML.indexOf(atofind.outerHTML) != -1 && !hrdone) {
thisthrei=ivd;
threaddivstwo[ivd]=threaddivstwo[ivd].split('.')[0];
atofind.setAttribute('data-done', 'y');
if (navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i)) {
var pwis=0;
if (navigator.userAgent.match(/iPad/i)) {
pwis=eval('' + document.getElementById('primary').getBoundingClientRect().width);
}
atofind.style.width='' + eval(-40 + eval('' + document.getElementById('container').getBoundingClientRect().width) - pwis) + 'px';
} else {
atofind.style.width='' + eval(-40 + eval('' + document.getElementById('container').getBoundingClientRect().width) - eval('' + document.getElementById('primary').getBoundingClientRect().width)) + 'px';
}
atofind.style.color='rgb(70,70,70)';
atofind.style.textShadow='-0.5px 0.5px 0.5px #952dff';
atofind.style.overflow='scroll';
atofind.style.borderLeft='1px dashed red';
atofind.style.WebkitOverflowScrolling='touch';
atofind.className='storybook papers';
atofind.oncontextmenu=function(event){ event.target.style.zoom='' + eval(0.05 + eval('' + event.target.style.zoom)); };
if (document.getElementById(threaddivs[ivd]).innerHTML.indexOf('<hr title=') != -1) { hrplus=' title='; }
hrparts=document.getElementById(threaddivs[ivd]).innerHTML.split('<hr' + hrplus);
if (eval('' + hrparts.length) > 1) {
hrih='<hr' + hrplus + hrparts[1].split('>')[0] + '>';
if (hrih.indexOf('/>') == -1 && document.getElementById(threaddivs[ivd]).innerHTML.indexOf('</hr>') != -1) {
hrih+='</hr>';
}
hroh='<hr' + hrplus + hrparts[1].split('>')[0].replace(/\//g,'') + '></hr>';
}
if (hrparts[eval(-1 + eval('' + hrparts.length))].replace(hrih.replace('<hr' + hrplus,''),'').indexOf('If this' + ' was interesting ') != -1 && hrparts[eval(-1 + eval('' + hrparts.length))].replace(hrih.replace('<hr' + hrplus,''),'').indexOf('If this' + ' was interesting ') < 100) {
reordercontent='<div style=display:none;>' + hrparts[eval(-1 + eval('' + hrparts.length))].replace(hrih.replace('<hr' + hrplus,''),'') + '</div>';
} else {
reordercontent=hrparts[eval(-1 + eval('' + hrparts.length))].replace(hrih.replace('<hr' + hrplus,''),'');
}
if (reordercontent.indexOf('<hr') != -1) {
reordercontent=reordercontent.replace('<hr', '<hr class=hrabove id=bloghr' + hrcnt);
hrcnt++;
}
for (var iivd=eval(-2 + eval('' + hrparts.length)); iivd>=0; iivd--) {
if (hrparts[iivd].replace(hrih.replace('<hr' + hrplus,''),'').indexOf('If this' + ' was interesting ') != -1 && hrparts[iivd].replace(hrih.replace('<hr' + hrplus,''),'').indexOf('If this' + ' was interesting ') < 100) {
if (hroh.indexOf('<hr') != -1) {
midbit='class=hrabove id=bloghr' + hrcnt + ' ';
hrcnt++;
}
reordercontent+=hroh.replace('<hr','<hr ' + midbit + 'style="display:none;"');
reordercontent='<div style=display:none;>' + hrparts[iivd].replace(hrih.replace('<hr' + hrplus,''),'') + '</div>';
} else {
if (hroh.indexOf('<hr') != -1) {
midbit='class=hrabove id=bloghr' + hrcnt + ' ';
hrcnt++;
}
reordercontent+=hroh.replace('<hr', '<hr ' + midbit);
reordercontent+=reordercontent=hrparts[iivd].replace(hrih.replace('<hr' + hrplus,''),'');
}
}
if (reordercontent != '') {
hrdone=true;
atofind.innerHTML+='<br><details title="Thread story ..." open><summary title="Thread story ..."></summary><br>' + reordercontent + '</details>';
reordercontent='';
if (!navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i) || 8 == 8) {
xelms = document.body.querySelectorAll('.hrabove');
for (let element of xelms) {
if (!navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i)) {
setInterval(function() { storyhrcheck(element.id); }, 600);
} else {
setInterval(function() { storyhrcheck(element.id); }, 200);
}
}
}
}
}
}
}
}
function storyhrcheck(inhroid) {
var inhro=document.getElementById(inhroid);
var vsi=-1, thisvsi=-2, arrangedprefix='', derivedtitle='';
if (lastthre != null) {
vsi=eval('' + ('' + lastthre.id).split('bloghr')[1]);
}
thisvsi=eval('' + ('' + inhroid).split('bloghr')[1]);
if (eval('' + inhro.getBoundingClientRect().top) < eval('' + thisthrerecttop)) { // && !navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i)) { //document.URL.indexOf('scrollcheck=') != -1) {
if (lastthre == null) {
lastthre=inhro;
//alert('' + thisthrerecttop + ' vs ' + inhro.getBoundingClientRect().top + ' 0:' + inhro.outerHTML);
if (document.getElementById('myrprogress')) {
document.getElementById('myrprogress').value='' + eval(1 + eval('' + document.getElementById('myrprogress').value));
}
if (document.getElementById(threaddivstwo[thisthrei]).innerHTML.split(inhro.outerHTML)[1].split('<hr')[0].indexOf('>Previous relevant <a ') == -1 && document.getElementById(threaddivstwo[thisthrei]).innerHTML.split(inhro.outerHTML)[1].split('<hr')[0].indexOf('="entry-title"') != -1) {
derivedtitle=document.getElementById(threaddivstwo[thisthrei]).innerHTML.split(inhro.outerHTML)[1].split('<hr')[0].split('="entry-title"')[1].split('>')[1].split('<')[0].trim();
//alert(derivedtitle);
arrangedprefix=inhro.outerHTML + '<p>Previous relevant <a target="_blank" title="' + derivedtitle + '" href="//www.rjmprogramming.com.au/ITblog/' + derivedtitle.toLowerCase().replace("+","").replace("/","-").replace(" ","-").replace("/","-").replace(" ","-").replace("/","-").replace(" ","-").replace("/","-").replace(" ","-").replace("/","-").replace(" ","-").replace(" ","-").replace(" ","-").replace(" ","-").replace(" ","-").replace(" ","-").replace(/---/g,"-").replace(/--/g,"-") + '/">' + derivedtitle + '</a> is shown below ...</p>';
if (document.getElementById('myrprogress')) {
document.getElementById('myrprogress').value='' + document.getElementById('myrprogress').max;
}
} //else if (document.getElementById(threaddivstwo[thisthrei]).innerHTML.split(inhro.outerHTML)[1].split('<hr')[0].indexOf('>Previous relevant <a ') == -1) {
//alert('huh ' + document.getElementById(threaddivstwo[thisthrei]).innerHTML.split(inhro.outerHTML)[1].split('<hr')[0]);
//}
if (document.getElementById(threaddivstwo[thisthrei]).innerHTML.split(inhro.outerHTML)[1].split('<hr')[0].indexOf('>Previous relevant <a ') != -1 || document.getElementById(threaddivstwo[thisthrei]).innerHTML.split(inhro.outerHTML)[1].split('<hr')[0].indexOf('="entry-title"') != -1) {
if (!document.getElementById('upto')) {
if (document.getElementById('bleft')) {
//alert('bleft');
document.getElementById('bleft').innerHTML+='<div style="display:inline-block;position:fixed;top:50px;left:0px;z-index:99;width:' + Math.max(80,Math.min(document.getElementById('main').getBoundingClientRect().left, document.getElementById(threaddivstwo[thisthrei]).getBoundingClientRect().left)) + 'px;" id=upto><a ' + storyshortmaybe(thisvsi,(arrangedprefix + document.getElementById(threaddivstwo[thisthrei]).innerHTML).split(inhro.outerHTML)[1].split('<hr')[0].split('>Previous relevant <a ')[1].split('</a>')[0]) + '</a> <progress id=myrprogress title="Click for more information" data-lastbpt="" data-lastomo=0 onclick=storycontextualize(event,1); onmouseover=storycontextualize(event,0); style=display:inline-block;opacity:0.4; value=1 min=0 max=' + eval(-1 + eval('' + document.getElementById(threaddivstwo[thisthrei]).innerHTML.split('<hr class=').length)) + '></progress><span id=sprogress></span></div>';
} else {
//alert('body');
//alert('<a style="position:fixed;top:0px;left:0px;" id=upto ' + document.getElementById(threaddivstwo[thisthrei]).innerHTML.split(inhro.outerHTML)[1].split('<hr')[0].split('>Previous relevant <a ')[1].split('</a>')[0] + '</a>');
document.body.innerHTML+='<div style="display:inline-block;position:fixed;top:50px;left:0px;z-index:99;width:' + Math.max(80,Math.min(document.getElementById('main').getBoundingClientRect().left, document.getElementById(threaddivstwo[thisthrei]).getBoundingClientRect().left)) + 'px;" id=upto><a ' + storyshortmaybe(thisvsi,(arrangedprefix + document.getElementById(threaddivstwo[thisthrei]).innerHTML).split(inhro.outerHTML)[1].split('<hr')[0].split('>Previous relevant <a ')[1].split('</a>')[0]) + '</a> <progress id=myrprogress title="Click for more information" data-lastbpt="" data-lastomo=0 onclick=storycontextualize(event,1); onmouseover=storycontextualize(event,0); style=display:inline-block;opacity:0.4; value=1 min=0 max=' + eval(-1 + eval('' + document.getElementById(threaddivstwo[thisthrei]).innerHTML.split('<hr class=').length)) + '></progress><span id=sprogress></span></div>';
}
} else if (5 == 5) {
if (document.getElementById('upto').innerHTML == '') {
document.getElementById('upto').innerHTML+='<br><br><a ' + storyshortmaybe(thisvsi,(arrangedprefix + document.getElementById(threaddivstwo[thisthrei]).innerHTML).split(inhro.outerHTML)[1].split('<hr')[0].split('>Previous relevant <a ')[1].split('</a>')[0]) + '</a> <progress id=myrprogress title="Click for more information" data-lastbpt="" data-lastomo=0 onclick=storycontextualize(event,1); onmouseover=storycontextualize(event,0); style=display:inline-block;opacity:0.4; value=1 min=0 max=' + eval(-1 + eval('' + document.getElementById(threaddivstwo[thisthrei]).innerHTML.split('<hr class=').length)) + '><span id=sprogress></span></progress>';
} else {
document.getElementById('upto').innerHTML+='<br><br><a ' + storyshortmaybe(thisvsi,(arrangedprefix + document.getElementById(threaddivstwo[thisthrei]).innerHTML).split(inhro.outerHTML)[1].split('<hr')[0].split('>Previous relevant <a ')[1].split('</a>')[0]) + '</a>';
}
} else {
document.getElementById('upto').href=(arrangedprefix + document.getElementById(threaddivstwo[thisthrei]).innerHTML).split(inhro.outerHTML)[1].split('<hr')[0].split('>Previous relevant <a ')[1].split(' href="')[1].split('"')[0];
document.getElementById('upto').innerHTML=storyshortmaybe(thisvsi,(arrangedprefix + document.getElementById(threaddivstwo[thisthrei]).innerHTML).split(inhro.outerHTML)[1].split('<hr')[0].split('>Previous relevant <a ')[1].split('>')[1].split('<')[0]);
}
}
} else if (thisvsi > vsi && eval('' + inhro.getBoundingClientRect().top) > 0) {
if (document.getElementById('myrprogress')) {
document.getElementById('myrprogress').value='' + eval(1 + eval('' + document.getElementById('myrprogress').value));
}
if (document.getElementById(threaddivstwo[thisthrei]).innerHTML.split(inhro.outerHTML)[1].split('<hr')[0].indexOf('>Previous relevant <a ') == -1 && document.getElementById(threaddivstwo[thisthrei]).innerHTML.split(inhro.outerHTML)[1].split('<hr')[0].indexOf('="entry-title"') != -1) {
derivedtitle=document.getElementById(threaddivstwo[thisthrei]).innerHTML.split(inhro.outerHTML)[1].split('<hr')[0].split('="entry-title"')[1].split('>')[1].split('<')[0].trim();
//alert(derivedtitle);
arrangedprefix=inhro.outerHTML + '<p>Previous relevant <a target="_blank" title="' + derivedtitle + '" href="//www.rjmprogramming.com.au/ITblog/' + derivedtitle.toLowerCase().replace("+","").replace("/","-").replace(" ","-").replace("/","-").replace(" ","-").replace("/","-").replace(" ","-").replace("/","-").replace(" ","-").replace("/","-").replace(" ","-").replace(" ","-").replace(" ","-").replace(" ","-").replace(" ","-").replace(" ","-").replace(/---/g,"-").replace(/--/g,"-") + '/">' + derivedtitle + '</a> is shown below ...</p>';
if (document.getElementById('myrprogress')) {
document.getElementById('myrprogress').value='' + document.getElementById('myrprogress').max;
}
} //else if (document.getElementById(threaddivstwo[thisthrei]).innerHTML.split(inhro.outerHTML)[1].split('<hr')[0].indexOf('>Previous relevant <a ') == -1) {
//alert('Huh ' + document.getElementById(threaddivstwo[thisthrei]).innerHTML.split(inhro.outerHTML)[1].split('<hr')[0]);
//}
lastthre=inhro;
//alert('' + thisthrerecttop + ' vs ' + inhro.getBoundingClientRect().top + ' 1:' + inhro.outerHTML);
if (document.getElementById(threaddivstwo[thisthrei]).innerHTML.split(inhro.outerHTML)[1].split('<hr')[0].indexOf('>Previous relevant <a ') != -1 || document.getElementById(threaddivstwo[thisthrei]).innerHTML.split(inhro.outerHTML)[1].split('<hr')[0].indexOf('="entry-title"') != -1) {
//alert(document.getElementById(threaddivstwo[thisthrei]).innerHTML.split(inhro.outerHTML)[1].split('<hr')[0]);
if (!document.getElementById('upto')) {
if (document.getElementById('bleft')) {
document.getElementById('bleft').innerHTML+='<div style="display:inline-block;position:fixed;top:50px;left:0px;z-index:99;width:' + Math.max(80,Math.min(document.getElementById('main').getBoundingClientRect().left, document.getElementById(threaddivstwo[thisthrei]).getBoundingClientRect().left)) + 'px;" id=upto><a ' + storyshortmaybe(thisvsi,(arrangedprefix + document.getElementById(threaddivstwo[thisthrei]).innerHTML).split(inhro.outerHTML)[1].split('<hr')[0].split('>Previous relevant <a ')[1].split('</a>')[0]) + '</a> <progress id=myrprogress title="Click for more information" data-lastbpt="" data-lastomo=0 onclick=storycontextualize(event,1); onmouseover=storycontextualize(event,0); style=display:inline-block;opacity:0.4; value=1 min=0 max=' + eval(-1 + eval('' + document.getElementById(threaddivstwo[thisthrei]).innerHTML.split('<hr class=').length)) + '></progress><span id=sprogress></span></div>';
} else {
document.body.innerHTML+='<div style="display:inline-block;position:fixed;top:50px;left:0px;z-index:99;width:' + Math.max(80,Math.min(document.getElementById('main').getBoundingClientRect().left, document.getElementById(threaddivstwo[thisthrei]).getBoundingClientRect().left)) + 'px;" id=upto><a ' + storyshortmaybe(thisvsi,(arrangedprefix + document.getElementById(threaddivstwo[thisthrei]).innerHTML).split(inhro.outerHTML)[1].split('<hr')[0].split('>Previous relevant <a ')[1].split('</a>')[0]) + '</a> <progress id=myrprogress title="Click for more information" data-lastbpt="" data-lastomo=0 onclick=storycontextualize(event,1); onmouseover=storycontextualize(event,0); style=display:inline-block;opacity:0.4; value=1 min=0 max=' + eval(-1 + eval('' + document.getElementById(threaddivstwo[thisthrei]).innerHTML.split('<hr class=').length)) + '></progress><span id=sprogress></span></div>';
}
} else if (5 == 5) {
if (document.getElementById('upto').innerHTML == '') {
document.getElementById('upto').innerHTML+='<br><br><a ' + storyshortmaybe(thisvsi,(arrangedprefix + document.getElementById(threaddivstwo[thisthrei]).innerHTML).split(inhro.outerHTML)[1].split('<hr')[0].split('>Previous relevant <a ')[1].split('</a>')[0]) + '</a> <progress id=myrprogress title="Click for more information" data-lastbpt="" data-lastomo=0 onclick=storycontextualize(event,1); onmouseover=storycontextualize(event,0); style=display:inline-block;opacity:0.4; value=1 min=0 max=' + eval(-1 + eval('' + document.getElementById(threaddivstwo[thisthrei]).innerHTML.split('<hr class=').length)) + '></progress><span id=sprogress></span>';
} else {
document.getElementById('upto').innerHTML+='<br><br><a ' + storyshortmaybe(thisvsi,(arrangedprefix + document.getElementById(threaddivstwo[thisthrei]).innerHTML).split(inhro.outerHTML)[1].split('<hr')[0].split('>Previous relevant <a ')[1].split('</a>')[0]) + '</a>';
}
} else {
document.getElementById('upto').href=(arrangedprefix + document.getElementById(threaddivstwo[thisthrei]).innerHTML).split(inhro.outerHTML)[1].split('<hr')[0].split('>Previous relevant <a ')[1].split(' href="')[1].split('"')[0];
document.getElementById('upto').innerHTML=storyshortmaybe(thisvsi,(arrangedprefix + document.getElementById(threaddivstwo[thisthrei]).innerHTML).split(inhro.outerHTML)[1].split('<hr')[0].split('>Previous relevant <a ')[1].split('>')[1].split('<')[0]);
}
}
}
}
}
function storyshowstuff() {
if (zhr != null) {
if (zhr.readyState == 4) {
if (zhr.status == 200) {
if (zhr.responseText.indexOf(' class="en' + 'try-date">') != -1) {
if (document.getElementById('sprogress')) {
document.getElementById('sprogress').innerHTML='<br>' + thisbpt + '<br>' + ' Published on: ' + zhr.responseText.split(' cla' + 'ss="entry-date">')[1].split('<')[0] + '<br>';
} else {
alert(thisbpt + String.fromCharCode(10) + String.fromCharCode(10) + ' Published on: ' + zhr.responseText.split(' cla' + 'ss="entry-date">')[1].split('<')[0]);
}
var aasare=document.getElementsByTagName('a');
for (var iaasare=0; iaasare<aasare.length; iaasare++) {
if (aasare[iaasare].outerHTML.indexOf(thisbpt + '" href=') != -1) {
aasare[iaasare].title+=' ... ' + ' Published on: ' + zhr.responseText.split(' cla' + 'ss="entry-date">')[1].split('<')[0];
aasare[iaasare].innerHTML+=' ... ' + ' Published on: ' + zhr.responseText.split(' cla' + 'ss="entry-date">')[1].split('<')[0];
}
}
}
}
}
}
}
function storycontextualizeajaxit() {
thisbpt='';
if (document.getElementById('myrprogress')) {
document.getElementById('myrprogress').setAttribute('data-lastomo', '-1');
thisbpt=('' + document.getElementById('myrprogress').getAttribute('data-lastbpt')).replace(/^undefined/g,'').replace(/^null/g,'');
if (thisbpt != '') {
zhr = new XMLHttpRequest();
//zhr.open('get', '//www.rjmprogramming.com.au/ITblog/' + thisbpt.toLowerCase().replace("+","").replace("/","-").replace(" ","-").replace("/","-").replace(" ","-").replace("/","-").replace(" ","-").replace("/","-").replace(" ","-").replace("/","-").replace(" ","-").replace(" ","-").replace(" ","-").replace(" ","-").replace(" ","-").replace(" ","-").replace(/---/g,"-").replace(/--/g,"-"), true);
zhr.open('get', '/ITblog/' + thisbpt.toLowerCase().replace("+","").replace("/","-").replace(" ","-").replace("/","-").replace(" ","-").replace("/","-").replace(" ","-").replace("/","-").replace(" ","-").replace("/","-").replace(" ","-").replace(" ","-").replace(" ","-").replace(" ","-").replace(" ","-").replace(" ","-").replace(/---/g,"-").replace(/--/g,"-"), true);
zhr.onreadystatechange = storyshowstuff;
zhr.send(null);
}
}
}
function storycontextualizecheck() {
if (document.getElementById('myrprogress')) {
if (('' + document.getElementById('myrprogress').getAttribute('data-lastomo')) == '0' || ('' + document.getElementById('myrprogress').getAttribute('data-lastomo')).indexOf('-') == -1) {
return '';
} else {
document.getElementById('myrprogress').setAttribute('data-lastomo', '-1');
storycontextualizeajaxit();
}
}
return '';
}
function storycontextualize(e, isaclick) {
var mypo=e.target;
var mypor=e.target.getBoundingClientRect();
var pos3=0, pos4=0;
if (isaclick == 1) {
mypo.setAttribute('data-lastomo', '-1');
}
if (e.touches) {
if (e.touches[0].pageX) {
pos3 = e.touches[0].pageX;
pos4 = e.touches[0].pageY;
} else {
pos3 = e.touches[0].clientX;
pos4 = e.touches[0].clientY;
}
//console.log('pos3=' + pos3 + ',pos4=' + pos4);
} else if (e.clientX || e.clientY) {
pos3 = e.clientX;
pos4 = e.clientY;
} else {
pos3 = e.pageX;
pos4 = e.pageY;
}
var fauxval=Math.min(mypo.max, eval(1 + Math.floor(eval(mypo.max * (pos3 - mypor.left) / mypor.width))));
if (document.getElementById('upto')) {
var vscnt=eval('' + document.getElementById('upto').innerHTML.split('</a>').length);
if (vscnt <= fauxval) {
fauxval=mypo.value;
}
if (vscnt > fauxval) {
mypo.setAttribute('data-lastbpt', document.getElementById('upto').innerHTML.split('</a>')[eval(-1 + fauxval)].split('>')[eval(-1 + document.getElementById('upto').innerHTML.split('</a>')[eval(-1 + fauxval)].split('>').length)]);
if (isaclick == 0 && (('' + mypo.getAttribute('data-lastomo')) == '0' || ('' + mypo.getAttribute('data-lastomo')).indexOf('-') == -1)) {
mypo.setAttribute('data-lastomo', '' + (new Date()).getTime());
setTimeout(storycontextualizecheck, 8000);
} else if (isaclick == 1) {
storycontextualizeajaxit();
}
}
}
}
function storyshortmaybe(nvers, cvers) {
var ioff=0;
if (!navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i)) {
return cvers;
}
if (document.getElementById('upto')) {
if (document.getElementById('upto').innerHTML.indexOf('</a>')) {
nvers=eval('' + document.getElementById('upto').innerHTML.split('</a>').length);
} else {
nvers=1;
}
} else {
nvers=1;
}
if (cvers.indexOf('>') == -1) { return ' ' + nvers; }
//alert(cvers.replace('>' + cvers.split('>')[1].split('<')[0], '>' + nvers));
return cvers.replace('>' + cvers.split('>')[1].split('<')[0], '> ' + nvers);
}
function storymember(inoh) {
if (inoh.indexOf('<div data-w=') == 0) { return true; }
if (inoh.indexOf('<details') == 0) { return true; }
if (inoh.indexOf('<div class="entry-content"') == 0) { return true; }
return false;
}
function is_mentioned_by() {
//rppspana=docgetclass("widget-title", "h3");
var zspare,xspare,xxspare,ximb,xpspana=docgetclass("entry-title", "h2"); // search URL returns
for (ximb=0; ximb<xpspana.length; ximb++) {
xxspare=xpspana[ximb].innerHTML.replace('</a>','').split('>');
xspare=xxspare[eval(-1 + xxspare.length)];
zspare=xspare.toLowerCase().replace(String.fromCharCode(35), "").replace(".", "").replace(".", "").replace(".", "").replace("+", "").replace("+", "").replace("'", "").replace('%27','').replace(/\//g, "-").replace(/,/g, "").replace("---","-").replace("---","-").replace(/--/g,"-").replace(" ","-").replace(" ","-").replace(" ","-").replace(" ","-").replace(" ","-").replace(" ","-").replace(" ","-").replace(" ","-").replace(" ","-").replace(" ","-").replace(" ","-").replace(" ","-").replace(" ","-").replace(" ","-").replace('-apachephp','-apache-php-');
if (document.body.innerHTML.indexOf('d' + zspare) == -1) {
xpspana[ximb].innerHTML+=' <div style="display:inline-block;border:3px solid rgba(255,165,0,0.4); background-color:rgba(255,255,0,0.3); " id=cc' + zspare + '><a target=_blank style="cursor:pointer;display:inline-block;text-decoration:none; font-size:12px;" ondblclick="dblrplatern(' + String.fromCharCode(39) + xspare + String.fromCharCode(39) + ');" ' + oncm + '"rcrplatern(' + String.fromCharCode(39) + xspare + String.fromCharCode(39) + ');" href=//www.rjmprogramming.com.au/slideshow.html?title=' + encodeURIComponent(xspare) + ' " title="Cut to the Chase ... double click ' + oncmt + ' for blog posting image involvement ... to (the gist of) ' + (xspare) + '" id=tcc' + zspare + '>✂</a><a target=_blank style="background: rgba(0,255,0,0.3); background: -webkit-linear-gradient(left top, rgba(0,255,0,0.3), rgba(255,255,0,0.3)); background: -o-linear-gradient(bottom right, rgba(0,255,0,0.3), rgba(255,255,0,0.3)); background: -moz-linear-gradient(bottom right, rgba(0,255,0,0.3), rgba(255,255,0,0.3)); background: linear-gradient(to bottom right, rgba(0,255,0,0.3), rgba(255,255,0,0.3)); cursor:pointer;display:inline-block;text-decoration:none;transform: scale(-1, 1); -o-transform: scale(-1, 1); -moz-transform: scale(-1, 1); -ms-transform: scale(-1, 1); -webkit-transform: scale(-1, 1); font-size:12px;" ondblclick="dblrplatern(' + String.fromCharCode(39) + xspare + String.fromCharCode(39) + ');" ' + oncm + '"rcrplatern(' + String.fromCharCode(39) + xspare + String.fromCharCode(39) + ');" href=//www.rjmprogramming.com.au/slideshow.html?title=' + encodeURIComponent(xspare) + ' " title="Cut to the Chase ... double click ' + oncmt + ' for blog posting image involvement ... to (the gist of) ' + (xspare) + '" id=ttcc' + zspare + '>🏃🏾♀️🏃🏼♂️</a><iframe style=display:none; id=icc' + zspare + ' src=></iframe></div>';
xpspana[ximb].innerHTML+=' <div style="display:inline; background-color:rgba(255,255,0,0.3);" id=d' + zspare + '><a style="cursor:pointer;display:inline;text-decoration:none; border:2px solid yellow;" onclick=" preresize_font(this); document.getElementById(this.id.replace(String.fromCharCode(116),String.fromCharCode(105))).src=' + "'" + '//www.rjmprogramming.com.au/PHP/is_mentioned_by.php?title=' + encodeURIComponent(xspare) + "'" + '; setTimeout(precheckclass,3000); " title="' + (xspare) + ' is mentioned by ..." id=t' + zspare + '>☞</a><iframe style=display:none; id=i' + zspare + ' src=></iframe></div>';
xpspana[ximb].innerHTML+=' <div data-w="0" data-h="0" data-st="0" data-style="-webkit-overflow-scrolling:touch;overflow:scroll;" data-done="" onclick=" if (' + "('' + " + 'event.target.id) == this.id || 1 == 1) { if (this.getAttribute(' + "'data-done'" + ').length == 0) { storyreorder(this); } else if (storymember(event.target.outerHTML)) { this.style.zoom=1.0; storyresize(this).innerHTML=' + "'📖'" + '; this.setAttribute(' + "'data-done',''" + '); window.scrollTo(0,this.getAttribute(' + "'data-st'" + ')); } } " title="Reorder thread blog postings to read like a story ..." style="display:inline-block; text-decoration:none; cursor:pointer; background-color:rgba(255,155,55,0.3);" id=r' + zspare + '>📖</div>';
}
}
xpspana=docgetclass("entry-title", "h1"); // real blog postings
for (ximb=0; ximb<xpspana.length; ximb++) {
xxspare=xpspana[ximb].innerHTML.replace('</a>','').split('>');
xspare=xxspare[eval(-1 + xxspare.length)];
zspare=xspare.toLowerCase().replace(String.fromCharCode(35), "").replace(".", "").replace(".", "").replace(".", "").replace("+", "").replace("+", "").replace("'", "").replace('%27','').replace(/\//g, "-").replace(/,/g, "").replace("---","-").replace("---","-").replace(/--/g,"-").replace(" ","-").replace(" ","-").replace(" ","-").replace(" ","-").replace(" ","-").replace(" ","-").replace(" ","-").replace(" ","-").replace(" ","-").replace(" ","-").replace(" ","-").replace(" ","-").replace(" ","-").replace(" ","-");
if (document.body.innerHTML.indexOf('d' + zspare) == -1) {
xpspana[ximb].innerHTML+=' <div style="display:inline-block;border:3px solid rgba(255,165,0,0.4); background-color:rgba(255,255,0,0.3); " id=cc' + zspare + '><a target=_blank style="cursor:pointer;display:inline-block;text-decoration:none; font-size:12px;" ondblclick="dblrplatern(' + String.fromCharCode(39) + xspare + String.fromCharCode(39) + ');" ' + oncm + '"rcrplatern(' + String.fromCharCode(39) + xspare + String.fromCharCode(39) + ');" href=//www.rjmprogramming.com.au/slideshow.html?title=' + encodeURIComponent(xspare) + ' " title="Cut to the Chase ... double click ' + oncmt + ' for blog posting image involvement ... to (the gist of) ' + (xspare) + '" id=tcc' + zspare + '>✂</a><a target=_blank style="background: rgba(0,255,0,0.3); background: -webkit-linear-gradient(left top, rgba(0,255,0,0.3), rgba(255,255,0,0.3)); background: -o-linear-gradient(bottom right, rgba(0,255,0,0.3), rgba(255,255,0,0.3)); background: -moz-linear-gradient(bottom right, rgba(0,255,0,0.3), rgba(255,255,0,0.3)); background: linear-gradient(to bottom right, rgba(0,255,0,0.3), rgba(255,255,0,0.3)); cursor:pointer;display:inline-block;text-decoration:none;transform: scale(-1, 1); -o-transform: scale(-1, 1); -moz-transform: scale(-1, 1); -ms-transform: scale(-1, 1); -webkit-transform: scale(-1, 1); font-size:12px;" ondblclick="dblrplatern(' + String.fromCharCode(39) + xspare + String.fromCharCode(39) + ');" ' + oncm + '"rcrplatern(' + String.fromCharCode(39) + xspare + String.fromCharCode(39) + ');" href=//www.rjmprogramming.com.au/slideshow.html?title=' + encodeURIComponent(xspare) + ' " title="Cut to the Chase ... double click ' + oncmt + ' for blog posting image involvement ... to (the gist of) ' + (xspare) + '" id=ttcc' + zspare + '>🏃🏾♀️🏃🏼♂️</a><iframe style=display:none; id=icc' + zspare + ' src=></iframe></div>';
xpspana[ximb].innerHTML+=' <div style="display:inline; background-color:rgba(255,255,0,0.3);" id=d' + zspare + '><a style="cursor:pointer;display:inline;text-decoration:none; border:2px solid yellow;" onclick=" preresize_font(this); document.getElementById(this.id.replace(String.fromCharCode(164),String.fromCharCode(151))).src=' + "'" + '//www.rjmprogramming.com.au/PHP/is_mentioned_by.php?title=' + encodeURIComponent(xspare) + "'" + '; " setTimeout(precheckclass,3000); title="' + (xspare) + ' is mentioned by ..." id=t' + zspare + '>☞</a><iframe style=display:none; id=i' + zspare + ' src=></iframe></div>';
xpspana[ximb].innerHTML+=' <div data-w="0" data-h="0" data-st="0" data-style="-webkit-overflow-scrolling:touch;overflow:scroll;" data-done="" onclick=" if (' + "('' + " + 'event.target.id) == this.id || 1 == 1) { if (this.getAttribute(' + "'data-done'" + ').length == 0) { storyreorder(this); } else if (storymember(event.target.outerHTML)) { this.style.zoom=1.0; storyresize(this).innerHTML=' + "'📖'" + '; this.setAttribute(' + "'data-done',''" + '); window.scrollTo(0,this.getAttribute(' + "'data-st'" + ')); } } " title="Reorder thread blog postings to read like a story ..." style="display:inline-block; text-decoration:none; cursor:pointer; background-color:rgba(255,155,55,0.3);" id=r' + zspare + '>📖</div>';
}
}
storyizecollect();
}
function cntsuffixmore(invl) {
var cntsuffixj=cntsuffixi;
cntsuffixi++;
if (cntsuffix == '') {
return invl;
}
if (eval('' + cntsuffixes.length) > eval('' + cntsuffixj)) {
return cntsuffixes[cntsuffixj];
}
return invl;
}
function muchlater() {
location.href=document.URL.replace("byorder=", "orbyder=");
}
function postcntsgather() {
if (onlok) {
if (cntsuffixes[cntsuffixiiiz] == '') {
var xxxhones=docgetclass('entry-title', 'h2');
cntsuffixes[cntsuffixiiiz]=xxxhones[cntsuffixiiiz].innerHTML.split('</a>')[0].split('>')[eval(-1 + xxxhones[cntsuffixiiiz].innerHTML.split('</a>')[0].split('>').length)].trim();
cntsgather();
if (cntsuffixsi) { clearInterval(cntsuffixsi); cntsuffixsi=null; }
}
}
}
function cntsgather() {
var xxxhones=docgetclass('entry-title', 'h2');
//for (var iiiz=0; iiiz<eval('' + xxxhones.length); iiiz++) {
cntsuffixiiiz=eval('' + cntsuffixes.length);
if (eval(0 + eval('' + cntsuffixes.length)) < eval('' + xxxhones.length)) {
if (eval('' + xxxhones.length) == 1) {
cntsuffixes.push(' ');
document.title='' + cntsuffixes.length + '/' + xxxhones.length + ': ' + xxxhones[cntsuffixiiiz].innerHTML.split('</a>')[0].split('>')[eval(-1 + xxxhones[cntsuffixiiiz].innerHTML.split('</a>')[0].split('>').length)].trim() + ' ... ' + cnttsuff;
if (cntsuffix != '') {
cntthrough=true;
//alert(30);
if (window.opener) {
//alert(31);
window.opener.cntt();
//alert(32);
window.opener.backatparentclosingchild();
//alert(33);
}
}
} else {
cntsuffixes.push('');
document.title='' + cntsuffixes.length + '/' + xxxhones.length + ': ' + xxxhones[cntsuffixiiiz].innerHTML.split('</a>')[0].split('>')[eval(-1 + xxxhones[cntsuffixiiiz].innerHTML.split('</a>')[0].split('>').length)].trim() + ' ... ' + cnttsuff;
//alert('//www.rjmprogramming.com.au/ITblog/' + urlit(xxxhones[cntsuffixiiiz].innerHTML.split('</a>')[0].split('>')[eval(-1 + xxxhones[cntsuffixiiiz].innerHTML.split('</a>')[0].split('>').length)].trim()));
csajaxit('//www.rjmprogramming.com.au/ITblog/' + urlit(xxxhones[cntsuffixiiiz].innerHTML.split('</a>')[0].split('>')[eval(-1 + xxxhones[cntsuffixiiiz].innerHTML.split('</a>')[0].split('>').length)].trim()));
}
cntsuffixsi=setInterval(postcntsgather, 5000);
}
//}
}
function precc() { // wopenall= functionality
var xxhones=docgetclass('entry-title', 'h2');
if (xxhones.length == 1) { cntthrough=true; }
if (document.URL.indexOf('wopenall=') != -1) { document.body.style.cursor='progress'; }
if (document.getElementById('s')) {
document.getElementById('s').placeholder='Space appended compares to whole posting content. One plus (+) after GETME (or, actually, now, any) search facilitates Oldest link.';
setInterval(sipreradiocc, 5000); //document.getElementById('s').onblur=preradiocc;
}
if (xxhones.length >= 1 && cntsuffix != '') {
if (cntsuffix != '' && eval(0 + eval('' + cntsuffixes.length)) < eval('' + xxhones.length)) {
if (eval('' + cntsuffixes.length) == 0) { if (xxhones.length == 1) { cntthrough=true; } else { cntthrough=false; } setTimeout(cntsgather,200); }
setTimeout(precc,2000);
return false;
} else if (cntsuffix != '' && eval('' + cntsuffixes.length) >= 1) {
if (cntsuffixes[eval(-1 + cntsuffixes.length)] == '') {
setTimeout(precc,2000);
return false;
}
}
} else if (cntsuffix != '') {
cntthrough=true;
//alert(0);
if (window.opener) {
//alert(1);
window.opener.cntt();
//alert(2);
window.opener.backatparentclosingchild();
//alert(3);
}
}
cntsuffixi=0;
cntthrough=true;
//if (cntsuffix != '') { alert('through now ... perhaps why? cntsuffixes.length=' + cntsuffixes.length + ' xxhones.length=' + xxhones.length + ' cntsuffixes[eval(-1 + cntsuffixes.length)]' + cntsuffixes[eval(-1 + cntsuffixes.length)]); }
var wa=wasaction;
if (wasaction == "") {
document.getElementById('s').style.width='55%';
wasaction=document.getElementById('searchform').action;
}
preprecc('wopenallwas');
document.getElementById('searchsubmit').style.display='none';
var wbis=document.getElementById('searchform').action.indexOf("/wordpress"); // /ITblog");
var taglist, catlist;
var tagvar=[], tagvar2=[], catvar=[], catvar2=[];
if (wbis != -1) {
//catlist=docgetclass('widget-title', 'h3');
if (document.getElementById('categories-2')) {
catvar=document.getElementById('categories-2').innerHTML.split("href=");
catvar2=document.getElementById('categories-2').innerHTML.split("title=");
}
} else {
//catlist=docgetclass('widget-title', 'h3');
if (document.getElementById('categories-2')) {
catvar=document.getElementById('categories-2').innerHTML.split("href=");
catvar2=document.getElementById('categories-2').innerHTML.split("href=");
}
}
if (wbis != -1 && document.getElementById('tag_cloud-3')) {
//taglist=docgetclass('tagcloud', 'h3');
tagvar=document.getElementById('tag_cloud-3').innerHTML.split("href=");
tagvar2=document.getElementById('tag_cloud-3').innerHTML.split("title=");
} else {
//taglist=docgetclass('tagcloud', 'div');
if (document.getElementById('tag_cloud-2')) {
tagvar=document.getElementById('tag_cloud-2').innerHTML.split("href=");
tagvar2=document.getElementById('tag_cloud-2').innerHTML.split("title=");
}
}
var sparea, thedelim="", itc, tcval, tctitle;
catselis="<select onchange='ovsel(this, this.value);' id='catselis' style='display:none;'><option value=' '>Categories below ...</option><option value=''>Not shown below ...</option></select>";
tagselis="<select onchange='ovsel(this, this.value);' id='tagselis' style='display:none;'><option value=' '>Popular Tags below ...</option><option value=''>Not shown below ...</option></select>";
for (itc=1; itc<catvar.length; itc++) {
thedelim=catvar[itc].substring(0,1);
tctitle=catvar2[itc].substring(1).replace(">","<").split("<");
if (wbis != -1) {
sparea=catvar[itc].substring(1).split("?cat=");
tcval=sparea[1].split(thedelim);
} else {
sparea=catvar[itc].substring(1).split("/category/");
tcval=sparea[1].split("/");
}
catselis=catselis.replace("</select>", "<option value='" + tcval[0] + "'>" + tctitle[1] + "</option></select>");
}
for (itc=1; itc<tagvar.length; itc++) {
thedelim=tagvar[itc].substring(0,1);
tctitle=tagvar[itc].substring(1).replace(">","<").split("<");
if (wbis != -1) {
sparea=tagvar[itc].substring(1).split("?tag=");
tcval=sparea[1].split(thedelim);
} else {
sparea=tagvar[itc].substring(1).split("/tag/");
tcval=sparea[1].split("/");
}
tagselis=tagselis.replace("</select>", "<option value='" + tcval[0] + "'>" + tctitle[1] + "</option></select>");
}
//formihis = document.getElementById('searchform').innerHTML.replace("</div>", "<input style='display:none;' type='radio' name='stype' value=''><input onclick=\"radiocc('Search');\" type='radio' name='stype' value='Search'>Search<input onclick=\"radiocc('Tag');\" type='radio' name='stype' value='Tag'>Tag<input onclick=\"radiocc('Category');\" type='radio' name='stype' value='Category'>Category<select id='seltc' style='display:none;' onchange=\"tcwindowopen(this.value);\" size='1'><option value=''>Blog Postings below ...</option></select></div>");
//formihis = document.getElementById('searchform').innerHTML.replace("</div>", tagselis + catselis + "<input style='display:none;' type='radio' name='stype' value=''><input onclick=\"radiocc('Search');\" type='radio' name='stype' value='Search'>Se<a title='Welcome to alphabetical search functionality ...' href='#searchform' onclick='alphabeticaltest();' onmouseover='getHighlightedSearch();' onmouseout='yehBut();' ontouchstart='getHighlightedSearch();' ontouchend='yehBut();'><font color=red>a</font></a>rc<a title='Welcome to highlighted search functionality ...' href='#searchform' onclick='highlighttest();'><font color=orange>h</font></a><input onclick=\"radiocc('Tag');\" type='radio' name='stype' value='Tag'><a onclick=\"ovput('Tag');\" title=\"Overlay Tag dropdown ...\" href=\"#tagselis\">Tag</a><input onclick=\"radiocc('Category');\" type='radio' name='stype' value='Category'><a onclick=\"ovput('Category');\" title=\"Overlay Category dropdown ...\" href=\"#catselis\">Category</a><select id='seltc' style='display:none;' onchange=\"window.open(this.value,'_blank');\" size='1'><option value=''>Blog Postings below ...</option></select></div>");
//formihis = document.getElementById('searchform').innerHTML.replace("</div>", tagselis + catselis + "<input style='display:none;' type='radio' name='stype' value=''><input title='Traditional WordPress search ...' style='margin-left:-2px;' onclick=\"radiocc('Search');\" type='radio' name='stype' value='Search'>Se<a title=' ... welcome to the long hover functionality that shows Blog Post regarding Alphabetical Search Functionality' href='#searchform' onclick='alphabeticaltest();' onmouseover='getAlphabeticalSearch();' onmouseout='yehBut();' ontouchstart='getAlphabeticalSearch();' ontouchend='yehBut();'><font color=red>a" + getsupalpha + "</font></a>rc<a title=' ... welcome to the long hover functionality that shows Blog Post regarding Highlighted Search Functionality' href='#searchform' onclick='highlighttest();' onmouseover='getHighlightedSearch();' onmouseout='yehBut();' ontouchstart='getHighlightedSearch();' ontouchend='yehBut();'><font color=orange>h" + getsuphl + "</font></a> <input title='Popular WordPress Tag in TextBox above search ...' onclick=\"radiocc('Tag');\" type='radio' name='stype' value='Tag'> <a onclick=\"ovput('Tag');\" title=\"Overlay Tag dropdown ...\" href=\"#tagselis\">Tag</a> <input title='WordPress Category (string) in TextBox above search ...' onclick=\"radiocc('Category');\" type='radio' name='stype' value='Category'> <a onclick=\"ovput('Category');\" title=\"Overlay Category dropdown ...\" href=\"#catselis\">Category</a>" + getalpha + "<select id='seltc' style='display:none;' onchange=\"window.open(this.value,'_blank');\" size='1'><option value=''>Blog Postings below ...</option></select></div>");
formihis = document.getElementById('searchform').innerHTML.replace("</div>", tagselis + catselis + "<input style='display:none;' type='radio' name='stype' value=''><input title='Traditional WordPress search ...' style='margin-left:-2px;' onclick=\"radiocc('Search');\" type='radio' name='stype' value='Search'>Se<a title=' ... welcome to the long hover functionality that shows Blog Post regarding Alphabetical Search Functionality' href='#searchform' onclick='alphabeticaltest();' onmouseover='getAlphabeticalSearch();' onmouseout='yehBut();' ontouchstart='getAlphabeticalSearch();' ontouchend='yehBut();'><font color=red>a" + getsupalpha + "</font></a>rc<a title=' ... welcome to the long hover functionality that shows Blog Post regarding Highlighted Search Functionality' href='#searchform' onclick='highlighttest();' onmouseover='getHighlightedSearch();' onmouseout='yehBut();' ontouchstart='getHighlightedSearch();' ontouchend='yehBut();'><font color=orange>h" + getsuphl + "</font></a><input title='Popular WordPress Tag in TextBox above search ...' onclick=\"radiocc('Tag');\" type='radio' name='stype' value='Tag'> <a onclick=\"ovput('Tag');\" title=\"Overlay Tag dropdown ...\" href=\"#tagselis\">Tag</a><input title='WordPress Category (string) in TextBox above search ...' onclick=\"radiocc('Category');\" type='radio' name='stype' value='Category'> <a onclick=\"ovput('Category');\" title=\"Overlay Category dropdown ...\" href=\"#catselis\">Category</a><input title='WordPress Blog Posting Title RegExp search ...' onclick=\"asksr();\" type='checkbox' id='scbtype' value='Title RE'><a style='cursor;pointer;text-decoration;underline;' title='WordPress Blog Posting Title RegExp search ...' onclick=\"asksr();\">Title RE</a>" + getalpha + "<select id='seltc' style='display:none;' onchange=\"window.open(this.value,'_blank');\" size='1'><option value=''>Blog Postings below ...</option></select></div>");
formihis = formihis.replace("input id", "input onblur='preradiocc();' id");
document.getElementById('searchform').innerHTML = formihis;
document.getElementById('s').onblur = preradiocc;
if (wa == "") {
document.getElementById('s').style.width='55%';
}
return true;
}
function cntt() {
cntthrough=true;
}
function backatparentclosingchild() {
if (onlok) {
if (!cntthrough) { return ''; }
if (offchild != null) {
console.log(offchild.document.URL);
var odu=offchild.document.URL;
if (odu.replace('?cat=','/category/').replace('?category=','/category/').split('/category/').length > 1) {
prehgsuffix=decodeURIComponent(odu.replace('?cat=','/category/').replace('?category=','/category/').split('/category/')[1].split('/')[0]).substring(0,1).toUpperCase() + decodeURIComponent(odu.replace('?cat=','/category/').replace('?category=','/category/').split('/category/')[1].split('/')[0] + ' ').substring(1).trim().replace(/\-/g,' ') + ' | Robert James Metcalfe Blog';
} else if (odu.replace('?tag=','/tag/').split('/tag/').length > 1) {
prehgsuffix=decodeURIComponent(odu.replace('?tag=','/tag/').split('/tag/')[1].split('/')[0]).substring(0,1).toUpperCase() + decodeURIComponent(odu.replace('?tag=','/tag/').split('/tag/')[1].split('/')[0] + ' ').substring(1).trim().replace(/\-/g,' ') + ' | Robert James Metcalfe Blog';
}
offchild.close();
offchild=null;
if (odu.indexOf('all=') != -1) {
if (odu.replace('?','/').indexOf('/cat') != -1) {
xxsuffix=' ... searching for ' + decodeURIComponent(odu.split('all=')[1].split('&')[0].split('#')[0]) + ' (within that category)';
} else if (odu.replace('?','/').indexOf('/tag') != -1) {
xxsuffix=' ... searching for ' + decodeURIComponent(odu.split('all=')[1].split('&')[0].split('#')[0]) + ' (within that tag)';
} else {
xxsuffix=' ... searching for ' + decodeURIComponent(odu.split('all=')[1].split('&')[0].split('#')[0]);
}
if (cntsuffix != '') { xxsuffix=xxsuffix.replace('... searching for ','... searching all posting content for '); }
}
if (odu.indexOf('highlight=') != -1) {
console.log('odu=' + odu);
hgsuffix=decodeURIComponent(odu.split('highlight=')[1].split('&')[0].split('#')[0]).replace(/\'/g, '`');
console.log('hgsuffix=' + hgsuffix);
}
if (offchildclose) {
if (navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i)) {
document.getElementById('jshowd').style.zIndex='999';
document.getElementById('jshowd').style.position='fixed';
document.getElementById('jshowd').style.backgroundColor='yellow';
document.getElementById('jshowd').style.border='2px dotted red';
document.getElementById('jshowd').style.left='10px';
document.getElementById('jshowd').style.top='5px';
document.getElementById('jshowd').style.display='block';
document.getElementById('jshowd').click();
} else {
jshowdet();
}
clearInterval(offchildclose);
}
}
}
}
function backatparent(bapurl) {
if (offchild != null) {
if (offchildclose) { clearInterval(offchildclose); offchildclose=null; }
offchild.close();
offchild=null;
}
if (offchildclose) { clearInterval(offchildclose); offchildclose=null; }
if (cntsuffix != '') { cntthrough=false; }
offchild=window.open(bapurl, '_blank');
offchildclose = setInterval(backatparentclosingchild, cntsuffft);
}
function jshowdet() {
var xsuffix=xxsuffix;
if (prehgsuffix == '') { prehgsuffix=document.title; } else if (prehgsuffix.toUpperCase() == 'IOS') { prehgsuffix='iOS'; } else if (prehgsuffix.toUpperCase() == 'IPHONE') { prehgsuffix='iPhone'; } else if (prehgsuffix.toUpperCase() == 'IPAD') { prehgsuffix='iPad'; } else if (prehgsuffix.toUpperCase() == 'IPOD') { prehgsuffix='iPod'; } else if (prehgsuffix.toUpperCase() == 'MACOS') { prehgsuffix='macOS'; } else if (prehgsuffix.toUpperCase() == 'MAC OS X') { prehgsuffix='Mac OS X'; }
//window.focus();
if (document.URL.indexOf('all=') != -1 && xxsuffix == '') {
xsuffix=' ... searching for ' + decodeURIComponent(document.URL.split('all=')[1].split('&')[0].split('#')[0]);
}
if (window.opener && xxsuffix == '') {
if (window.opener.document.URL.indexOf('all=') != -1) {
xsuffix=' ... searching for ' + decodeURIComponent(window.opener.document.URL.split('all=')[1].split('&')[0].split('#')[0]);
}
}
var hgf=null;
if (navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i)) {
hgf=window.open('','_blank'); //,'top=50,left=50,width=900,height=900');
} else {
hgf=window.open('','_blank','top=50,left=50,width=900,height=900');
}
var tsuffix='';
hgf.onload = function () {
if (document.URL.indexOf('all=') != -1) {
hgf.document.title = prehgsuffix + ' ... searching for ' + document.URL.split('all=')[eval(-1 + document.URL.split('all=').length)];
} else {
hgf.document.title = prehgsuffix; // + ' ... searching for ' + document.URL.split('all=')[eval(-1 + document.URL.split('all=').length)];
}
}
if (document.URL.indexOf('all=') != -1) {
tsuffix = '<title>' + prehgsuffix + ' ... searching for ' + decodeURIComponent(document.URL.split('all=')[eval(-1 + document.URL.split('all=').length)].split('&')[0].split('#')[0]) + '</title>';
} else {
tsuffix = '<title>' + prehgsuffix + xsuffix + '</title>'; // + ' ... searching for ' + document.URL.split('all=')[eval(-1 + document.URL.split('all=').length)];
}
//alert(document.URL + ' ... ' + document.title);
//if (window.opener) { alert(window.opener.document.URL + ' ... ' + window.opener.document.title); }
if (document.getElementById('justshow').innerHTML != '') {
hgf.document.write('<html><head>' + tsuffix + ' <style> #justshow { width:100%; } details { width:100%; } summary { background-color: #f0f0f0; font-weight: bold; } </style></head><body> ' + document.getElementById('justshow').outerHTML.replace('none','block') + '</body></html>');
} else {
hgf.document.write('<html><head>' + tsuffix + ' <style> #justshow { width:100%; } details { width:100%; } summary { background-color: #f0f0f0; font-weight: bold; } </style></head><body> ' + window.opener.document.getElementById('justshow').outerHTML.replace('none','block') + '</body></html>');
}
}
function jshow(inuis, inttwo) {
if (hgsuffix != '' && inuis.indexOf('highlight=') == -1) { if (inuis.indexOf('?') != -1) { inuis+='&highlight=' + encodeURIComponent(hgsuffix); } else { inuis+='?highlight=' + encodeURIComponent(hgsuffix); } }
if (inttwo == '') { inttwo=inuis; } // else if (inttwo.indexOf('bookmark') != -1 && inttwo.indexOf(' Tutorial') != -1) { inttwo=inttwo.split('bookmark')[1].substring(2).split(' Tutorial')[0] + ' Tutorial'; } else { alert(inttwo + ' ... ' + decodeURIComponent(inttwo)); }
if (hgsuffix != '') {
var wds=(' ' + inttwo + ' ');
var awds=wds.split(' ');
for (var iwds=1; iwds<awds.length; iwds++) {
if (awds[iwds].toLowerCase() == hgsuffix.toLowerCase().replace(/\`/g,"'")) {
inttwo=inttwo.replace(awds[iwds], '<mark>' + awds[iwds] + '</mark>');
}
}
}
if (window.opener.document.getElementById('justshow').innerHTML == '') {
window.opener.document.getElementById('justshow').innerHTML='<div id=theurls style=width:100%;></div>';
window.opener.document.getElementById('justshow').innerHTML=window.opener.document.getElementById('justshow').innerHTML.replace('</div>', '<details id=detl0><summary>' + inttwo + '</summary><iframe style=width:100%;height:900px; src=' + inuis + '></iframe></details><br></div>');
//window.opener.document.getElementById('justshow').style.display='block';
} else {
var huhd=window.opener.document.getElementById('justshow').innerHTML.split('<details').length;
window.opener.document.getElementById('justshow').innerHTML=window.opener.document.getElementById('justshow').innerHTML.replace('</div>', '<details id=detl' + huhd + ' onclick="document.getElementById(' + "'divl" + huhd + "'" + ').innerHTML=' + "'" + '<iframe style=width:100%;height:900px; src=' + inuis + '></iframe>' + "';" + '"><summary onclick="document.getElementById(' + "'divl" + huhd + "'" + ').innerHTML=' + "'" + '<iframe style=width:100%;height:900px; src=' + inuis + '></iframe>' + "';" + '">' + inttwo + '</summary><span id=divl' + huhd + '></span></details><br></div>');
}
//alert(window.opener.document.getElementById('justshow').innerHTML);
return inuis;
}
function widgetcon() {
var irt, rhsbits=docgetclass("widget-container", "li");
// Thanks to //www.tedmontgomery.com/tutorial/clrnmsWH.html for background colour ideas below
var bcolsare=new Array("#F0F8FF","#F0FFFF","#F0F0E0","#F0FFF0","#FFFFF0","#FFF0E0","#FFFFE0","#F0FFF0","#FFFFFF","#F0F0F0","#F0F7FF","#FFF8F0","#FFF0F0","#E0FFFF","#FFFFE0");
for (var itd=0; itd<rhsbits.length; itd++) {
irt=Math.floor(Math.random()*rhsbits.length);
rhsbits[itd].style.backgroundColor=bcolsare[irt];
}
}
var ponarr=new Array();
var poniharr=new Array();
var htnew="";
function cpostedon(valt) {
var shiho=document.getElementById('hrpresel');
var valtvalue=valt.value.replace(" ","").replace(" ","").replace(" ","").replace(" ","").replace(" ","").replace(" ","").replace(" ","").replace(" ","");
if (shiho != null) {
var previs=-1, nextis=-1;
var ponopts=docgetclass('ponopt','option');
for (var iihj=0; iihj<poniharr.length; iihj++) {
if (valtvalue == poniharr[iihj]) valtvalue=ponarr[iihj].replace('option', '#');
}
var oiso=document.getElementById(valtvalue.replace('#','option'));
for (var ihj=0; ihj<ponopts.length; ihj++) {
if (ihj == nextis || ihj == previs) {
ihj=ihj;
} else if (ponopts[ihj].id == oiso.id) {
ponopts[ihj].innerHTML=ponopts[ihj].innerHTML.replace(" ","").replace(" ","").replace(" ","").replace(" ","").replace(" ","").replace(" ","").replace(" ","").replace(" ","");
if (shiho != null) shiho.style.backgroundColor=ponopts[ihj].style.backgroundColor.replace('white','yellow');
ponopts[ihj].style.backgroundColor='yellow';
ponopts[ihj].innerHTML=" " + ponopts[ihj].innerHTML;
nextis=eval((1 + ihj) % ponopts.length);
ponopts[nextis].innerHTML="" + ponopts[nextis].innerHTML.replace(" ","").replace(" ","").replace(" ","").replace(" ","").replace(" ","").replace(" ","").replace(" ","").replace(" ","");
ponopts[nextis].style.backgroundColor='green';
previs=eval(eval((-1 + ihj + ponopts.length) % ponopts.length));
ponopts[previs].innerHTML="" + ponopts[nextis].innerHTML.replace(" ","").replace(" ","").replace(" ","").replace(" ","").replace(" ","").replace(" ","").replace(" ","").replace(" ","");
ponopts[previs].style.backgroundColor='red';
htnew=valtvalue.replace("#","") + "_" + ponopts[ihj].id;
zfour();
} else {
ponopts[ihj].innerHTML=ponopts[ihj].innerHTML.replace(" ","").replace(" ","").replace(" ","").replace(" ","").replace(" ","").replace(" ","").replace(" ","").replace(" ","");
ponopts[ihj].style.backgroundColor='white';
}
}
}
return valtvalue;
}
function zfour() {
if (onlok) {
if (htnew.indexOf("_") != -1) {
var hts=htnew.split("_");
var shihofloat=document.getElementById(htnew); //'hrselfloat');
var htso=document.getElementById(hts[0]);
if (shihofloat == null && htso != null) {
var shihonf=document.getElementById('hrpresel');
if (shihonf != null) {
if (document.body.innerHTML.indexOf(htso.innerHTML + "</div>") != -1) {
//alert(" is div");
htso.innerHTML="<select id='" + htnew + "' style='background-color:yellow;' onchange='location.href=cpostedon(this);'>" + shihonf.innerHTML.replace("> "," selected> ") + "</select>" + htso.innerHTML;
} else if (document.body.innerHTML.indexOf(htso.innerHTML + "</p>") != -1) {
htso.innerHTML+="<select id='" + htnew + "' style='background-color:yellow;' onchange='location.href=cpostedon(this);'>" + shihonf.innerHTML.replace("> "," selected> ") + "</select>";
} else if (document.body.innerHTML.indexOf(htso.innerHTML + "</h1>") != -1) {
htso.innerHTML+="<select id='" + htnew + "' style='background-color:yellow;' onchange='location.href=cpostedon(this);'>" + shihonf.innerHTML.replace("> "," selected> ") + "</select>";
} else if (document.body.innerHTML.indexOf(htso.innerHTML + "</h2>") != -1) {
htso.innerHTML+="<select id='" + htnew + "' style='background-color:yellow;' onchange='location.href=cpostedon(this);'>" + shihonf.innerHTML.replace("> "," selected> ") + "</select>";
} else if (document.body.innerHTML.indexOf(htso.innerHTML + "</a>") != -1) {
//alert(" is a");
document.body.innerHTML=document.body.innerHTML.replace(htso.innerHTML + "</a>", htso.innerHTML + "</a><select id='" + htnew + "' style='background-color:yellow;' onchange='location.href=cpostedon(this);'>" + shihonf.innerHTML.replace("> "," selected> ") + "</select>");
} else {
//alert(htso.innerHTML);
document.body.innerHTML=document.body.innerHTML.replace(htso.innerHTML + "</a>", htso.innerHTML + "</a><select id='" + htnew + "' style='background-color:yellow;' onchange='location.href=cpostedon(this);'>" + shihonf.innerHTML.replace("> "," selected> ") + "</select>").replace(htso.innerHTML + "</div>", htso.innerHTML + "</div><select id='" + htnew + "' onchange='location.href=cpostedon(this);'>" + shihonf.innerHTML + "</select>");
}
}
}
htnew="";
}
}
}
function initpostedoncc() {
var seqis=" style='background-color:yellow;'", anth;
var newih="";
var optshiho;
var shiho=document.getElementById('hrpresel');
for (var iy=1; iy<=2; iy++) {
if (shiho != null) {
seqis=" style='background-color:yellow;'";
newih="";
newih=shiho.innerHTML.replace("> HTML<", ">End of page<").replace("> HTML<", ">End of page<").replace(">HTML<", ">End of page<");
optshiho=newih.split(' value="');
for (var iry=1; iry<optshiho.length; iry++) {
//alert(98);
if (iry == 1) {
newih=newih.replace(optshiho[1], optshiho[1].replace(">","> "));
} else if (iry == -2) {
newih=newih.replace(optshiho[2], optshiho[2].replace(">","> "));
}
anth=optshiho[iry].split('"');
if (iy == 1) ponarr.push('option' + anth[0].replace('#',''));
newih=newih.replace(' value="' + anth[0] + '"', ' class="ponopt" id="option' + anth[0].replace('#','') + '"' + seqis);
seqis=seqis.replace(" style='background-color:green;'", " style='background-color:white;'").replace("yellow", "green");
}
shiho=document.getElementById('hrpresel');
if (shiho != null) shiho.innerHTML=newih;
if (shiho != null) shiho=document.getElementById('hrpresel');
if (shiho != null) shiho.style.backgroundColor='yellow';
optshiho=newih.split('</option>');
for (var iry=0; iry<optshiho.length; iry++) {
anth=optshiho[iry].split('>');
if (anth.length > 1) {
if (iy == 1) poniharr.push(anth[eval(anth.length - 1)].replace(" ","").replace(" ","").replace(" ","").replace(" ","").replace(" ","").replace(" ","").replace(" ","").replace(" ",""));
}
}
}
shiho=document.getElementById('hrsel');
}
}
function checkonl() {
var bisi=[-1], iisi=[-1], pisi=[-1], jbisi=0, jiisi=0, jpisi=0, iourps;
var ourps=document.getElementsByTagName("b");
for (iourps=0; iourps<ourps.length; iourps++) {
if (ourps[iourps].innerHTML.replace(/\<p\>/g,"").replace(/\<i\>/g,"").replace(/\<b\>/g,"").replace(/\<\/p\>/g,"").replace(/\<\/i\>/g,"").replace(/\<\/b\>/g,"").replace(/\<\/strong\>/g,"").replace(/\<strong\>/g,"") == "Did you know?") {
bisi[jbisi]=iourps;
jbisi++;
bisi[jbisi]=-1;
} else if (ourps[iourps].innerHTML.replace(/\<p\>/g,"").replace(/\<i\>/g,"").replace(/\<b\>/g,"").replace(/\<\/p\>/g,"").replace(/\<\/i\>/g,"").replace(/\<\/b\>/g,"").replace(/\<\/strong\>/g,"").replace(/\<strong\>/g,"") == "Stop Press") {
bisi[jbisi]=iourps;
jbisi++;
bisi[jbisi]=-1;
}
}
ourps=document.getElementsByTagName("i");
for (iourps=0; iourps<ourps.length; iourps++) {
if (ourps[iourps].innerHTML.replace(/\<p\>/g,"").replace(/\<i\>/g,"").replace(/\<b\>/g,"").replace(/\<\/p\>/g,"").replace(/\<\/i\>/g,"").replace(/\<\/b\>/g,"").replace(/\<\/strong\>/g,"").replace(/\<strong\>/g,"") == "Did you know?") {
iisi[jiisi]=iourps;
jiisi++;
iisi[jiisi]=-1;
} else if (ourps[iourps].innerHTML.replace(/\<p\>/g,"").replace(/\<i\>/g,"").replace(/\<b\>/g,"").replace(/\<\/p\>/g,"").replace(/\<\/i\>/g,"").replace(/\<\/b\>/g,"").replace(/\<\/strong\>/g,"").replace(/\<strong\>/g,"") == "Stop Press") {
iisi[jiisi]=iourps;
jiisi++;
iisi[jiisi]=-1;
}
}
ourps=document.getElementsByTagName("p");
for (iourps=0; iourps<ourps.length; iourps++) {
if (ourps[iourps].innerHTML.replace(/\<p\>/g,"").replace(/\<i\>/g,"").replace(/\<b\>/g,"").replace(/\<\/p\>/g,"").replace(/\<\/i\>/g,"").replace(/\<\/b\>/g,"").replace(/\<\/strong\>/g,"").replace(/\<strong\>/g,"") == "Did you know?") {
pisi[jpisi]=iourps;
jpisi++;
pisi[jpisi]=-1;
} else if (ourps[iourps].innerHTML.replace(/\<p\>/g,"").replace(/\<i\>/g,"").replace(/\<b\>/g,"").replace(/\<\/p\>/g,"").replace(/\<\/i\>/g,"").replace(/\<\/b\>/g,"").replace(/\<\/strong\>/g,"").replace(/\<strong\>/g,"") == "Stop Press") {
pisi[jpisi]=iourps;
pisi[jpisi]=iourps;
jpisi++;
pisi[jpisi]=-1;
} else if (ourps[iourps].innerHTML.toUpperCase().indexOf("ISBN:") != -1) {
var isbnis='', jisbn=0, okays="-0123456789", preis=[];
if (ourps[iourps].innerHTML.toUpperCase().indexOf("ISBN: ") != -1) {
//document.title+=' !';
preis=ourps[iourps].textContent.replace(/\"/g,'').replace(/\'/g,"").replace(/\<b\>/g,'').replace(/\<\/b\>/g,'').replace(/\<i\>/g,'').replace(/\<\/i\>/g,'').split("ISBN: ");
if (preis.length > 1 && preis[0].indexOf("(") != -1) preis=preis[0].split("(");
while (okays.indexOf(ourps[iourps].innerHTML.toUpperCase().split("ISBN: ")[1].substring(jisbn, eval(jisbn + 1))) != -1) {
isbnis+=ourps[iourps].innerHTML.toUpperCase().split("ISBN: ")[1].substring(jisbn, eval(jisbn + 1));
jisbn++;
}
} else if (ourps[iourps].innerHTML.toUpperCase().indexOf("ISBN:&NBSP;") != -1) {
//document.title+=' !!';
preis=ourps[iourps].textContent.replace(/\"/g,'').replace(/\'/g,"").replace(/\<b\>/g,'').replace(/\<\/b\>/g,'').replace(/\<i\>/g,'').replace(/\<\/i\>/g,'').split("ISBN: ");
if (preis.length > 1 && preis[0].indexOf("(") != -1) preis=preis[0].split("(");
while (okays.indexOf(ourps[iourps].innerHTML.toUpperCase().split("ISBN:&NBSP;")[1].substring(jisbn, eval(jisbn + 1))) != -1) {
isbnis+=ourps[iourps].innerHTML.toUpperCase().split("ISBN:&NBSP;")[1].substring(jisbn, eval(jisbn + 1));
jisbn++;
}
} else {
//document.title+=' !!!';
preis=ourps[iourps].textContent.replace(/\"/g,'').replace(/\'/g,"").replace(/\<b\>/g,'').replace(/\<\/b\>/g,'').replace(/\<i\>/g,'').replace(/\<\/i\>/g,'').split("ISBN:");
if (preis.length > 1 && preis[0].indexOf("(") != -1) preis=preis[0].split("(");
while (okays.indexOf(ourps[iourps].innerHTML.toUpperCase().split("ISBN:")[1].substring(jisbn, eval(jisbn + 1))) != -1) {
isbnis+=ourps[iourps].innerHTML.toUpperCase().split("ISBN:")[1].substring(jisbn, eval(jisbn + 1));
jisbn++;
}
}
if (isbnis != '') {
//ourps[iourps].innerHTML=ourps[iourps].innerHTML.replace(isbnis, "<a target=_blank title='ISBN lookup' href='https://isbnsearch.org/isbn/" + isbnis.replace(/\-/g,'') + "'>" + isbnis + "</a>");
//if (ourps[iourps].innerHTML.indexOf(": " + isbnis) != -1) {
//ourps[iourps].innerHTML=ourps[iourps].innerHTML.replace(": " + isbnis, "<a target=_blank title='ISBN lookup' href='HTTP://www.lookupbyisbn.com/Search/Book/" + isbnis.replace(/\-/g,'') + "/1'>: " + isbnis.replace(/\-/g,'').substring(0,1) + '-' + isbnis.replace(/\-/g,'').substring(1,8) + '-' + isbnis.replace(/\-/g,'').substring(8,9) + '-' + isbnis.replace(/\-/g,'').substring(9) + "</a>");
//} else {
ourps[iourps].innerHTML=ourps[iourps].innerHTML.replace(isbnis, " <a target=_blank title='ISBN lookup' href='HTTP://www.lookupbyisbn.com/Search/Book/" + isbnis.replace(/\-/g,'') + "/1'>" + isbnis + "</a>");
//}
if (document.URL.indexOf('?why=') != -1) alert(' -');
//document.title+=' -';
if (preis.length > 1) {
document.title+=' =';
isbnis='';
jisbn=0;
okays="";
var authoris='', authord='';
// /search?s=How+English+Works
if (preis[0].indexOf(' by ') != -1 && preis[0].indexOf('hanks to ') != -1) {
isbnis=preis[0].split('hanks to ')[eval(-1 + preis[0].split('hanks to ').length)].split(' by ')[0]; //.split(' ');
preis=preis[0].split('hanks to ')[eval(-1 + preis[0].split('hanks to ').length)].split(' by ')[1].trim().split(' ');
if (preis.length > 1) {
for (jisbn=0; jisbn<preis.length; jisbn++) {
if (preis[jisbn].substring(0,1) == preis[jisbn].substring(0,1).toUpperCase() || preis[jisbn].length <= 2) {
authoris+=(authord + preis[jisbn]);
authord=' ';
} else if (authoris != '') {
ourps[iourps].innerHTML=ourps[iourps].innerHTML.replace(authoris, "<a target=_blank title='ISBN lookup' href='https://isbnsearch.org/search?s=" + authoris.replace(/\&\;/g,'and').replace(/\&/g,'and').replace(/\ /g,'+') + "'>" + authoris + "</a>");
authoris='';
authord='';
}
}
if (authoris != '') {
//document.title+=' ' + authoris;
ourps[iourps].innerHTML=ourps[iourps].innerHTML.replace(authoris, "<a target=_blank title='ISBN lookup' href='https://isbnsearch.org/search?s=" + authoris.replace(/\&\;/g,'and').replace(/\&/g,'and').replace(/\ /g,'+') + "'>" + authoris + "</a>");
//document.title+=' ' + authoris;
}
}
} else if (preis[0].indexOf(' by ') != -1 && preis[0].indexOf('hank ') != -1) {
isbnis=preis[0].split('hank ')[eval(-1 + preis[0].split('hank ').length)].split(' by ')[0]; //.split(' ');
preis=preis[0].split('hank ')[eval(-1 + preis[0].split('hank ').length)].split(' by ')[1].trim().split(' ');
if (preis.length > 1) {
for (jisbn=0; jisbn<preis.length; jisbn++) {
if (preis[jisbn].substring(0,1) == preis[jisbn].substring(0,1).toUpperCase() || preis[jisbn].length <= 2) {
authoris+=(authord + preis[jisbn]);
authord=' ';
} else if (authoris != '') {
ourps[iourps].innerHTML=ourps[iourps].innerHTML.replace(authoris, "<a target=_blank title='ISBN lookup' href='https://isbnsearch.org/search?s=" + authoris.replace(/\&\;/g,'and').replace(/\&/g,'and').replace(/\ /g,'+') + "'>" + authoris + "</a>");
authoris='';
authord='';
}
}
if (authoris != '') {
//document.title+=' ...' + authoris;
ourps[iourps].innerHTML=ourps[iourps].innerHTML.replace(authoris, "<a target=_blank title='ISBN lookup' href='https://isbnsearch.org/search?s=" + authoris.replace(/\&\;/g,'and').replace(/\&/g,'and').replace(/\ /g,'+') + "'>" + authoris + "</a>");
//document.title+=' ...' + authoris;
}
}
} else if (preis[0].indexOf('hanks to ') != -1) {
isbnis=preis[0].trim().split('hanks to ')[eval(-1 + preis[0].split('hanks to ').length)]; //.split(' ');
} else if (preis[0].indexOf('hank ') != -1) {
isbnis=preis[0].trim().split('hank ')[eval(-1 + preis[0].split('hank ').length)]; //.split(' ');
}
if (isbnis != '') {
okays="";
jisbn=0;
preis=isbnis.split(' ');
while (okays == "" && jisbn < preis.length && preis[jisbn].substring(0,1) == preis[jisbn].substring(0,1).toLowerCase()) {
if (okays == "" && isbnis.indexOf(preis[jisbn] + " ") != -1) {
isbnis=isbnis.replace(preis[jisbn] + " ","");
jisbn++;
} else {
okays="n";
jisbn++;
}
}
if (isbnis != '') {
//document.title+=' +++' + isbnis;
if (ourps[iourps].innerHTML.indexOf(isbnis) != -1) {
//document.title+=' +++' + isbnis;
//ourps[iourps].innerHTML=ourps[iourps].innerHTML.replace(isbnis, "<a target=_blank title='ISBN lookup' href='https://isbnsearch.org/search?s=" + isbnis.replace(/\&\;/g,'and').replace(/\&/g,'and').replace(/\ /g,'+') + "'>" + isbnis + "</a>");
ourps[iourps].innerHTML=ourps[iourps].innerHTML.replace(isbnis, " .. <a target=_blank title='ISBN lookup' href='HTTP://www.lookupbyisbn.com/Search/Book/" + isbnis.replace(/\&\;/g,'and').replace(/\&/g,'and').replace(/\ /g,'+') + "/1'><label>" + isbnis + "</label></a>");
//document.title+=' +++' + isbnis;
}
}
}
}
}
}
}
jbisi=0;
jiisi=0;
jpisi=0;
if (bisi[jbisi] != -1) {
ourps=document.getElementsByTagName("strong"); // ourps=document.getElementsByTagName("b");
for (iourps=0; iourps<ourps.length; iourps++) {
if (iourps == bisi[jbisi]) {
ourps[iourps].className = "dyk dykstrong"; // "dyk dykb";
jbisi++;
}
}
}
if (iisi[jiisi] != -1) {
ourps=document.getElementsByTagName("i");
for (iourps=0; iourps<ourps.length; iourps++) {
if (iourps == iisi[jiisi]) {
ourps[iourps].className = "dyk dyki";
jiisi++;
}
}
}
if (pisi[jpisi] != -1) {
ourps=document.getElementsByTagName("p");
for (iourps=0; iourps<ourps.length; iourps++) {
if (iourps == pisi[jpisi]) {
ourps[iourps].className = "dyk dykp";
jpisi++;
}
}
}
}
function precalpass() {
var cdes=document.getElementsByTagName('code');
var blinearrs=[], jit=0, blrecs=[], wasblr='', toblr='', kit=0, delimx=String.fromCharCode(10);
//document.title=document.URL;
//if (document.URL.indexOf('multiple-background-image-primer-tutorial') != -1) {
// alert(cdes.length);
//} // |y<p>function_topViaD
for (var itdzs=0; itdzs<cdes.length; itdzs++) { // thanks to https://stackoverflow.com/questions/784539/how-do-i-replace-all-line-breaks-in-a-string-with-br-elements
//if (document.URL.indexOf('multiple-background-image-primer-tutorial') != -1) {
// alert('|' + cdes[itdzs].innerHTML.substring(0,20).replace(String.fromCharCode(13),'z').replace(String.fromCharCode(10),'y').replace(/\ /g,'_'));
//}
if (('' + cdes[itdzs].innerHTML + ' ').substring(0,2) == (String.fromCharCode(13) + String.fromCharCode(10))) {
cdes[itdzs].innerHTML='<br>' + cdes[itdzs].innerHTML.substring(2);
}
if (('' + cdes[itdzs].innerHTML + ' ').substring(0,1) == (String.fromCharCode(10))) {
cdes[itdzs].innerHTML=' <br>' + String.fromCharCode(10) + cdes[itdzs].innerHTML.substring(1);
//if (document.URL.indexOf('multiple-background-image-primer-tutorial') != -1) {
// alert('?' + cdes[itdzs].innerHTML.substring(0,20).replace(String.fromCharCode(13),'z').replace(String.fromCharCode(10),'y').replace(/\ /g,'_'));
//}
}
if (cdes[itdzs].innerHTML.replace(/(?:\r\n|\r|\n)/g, '<br>') != cdes[itdzs].innerHTML) {
cdes[itdzs].innerHTML=cdes[itdzs].innerHTML.replace(/(?:\r\n|\r|\n)/g, '<br>');
}
while (cdes[itdzs].innerHTML.indexOf(String.fromCharCode(13) + String.fromCharCode(10) + String.fromCharCode(13) + String.fromCharCode(10)) != -1) {
cdes[itdzs].innerHTML=cdes[itdzs].innerHTML.replace(String.fromCharCode(13) + String.fromCharCode(10) + String.fromCharCode(13) + String.fromCharCode(10), String.fromCharCode(13) + String.fromCharCode(10) + '<br>' + String.fromCharCode(13) + String.fromCharCode(10));
//if (document.URL.indexOf('multiple-background-image-primer-tutorial') != -1) {
// alert('?'); // + cdes[itdzs].innerHTML.substring(0,20).replace(String.fromCharCode(13),'z').replace(String.fromCharCode(10),'y').replace(/\ /g,'_'));
//}
}
blinearrs=cdes[itdzs].innerHTML.split('<b>');
//if (document.URL.indexOf('multiple-background-image-primer-tutorial') != -1) {
// alert('?!' + blinearrs.length + ' ... ' + blinearrs[0]);
//}
for (jit=eval(-1 + eval('' + blinearrs.length)); jit>=0; jit--) {
delimx='<br>';
if (eval('' + blinearrs[jit].split('</b>')[0].split(delimx).length) > 6) {
blrecs=blinearrs[jit].split('</b>')[0].split(delimx);
wasblr='<b>' + blinearrs[jit].split('</b>')[0] + '</b>';
toblr=wasblr;
for (kit=1; kit<blrecs.length; kit++) {
if (blrecs[kit].replace(String.fromCharCode(13),'').trim() != '') {
toblr=toblr.replace(blrecs[kit], '</b><b>' + blrecs[kit]);
}
}
if (cdes[itdzs].innerHTML.indexOf(wasblr) != -1) {
cdes[itdzs].innerHTML=cdes[itdzs].innerHTML.replace(wasblr, toblr);
//alert(toblr);
} //else {
//alert('OoPs');
//}
}
}
blinearrs=cdes[itdzs].innerHTML.split('<strong>');
//if (document.URL.indexOf('multiple-background-image-primer-tutorial') != -1) {
// alert('!?' + blinearrs.length + ' ... ' + blinearrs[0]);
//}
for (jit=eval(-1 + eval('' + blinearrs.length)); jit>=0; jit--) {
//delimx=String.fromCharCode(10);
if (eval('' + blinearrs[jit].split('</strong>')[0].split(delimx).length) > 6) {
blrecs=blinearrs[jit].split('</strong>')[0].split(delimx);
wasblr='<strong>' + blinearrs[jit].split('</strong>')[0] + '</strong>';
toblr=wasblr;
for (kit=1; kit<blrecs.length; kit++) {
if (blrecs[kit].replace(String.fromCharCode(13),'').trim() != '') {
toblr=toblr.replace(blrecs[kit], '</strong><strong>' + blrecs[kit]);
}
}
if (cdes[itdzs].innerHTML.indexOf(wasblr) != -1) {
cdes[itdzs].innerHTML=cdes[itdzs].innerHTML.replace(wasblr, toblr);
//alert(toblr);
} //else {
//alert('OoPs');
//}
}
}
if (cdes[itdzs].innerHTML.trim() == '') { cdes[itdzs].style.display='none'; }
}
}
function calendar_pass() {
var thisc='', thiscc='', thist='', jiicp=0, thisdate='', thistime='', nexttime='', thishour=0, nexthour=0, thisminute='', thissecond='00', thisurl='';
//document.title=document.URL;
var h1cps=docgetclass('entry-title','*'); //document.getElementsByTagName('h2');
var tdzs=document.getElementsByTagName('td'), itdzs=0;
var cps=document.getElementsByTagName('a');
var mfnd=false, washref='';
var cdes=document.getElementsByTagName('code');
for (itdzs=0; itdzs<cdes.length; itdzs++) { // thanks to https://stackoverflow.com/questions/784539/how-do-i-replace-all-line-breaks-in-a-string-with-br-elements
if (('' + cdes[itdzs].innerHTML + ' ').substring(0,2) == (String.fromCharCode(13) + String.fromCharCode(10))) {
cdes[itdzs].innerHTML=cdes[itdzs].innerHTML.substring(2);
}
if (('' + cdes[itdzs].innerHTML + ' ').substring(0,1) == (String.fromCharCode(10))) {
cdes[itdzs].innerHTML=cdes[itdzs].innerHTML.substring(1);
}
if (cdes[itdzs].innerHTML.replace(/(?:\r\n|\r|\n)/g, '<br>') != cdes[itdzs].innerHTML) {
cdes[itdzs].innerHTML=cdes[itdzs].innerHTML.replace(/(?:\r\n|\r|\n)/g, '<br>');
}
if (cdes[itdzs].innerHTML.trim() == '') { cdes[itdzs].style.display='none'; }
}
for (var ijcal=0; ijcal<cps.length; ijcal++) { // new calendar links background image
if (('' + cps[ijcal].outerHTML).split('>')[0].indexOf('audioytplay') == -1 && ('' + cps[ijcal].href).indexOf('//www.youtube.com/watch?v=e9_7GcQeiqw&t=2m37s') != -1) {
cps[ijcal].href='//www.rjmprogramming.com.au/HTMLCSS/karaoke_youtube_api.htm?youtubeid=e9_7GcQeiqw&youtube_duration=201.361&email=&email=&emoji=on&c0=on&i0=157&j0=162&i1=&j1=&i2=&j2=&i3=&j3=&i4=&j4=&i5=&j5=&i6=&j6=&i7=&j7=&i8=&j8=&i9=&j9=&i10=&j10=&i11=&j11=&i12=&j12=&i13=&j13=&i14=&j14=&i15=&j15=&i16=&j16=&i17=&j17=&i18=&j18=&i19=&j19=&i20=&j20=&i21=&j21=&i22=&j22=&i23=&j23=&i24=&j24=&i25=&j25=&i26=&j26=&i27=&j27=&i28=&j28=&i29=&j29=';
}
if (('' + cps[ijcal].outerHTML).split('>')[0].indexOf('audioytplay') == -1 && ('' + cps[ijcal].href).indexOf('//www.youtube.com/watch?v=e9_7GcQeiqw&t=157s') != -1) {
cps[ijcal].href='//www.rjmprogramming.com.au/HTMLCSS/karaoke_youtube_api.htm?youtubeid=e9_7GcQeiqw&youtube_duration=201.361&email=&email=&emoji=on&c0=on&i0=157&j0=162&i1=&j1=&i2=&j2=&i3=&j3=&i4=&j4=&i5=&j5=&i6=&j6=&i7=&j7=&i8=&j8=&i9=&j9=&i10=&j10=&i11=&j11=&i12=&j12=&i13=&j13=&i14=&j14=&i15=&j15=&i16=&j16=&i17=&j17=&i18=&j18=&i19=&j19=&i20=&j20=&i21=&j21=&i22=&j22=&i23=&j23=&i24=&j24=&i25=&j25=&i26=&j26=&i27=&j27=&i28=&j28=&i29=&j29=';
}
if (('' + cps[ijcal].outerHTML).split('>')[0].indexOf('audioytplay') == -1 && ('' + cps[ijcal].href).indexOf('//www.youtube.com/watch?v=g2Y_p8-LbY4&t=1m25s1ddP') != -1) {
cps[ijcal].href='//www.rjmprogramming.com.au/HTMLCSS/karaoke_youtube_api.htm?youtubeid=g2Y_p8-LbY4&youtube_duration=189.781&email=&email=&emoji=on&c0=on&i0=85&j0=189.781&i1=&j1=&i2=&j2=&i3=&j3=&i4=&j4=&i5=&j5=&i6=&j6=&i7=&j7=&i8=&j8=&i9=&j9=&i10=&j10=&i11=&j11=&i12=&j12=&i13=&j13=&i14=&j14=&i15=&j15=&i16=&j16=&i17=&j17=&i18=&j18=&i19=&j19=&i20=&j20=&i21=&j21=&i22=&j22=&i23=&j23=&i24=&j24=&i25=&j25=&i26=&j26=&i27=&j27=&i28=&j28=&i29=&j29=';
}
if (('' + cps[ijcal].outerHTML).split('>')[0].indexOf('audioytplay') == -1 && ('' + cps[ijcal].href).indexOf('//www.youtube.com/watch?v=0TiqXFssKMY') != -1) {
cps[ijcal].href='//www.rjmprogramming.com.au/HTMLCSS/karaoke_youtube_api.htm?youtubeid=0TiqXFssKMY&youtube_duration=17.0&email=&email=&emoji=on&c0=on&i0=0&j0=17.000&i1=&j1=&i2=&j2=&i3=&j3=&i4=&j4=&i5=&j5=&i6=&j6=&i7=&j7=&i8=&j8=&i9=&j9=&i10=&j10=&i11=&j11=&i12=&j12=&i13=&j13=&i14=&j14=&i15=&j15=&i16=&j16=&i17=&j17=&i18=&j18=&i19=&j19=&i20=&j20=&i21=&j21=&i22=&j22=&i23=&j23=&i24=&j24=&i25=&j25=&i26=&j26=&i27=&j27=&i28=&j28=&i29=&j29=';
}
if (('' + cps[ijcal].outerHTML).split('>')[0].indexOf('audioytplay') == -1 && ('' + cps[ijcal].href).indexOf('//www.youtube.com/watch?v=uhiCFdWeQfA') != -1) {
cps[ijcal].href='//www.rjmprogramming.com.au/HTMLCSS/karaoke_youtube_api.htm?youtubeid=uhiCFdWeQfA&youtube_duration=75.221&email=&email=&emoji=on&c0=on&i0=0&j0=75.221&i1=&j1=&i2=&j2=&i3=&j3=&i4=&j4=&i5=&j5=&i6=&j6=&i7=&j7=&i8=&j8=&i9=&j9=&i10=&j10=&i11=&j11=&i12=&j12=&i13=&j13=&i14=&j14=&i15=&j15=&i16=&j16=&i17=&j17=&i18=&j18=&i19=&j19=&i20=&j20=&i21=&j21=&i22=&j22=&i23=&j23=&i24=&j24=&i25=&j25=&i26=&j26=&i27=&j27=&i28=&j28=&i29=&j29=';
}
if (('' + cps[ijcal].outerHTML).split('>')[0].indexOf('audioytplay') == -1 && ('' + cps[ijcal].href).indexOf('//www.youtube.com/watch?v=PtR4cWb4HNg') != -1) {
cps[ijcal].href='//www.rjmprogramming.com.au/HTMLCSS/karaoke_youtube_api.htm?youtubeid=PtR4cWb4HNg&youtube_duration=5.0&email=&email=&emoji=on&c0=on&i0=0&j0=5.000&i1=&j1=&i2=&j2=&i3=&j3=&i4=&j4=&i5=&j5=&i6=&j6=&i7=&j7=&i8=&j8=&i9=&j9=&i10=&j10=&i11=&j11=&i12=&j12=&i13=&j13=&i14=&j14=&i15=&j15=&i16=&j16=&i17=&j17=&i18=&j18=&i19=&j19=&i20=&j20=&i21=&j21=&i22=&j22=&i23=&j23=&i24=&j24=&i25=&j25=&i26=&j26=&i27=&j27=&i28=&j28=&i29=&j29=';
}
// Check for GETME links for .htm and no diff.php mention
if (('' + cps[ijcal].href).toLowerCase().indexOf('.htm') != -1 && ('' + cps[ijcal].href).indexOf('GETME') != -1 && ('' + cps[ijcal].href).indexOf('diff.php') == -1) {
if (cps[ijcal].innerHTML.replace('(oldest)', 'Older ').replace('Newer ', 'Older ').indexOf('Older ') == -1) {
washref=('' + cps[ijcal].href);
cps[ijcal].href='//www.rjmprogramming.com.au/PHP/Geographicals/diff.php?zero=' + encodeURIComponent(washref) + '#seehtmllook=n';
}
}
if (eval('' + ('' + cps[ijcal].href).split('/').length) == 8) {
if (eval('' + ('' + cps[ijcal].href).split('/')[4].length) == 4) {
mfnd=false;
for (itdzs=0; itdzs<tdzs.length; itdzs++) {
if (tdzs[itdzs].innerHTML.replace(String.fromCharCode(10),'').indexOf('<code') == 0 && navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i)) {
if (tdzs[itdzs].outerHTML.indexOf('-webkit-overflow-scrolling') == -1) {
if (1 == 1) {
tdzs[itdzs].innerHTML=tdzs[itdzs].innerHTML.replace('<code>','<code style="-webkit-overflow-scrolling:touch;overflow:scroll;">').replace('<code style="','<code style="-webkit-overflow-scrolling:touch;overflow:scroll;');
} else {
tdzs[itdzs].WebkitOverflowScrolling='touch';
tdzs[itdzs].Overflow='scroll';
}
}
}
if (tdzs[itdzs].innerHTML == cps[ijcal].outerHTML) {
tdzs[itdzs].className=cps[ijcal].title.replace(/\ /g,'_');
tdzs[itdzs].onclick=function(evt){ window.open('//www.rjmprogramming.com.au/ITblog/' + evt.target.innerHTML.split(' title="')[1].split('"')[0].toLowerCase().replace(String.fromCharCode(35), "").replace(".", "").replace(".", "").replace(".", "").replace("+", "").replace("+", "").replace("'", "").replace('%27','').replace(/\//g, "-").replace(/,/g, "").replace("---","-").replace("---","-").replace(/--/g,"-").replace(" ","-").replace(" ","-").replace(" ","-").replace(" ","-").replace(" ","-").replace(" ","-").replace(" ","-").replace(" ","-").replace(" ","-").replace(" ","-").replace(" ","-").replace(" ","-").replace(" ","-").replace(" ","-"), '_blank', 'top=50,left=50,width=1200,height=900'); };
mfnd=true;
}
}
if (!mfnd) {
cps[ijcal].onmouseover=function(evt){ var pbs=('' + evt.target.href).split('/'); if (document.head.innerHTML.indexOf('[title=' + "'" + evt.target.title + "'" + ']') == -1) { document.head.innerHTML+=' <style> [title=' + "'" + evt.target.title + "'" + '] { ' + ' background:url(//www.rjmprogramming.com.au/ITblog/500/500/?random=178654345&mustbedated=' + pbs[4] + pbs[5] + pbs[6] + ') center center no-repeat; background-size:cover; } </style> '; } };
} else {
cps[ijcal].onmouseover=function(evt){ var pbs=('' + evt.target.href).split('/'); if (document.head.innerHTML.indexOf(' .' + evt.target.title.replace(/\ /g,'_') + ' {') == -1) { document.head.innerHTML+=' <style> .' + evt.target.title.replace(/\ /g,'_') + ' { ' + ' background:url(//www.rjmprogramming.com.au/ITblog/500/500/?random=178654345&mustbedated=' + pbs[4] + pbs[5] + pbs[6] + ') center center no-repeat !important; background-size:cover; } </style> '; } };
}
}
}
}
//for (itdzs=0; itdzs<cdes.length; itdzs++) {
// cdes[itdzs].className='notranslate';
// cdes[itdzs].translation='no';
//}
for (var iicp=0; iicp<h1cps.length; iicp++) {
thist=h1cps[iicp].innerHTML.split(' <')[0].split('<')[0];
thisurl='';
if (h1cps[iicp].innerHTML.indexOf(' id="d') != -1) {
thisurl="//www.rjmprogramming.com.au/ITblog/" + h1cps[iicp].innerHTML.split(' id="d')[1].split('"')[0];
}
if (jiicp < cps.length) {
while (jiicp < cps.length && (cps[jiicp].innerHTML.indexOf(' content="') == -1 || cps[jiicp].innerHTML.indexOf('') != -1)) {
jiicp++;
}
if (jiicp < cps.length) {
if (cps[jiicp].title.indexOf(':') != -1) {
thisdate=cps[jiicp].innerHTML.split(' content="')[1].split('"')[0].replace('-','').replace('-','');
thishour=eval(cps[jiicp].title.split(':')[0]);
nexthour=thishour;
if (cps[jiicp].title.indexOf(' pm') != -1 && thishour < 12) thishour+=12;
if (thishour < 12) {
nexthour+=12;
} else if (nexthour < 23) {
nexthour=23;
}
thisminute=cps[jiicp].title.split(':')[1].split(' ')[0];
thistime=':' + ('0' + thishour).slice(-2) + thisminute + thissecond;
nexttime=':' + ('0' + nexthour).slice(-2) + thisminute + thissecond;
//alert(thist + ' ' + thisurl + ' ' + thisdate + thistime);
//alert("//www.rjmprogramming.com.au/PHP/ics_attachment.php?id=0&inhouse_ynft=y&eventwords=test&title=" + encodeURIComponent(thist) + '&stage=' + encodeURIComponent(h1cps[iicp].innerHTML.split(' id="d')[1].split('"')[0]) + '&datestart=' + encodeURIComponent(thisdate + thistime) + '&dateend=' + encodeURIComponent(thisdate + thistime) + '&emode=Address&address=Address&description=Description&url=' + encodeURIComponent(thisurl));
//window.open("//www.rjmprogramming.com.au/PHP/ics_attachment.php?id=0&tz=" + encodeURIComponent("Australia/Perth,Australia/Perth") + "&inhouse_ynft=y&eventwords=test&title=" + encodeURIComponent(thist) + '&stage=' + encodeURIComponent(h1cps[iicp].innerHTML.split(' id="d')[1].split('"')[0]) + '&datestart=' + encodeURIComponent(thisdate + thistime) + '&dateend=' + encodeURIComponent(thisdate + nexttime) + '&emode=AndTo&address=' + encodeURIComponent('rmetcalfe15@gmail.com') + '&description=Description&url=' + encodeURIComponent(thisurl), '_blank', 'top=45,left=55,width=600,height=600');
thisc="//www.rjmprogramming.com.au/PHP/ics_attachment.php?id=0&tz=" + encodeURIComponent("Australia/Perth,Australia/Perth") + "&inhouse_ynft=y&eventwords=test&title=" + encodeURIComponent(thist) + '&stage=' + encodeURIComponent(h1cps[iicp].innerHTML.split(' id="d')[1].split('"')[0]) + '&datestart=' + encodeURIComponent(thisdate + thistime) + '&dateend=' + encodeURIComponent(thisdate + nexttime) + '&emode=To&address=emailAddress&description=Description&url=' + encodeURIComponent(thisurl);
thiscc="//www.rjmprogramming.com.au/PHP/ics_attachment.php?id=0&tz=" + encodeURIComponent("Australia/Perth,Australia/Perth") + "&inhouse_ynft=y&eventwords=test&title=" + encodeURIComponent(thist) + '&stage=' + encodeURIComponent(h1cps[iicp].innerHTML.split(' id="d')[1].split('"')[0]) + '&datestart=' + encodeURIComponent(thisdate + thistime) + '&dateend=' + encodeURIComponent(thisdate + nexttime) + '&emode=Address&address=&description=Description&url=' + encodeURIComponent(thisurl);
cps[jiicp].innerHTML+=' <a id="oe' + h1cps[iicp].innerHTML.split(' id="d')[1].split('"')[0] + '" title="Change order of blog posts (now newest to oldest) to oldest through to newest (like a book)" target=_blank style="text-decoration:none;cursor:pointer;" onclick="hrrearrange(this);">🔀</a>';
cps[jiicp].innerHTML+=' <a id="ce' + h1cps[iicp].innerHTML.split(' id="d')[1].split('"')[0] + '" title="Create iCal Calendar Event ' + thist + '" target=_blank href="' + "//www.rjmprogramming.com.au/PHP/ics_attachment.php?id=0&tz=" + encodeURIComponent("Australia/Perth,Australia/Perth") + "&inhouse_ynft=y&eventwords=test&title=" + encodeURIComponent(thist) + '&stage=' + encodeURIComponent(h1cps[iicp].innerHTML.split(' id="d')[1].split('"')[0]) + '&datestart=' + encodeURIComponent(thisdate + thistime) + '&dateend=' + encodeURIComponent(thisdate + nexttime) + '&emode=AndTo&address=' + encodeURIComponent('rmetcalfe15@gmail.com') + '&description=Description&url=' + encodeURIComponent(thisurl) + '">📅</a>';
cps[jiicp].innerHTML+=' <iframe id="ice' + h1cps[iicp].innerHTML.split(' id="d')[1].split('"')[0] + '" src="about:blank" style="display:none;width:1px;height:1px;"></iframe><a title="Email and Create iCal Calendar Event ' + thist + '" target=_blank href="#" onclick=" var emtwo=prompt(' + "'" + 'Who do we email to?' + "','fillin@email.in'); document.getElementById('ice" + h1cps[iicp].innerHTML.split(' id="d')[1].split('"')[0] + "').src='" + thisc + "'.replace(/emailAddress/g, encodeURIComponent(emtwo)); window.open('" + thiscc + "','_blank'); \">➕</a>";
cps[jiicp].innerHTML+=' <a id="ee' + h1cps[iicp].innerHTML.split(' id="d')[1].split('"')[0] + '" title="Email iCal Calendar Event ' + thist + '" target=_blank href="#" onclick=" var em=prompt(' + "'" + 'Who do we email to?' + "','fillin@email.in'); window.open('" + thisc + "'.replace(/emailAddress/g, encodeURIComponent(em)),'_blank'); \">📧</a>";
jiicp+=3;
cps=document.getElementsByTagName('a');
}
}
}
}
}
function hrrearrange(ahrro) {
var aid='' + ahrro.id;
var honetoif='';
var firsttitle='';
var lasttitle='';
var selindex=' <select class=ptpico style="display:inline-block;vertical-align:top;" size=1 title="Posting thread posts in chronological order" onchange="location.href=' + "'" + '#' + "'" + ' + this.value + ' + "'" + '#andabit=-70' + "'" + '; var tsels=docgetclass(' + "'" + 'ptpico' + "'" + ', ' + "'" + 'select' + "'" + '); for (var iij=0; iij<tsels.length; iij++) { tsels[iij].value=this.value; }"><option class=copt value=detrefresh></option></select>';
var appendixnum=0;
if (navigator.userAgent.match(/iPad/i)) {
//alert('here at hrrearrange');
}
if (hrsa.length == 0) {
lasttitle=document.getElementsByTagName('h1')[0].innerHTML.split(' <')[0];
if (navigator.userAgent.match(/iPad/i)) {
//alert('lasttitle=' + lasttitle + ' ... ' + document.getElementsByTagName('h1').length);
}
//alert(lasttitle);
var psdfs=document.getElementById('content').innerHTML.split('<div i' + 'd="post-');
if (psdfs.length > 1 && cdivid == 'cont' + 'ent') { cdivid='post-' + psdfs[1].split('"')[0]; }
if (navigator.userAgent.match(/iPad/i)) {
//alert(cdivid);
}
hroh='<hr title=" ... welcome to the long hover functionality that shows Blog Post regarding Horizontal Rules">';
hrsa=document.getElementById(cdivid).innerHTML.split(hroh);
if (navigator.userAgent.match(/iPad/i)) {
//alert(hroh + ' ... ' + hrsa.length);
}
if (hrsa.length == 1) { hroh='<hr />'; hrsa=document.getElementById(cdivid).innerHTML.split(hroh); }
if (navigator.userAgent.match(/iPad/i)) {
//alert(hroh + ' ... ' + hrsa.length);
}
if (hrsa.length == 1) { hroh='<hr>'; hrsa=document.getElementById(cdivid).innerHTML.split(hroh); }
if (navigator.userAgent.match(/iPad/i)) {
//alert(hroh + ' ... ' + hrsa.length);
}
if (hrsa.length == 1) { hroh='<p id='; hrsa=document.getElementById(cdivid).innerHTML.split(hroh); }
if (navigator.userAgent.match(/iPad/i)) {
//alert(hroh + ' ... ' + hrsa.length);
}
}
if (hrsa.length <= 1) {
if (navigator.userAgent.match(/iPad/i)) {
//alert('no hr found ' + document.getElementById(cdivid).innerHTML.split('<p id=').length);
if (document.getElementById(cdivid).innerHTML.indexOf('Previous relevant ') != -1) {
//alert(document.getElementById(cdivid).innerHTML.split('Previous relevant ')[0].slice(-300));
}
}
}
if (hrsa.length > 1) {
var ftit='Change order of blog posts (now newest to oldest) to oldest through to newest (like a book)';
var ntit='Change order of blog posts (now oldest to newest like a book) to newest through to oldest (like a feed)';
if (divcih == '') { divcih=document.getElementById(cdivid).innerHTML; }
console.log('divcih=' + divcih);
if (navigator.userAgent.match(/iPad/i)) {
//alert('divcih=' + divcih);
}
if (ahrro.title == ftit) { // change to oldest to newest
//alert(0);
if (antidivcih != '') {
document.getElementById('drefresh').style.display='inline-block';
if (navigator.userAgent.match(/iPad/i)) {
//alert('Antidivcih=' + antidivcih);
}
document.getElementById('drefresh').innerHTML=antidivcih;
} else {
//if (document.getElementById('btutsm')) {
if (document.getElementById('stutsm')) {
document.getElementById('istutsm').src='//www.rjmprogramming.com.au/ITblog/bytheby.php?populate=stutsm&extraget=y';
setTimeout(pdgeistutsm, 5000); //alert(document.getElementById('stutsm').innerHTML);
}
//}
for (var ihj=eval(-1 + hrsa.length); ihj>=0; ihj--) {
if (hrsa[ihj].indexOf('<p>If this was interesting you may be interested in ') >= 0 && hrsa[ihj].indexOf('<p>If this was interesting you may be interested in ') < 9) {
appendixnum++;
}
}
if (navigator.userAgent.match(/iPad/i)) {
//alert('appendixnum=' + appendixnum);
}
var newcc='';
var newp='';
//twobits=hrsa[0].split('<div i' + 'd="post')[0];
//if (twobits.trim() != '') { hrsa[0]=hrsa[0].replace(twobits, ''); newp=''; }
var jih=0;
for (jih=eval(-1 + eval(eval('' + hrsa.length)) / 1); jih>=0; jih--) {
//alert(hroh + ' ' + hrsa.length);
//alert(eval(eval(eval('' + hrsa.length) - appendixnum) - jih - 1));
if (hrsa[jih].indexOf('<p>If this was interesting you may be interested in ') >= 0 && hrsa[jih].indexOf('<p>If this was interesting you may be interested in ') < 9) {
newcc=newcc;
} else {
//alert('hrsa[' + eval(eval(eval('' + hrsa.length) - appendixnum) - jih - 1) + ']');
if (firsttitle == '' && hrsa[jih].indexOf(' relevant ') != -1 && hrsa[jih].indexOf(' is shown ') != -1 && hrsa[jih].indexOf('<a ') != -1) {
firsttitle=hrsa[jih].split(' relevant ')[1].split('>')[1].split('>')[0];
if (navigator.userAgent.match(/iPad/i)) {
//alert('firsttitle=' + firsttitle + ' ... ' + document.getElementsByTagName('h1').length);
}
selindex=selindex.replace('></option>', '>' + firsttitle + '</option>');
}
if (hrsa[jih].indexOf('<h1') != -1 && hrsa[jih].indexOf('<iframe') != -1) {
honetoif='<h1' + hrsa[jih].split('<h1')[1].split('<iframe')[0];
if (navigator.userAgent.match(/iPad/i)) {
//alert('honetoif=' + honetoif + ' ... ' + document.getElementsByTagName('h1').length);
}
newcc+=newp + hrsa[jih].replace(honetoif, '<p>Next relevant <a target=_blank title="' + lasttitle + '" href="' + document.URL + '">' + lasttitle + '</a> is shown below.</p>').replace('</frame>', '<iframe><h1>');
honetoif+='</h1>';
if (navigator.userAgent.match(/iPad/i)) {
//alert('newcc=' + newcc + ' ... ' + document.getElementsByTagName('h1').length);
}
} else {
if (hrsa[jih].indexOf('<p id="') != -1) {
if (hrsa[jih].split('<p id="')[1].indexOf('<a ') != -1) {
if (selindex.indexOf('>' + hrsa[jih].split('<p id="')[1].split('<a ')[1].split('>')[1].split('<')[0] + '<') == -1) {
selindex=selindex.replace('</select>', '<option class=copt value="dettop' + hrsa[jih].split('<p id="')[1].split('"')[0] + '">' + hrsa[jih].split('<p id="')[1].split('<a ')[1].split('>')[1].split('<')[0] + '</option></select>');
selindex=selindex.replace(' size=' + eval(-2 + eval('' + selindex.split('</option>').length)), ' size=' + eval(-1 + eval('' + selindex.split('</option>').length)));
newcc+=newp + hrsa[jih].replace('<p id="', '<p id="dettop');
} else {
newcc+=newp + hrsa[jih];
}
} else {
newcc+=newp + hrsa[jih];
}
} else {
newcc+=newp + hrsa[jih];
}
}
}
//alert('appendixnum=' + appendixnum + ' hrsa.length=' + hrsa.length + ' Newcc=' + newcc);
newp=hroh;
//if (jih == eval(-1 + eval(eval('' + hrsa.length) - appendixnum) / 1)) {
// for (var jjih=eval(eval(eval('' + hrsa.length) - appendixnum) / 1); jjih<hrsa.length; jjih++) {
// newcc+=newp + hrsa[jjih];
// newp=hroh;
// }
//}
}
for (jih=0; jih<eval(eval(eval('' + hrsa.length) - appendixnum) / 1); jih++) {
//alert(hroh + ' ' + hrsa.length);
//alert(eval(eval(eval('' + hrsa.length) - appendixnum) - jih - 1));
if (hrsa[jih].indexOf('<p>If this was interesting you may be interested in ') >= 0 && hrsa[jih].indexOf('<p>If this was interesting you may be interested in ') < 9) {
//alert('hrsa[' + eval(eval(eval('' + hrsa.length) - appendixnum) - jih - 1) + ']');
newcc+=newp + hrsa[jih];
} else {
newcc=newcc;
}
//alert('appendixnum=' + appendixnum + ' hrsa.length=' + hrsa.length + ' Newcc=' + newcc);
newp=hroh;
//if (jih == eval(-1 + eval(eval('' + hrsa.length) - appendixnum) / 1)) {
// for (var jjih=eval(eval(eval('' + hrsa.length) - appendixnum) / 1); jjih<hrsa.length; jjih++) {
// newcc+=newp + hrsa[jjih];
// newp=hroh;
// }
//}
}
//alert('twobits=' + twobits);
//alert('newcc=' + newcc);
if (1 == 11) {
var wwo=window.open('', '_blank', 'top=100,left=100,width=800,height=900');
wwo.document.write('<body>' + document.body.innerHTML.replace(divcih, twobits.replace(/\ onload\=/g, ' data-onload=') + newcc.replace(/\ onload\=/g, ' data-onload=')) + '</body>');
//document.body.innerHTML=document.body.innerHTML.replace(divcih, twobits.replace(/\ onload\=/g, ' data-onload=') + newcc.replace(/\ onload\=/g, ' data-onload='));
} else {
onlok=false;
//alert('ready?');
//document.getElementById('drefresh').innerHTML=twobits.replace(/\ onload\=/g, ' data-onload=') + newcc.replace(/\ onload\=/g, ' data-onload=');
document.getElementById('drefresh').style.display='inline-block';
document.getElementById('drefresh').style.backgroundColor='white';
var firstpoh='<p' + newcc.split('<p')[1].split('>')[0] + '>';
antidivcih=document.getElementById(aid).outerHTML.replace(aid, 'draid').replace(ftit, ntit).replace('hrr', 'setTimeout(lhcontentlater, 2000); hrr') + honetoif.replace(lasttitle, firsttitle) + twobits + newcc.replace('</p>', '').replace(firstpoh + 'Previous relevant ', '<details id=detrefresh open><summary>First of thread (reading like a chronological posting thread) relevant ').replace(/Previous\ relevant\ /g, 'Next relevant ').replace(/\ is\ shown\ below\./g, '</summary> is shown below. ' + document.getElementById(aid).outerHTML.replace(aid, 'ddraid').replace(ftit, ntit).replace('hrr', 'setTimeout(lhcontentlater, 2000); hrr') + selindex) + '</details><br><hr title="Chronological book above and newest to oldest feed below" style="color:rgba(255,0,0,0.8);height:40px;"></hr><br>';
console.log('antidivcih=' + antidivcih);
if (navigator.userAgent.match(/iPad/i)) {
//alert('antidivcih=' + antidivcih);
}
//alert('here');
if (!document.getElementById('drefresh')) { alert('why'); }
if (navigator.userAgent.match(/iPad/i)) {
//alert('AntiDivcih=' + antidivcih);
}
onlok=false; // new
//alert('prethere ' + document.URL.split('#')[0] + '?lastdrefresh=y');
document.getElementById('drefresh').innerHTML=antidivcih;
//alert('there');
//alert(newcc.replace(firstpoh + 'Previous relevant ', '<p>First of thread relevant ').replace(/Previous\ relevant\ /g, 'Next relevant '));
//document.getElementById('drefresh').innerHTML=document.getElementById(aid).outerHTML.replace(aid, 'draid').replace(ftit, ntit) + honetoif.replace(lasttitle, firsttitle) + twobits + newcc.replace(firstpoh + 'Previous relevant ', '<p>First of thread relevant ').replace(/Previous\ relevant\ /g, 'Next relevant ');
//alert('read now');
}
}
//alert('XHere');
document.getElementById(aid).title=ntit;
var jform = new FormData();
var jxhr = new XMLHttpRequest();
jform.append('lastdrefresh', antidivcih);
jxhr.open('post', document.URL.split('/ITblog')[0] + '/ITblog/toggle_download.php', false);
jxhr.send(jform);
wodivc=window.open(document.URL.split('#')[0] + '','_blank','top=0,left=' + eval(-100 + eval('' + screen.width)) + ',width=1,height=1');
//alert('XXheRe');
setTimeout(nlhdrefreshlater, 2000);
//alert('herE');
} else {
//alert('huh?');
//document.getElementById('drefresh').innerHTML='';
document.getElementById('drefresh').style.display='none';
document.getElementById(cdivid).innerHTML=twobits + divcih;
document.getElementById(aid).title=ftit;
setTimeout(lhcontentlater, 2000); //location.href='#content#andabit=-70'; //document.getElementById('content').scrollIntoView();
}
//alert('work in progress ' + hrsa.length + ' via appendixnum=' + appendixnum);
}
}
function pdgeistutsm() {
if (document.getElementById('stutsm').innerHTML == '') {
setTimeout(pdgeistutsm, 5000);
} else {
document.getElementById('istutsm').src='//www.rjmprogramming.com.au/ITblog/bytheby.php';
var dgcs=docgetclass('copt', 'option');
for (var idg=0; idg<dgcs.length; idg++) {
console.log(dgcs[idg].innerHTML);
if (dgcs[idg].outerHTML.indexOf(' Tutorial<') != -1 && document.getElementById('stutsm').innerHTML.indexOf('>' + dgcs[idg].innerHTML + ' ') != -1) {
console.log('found ' + dgcs[idg].innerHTML);
dgcs[idg].innerHTML+=document.getElementById('stutsm').innerHTML.split('>' + dgcs[idg].innerHTML)[1].split('<')[0];
}
}
antidivcih=document.getElementById('drefresh').innerHTML;
//alert(document.getElementById('stutsm').innerHTML);
}
}
function nlhdrefreshlater() {
//wodivc=window.open(document.URL.split('#')[0] + '','_blank','top=0,left=' + eval(-100 + eval('' + screen.width)) + ',width=1,height=1');
//window.scroll(0,0,);
location.href='#drefresh#andabit=-70'; //document.getElementById('content').scrollIntoView()
// if (wodivc) { wodivc.close(); wodivc=null; }
}
function lhdrefreshlater() {
//window.scroll(0,0,);
location.href='#drefresh#andabit=-70'; //document.getElementById('content').scrollIntoView()
// if (wodivc) { wodivc.close(); wodivc=null; }
}
function lhcontentlater() {
//if (document.body.innerHTML.indexOf('ytau' + 'dioonly') != -1) {
// location.href='#content';
//} else {
location.href='#content#andabit=-70'; //document.getElementById('content').scrollIntoView()
//}
}
function nojde(inuis) {
var outuis=inuis, qpdf=inuis.split('justdummy=');
if (qpdf.length > 1) {
outuis=qpdf[0].replace(/fixfordummy/g,'fixfordummy0');
for (var iphg=1; iphg<qpdf.length; iphg++) {
outuis=outuis.replace('fixfordummy' + iphg + '=','fixfordummy0' + iphg + '=') + 'fixfordummy' + iphg + '=' + qpdf[iphg];
}
} else {
return inuis;
}
return outuis;
}
function diffphpfix(oais) {
var adiffs=document.getElementsByTagName("a");
for (var iuyt=0; iuyt<adiffs.length; iuyt++) {
if (('' + adiffs[iuyt].href).indexOf('diff.php?one=') != -1) {
adiffs[iuyt].href=adiffs[iuyt].href.replace('?', '?linkit=' + Math.floor(Math.random() * 198765453) + '&');
}
}
oais.style.backgroundColor='lightgreen';
}
function popselid() {
var jdivcont='', jprefix='', jdivs=0, odivs=document.getElementsByTagName('div'), orbit=nojde(document.URL.split('#')[0].replace('/all-posts/filter-content-via-div-id',''));
if (orbit.indexOf('?') != -1) {
orbit=orbit.replace('justsearch=','justdummy=');
} else {
orbit+='?justdummy=';
}
for (var iodivs=0; iodivs<odivs.length; iodivs++) {
if (odivs[iodivs].id) {
if (odivs[iodivs].id != '') {
if (jdivs == 0) {
jdivcont='<select onchange=" if (this.value.length > 0) { justshow(this.value.trim() + ' + "';' + '" + orbit + "' + '&justsearch='" + ' + this.value.trim()); } " id=jdivsel><option value=' + "''" + '>Just show ...</option><option value=' + "' '" + '>All Content ... versus, just ...</option></select>';
}
jdivcont=jdivcont.replace("</select>","<option value='" + odivs[iodivs].id + "'>" + odivs[iodivs].id + "</option></select>");
jdivs++;
}
}
}
if (jdivcont != '') {
document.getElementById('justshow').style.display='block';
document.getElementById('justshow').innerHTML=jdivcont;
jprefix+=document.getElementById('justshow').outerHTML.replace('none','block') + "<br><br>";
}
return jprefix;
}
function postjustshow() {
justshow('');
}
function prejustshow() {
var jush=location.search.split('justsearch=')[1] ? location.search.split('justsearch=')[1].split('&')[0] : '';
if (jush != '') {
setTimeout(postjustshow,3000);
}
}
function justshow(inj) {
var inja, jprefix='', josh=null, jush=location.search.split('justsearch=')[1] ? location.search.split('justsearch=')[1].split('&')[0] : '';
if (jush != '' && document.getElementById('justshow').innerHTML == '') {
josh=document.getElementById(jush);
jprefix+=popselid();
}
if (inj != '') {
inja=inj.split(';');
if (josh) {
jprefix=josh.outerHTML + "<br>";
} else {
josh=document.getElementById(inj.split(';')[0]);
if (inja.length > 1) {
location.href=inja[1];
}
}
}
if (josh) {
document.body.innerHTML='<br><a target=_self href="' + document.URL.replace('justsearch=','justdummy=') + '" title=" Full ' + document.URL.replace('justsearch=','justdummy=') + '">Restore Full ' + document.URL.replace('justsearch=','justdummy=') + '</a><br><br>' + jprefix + josh.outerHTML + '<br><a target=_self href="' + document.URL.replace('justsearch=','justdummy=') + '" title="Restore Full ' + document.URL.replace('justsearch=','justdummy=') + '">' + document.URL.replace('justsearch=','justdummy=') + '</a>';
}
}
function pre_details_summary() {
var idos=0,dos=[];
if (('' + document.getElementById("eds").title) == 'Blog post contents reduced to summary') {
if (document.body.innerHTML.indexOf('<summary></summary>') == -1) {
details_summary(1);
} else {
dos=document.getElementsByTagName('details');
for (idos=0; idos<dos.length; idos++) {
if (dos[idos].className == "gendetails") {
dos[idos].removeAttribute('open');
}
}
}
document.getElementById("eds").innerHTML = "➕";
document.getElementById("eds").title = "Open up blog posting contents now";
} else {
dos=document.getElementsByTagName('details');
for (idos=0; idos<dos.length; idos++) {
if (dos[idos].className == "gendetails") {
dos[idos].setAttribute('open', true);
}
}
document.getElementById("eds").innerHTML = "➖";
document.getElementById("eds").title = "Blog post contents reduced to summary";
}
}
function checknohlist() {
if (('' + location.hash).indexOf('#') != -1) {
//alert(('' + location.hash) + ' ... ' + nohlist);
if (nohlist.indexOf(';#' + location.hash.split('#')[1] + ';') != -1) {
//alert('ds_' + location.hash.split('#')[1]);
document.getElementById('ds_' + location.hash.split('#')[1]).setAttribute('open', true);
nohlist=nohlist.replace(';#' + location.hash.split('#')[1] + ';',';');
//alert(nohlist);
}
}
if (nohlist.replace(';','') != '') setTimeout(checknohlist, 3000);
}
function details_summary(mou) {
if (onlok) {
var other_bits=[], hrother_bits=[], ihrb=0, fb='', fbids=[], thatidis='', hrp='';
var dbitssare=document.body.innerHTML.split('<div class="e' + 'ntry-content">');
//var dbitseare=document.body.innerHTML.split('<div class="e' + 'ntry-utility">');
if (document.URL.indexOf('detailssummary=') != -1 || mou != 0) {
if (dbitssare.length > 1) { //&& dbitssare.length == dbitseare.length) {
var dbih=document.body.innerHTML, idbih=1;
for (var idb=0; idb<dbitssare.length; idb++) {
if (('' + dbitssare[eval(1 + idb)]).indexOf('<p>') != -1) {
if (('' + dbitssare[eval(1 + idb)]).split('<p>')[idbih].split('</p>')[0] == '') {
if (('' + dbitssare[eval(1 + idb)]).split('<p>').length >= eval(1 + eval(idbih))) {
idbih++;
}
}
dbih=dbih.replace('<div class="e' + 'ntry-content">','<details class="gendetails" title="Click me to toggle open/close ... ' + ('' + dbitssare[eval(1 + idb)]).split('<p>')[idbih].split('</p>')[0].replace(/\'/g,'`').replace(/\"/g,'`').replace(/\>/g,'>').replace(/\</g,'<') + '"><summary></summary><div title="entry-content" class="entry-content">');
} else {
dbih=dbih.replace('<div class="e' + 'ntry-content">','<details class="gendetails" title="Click me to toggle open/close"><summary></summary><div title="entry-content" class="e' + 'ntry-content">');
}
if (document.URL.indexOf('andmorehr=') != -1 || 1 == 1) {
other_bits=dbih.split('<div title="entry-content" class="e' + 'ntry-content">');
hrother_bits=other_bits[eval(-1 + other_bits.length)].split('<div class="entry-utility">')[0].split('<hr ');
hrp='<hr ';
for (ihrb=1; ihrb<hrother_bits.length; ihrb++) {
if (hrother_bits[ihrb].indexOf('</p>') != -1 && hrother_bits[ihrb].indexOf('If this was interesting you may be interested') == -1) {
thatidis='';
fb=hrp + hrother_bits[ihrb].split('>')[0] + '>';
fbids=(hrp + hrother_bits[ihrb]).split(fb)[1].split('</p>')[0].split('<p id="');
if (fbids.length <= 1) {
fbids=(hrp + hrother_bits[ihrb]).split(fb)[1].split('</p>')[0].split("<p id='");
if (fbids.length > 1) {
thatidis=fbids[1].split("'")[0];
}
} else {
thatidis=fbids[1].split('"')[0];
}
if (nohlist.replace(';','') == '' && thatidis != '') {
setTimeout(checknohlist, 3000);
}
if (thatidis != '') {
nohlist+='#' + thatidis + ';';
dbih=dbih.replace((hrp + hrother_bits[ihrb]), (fb + '<details id="ds_' + thatidis + '" class="innerdetails" title="Click me to toggle open/close"><summary>' + (hrp + hrother_bits[ihrb]).split(fb)[1].split('</p>')[0] + '</p></summary>' + (hrp + hrother_bits[ihrb]).split((hrp + hrother_bits[ihrb]).split('</p>')[0] + '</p>')[1] + '</details>'));
} else {
dbih=dbih.replace((hrp + hrother_bits[ihrb]), (fb + '<details class="innerdetails" title="Click me to toggle open/close"><summary>' + (hrp + hrother_bits[ihrb]).split(fb)[1].split('</p>')[0] + '</p></summary>' + (hrp + hrother_bits[ihrb]).split((hrp + hrother_bits[ihrb]).split('</p>')[0] + '</p>')[1] + '</details>'));
}
}
hrp='<hr ';
}
}
dbih=dbih.replace('<div class="entry-utility">','</details><div title="entry-utility" class="entry-utility">');
}
document.body.innerHTML=dbih;
}
if (document.URL.indexOf('detailssummary=') != -1 && mou == 0) {
document.getElementById("eds").innerHTML = "➕";
document.getElementById("eds").title = "Open up blog posting contents now";
document.getElementById("eds").style.visibility='visible';
}
} else if (mou == 0 && dbitssare.length > 1) { //&& dbitssare.length == dbitseare.length) {
document.getElementById("eds").style.visibility='visible';
}
}
}
function wordreps(tih,dowtoi,myc) {
if (1 == 2) { alert("Soon we will have a word report for " + tih.replace(' ', " 1 is " + ['Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday'][dowtoi] + ' ')); }
}
function ifrcheck(iois,dayoneis,monthyishere) {
if (iois != null) {
var aaconto = (iois.contentWindow || iois.contentDocument);
if (aaconto != null) {
if (aaconto.document) { aaconto = aaconto.document; }
if (aaconto.body != null) {
if (1 == 2) { alert(aaconto.body.innerText); }
}
}
}
}
function preclickbcal() {
precb=1;
setTimeout(function(){
precb=2;
clickbcal();
}, 3000);
}
function clickbcal() {
if (precb == 1) { precb=0; return ''; }
if (document.getElementById('justshow')) {
var wohtml='';
if (document.URL.indexOf('domorecalendar=') == -1 && 1 == 7) {
wohtml=document.getElementById('calendar_wrap').outerHTML.replace('<thead>','<thead style=height:120px;>').replace(/calendar_wrap/g,'calendar_iframe_wrap').replace(/a href/g,'iframe src').replace(/\<\/a\>/g,'</iframe>').replace(/\" title\=/g,'#content" style="background-color:yellow;" title=').replace('>1</iframe>',' id=ifrcal1></iframe>').replace('>2</iframe>',' id=ifrcal2></iframe>').replace('>3</iframe>',' id=ifrcal3></iframe>').replace('>4</iframe>',' id=ifrcal4></iframe>').replace('>5</iframe>',' id=ifrcal5></iframe>').replace('>6</iframe>',' id=ifrcal6></iframe>').replace('>7</iframe>',' id=ifrcal7></iframe>').replace('>8</iframe>',' id=ifrcal8></iframe>').replace('>9</iframe>',' id=ifrcal9></iframe>').replace('>10</iframe>',' id=ifrcal10></iframe>').replace('>11</iframe>',' id=ifrcal11></iframe>').replace('>12</iframe>',' id=ifrcal12></iframe>').replace('>13</iframe>',' id=ifrcal13></iframe>').replace('>14</iframe>',' id=ifrcal14></iframe>').replace('>15</iframe>',' id=ifrcal15></iframe>').replace('>16</iframe>',' id=ifrcal16></iframe>').replace('>17</iframe>',' id=ifrcal17></iframe>').replace('>18</iframe>',' id=ifrcal18></iframe>').replace('>19</iframe>',' id=ifrcal19></iframe>').replace('>20</iframe>',' id=ifrcal20></iframe>').replace('>21</iframe>',' id=ifrcal21></iframe>').replace('>22</iframe>',' id=ifrcal22></iframe>').replace('>23</iframe>',' id=ifrcal23></iframe>').replace('>24</iframe>',' id=ifrcal24></iframe>').replace('>25</iframe>',' id=ifrcal25></iframe>').replace('>26</iframe>',' id=ifrcal26></iframe>').replace('>27</iframe>',' id=ifrcal27></iframe>').replace('>28</iframe>',' id=ifrcal28></iframe>').replace('>29</iframe>',' id=ifrcal29></iframe>').replace('>30</iframe>',' id=ifrcal30></iframe>').replace('>31</iframe>',' id=ifrcal31></iframe>');
} else if (document.URL.indexOf('domorecalendar=') != -1 || 1 == 1) {
var colspantlines=document.getElementById('calendar_wrap').outerHTML.split('<tbody')[1].split('</tr>')[0].split(' colspan="');
var dayoftheweekthatoneis=0, monthyesr='';
var mys=document.getElementById('calendar_wrap').outerHTML.split('<caption>');
if (mys.length > 1) {
monthyesr=mys[1].split('<')[0];
//alert(monthyesr);
}
if (colspantlines.length > 1) {
dayoftheweekthatoneis=eval(colspantlines[1].split('"')[0]);
}
cttcs=[];
var ahrefsare=document.getElementById('calendar_wrap').outerHTML.replace(' title="View posts',' TITLE="View posts').replace(/\"col\" title\=/g,"'col' title=").split('" title="');
for (var ziuy=1; ziuy<ahrefsare.length; ziuy++) {
if (document.URL.indexOf('animated_emoji=') != -1 || ('' + location.search + location.hash).replace('#justshow','psi').indexOf('psi') == -1) { cttcs.push(ahrefsare[ziuy].split('"')[0]); }
}
if (navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i)) {
//alert(document.getElementById('calendar_wrap').outerHTML);
//alert(ahrefsare.length);
for (var iuy=0; iuy<31; iuy++) {
ahrefsare.push('');
}
//alert(ahrefsare.length);
var citn='?citn=y';
if (document.URL.indexOf('?') != -1) { citn='&citn=y'; }
if (precb != 0) {
//alert('here7');
wohtml=document.getElementById('calendar_wrap').outerHTML.replace(/\"\ aria\-label\=/g, '?psi=0\" aria-label=').replace('<thead>','<thead style=height:120px;>').replace(/\"col\" title\=/g,"'col' title=").replace('<caption>','<caption style="border:2px solid purple;background-color:orange;" onclick="wordreps(this.innerHTML,' + dayoftheweekthatoneis + ",'" + monthyesr + "'" + ');">').replace(/calendar_wrap/g,'calendar_iframe_wrap').replace(/\" title\=/g,citn + '#content" title=').replace('>1</a>','>1<br><br>' + ahrefsare[1].split('"')[0] + '</a>').replace('>2</a>','>2<br><br>' + ahrefsare[2].split('"')[0] + '</a>').replace('>3</a>','>3<br><br>' + ahrefsare[3].split('"')[0] + '</a>').replace('>4</a>','>4<br><br>' + ahrefsare[4].split('"')[0] + '</a>').replace('>5</a>','>5<br><br>' + ahrefsare[5].split('"')[0] + '</a>').replace('>6</a>','>6<br><br>' + ahrefsare[6].split('"')[0] + '</a>').replace('>7</a>','>7<br><br>' + ahrefsare[7].split('"')[0] + '</a>').replace('>8</a>','>8<br><br>' + ahrefsare[8].split('"')[0] + '</a>').replace('>9</a>','>9<br><br>' + ahrefsare[9].split('"')[0] + '</a>').replace('>10</a>','>10<br><br>' + ahrefsare[10].split('"')[0] + '</a>').replace('>11</a>','>11<br><br>' + ahrefsare[11].split('"')[0] + '</a>').replace('>12</a>','>12<br><br>' + ahrefsare[12].split('"')[0] + '</a>').replace('>13</a>','>13<br><br>' + ahrefsare[13].split('"')[0] + '</a>').replace('>14</a>','>14<br><br>' + ahrefsare[14].split('"')[0] + '</a>').replace('>15</a>','>15<br><br>' + ahrefsare[15].split('"')[0] + '</a>').replace('>16</a>','>16<br><br>' + ahrefsare[16].split('"')[0] + '</a>').replace('>17</a>','>17<br><br>' + ahrefsare[17].split('"')[0] + '</a>').replace('>18</a>','>18<br><br>' + ahrefsare[18].split('"')[0] + '</a>').replace('>19</a>','>19<br><br>' + ahrefsare[19].split('"')[0] + '</a>').replace('>20</a>','>20<br><br>' + ahrefsare[20].split('"')[0] + '</a>').replace('>21</a>','>21<br><br>' + ahrefsare[21].split('"')[0] + '</a>').replace('>22</a>','>22<br><br>' + ahrefsare[22].split('"')[0] + '</a>').replace('>23</a>','>23<br><br>' + ahrefsare[23].split('"')[0] + '</a>').replace('>24</a>','>24<br><br>' + ahrefsare[24].split('"')[0] + '</a>').replace('>25</a>','>25<br><br>' + ahrefsare[25].split('"')[0] + '</a>').replace('>26</a>','>26<br><br>' + ahrefsare[26].split('"')[0] + '</a>').replace('>27</a>','>27<br><br>' + ahrefsare[27].split('"')[0] + '</a>').replace('>28</a>','>28<br><br>' + ahrefsare[28].split('"')[0] + '</a>').replace('>29</a>','>29<br><br>' + ahrefsare[29].split('"')[0] + '</a>').replace('>30</a>','>30<br><br>' + ahrefsare[30].split('"')[0] + '</a>').replace('>31</a>','>31<br><br>' + ahrefsare[31].split('"')[0] + '</a>');
} else {
wohtml=document.getElementById('calendar_wrap').outerHTML.replace(/\"\ ariNOWAYa\-label\=/g, '#psi0\" aria-label=').replace('<thead>','<thead style=height:120px;>').replace(/\"col\" title\=/g,"'col' title=").replace('<caption>','<caption style="border:2px solid purple;background-color:orange;" onclick="wordreps(this.innerHTML,' + dayoftheweekthatoneis + ",'" + monthyesr + "'" + ');">').replace(/calendar_wrap/g,'calendar_iframe_wrap').replace(/\" title\=/g,citn + '#content" title=').replace('>1</a>','>1<br><br>' + ahrefsare[1].split('"')[0] + '</a>').replace('>2</a>','>2<br><br>' + ahrefsare[2].split('"')[0] + '</a>').replace('>3</a>','>3<br><br>' + ahrefsare[3].split('"')[0] + '</a>').replace('>4</a>','>4<br><br>' + ahrefsare[4].split('"')[0] + '</a>').replace('>5</a>','>5<br><br>' + ahrefsare[5].split('"')[0] + '</a>').replace('>6</a>','>6<br><br>' + ahrefsare[6].split('"')[0] + '</a>').replace('>7</a>','>7<br><br>' + ahrefsare[7].split('"')[0] + '</a>').replace('>8</a>','>8<br><br>' + ahrefsare[8].split('"')[0] + '</a>').replace('>9</a>','>9<br><br>' + ahrefsare[9].split('"')[0] + '</a>').replace('>10</a>','>10<br><br>' + ahrefsare[10].split('"')[0] + '</a>').replace('>11</a>','>11<br><br>' + ahrefsare[11].split('"')[0] + '</a>').replace('>12</a>','>12<br><br>' + ahrefsare[12].split('"')[0] + '</a>').replace('>13</a>','>13<br><br>' + ahrefsare[13].split('"')[0] + '</a>').replace('>14</a>','>14<br><br>' + ahrefsare[14].split('"')[0] + '</a>').replace('>15</a>','>15<br><br>' + ahrefsare[15].split('"')[0] + '</a>').replace('>16</a>','>16<br><br>' + ahrefsare[16].split('"')[0] + '</a>').replace('>17</a>','>17<br><br>' + ahrefsare[17].split('"')[0] + '</a>').replace('>18</a>','>18<br><br>' + ahrefsare[18].split('"')[0] + '</a>').replace('>19</a>','>19<br><br>' + ahrefsare[19].split('"')[0] + '</a>').replace('>20</a>','>20<br><br>' + ahrefsare[20].split('"')[0] + '</a>').replace('>21</a>','>21<br><br>' + ahrefsare[21].split('"')[0] + '</a>').replace('>22</a>','>22<br><br>' + ahrefsare[22].split('"')[0] + '</a>').replace('>23</a>','>23<br><br>' + ahrefsare[23].split('"')[0] + '</a>').replace('>24</a>','>24<br><br>' + ahrefsare[24].split('"')[0] + '</a>').replace('>25</a>','>25<br><br>' + ahrefsare[25].split('"')[0] + '</a>').replace('>26</a>','>26<br><br>' + ahrefsare[26].split('"')[0] + '</a>').replace('>27</a>','>27<br><br>' + ahrefsare[27].split('"')[0] + '</a>').replace('>28</a>','>28<br><br>' + ahrefsare[28].split('"')[0] + '</a>').replace('>29</a>','>29<br><br>' + ahrefsare[29].split('"')[0] + '</a>').replace('>30</a>','>30<br><br>' + ahrefsare[30].split('"')[0] + '</a>').replace('>31</a>','>31<br><br>' + ahrefsare[31].split('"')[0] + '</a>');
}
//alert(wohtml);
} else {
if (precb != 0) {
//var dfx=prompt('here77 ' + document.getElementById('calendar_wrap').outerHTML, document.getElementById('calendar_wrap').outerHTML);
wohtml=document.getElementById('calendar_wrap').outerHTML.replace(/\"\ aria\-label\=/g, '?psi=0\" aria-label=').replace('<thead>','<thead style=height:120px;>').replace(/\"col\" title\=/g,"'col' title=").replace('<caption>','<caption style="border:2px solid purple;background-color:orange;" onclick="wordreps(this.innerHTML,' + dayoftheweekthatoneis + ",'" + monthyesr + "'" + ');">').replace(/calendar_wrap/g,'calendar_iframe_wrap').replace(/a href/g,'iframe onload="ifrcheck(this,' + dayoftheweekthatoneis + ",'" + monthyesr + "'" + ');" src').replace(/\<\/a\>/g,'</iframe>').replace(/\" title\=/g,'#content" style="background-color:yellow; transform: scale(0.98,0.98); -o-transform: scale(0.98,0.98); -moz-transform: scale(0.98,0.98); -ms-transform: scale(0.98,0.98); -webkit-transform: scale(0.98,0.98); height:350px;" title=');
} else {
wohtml=document.getElementById('calendar_wrap').outerHTML.replace(/\"\ ariNOWAYa\-label\=/g, '#psi0\" aria-label=').replace('<thead>','<thead style=height:120px;>').replace(/\"col\" title\=/g,"'col' title=").replace('<caption>','<caption style="border:2px solid purple;background-color:orange;" onclick="wordreps(this.innerHTML,' + dayoftheweekthatoneis + ",'" + monthyesr + "'" + ');">').replace(/calendar_wrap/g,'calendar_iframe_wrap').replace(/a href/g,'iframe onload="ifrcheck(this,' + dayoftheweekthatoneis + ",'" + monthyesr + "'" + ');" src').replace(/\<\/a\>/g,'</iframe>').replace(/\" title\=/g,'#content" style="background-color:yellow; transform: scale(0.98,0.98); -o-transform: scale(0.98,0.98); -moz-transform: scale(0.98,0.98); -ms-transform: scale(0.98,0.98); -webkit-transform: scale(0.98,0.98); height:350px;" title=');
}
}
}
document.getElementById('justshow').innerHTML=cttcsize(wohtml, monthyesr, dayoftheweekthatoneis);
document.getElementById('justshow').style.display='block';
//setTimeout(function(){ location.href='#justshow'; }, 30000);
location.href='#justshow';
}
precb=0;
}
function socwc(evt) {
var ourx=0;
if (evt.clientX) {
ourx = evt.clientX; // - elemLeft;
} else {
ourx = evt.pageX; // - elemLeft;
}
var rectj=document.getElementById('scttcs').getBoundingClientRect();
//document.title=document.title.split(' x/left/width:')[0] + ' x/y/left/width:' + ourx + '/' + rectj.left + '/' + rectj.width + ' ';
morethanfifty=eval('' + ourx);
refw='';
if (eval('' + morethanfifty) <= 200) { refw='refw'; }
}
function cttcsize(whl, myre, dotwtoi) {
var idotwtoi=dotwtoi, thisdayi="", dotwr=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];
if (cttcs.length >= 1) {
var selcttcs='<br><select title="Blog Posting most Used Words to the left and Cut to the Chase ... double click ' + oncmt + ' for blog posting image involvement ... to right" ontouchmove=socwc(event); onmousemove=socwc(event); id=scttcs onchange=" if (this.value.length > 0) { var qperf=document.getElementById(' + "'" + 'dcttcs' + "'" + ').innerHTML; document.getElementById(' + "'" + 'dcttcs' + "'" + ').innerHTML=' + "'" + '<hr><a target=_blank title=CutToTheChase ondblclick=dblrplatern(this.value); ' + oncm + 'rcrplatern(this,value); href=//www.rjmprogramming.com.au/slideshow.html?title' + "'" + ' + refw + String.fromCharCode(61) + encodeURIComponent(this.value) + ' + "'" + '>' + "'" + ' + this.value.replace(' + "'" + ' Tutorial' + "'" + ',' + "'" + '<a target=_blank title=Tutorial href=//www.rjmprogramming.com.au/ITblog/' + "'" + ' + urlit(this.value) + ' + "'" + '> Tutorial</a>' + "'" + ') + ' + "'" + '</a><br><iframe style=width:100%;height:600px; ondblclick=dblrplatern(this.value); ' + oncm + 'rcrplatern(this,value); src=//www.rjmprogramming.com.au/slideshow.html?title' + "'" + ' + refw + String.fromCharCode(61) + encodeURIComponent(this.value) + ' + "'" + '></iframe><br>' + "'" + ' + qperf; } "><option value="">Σ<sup>w</sup>📰 or Cut to the Chase ... double click ' + oncmt + ' for blog posting image involvement ... for ' + myre + ' ...</option></select>';
//if (document.URL.indexOf('?c=') != -1) { alert(selcttcs); }
for (var zziuy=0; zziuy<cttcs.length; zziuy++) {
thisdayi=dotwr[eval(idotwtoi % 7)];
idotwtoi++;
selcttcs=selcttcs.replace('</select>', '<option value="' + cttcs[zziuy] + '">Σ<sup>w</sup>📰 ' + thisdayi + ' ' + eval(1 + zziuy) + ': ' + cttcs[zziuy] + '</option></select>');
}
return '' + whl.replace('</caption>', ' ' + selcttcs + '<div id=dcttcs></div></caption>');
} else {
return whl;
}
}
function postcalendar() {
if ((location.hash + '').indexOf('content') != -1 && (document.URL.indexOf('?m=') != -1 || document.URL.split('/').length >= 4)) {
var aps=document.getElementsByTagName('a');
var kaps=false, huhas=[];
for (var iaps=0; iaps<aps.length; iaps++) {
if (!kaps) {
if (('' + aps[iaps].target).toLowerCase().indexOf('blank') == -1 && document.body.innerHTML.indexOf(aps[iaps].outerHTML) != -1) {
huhas=document.body.innerHTML.split(aps[iaps].outerHTML);
if (huhas[0].indexOf('entry-title') != -1 && aps[iaps].href.replace('/wordpress?','/ITblog/').replace('/wordpress/','/ITblog/').indexOf('/ITblog/') != -1) {
kaps=true;
if (document.URL.indexOf('citn=') != -1) {
location.href=aps[iaps].href; //aps[iaps].click();
} else {
aps[iaps].target='_blank';
}
}
}
}
}
}
if (document.getElementById('calendar_wrap')) {
document.getElementById('calendar_wrap').innerHTML+='<input id=itcalendar_wrap type=button value="Iframes Up Top" title="Double click drills down further" ondblclick="preclickbcal();" onclick="setTimeout(clickbcal,3000);"></input>';
setTimeout(steakknives, 3000);
}
}
function steakknives() {
var htinfo="", prefmore="", sufmore=""; suftries=["","-1","-2","-3","-4","-5"], preftries=["calendar-wrap;128197","recent-posts;128238","tag_cloud;127991","categories;128451","meta;128100","s;128270"];
if (!document.getElementById('atcalendar') && !document.getElementById('precalendar')) {
if (document.URL.indexOf('animated_emoji=') != -1 || 7 == 7) {
for (var ioup=1; ioup<preftries.length; ioup++) {
for (var joup=0; joup<suftries.length; joup++) {
if (document.getElementById(preftries[ioup].split(';')[0] + suftries[joup])) {
if (htinfo == "") { htinfo="atcalendar"; }
if (preftries[ioup].split(';')[0] == "s") {
htinfo+="__at" + preftries[ioup].split(';')[0] + "earch";
sufmore+='<a id="at' + preftries[ioup].split(';')[0] + 'earch" style="display:none;text-decoration:none;font-size: 22px;" href=#s title="' + preftries[ioup].split(';')[0].replace(/\_/g,' ').replace(/\-/g,' ').toUpperCase().substring(0,1) + 'earch' + ' positioned for you">' + preftries[ioup].split(';')[1] + ';</a> ';
} else {
htinfo+="__at" + preftries[ioup].split(';')[0];
sufmore+='<a id="at' + preftries[ioup].split(';')[0] + '" style="display:none;text-decoration:none;font-size: 22px;" href=# onclick=" if (document.getElementById(' + "'" + 'justshow' + "'" + ')) { document.getElementById(' + "'" + 'justshow' + "'" + ').innerHTML=document.getElementById(' + "'" + preftries[ioup].split(';')[0] + suftries[joup] + "'" + ').innerHTML.replace(/' + preftries[ioup].split(';')[0] + '/g,' + "'" + preftries[ioup].split(';')[0] + '_t' + "'" + '); document.getElementById(' + "'" + 'justshow' + "'" + ').style.display=' + "'" + 'block' + "'" + '; } " title="' + preftries[ioup].split(';')[0].replace(/\_/g,' ').replace(/\-/g,' ').toUpperCase().substring(0,1) + preftries[ioup].split(';')[0].replace(/\_/g,' ').replace(/\-/g,' ').toLowerCase().substring(1) + ' to top">' + preftries[ioup].split(';')[1] + ';</a> ';
}
}
}
}
if (htinfo != '') {
prefmore="<div id=precalendar title='" + htinfo + "' style='display:inline-block;'>";
sufmore+="</div>";
setTimeout(steakknives, 5000);
}
}
document.getElementById('site-title').innerHTML+=' ' + prefmore + '<a id="atcalendar" style="display:inline-block;text-decoration:none;font-size: 22px;" href=# onclick=" if (document.getElementById(' + "'" + 'justshow' + "'" + ')) { document.getElementById(' + "'" + 'justshow' + "'" + ').innerHTML=document.getElementById(' + "'" + 'calendar_wrap' + "'" + ').outerHTML.replace(/calendar_wrap/g,' + "'" + 'calendar_wrap_t' + "'" + '); document.getElementById(' + "'" + 'justshow' + "'" + ').style.display=' + "'" + 'block' + "'" + '; } " title="Calendar to top">📅</a>' + sufmore + ' ';
} else if (document.getElementById('precalendar')) {
var echoices=document.getElementById('precalendar').title.split('__');
var ibis=echoices[0];
for (var koup=0; koup<echoices.length; koup++) {
if (('' + document.getElementById(echoices[koup]).style.display).toLowerCase().indexOf('block') != -1) {
document.getElementById(echoices[koup]).style.display='none';
if (koup == eval(-1 + echoices.length)) {
ibis=echoices[0];
} else {
ibis=echoices[eval(1 + koup)];
}
}
}
document.getElementById(ibis).style.display='inline-block';
setTimeout(steakknives, 5000);
}
}
function lfhlater() {
var kk=0;
if (kk == 0) {
if (window.self != window.parent) {
if (('' + top.location.hash).indexOf('justshow') != -1 || ('' + top.document.URL).indexOf('justshow') != -1) {
kk=1;
if (('' + location.search + location.hash).indexOf('psi') != -1) {
setTimeout(function(){ if (document.getElementById('psi0')) { document.getElementById('psi0').scrollIntoView(); } else { document.getElementById('content').scrollIntoView(); } setTimeout(function(){ window.top.scrollTo(0,0); }, 18000); }, 8000);
} else {
setTimeout(function(){ document.getElementById('content').scrollIntoView(); setTimeout(function(){ window.top.scrollTo(0,0); }, 18000); }, 5000);
}
}
}
}
var aswq=document.getElementsByTagName("a");
for (var iaswq=0; iaswq<aswq.length; iaswq++) {
if (kk == 1 && aswq[iaswq].title.indexOf('Permalink to ') != -1) {
kk=2;
document.body.title=aswq[iaswq].title.split('Permalink to ')[1];
document.body.title='' + String.fromCharCode(10) + (document.getElementById('content').innerText || document.getElementById('content').contentWindow || document.getElementById('content').contentDocument);
if (('' + aswq[iaswq].href).indexOf('#') == -1 && document.URL.indexOf('?psi=0') != -1) {
aswq[iaswq].href+='#psi0';
aswq[iaswq].click();
}
}
if (aswq[iaswq].innerHTML == 'Long hover help available.') {
aswq[iaswq].innerHTML='Highlighting and long hover help.';
aswq[iaswq].title+=' ... also note that Highlighting Webpage Contents allows for Wikipedia, Google Translate, Free Dictionary and Google Search functionalities to appear';
}
}
}
function delayshow() {
document.getElementById('hfloater').style.display='block';
}
function lookforhighlight() {
var usualdelay=2000, oRange=null, oRect=null, s_top='0px', s_left='5px', fourhundred=300, isfx='0';
usualdelay=9000; // new bigger delay allowing for normal copy/paste to get in first, perhaps
if (hight == ' ') {
setTimeout(lfhlater, 12000); // 5000
hight='';
}
if (!document.getElementById('phfloater')) {
setTimeout(lookforhighlight, usualdelay);
var xsel=window.getSelection().toString();
if (xsel.length == 0) {
try {
xsel=document.selection.createRange().htmlText;
xsel=xsel.replace(String.fromCharCode(10),' ').replace(String.fromCharCode(10),' ').replace(String.fromCharCode(10),' ').replace(String.fromCharCode(10),' ');
xsel=xsel.replace(String.fromCharCode(13),' ').replace(String.fromCharCode(13),' ').replace(String.fromCharCode(13),' ').replace(String.fromCharCode(13),' ');
} catch(ertw) {
xsel='';
}
} else {
xsel=xsel.replace(String.fromCharCode(10),' ').replace(String.fromCharCode(10),' ').replace(String.fromCharCode(10),' ').replace(String.fromCharCode(10),' ');
xsel=xsel.replace(String.fromCharCode(13),' ').replace(String.fromCharCode(13),' ').replace(String.fromCharCode(13),' ').replace(String.fromCharCode(13),' ');
if (xsel != hight && xsel != '') {
oRange = window.getSelection().getRangeAt(0); //get the text range
oRect = oRange.getBoundingClientRect();
s_top = ('' + oRect.top).replace('px','') + 'px';
s_left = ('' + oRect.left).replace('px','') + 'px';
if (s_top != '0px') {
fourhundred=eval('' + s_top.replace('px',''));
s_top='0px';
var dse='', dde='';
if (document.scrollingElement) {
if (document.scrollingElement.scrollTop) {
dse=('' + document.scrollingElement.scrollTop);
}
}
if (document.documentElement) {
if (document.documentElement.scrollTop) {
dde=('' + document.documentElement.scrollTop);
}
}
if (dse != '') {
fourhundred+=eval('' + dse.replace('px',''));
isfx='0';
} else if (dde != '') {
fourhundred+=eval('' + dde.replace('px',''));
isfx='0';
} else if (('' + window.scrollY) != '') {
fourhundred+=eval('' + ('' + window.scrollY).replace('px',''));
isfx='0';
} else if (('' + window.pageYOffset) != '') {
fourhundred+=eval('' + ('' + window.pageYOffset).replace('px',''));
isfx='0';
} else {
isfx=('' + document.body.scrollTop).replace('px','');
if (isfx.replace('0','') == '') {
isfx=('' + document.scrollingElement.scrollTop).replace('px','');
if (isfx.replace('0','') == '') {
isfx=('' + window.scrollY).replace('px','');
if (isfx.replace('0','') == '') {
isfx=('' + window.pageYOffset).replace('px','');
}
}
}
}
fourhundred+=100;
}
}
}
if (xsel != hight && xsel != '') {
hight=xsel;
if (s_top == '0px') { s_top = ('' + eval(fourhundred + eval('' + isfx))) + 'px'; }
if (document.getElementById('hfloater')) {
if (document.getElementById('hfloater').innerHTML == '') {
document.getElementById('hfloater').style.position='absolute';
document.getElementById('hfloater').style.top=s_top;
document.getElementById('hfloater').style.left=s_left;
document.getElementById('hfloater').style.zIndex='87';
document.getElementById('hfloater').style.backgroundColor='rgba(255,165,0,0.9)';
document.getElementById('hfloater').style.border='1px solid purple';
document.getElementById('hfloater').style.padding='2px 2px 2px 2px';
setTimeout(delayshow, 8000); //document.getElementById('hfloater').style.display='block';
document.getElementById('hfloater').innerHTML='<b>Wikipedia <a style="inline-block;" href="//wikipedia.org/wiki/Main_Page" title="//wikipedia.org/wiki/" target=_blank onmouseover="this.href=this.title + hight.replace(/\ /g,' + "'_'" + ');" ontouchstart="this.href=this.title + hight.replace(/\ /g,' + "'_'" + ');" id=b_hfloater_wikipedia>' + hight + '</a></b><br>';
document.getElementById('hfloater').innerHTML+='<b>Google Translate <a style="inline-block;" href="//translate.google.com" title="//translate.google.com/#view=home&op=translate&sl=auto&tl=en&text=" target=_blank onmouseover="this.href=this.title + encodeURIComponent(hight);" ontouchstart="this.href=this.title + encodeURIComponent(hight);" id=b_hfloater_google_translate>' + hight + '</a></b><br>';
document.getElementById('hfloater').innerHTML+='<b>Free Dictionary <a style="inline-block;" href="//www.thefreedictionary.com/" title="//www.thefreedictionary.com/" target=_blank onmouseover="this.href=this.title + hight.replace(/\ /g,' + "'+'" + ');" ontouchstart="this.href=this.title + hight.replace(/\ /g,' + "'+'" + ');" id=b_hfloater_free_dictionary>' + hight + '</a></b><br>';
document.getElementById('hfloater').innerHTML+='<b>Google Search <a style="inline-block;" href="//www.google.com/" title="//www.google.com/search?q=" target=_blank onmouseover="this.href=this.title + hight.replace(/\ /g,' + "'+'" + ');" ontouchstart="this.href=this.title + hight.replace(/\ /g,' + "'+'" + ');" id=b_hfloater_google_search>' + hight + '</a></b><br>';
document.getElementById('hfloater').innerHTML+='<b>Tag Search <a style="inline-block;" href="//www.rjmprogramming.com.au/ITblog/" title="//www.rjmprogramming.com.au/ITblog/tag/" target=_blank onmouseover="this.href=this.title + hight.replace(/\ /g,' + "'-'" + ');" ontouchstart="this.href=this.title + hight.replace(/\ /g,' + "'-'" + ');" id=b_hfloater_tag_search>' + hight + '</a></b><br>';
document.getElementById('hfloater').innerHTML+='<b>Category Search <a style="inline-block;" href="//www.rjmprogramming.com.au/ITblog/" title="//www.rjmprogramming.com.au/ITblog/category/" target=_blank onmouseover="this.href=this.title + hight.replace(/\ /g,' + "'-'" + ');" ontouchstart="this.href=this.title + hight.replace(/\ /g,' + "'-'" + ');" id=b_hfloater_category_search>' + hight + '</a></b><br>';
document.getElementById('hfloater').innerHTML+='<b>Tag First Word Search <a style="inline-block;" href="//www.rjmprogramming.com.au/ITblog/" title="//www.rjmprogramming.com.au/ITblog/tag/" target=_blank onmouseover="this.href=this.title + hight.replace(/\ /g,' + "'-'" + ').replace(' + "'-','/?wopenall='" + ');" ontouchstart="this.href=this.title + hight.replace(/\ /g,' + "'-'" + ').replace(' + "'-','/?wopenall='" + ');" id=b_hfloater_tag_first_word_search>' + hight + '</a></b><br>';
document.getElementById('hfloater').innerHTML+='<b>Posting Title Search <a style="inline-block;" href="//www.rjmprogramming.com.au/itblog/match/mapper.php" title="//www.rjmprogramming.com.au/itblog/match/mapper.php?pm=" target=_blank onmouseover="this.href=this.title + encodeURIComponent(hight);" ontouchstart="this.href=this.title + encodeURIComponent(hight);" id=b_hfloater_posting_title_search>' + hight + '</a></b><br>';
} else {
document.getElementById('b_hfloater_wikipedia').innerHTML=hight;
document.getElementById('b_hfloater_google_translate').innerHTML=hight;
document.getElementById('b_hfloater_free_dictionary').innerHTML=hight;
document.getElementById('b_hfloater_google_search').innerHTML=hight;
document.getElementById('b_hfloater_tag_search').innerHTML=hight;
document.getElementById('b_hfloater_category_search').innerHTML=hight;
document.getElementById('b_hfloater_tag_first_word_search').innerHTML=hight;
document.getElementById('b_hfloater_posting_title_search').innerHTML=hight;
document.getElementById('hfloater').style.top=s_top;
document.getElementById('hfloater').style.left=s_left;
setTimeout(delayshow, 8000); //document.getElementById('hfloater').style.display='block';
}
}
} else if (xsel == '') {
if (document.getElementById('hfloater')) {
document.getElementById('hfloater').style.display='none';
}
hight='';
}
}
}
function lookforbincode() {
var cdsis, bsis, icdsa, jcdsa, xbsis, repwith='', kdsis, vparts;
if (navigator.userAgent.match(/Android|BlackBerry|iPad|iPhone|iPod|Opera Mini|IEMobile/i)) { // it is a mobile device
cdsis=document.getElementsByTagName('code');
//alert(cdsis.length);
for (icdsa=0; icdsa<cdsis.length; icdsa++) {
bsis=cdsis[icdsa].innerHTML.split('</' + 'b>');
for (jcdsa=0; jcdsa<eval(-1 + bsis.length); jcdsa++) {
//alert(bsis[jcdsa]);
vparts=bsis[jcdsa].split('<b'+ '>');
if (vparts[eval(-1 + vparts.length)].indexOf(String.fromCharCode(10)) != -1) {
xbsis=vparts[eval(-1 + vparts.length)].split(String.fromCharCode(10));
repwith="";
if (xbsis.length > 2) {
for (kdsis=0; kdsis<xbsis.length; kdsis++) {
repwith+=xbsis[kdsis] + '</' + 'b>' + String.fromCharCode(10) + '<' + 'b>';
}
if (repwith != '') {
//cdsis[icdsa].innerHTML=cdsis[icdsa].innerHTML.replace('<b>' + vparts[eval(-1 + vparts.length)] + '</b>', '<b>' + repwith + '</b>');
//if (cdsis[icdsa].innerHTML.indexOf('<b>' + vparts[eval(-1 + vparts.length)] + '</b>') != -1) { alert(repwith); } else { alert('0:' + repwith); }
cdsis[icdsa].innerHTML=cdsis[icdsa].innerHTML.replace('<' + 'b>' + vparts[eval(-1 + vparts.length)] + '</' + 'b>', '<st' + 'rong>' + vparts[eval(-1 + vparts.length)] + '</str' + 'ong>');
}
}
//} else {
// alert('why');
}
}
}
}
}
function askemail() {
var isvalid=false;
isvalid=true;
document.getElementById('emailform').action='//www.rjmprogramming.com.au/ITblog/macos-and-other-mobile-media-record-tutorial/';
if (isvalid) {
var etois=prompt("Please enter email address to forward this blog's " + document.URL.split(':')[0] + ':' + document.getElementById('emailform').action + " webpage to (and optionally comma separate an email from address for collaboration)", "");
if (etois != null) {
if (etois.indexOf('@') != -1) {
document.getElementById('tdto').value=etois;
document.getElementById('fsubm').click();
}
}
}
}
function withinpreface(infgx) {
var huhs=infgx.split('</sc' + 'ript>');
var inpre='';
if (huhs.length > 1) {
for (var ihj=0; ihj<huhs.length; ihj++) {
inpre+=huhs[ihj].split('<sc' + 'ript')[0];
}
}
return inpre;
}
function csbackin() {
if (cntsuffixzhr.readyState == 4) {
if (cntsuffixzhr.status == 200) {
if (cntsuffixzhr.responseText) {
clearInterval(cntsuffixsi);
cntsuffixsi=null;
cntsuffixes[eval(-1 + cntsuffixes.length)]=cntsuffixzhr.responseText;
//alert('cntsuffixes[' + eval(-1 + cntsuffixes.length) + ']=' + cntsuffixzhr.responseText)
cntsgather();
}
}
}
}
function backin() {
if (myxhr.readyState == 4) {
if (myxhr.status == 200) {
if (myxhr.responseText) {
var m_t='image/jpeg';
var h_t='179';
var w_t='320';
var dbits = myxhr.responseText.split('"height": ');
if (dbits.length > 1) {
h_t=dbits[1].split(',')[0].split(String.fromCharCode(10))[0].split('}')[0].trim();
}
dbits = myxhr.responseText.split('"mime_type": "');
if (dbits.length > 1) {
m_t=dbits[1].split('"')[0];
}
dbits = myxhr.responseText.split('"width": ');
if (dbits.length > 1) {
w_t=dbits[1].split(',')[0].split(String.fromCharCode(10))[0].split('}')[0].trim();
}
dbits = myxhr.responseText.split('"data":');
dbits = myxhr.responseText.split('"data":');
if (dbits.length > 1) {
// replace all '_' with '/' and all '-' with '+' thanks to https://stackoverflow.com/questions/757675/website-screenshots
dgsbi='<img alt="Blog Posting Image" style="width:' + w_t + 'px;height:' + h_t + 'px;" width=' + w_t + ' height=' + h_t + ' src="data:' + m_t + ';base64,' + dbits[1].split('\"')[1].split('"')[0].replace(/\_/g,'/').replace(/\-/g,'+') + '"></img>';
//alert("yay " + dgsbi);
//} else {
//alert("oops " + myxhr.responseText);
}
}
}
}
}
function csajaxit(urlin) {
if (urlin.length > 0) {
if (window.XMLHttpRequest) {
cntsuffixzhr = new window.XMLHttpRequest;
}
else {
try {
cntsuffixzhr = new ActiveXObject('Msxml2.XMLHTTP');
} catch (othermicrosoft) {
try {
cntsuffixzhr = new ActiveXObject('Microsoft.XMLHTTP');
} catch (failed) {
cntsuffixzhr = false;
}
}
}
if (cntsuffixzhr) {
cntsuffixzhr.onreadystatechange = csbackin;
//alert(urlin);
cntsuffixzhr.open('GET', urlin, true);
cntsuffixzhr.send(null);
}
}
}
function ajaxit(urlin) {
if (urlin.length > 0) {
aurl=urlin;
if (window.XMLHttpRequest) {
myxhr = new window.XMLHttpRequest;
}
else {
try {
myxhr = new ActiveXObject('Msxml2.XMLHTTP');
} catch (othermicrosoft) {
try {
myxhr = new ActiveXObject('Microsoft.XMLHTTP');
} catch (failed) {
myxhr = false;
}
}
}
var xurl = 'https://www.googleapis.com/pagespeedonline/v1/runPagespeed?url=' + encodeURIComponent(urlin) + '&screenshot=true';
if (myxhr) {
myxhr.onreadystatechange = backin;
myxhr.open('GET', xurl, true);
myxhr.send(null);
}
}
}
function preface(infg) {
if (infg.indexOf('</div><!-- #access -->') != -1 && infg.indexOf('<div id="access"') != -1) {
infg=infg.replace('</div><!-- #access -->','</div></div><!-- #access -->').replace('<div id="access"', '<div style="width:100%;height:90px;overflow:scroll;"><div id="access"');
}
if (infg.indexOf('<a href="#content" title="Skip to content">Skip to content</a>') != -1) {
infg=infg.replace('<a href="#content" title="Skip to content">Skip to content</a>','<a href="' + document.URL + '" title="' + document.title.split(' | ')[0] + '">' + document.title.split(' | ')[0] + '</a>').replace('<a onclick=" alert(wadvice.replace("touch on","hover over")); " href="#" title="Long hover contextual help ... welcome to the long hover functionality that shows Context Help Mode toggling functionality via relevant All Posts menu Toggle Context Help Mode submenu ... also note that Highlighting Webpage Contents allows for Wikipedia, Google Translate, Free Dictionary and Google Search functionalities to appear" onmouseover=" getContextHelpMode(); " ontouchstart=" getContextHelpMode(); " onmouseout=" yehBut(); " ontouchend=" yehBut(); ">Highlighting and long hover help.</a>','').replace('width="940" height="198" style="width:940px;height:198px;"','width="94" height="20" style="width:94px;height:20px;"').replace('"nav-next">','"nav-next" style="display:inline-block;">').replace('"nav-previous">','"nav-previous" style="display:inline-block;">').replace('"nav-above" ','"nav-above" style="display:inline-block;" ').replace('"site-title">','"site-title" style="display:inline-block;">').replace('"site-description">','"site-description" style="display:inline-block;">');
}
if (infg.indexOf('<sel' + 'ect id="linkhints" ') != -1) {
if (infg.indexOf(' onlosefocus=') == -1) {
//if (document.URL.indexOf('pn=') != -1) {
//infg=infg.replace('<sel' + 'ect id="linkhints" ', '<sel' + 'ect id="linkhints" onlosefocus="document.getElementById(' + "'" + 's' + "'" + ').focus();" ');
//} else {
infg=infg.replace('<sel' + 'ect id="linkhints" ', '<sel' + 'ect id="linkhints" onlosefocus="document.getElementById(' + "'" + 's' + "'" + ').focus();" ');
//}
}
return infg=infg.replace('<sel' + 'ect id="linkhints" ' + infg.split('<sel' + 'ect id="linkhints" ')[1].split('</sel' + 'ect>')[0] + '</sel' + 'ect>', '');
}
return infg;
}
function lsit(on_mode,in_url,in_subject,in_from,in_to,in_reply) {
var sfaris='';
var dow=['Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday'];
var adate=new Date();
var his=eval('' + adate.getHours());
var mis=eval('' + adate.getMinutes());
var sis=eval('' + adate.getSeconds());
var ssuff='';
if (('' + adate).indexOf(' GMT') != -1) { ssuff=' GMT' + ('' + adate).split(' GMT')[1]; }
var rvalis=dow[eval('' + adate.getDay())] + ' ' + ('0' + his).slice(-2) + ':' + ('0' + mis).slice(-2) + ':' + ('0' + sis).split('.')[0].slice(-2) + ' ' + ('0' + adate.getDate()).slice(-2) + ' ' + ('0' + eval(1 + eval('' + adate.getMonth()))).slice(-2).replace('01','Jan').replace('02','Feb').replace('03','Mar').replace('04','Apr').replace('05','May').replace('06','Jun').replace('07','Jul').replace('08','Aug').replace('09','Sep').replace('10','Oct').replace('11','Nov').replace('12','Dec') + ' ' + ('' + adate.getFullYear()) + ' ' + ssuff;
if (on_mode) {
return ' on ' + rvalis;
}
if (window.localStorage) {
var prefn='~~' + rvalis + '~~' + in_reply.replace(/\'/g,'`') + '~~ ~~';
var proposedn=in_url.split('//')[1].replace(/\ /g,'~').replace(/\//g,'~') + in_from.replace(/\ /g,'~').replace(/\//g,'~') + in_to.replace(/\ /g,'~').replace(/\//g,'~') ;
var lastn=decodeURIComponent('' + window.localStorage.getItem('lastn_' + in_from.replace(/\ /g,'~').replace(/\//g,'~')));
if (lastn != proposedn && lastn != '') { window.localStorage.removeItem(lastn); }
if (lastn != '') { window.localStorage.removeItem('lastn_' + in_from.replace(/\ /g,'~').replace(/\//g,'~')); }
window.localStorage.setItem('lastn_' + in_from.replace(/\ /g,'~').replace(/\//g,'~'), encodeURIComponent(proposedn));
sfaris=decodeURIComponent('' + window.localStorage.getItem(in_url.split('//')[1].replace(/\ /g,'~').replace(/\//g,'~') + in_from.replace(/\ /g,'~').replace(/\//g,'~') + in_to.replace(/\ /g,'~').replace(/\//g,'~') ));
if (!sfaris) { sfaris=''; } else if (sfaris == 'null') { sfaris=''; }
window.localStorage.removeItem(in_url.split('//')[1].replace(/\ /g,'~').replace(/\//g,'~') + in_from.replace(/\ /g,'~').replace(/\//g,'~') + in_to.replace(/\ /g,'~').replace(/\//g,'~'));
window.localStorage.setItem(in_url.split('//')[1].replace(/\ /g,'~').replace(/\//g,'~') + in_from.replace(/\ /g,'~').replace(/\//g,'~') + in_to.replace(/\ /g,'~').replace(/\//g,'~'), encodeURIComponent(prefn + sfaris));
}
return sfaris;
}
function pre_last_email_check() {
}
function post_pp_ref() {
if (document.getElementById('iftable')) {
if (document.getElementById('ifabottomp')) {
if (document.getElementById('ifabottomn')) {
if (('' + document.getElementById('ifabottomp').src).trim() != '' && ('' + document.getElementById('ifabottomp').src) == ('' + document.getElementById('ifabottomn').src)) {
return '';
} //else {
//console.log('Oops ' + document.getElementById('abottomp').href + ' vs ' + document.getElementById('abottomn').href);
//}
} //else {
//console.log('oOps');
//}
} //else {
//console.log('ooPs');
//}
location.href='#iftable#andabit=-70'; // was -60
}
}
function pp_ref(inuone, inutwo) {
if ((inuone + inutwo).indexOf('pp=&pn=&title=') != -1 || (inuone + inutwo).indexOf('pp&pn&title=') != -1) {
setTimeout(post_pp_ref, 8000);
}
}
function last_email_check() {
if (document.getElementById('linkhints') && document.URL.indexOf('&pn') != -1) {
document.getElementById('linkhints').style.marginTop='-70px';
}
var imsare=document.getElementsByTagName('img');
for (var jimsare=0; jimsare<imsare.length; jimsare++) {
if (('' + imsare[jimsare].src).indexOf('&u=') != -1) {
imsare[jimsare].src=imsare[jimsare].src.split('&u=')[1];
}
}
}
var rldone='';
function arsthen() {
if (onlok) {
if (document.getElementById('myicon')) {
document.getElementById('myicon').href='/favicon' + rldone.trim() + '.ico';
if (rldone == '') {
rldone='-2';
} else if (rldone != rldone.trim()) {
rldone='' + eval(1 + eval('' + rldone.trim())) + ' ';
if (rldone == '-1 ') { rldone=''; }
} else {
rldone='' + eval(-1 + eval('' + rldone.trim()));
if (rldone == '-7') { rldone='-5 '; }
}
} else {
var fi=document.createElement('link');
fi.rel='icon';
fi.id='myicon';
if (rldone == '') {
fi.href='/favicon' + rldone.trim() + '.ico';
rldone='-2';
} else if (rldone != rldone.trim()) {
rldone='' + eval(1 + eval('' + rldone.trim())) + ' ';
if (rldone == '-1 ') { rldone=''; }
} else {
rldone='' + eval(-1 + eval('' + rldone.trim()));
if (rldone == '-7') { rldone='-5 '; }
}
document.head.appendChild(fi);
}
}
setTimeout(arsthen, 1000);
}
function setLookupwWords() {
if (jjxhr.readyState == 4) {
if (jjxhr.status == 200) {
if (jjxhr.responseText) {
if (jjxhr.responseText != '') {
//alert(jjxhr.responseText);
document.getElementById('drefresh').innerHTML=jjxhr.responseText;
document.getElementById('drefresh').style.display='inline-block';
}
}
}
}
}
function woprchk() {
if (window.opener) {
if (window.opener.document.getElementById('drefresh')) {
if (window.opener.document.getElementById('drefresh').innerHTML.trim() != '') {
document.getElementById('drefresh').innerHTML=window.opener.document.getElementById('drefresh').innerHTML;
document.getElementById('drefresh').style.display='inline-block';
}
}
}
if (lte != '') {
if (document.getElementById('drefresh').innerHTML.trim() != '') {
if (document.getElementById('drefresh').innerHTML.indexOf(lte) == -1) {
document.getElementById('drefresh').style.display='none';
document.getElementById('drefresh').innerHTML='';
}
}
}
}
function ahashlook() { // #andabit=-60
if (onlok) {
var ogh=docgetclass('entry-title', 'h1');
if (ogh.length == 0) { docgetclass('entry-title', 'h2'); }
if (ogh.length == 0) {
lte=ogh[0].innerHTML.split(' <')[0].split('<')[0];
} else {
lte=document.getElementsByTagName('h1')[0].innerHTML.split(' <')[0].split('<')[0];
}
if (document.getElementById('drefresh').innerHTML.trim() != '') {
if (document.getElementById('drefresh').innerHTML.indexOf(lte) == -1) {
document.getElementById('drefresh').style.display='none';
document.getElementById('drefresh').innerHTML='';
}
}
setTimeout(woprchk, 3000);
if (document.getElementById('drefresh').innerHTML.trim() != '') { document.getElementById('drefresh').style.display='inline-block'; }
if (1 == 2) {
if (document.getElementById('drefresh').innerHTML != '') { document.getElementById('drefresh').style.display='inline-block'; }
var jjform = new FormData();
jjxhr = new XMLHttpRequest();
jjform.append('lastdrefresh', '');
jjxhr.onreadystatechange = setLookupwWords;
jjxhr.open('get', document.URL.split('/ITblog')[0] + '/ITblog/toggle_download.php', true);
jjxhr.send(jjform);
}
var ahashois = document.getElementsByTagName('a');
var ahashs=[];
var amend=false;
var bhuhih=document.body.innerHTML;
for (var idmjk=0; idmjk<ahashois.length; idmjk++) {
if (('' + ahashois[idmjk].href + '').replace(document.URL.split('#')[0],'').indexOf('#') == 0 && ('' + ahashois[idmjk].outerHTML).indexOf(' onclick=') == -1) {
if (('' + ahashois[idmjk].id).replace(/^null$/g,'') != '') {
amend=true;
bhuhih=bhuhih.replace(' id="' + ahashois[idmjk].id + '"', ' id="' + ahashois[idmjk].id + '" onclick="hashtagreturnp(event);"');
if (bhuhih.indexOf('' + ahashois[idmjk].href.replace(document.URL.split('#')[0],'').replace('#andabit=-70','') + '"') != -1) {
console.log('yes ' + '' + ahashois[idmjk].href.replace(document.URL.split('#')[0],'').replace('#andabit=-70','') + '"');
} else {
console.log('no ' + '"' + ahashois[idmjk].href.replace(document.URL.split('#')[0],'').replace('#andabit=-70','') + '"');
}
bhuhih=bhuhih.replace('' + ahashois[idmjk].href.replace(document.URL.split('#')[0],'').replace('#andabit=-70','') + '"', '' + ahashois[idmjk].href.replace(document.URL.split('#')[0],'').replace('#andabit=-60','') + '#andabit=-60"');
} else {
amend=true;
if (bhuhih.indexOf('"' + ahashois[idmjk].href.replace(document.URL.split('#')[0],'').replace('#andabit=-70','') + '"') != -1) {
console.log('Yes ' + '"' + ahashois[idmjk].href.replace(document.URL.split('#')[0],'').replace('#andabit=-70','') + '"');
} else {
console.log('No ' + '"' + ahashois[idmjk].href.replace(document.URL.split('#')[0],'').replace('#andabit=-70','') + '"');
}
bhuhih=bhuhih.replace(ahashois[idmjk].outerHTML, ahashois[idmjk].outerHTML.replace('>', ' id="ahash' + Math.floor(Math.random() * 19876543) + '" onclick="hashtagreturnp(event);">').replace('' + ahashois[idmjk].href.replace(document.URL.split('#')[0],'').replace('#andabit=-70','') + '"', '' + ahashois[idmjk].href.replace(document.URL.split('#')[0],'').replace('#andabit=-70','') + '#andabit=-70"'));
}
}
}
if (amend) {
//document.body.innerHTML=bhuhih.replace(/http\:\/\//g, '//');
document.body.innerHTML=bhuhih;
}
}
}
function hagtagblank() {
if (document.getElementById('aahtreturn').innerHTML != document.getElementById('aahtreturn').innerHTML.trim()) {
//console.log('extending wait');
document.getElementById('aahtreturn').innerHTML=document.getElementById('aahtreturn').innerHTML.replace(/\ \.[\.]*\ $/g, ' ... ');
if (navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i)) {
setTimeout(hagtagblank, 50000);
} else {
setTimeout(hagtagblank, 20000);
}
} else {
//console.log('unextending wait *' + document.getElementById('aahtreturn').innerHTML + '*');
document.getElementById('ahtreturn').innerHTML='';
}
}
function hashtagendure() {
if (document.getElementById('aahtreturn')) {
if (document.getElementById('aahtreturn').innerHTML.replace(/\ $/g, '') == document.getElementById('aahtreturn').innerHTML) {
document.getElementById('aahtreturn').innerHTML=document.getElementById('aahtreturn').innerHTML.trim() + String.fromCharCode(32);
//console.log('helping extending wait');
}
}
}
function hashtagreturnp(evt) {
var aeleo=evt.target;
if (navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i)) {
document.getElementById('ahtreturn').innerHTML='<a id="aahtreturn" style="position:fixed;top:50px;left:10px;background-color:yellow;opacity:0.5;display:inline-block;" href="#' + aeleo.id + '#andabit=-70" title="Return to reading via click within 50 seconds (or during 50 seconds after hovering over this link)" onclick="document.getElementById(' + "'" + 'ahtreturn' + "'" + ').innerHTML=' + "'" + '' + "'" + ';" onmouseover="setTimeout(hashtagendure, 5000);" onmouseout="console.log(String.fromCharCode(46) + String.fromCharCode(46) + String.fromCharCode(46)); this.innerHTML=this.innerHTML.trim() + String.fromCharCode(46);">Back to reading ...</a>';
setTimeout(hagtagblank, 50000);
} else {
document.getElementById('ahtreturn').innerHTML='<a id="aahtreturn" style="position:fixed;top:50px;left:10px;background-color:yellow;opacity:0.5;display:inline-block;" href="#' + aeleo.id + '#andabit=-70" title="Return to reading via click within 20 seconds (or during 20 seconds after hovering over this link)" onclick="document.getElementById(' + "'" + 'ahtreturn' + "'" + ').innerHTML=' + "'" + '' + "'" + ';" onmouseover="setTimeout(hashtagendure, 5000);" onmouseout="console.log(String.fromCharCode(46) + String.fromCharCode(46) + String.fromCharCode(46)); this.innerHTML=this.innerHTML.trim() + String.fromCharCode(46);">Back to reading ...</a>';
setTimeout(hagtagblank, 20000);
}
}
function divnthcssf() {
var nnum=1;
var lastpst='';
var drects=null;
if (document.getElementById('divnthcss')) {
if (document.getElementById('divnthcss').innerHTML.indexOf('style>') != -1) {
if (1 == 2) { alert(document.getElementById('divnthcss').innerHTML); }
var ddivt=document.getElementById('divnthcss').innerHTML; //.replace(/\!\-\-/g,'').replace(/\-\-/g,'');
var sss=document.getElementsByTagName('div');
for (var isss=0; isss<sss.length; isss++) {
if (sss[isss].outerHTML.indexOf(' id="post-') != -1 && sss[isss].outerHTML.indexOf(' content="') != -1) {
drects=sss[isss].getBoundingClientRect();
if (sss[isss].outerHTML.split(' id="post-')[1].split('"')[0] != lastpst) {
ddivt=ddivt.replace('20170230', sss[isss].outerHTML.split(' content="')[1].split('"')[0].replace(/\-/g,'')).replace('!--','').replace('--','');
ddivt=ddivt.replace('.entry-meta:nth-of-type(' + nnum + ')','#post-' + sss[isss].outerHTML.split(' id="post-')[1].split('"')[0]);
//if (eval('0' + drects.width) > 500) {
// ddivt=ddivt.replace('0px 60px', '' + eval(eval('' + drects.width) - 500) + 'px 61px');
//} else {
// ddivt=ddivt.replace('0px 60px', '0px 61px');
//}
nnum++;
lastpst=sss[isss].outerHTML.split(' id="post-')[1].split('"')[0];
}
}
}
//alert(ddivt);
document.getElementById('divnthcss').innerHTML=ddivt;
}
}
}
function bylinedo() {
var ahuhrect=document.getElementById('access').getBoundingClientRect();
var huhrect=document.getElementById('ahomeis').getBoundingClientRect();
if (navigator.userAgent.match(/Android|BlackBerry|iPhone|iPod|Opera Mini|IEMobile/i)) {
document.getElementById('ahomeis').innerHTML=document.getElementById('ahomeis').innerHTML.replace(' Blog', ' <span id=sbyline><font size=2><i><strong>... I.T.</strong></i></font></span> Blog');
} else {
//document.getElementById('hdgspan').innerHTML+='<span id=sbyline style="position:absolute;left:' + ahuhrect.left + 'px;top:' + eval(53 + eval('' + huhrect.top)) + 'px;"><font size=2><i><strong>A "Dot Dot Dot" Information Technology Blog</strong></i></font></span>';
//alert('sw=' + screen.width + ' al=' + ahuhrect.left + ' ... ' + eval(100 * eval('' + screen.width) / eval('' + ahuhrect.left)));
// Thanks to https://stackoverflow.com/questions/995914/catch-browsers-zoom-event-in-javascript
document.getElementById('hdgspan').innerHTML+='<span id=sbyline style="position:absolute;right:' + eval(100 * eval('' + huhrect.right) / eval('' + screen.width)) + '%;top:' + eval(53 + eval('' + huhrect.top)) + 'px;"><font size=2><i><strong>A "Dot Dot Dot" Information Technology Blog</strong></i></font></span>';
//window.onresize=function(){ alert(65); var bhuhrect=document.getElementById('access').getBoundingClientRect(); document.getElementById('hdgspan').style.left='' + bhuhrect.left + 'px'; };
}
}
function postnewlpcheck() {
window.scrollTo(0,0); //location.href='#ahomeis';
}
function newlpcheck() {
if (document.getElementById('ifabottomp')) {
if (document.getElementById('ifabottomn')) {
if (('' + document.getElementById('ifabottomp').src).trim() != '' && ('' + document.getElementById('ifabottomp').src) == ('' + document.getElementById('ifabottomn').src)) {
//document.getElementById('abottomp').href+='#upthetop';
setTimeout(postnewlpcheck, 5000);
}
} else {
setTimeout(newlpcheck, 3000);
}
} else {
setTimeout(newlpcheck, 3000);
}
}
function fallbackCopyTextToClipboard(text) { // thanks to https://stackoverflow.com/questions/400212/how-do-i-copy-to-the-clipboard-in-javascript
var textArea = document.createElement("textarea");
//alert(text);
textArea.value = text;
// Avoid scrolling to bottom
textArea.style.top = "0";
textArea.style.left = "0";
textArea.style.position = "fixed";
document.body.appendChild(textArea);
textArea.focus();
textArea.select();
try {
var successful = document.execCommand('copy');
var msg = successful ? 'successful' : 'unsuccessful';
console.log('Fallback: Copying text command was ' + msg);
} catch (err) {
console.error('Fallback: Oops, unable to copy', err);
}
document.body.removeChild(textArea);
}
function copyTextToClipboard(text) { // thanks to https://stackoverflow.com/questions/400212/how-do-i-copy-to-the-clipboard-in-javascript
//alert('text=' + text);
if (!navigator.clipboard) {
fallbackCopyTextToClipboard(text);
return;
}
navigator.clipboard.writeText(text).then(function() {
console.log('Async: Copying to clipboard was successful!');
}, function(err) {
console.error('Async: Could not copy text: ', err);
});
}
function ifotherthanfont(cii) {
var newcii=cii, allokay=true, ncs=[], incs=0;
if (cii.indexOf('</font>') != -1 || cii.indexOf('</FONT>') != -1) {
ncs=cii.split('</');
for (incs=1; incs<ncs.length; incs++) {
if (ncs[incs].toLowerCase().indexOf('font') != 0) { allokay=false; }
}
if (!allokay || 1 == 1) {
ncs=cii.split('<font');
for (incs=1; incs<ncs.length; incs++) {
newcii=newcii.replace('<font' + ncs[incs].split('>')[0] + '>', '');
newcii=newcii.replace('</font>', '');
}
ncs=cii.split('<FONT');
for (incs=1; incs<ncs.length; incs++) {
newcii=newcii.replace('<FONT' + ncs[incs].split('>')[0] + '>', '');
newcii=newcii.replace('</FONT>', '');
}
}
}
return newcii;
}
function codecopying(mode) {
var rectcos=null, icn=0, okpast=false;
var cos=document.getElementsByTagName('code');
for (var ico=0; ico<cos.length; ico++) {
if (mode == '') {
rectcos=cos[ico].getBoundingClientRect();
document.getElementById('dcode').innerHTML+='<span data-fword="' + encodeURIComponent(ifotherthanfont(cos[ico].innerHTML).substring(0,100)) + '" onclick="codecopying(this.id);" title="Copy unadorned code to clipboard buffer" id=scd' + ico + ' style="position:absolute;z-index:56;left:' + eval(-50 + eval('' + rectcos.right)) + 'px;top:' + eval(10 + eval('' + rectcos.top)) + 'px;font-size:24px;">📋</span>';
} else if (okpast && encodeURIComponent(ifotherthanfont(cos[ico].innerHTML).substring(0,100)) == document.getElementById(mode).getAttribute('data-fword')) {
document.getElementById(mode).style.border='1px dashed pink';
copyTextToClipboard(ifotherthanfont(cos[ico].innerHTML).replace(/\&\;nbsp\;/g, ' ').replace(/\&\;\#/g, '').replace(/ \&\;\;/g, ' &;').replace(/\<br\>/g, '').replace(/\<\;/g, '<').replace(/\>\;/g, '>').replace(/\ \&\;\&\;\ /g, ' && ').replace(/\&\;amp/g, '&').trim());
okpast=false;
} else if (mode == ('scd' + ico)) { // Thanks to https://www.freecodecamp.org/news/copy-text-to-clipboard-javascript/
if (encodeURIComponent(ifotherthanfont(cos[ico].innerHTML).substring(0,100)) != document.getElementById(mode).getAttribute('data-fword')) {
okpast=true;
} else {
document.getElementById(mode).style.border='1px dashed pink';
copyTextToClipboard(ifotherthanfont(cos[ico].innerHTML).replace(/\&\;nbsp\;/g, ' ').replace(/\&\;\#/g, '').replace(/ \&\;\;/g, ' &;').replace(/\<br\>/g, '').replace(/\<\;/g, '<').replace(/\>\;/g, '>').replace(/\ \&\;\&\;\ /g, ' && ').replace(/\&\;amp/g, '&').trim());
}
}
}
}
function locsess(inldef) {
var outldef=inldef;
if (inldef == '') { // listimage
if (decodeURIComponent(('' + window.localStorage.getItem('listimage')).replace(/^undefined/g,'').replace(/^null/g,'')) != '') {
outldef=decodeURIComponent(window.localStorage.getItem('listimage')).replace(/\%2C/g,',');
if (document.URL.indexOf('listimage=') == -1) {
if (document.URL.indexOf('?') == -1) {
location.href=document.URL.split('#')[0] + '?' + outldef.substring(1);
return inldef;
} else {
location.href=document.URL.split('#')[0] + '' + outldef;
return inldef;
}
}
} else if (decodeURIComponent(('' + window.sessionStorage.getItem('listimage')).replace(/^undefined/g,'').replace(/^null/g,'')) != '') {
outldef=decodeURIComponent(window.sessionStorage.getItem('listimage')).replace(/\%2C/g,',');;
if (document.URL.indexOf('listimage=') == -1) {
if (document.URL.indexOf('?') == -1) {
location.href=document.URL.split('#')[0] + '?' + outldef.substring(1);
return inldef;
} else {
location.href=document.URL.split('#')[0] + '' + outldef;
return inldef;
}
}
}
}
return outldef;
}
function list_style_image_check() {
var hbit=(" height: " + (location.search.split('listhimage=')[1] ? ('' + decodeURIComponent(location.search.split('listhimage=')[1].split('&')[0])) : (location.search.split('listwimage=')[1] ? ('' + Math.round(eval(('' + decodeURIComponent(location.search.split('listwimage=')[1].split('&')[0]))) * 5.0 / 7.0)) : " 25")) + "px; ").replace(' height: 25px; ','');
var wbit=(" width: " + (location.search.split('listwimage=')[1] ? ('' + decodeURIComponent(location.search.split('listwimage=')[1].split('&')[0])) : ' 35') + "px; ").replace(' width: 35px; ','');
var mlit=(" margin-left: " + (location.search.split('listwimage=')[1] ? ('-' + decodeURIComponent(location.search.split('listwimage=')[1].split('&')[0])) : ' -35') + "px; ").replace(' margin-left: -35px; ','');
var listimage='', lsbit='&listimage=', mlbit=('' + wbit + hbit.replace('height','font-size') + hbit + mlit).replace(' width:',' display:inline-block; width:');
if ((document.URL.split('#')[0] + '&').indexOf('listimage=--&') != -1 || (document.URL.split('#')[0] + '&').indexOf('listimage=' + encodeURIComponent('--') + '&') != -1) {
if (decodeURIComponent(('' + window.localStorage.getItem('listimage')).replace(/^undefined/g,'').replace(/^null/g,'')) != '') {
window.localStorage.removeItem('listimage');
}
if (decodeURIComponent(('' + window.sessionStorage.getItem('listimage')).replace(/^undefined/g,'').replace(/^null/g,'')) != '') {
window.sessionStorage.removeItem('listimage');
}
} else if ((document.URL.split('#')[0] + '&').indexOf('listimage=-&') != -1 || (document.URL.split('#')[0] + '&').indexOf('listimage=' + encodeURIComponent('-') + '&') != -1) {
if (decodeURIComponent(('' + window.sessionStorage.getItem('listimage')).replace(/^undefined/g,'').replace(/^null/g,'')) != '') {
window.sessionStorage.removeItem('listimage');
}
}
listimage=location.search.split('listimage=')[1] ? decodeURIComponent(location.search.split('listimage=')[1].split('&')[0]).replace(/\+/g,' ') : locsess("");
if (listimage.replace(/\-/g,'') != '' && (listimage + '@#$').indexOf(' @#$') != -1) {
if (decodeURIComponent(('' + window.localStorage.getItem('listimage')).replace(/^undefined/g,'').replace(/^null/g,'')) != '') {
window.localStorage.removeItem('listimage');
}
lsbit+=encodeURIComponent(listimage.trim());
if ((location.search.split('midpseudoclass=')[1] ? ('' + decodeURIComponent(location.search.split('midpseudoclass=')[1].split('&')[0])) : ":") != ":") {
lsbit+='&midpseudoclass=' + encodeURIComponent((location.search.split('midpseudoclass=')[1] ? ('' + decodeURIComponent(location.search.split('midpseudoclass=')[1].split('&')[0])) : ":"));
}
if ((location.search.split('listwimage=')[1] ? ('' + decodeURIComponent(location.search.split('listwimage=')[1].split('&')[0])) : '') != '') {
lsbit+='&listwimage=' + encodeURIComponent((location.search.split('listwimage=')[1] ? ('' + decodeURIComponent(location.search.split('listwimage=')[1].split('&')[0])) : ''));
}
if ((location.search.split('listhimage=')[1] ? ('' + decodeURIComponent(location.search.split('listhimage=')[1].split('&')[0])) : '') != '') {
lsbit+='&listhimage=' + encodeURIComponent((location.search.split('listhimage=')[1] ? ('' + decodeURIComponent(location.search.split('listhimage=')[1].split('&')[0])) : ''));
}
window.localStorage.setItem('listimage', lsbit);
} else if (listimage.replace(/\-/g,'') != '' && (listimage + '@#$').indexOf(' @#$') != -1) {
if (decodeURIComponent(('' + window.sessionStorage.getItem('listimage')).replace(/^undefined/g,'').replace(/^null/g,'')) != '') {
window.sessionStorage.removeItem('listimage');
}
lsbit+=encodeURIComponent(listimage.trim());
if ((location.search.split('midpseudoclass=')[1] ? ('' + decodeURIComponent(location.search.split('midpseudoclass=')[1].split('&')[0])) : ":") != ":") {
lsbit+='&midpseudoclass=' + encodeURIComponent((location.search.split('midpseudoclass=')[1] ? ('' + decodeURIComponent(location.search.split('midpseudoclass=')[1].split('&')[0])) : ":"));
}
if ((location.search.split('listwimage=')[1] ? ('' + decodeURIComponent(location.search.split('listwimage=')[1].split('&')[0])) : '') != '') {
lsbit+='&listwimage=' + encodeURIComponent((location.search.split('listwimage=')[1] ? ('' + decodeURIComponent(location.search.split('listwimage=')[1].split('&')[0])) : ''));
}
if ((location.search.split('listhimage=')[1] ? ('' + decodeURIComponent(location.search.split('listhimage=')[1].split('&')[0])) : '') != '') {
lsbit+='&listhimage=' + encodeURIComponent((location.search.split('listhimage=')[1] ? ('' + decodeURIComponent(location.search.split('listhimage=')[1].split('&')[0])) : ''));
}
window.sessionStorage.setItem('listimage', lsbit);
}
if (listimage.replace(/\-/g,'') != '') {
var contbit=" content:''; ";
var dbistuff='';
var pclass=(location.search.split('midpseudoclass=')[1] ? ('' + decodeURIComponent(location.search.split('midpseudoclass=')[1].split('&')[0])) : "");
var alistimage=listimage.split(',');
var blistimage=listimage.split('.');
var iblistimage=0, jlistimage=0;
var apclass=pclass.split(',');
if (eval('' + alistimage.length) > 1) {
if (apclass[0].trim() == '') {
if (alistimage[0].toLowerCase().trim().replace(/\./g,'').replace(/0/g,'').replace(/1/g,'').replace(/2/g,'').replace(/3/g,'').replace(/4/g,'').replace(/5/g,'').replace(/6/g,'').replace(/7/g,'').replace(/8/g,'').replace(/9/g,'').replace(/a/g,'').replace(/b/g,'').replace(/c/g,'').replace(/d/g,'').replace(/e/g,'').replace(/f/g,'') != '') {
dbistuff+="<style> ul.noclass li:" + apclass[0] + ":before { content: ''; display: inline-block; height: " + (location.search.split('listhimage=')[1] ? ('' + decodeURIComponent(location.search.split('listhimage=')[1].split('&')[0])) : (location.search.split('listwimage=')[1] ? ('' + Math.round(eval(('' + decodeURIComponent(location.search.split('listwimage=')[1].split('&')[0]))) * 5.0 / 7.0)) : "25")) + "px; width: " + (location.search.split('listwimage=')[1] ? ('' + decodeURIComponent(location.search.split('listwimage=')[1].split('&')[0])) : "35") + "px; background-image: url('" + alistimage[jlistimage] + "'); background-size: contain; background-repeat: no-repeat; margin-left: -" + (location.search.split('listwimage=')[1] ? (':' + decodeURIComponent(location.search.split('listwimage=')[1].split('&')[0])) : "35") + "px; } </style>";
} else {
blistimage=alistimage[0].split('.');
// content:'\000031\0020e3';
contbit=" content:''; ";
contbit=" content:'\\" + ('000000' + blistimage[0]).slice(-6) + "'; ";
for (iblistimage=1; iblistimage<blistimage.length; iblistimage++) {
contbit=contbit.replace("';", "\\" + ('000000' + blistimage[iblistimage]).slice(-6) + "';");
}
dbistuff+="<style> ul.noclass li:" + apclass[0] + ":before { " + contbit + mlbit + " } </style>";
}
apclass[0]='nth-child(1)';
}
for (jlistimage=0; jlistimage<alistimage.length; jlistimage++) {
if (apclass.length <= eval(0 + jlistimage)) {
apclass.push(apclass[0].replace('(1)', '(' + eval(1 + jlistimage) + ')'));
}
if (alistimage[jlistimage].toLowerCase().trim().replace(/\./g,'').replace(/0/g,'').replace(/1/g,'').replace(/2/g,'').replace(/3/g,'').replace(/4/g,'').replace(/5/g,'').replace(/6/g,'').replace(/7/g,'').replace(/8/g,'').replace(/9/g,'').replace(/a/g,'').replace(/b/g,'').replace(/c/g,'').replace(/d/g,'').replace(/e/g,'').replace(/f/g,'') != '') {
dbistuff+="<style> ul.noclass li:" + apclass[jlistimage] + ":before { content: ''; display: inline-block; height: " + (location.search.split('listhimage=')[1] ? ('' + decodeURIComponent(location.search.split('listhimage=')[1].split('&')[0])) : (location.search.split('listwimage=')[1] ? ('' + Math.round(eval(('' + decodeURIComponent(location.search.split('listwimage=')[1].split('&')[0]))) * 5.0 / 7.0)) : "25")) + "px; width: " + (location.search.split('listwimage=')[1] ? ('' + decodeURIComponent(location.search.split('listwimage=')[1].split('&')[0])) : "35") + "px; background-image: url('" + alistimage[jlistimage] + "'); background-size: contain; background-repeat: no-repeat; margin-left: -" + (location.search.split('listwimage=')[1] ? (':' + decodeURIComponent(location.search.split('listwimage=')[1].split('&')[0])) : "35") + "px; } </style>";
} else {
blistimage=alistimage[jlistimage].split('.');
// content:'\000031\0020e3';
contbit=" content:''; ";
contbit=" content:'\\" + ('000000' + blistimage[0]).slice(-6) + "'; ";
for (iblistimage=1; iblistimage<blistimage.length; iblistimage++) {
contbit=contbit.replace("';", "\\" + ('000000' + blistimage[iblistimage]).slice(-6) + "';");
}
dbistuff+="<style> ul.noclass li:" + apclass[jlistimage] + ":before { " + contbit + mlbit + " } </style>";
}
}
document.body.innerHTML+=dbistuff;
} else if (listimage.toLowerCase().trim().replace(/\./g,'').replace(/0/g,'').replace(/1/g,'').replace(/2/g,'').replace(/3/g,'').replace(/4/g,'').replace(/5/g,'').replace(/6/g,'').replace(/7/g,'').replace(/8/g,'').replace(/9/g,'').replace(/a/g,'').replace(/b/g,'').replace(/c/g,'').replace(/d/g,'').replace(/e/g,'').replace(/f/g,'') != '') {
document.body.innerHTML+="<style> ul.noclass li" + (location.search.split('midpseudoclass=')[1] ? (':' + decodeURIComponent(location.search.split('midpseudoclass=')[1].split('&')[0])) : ":") + ":before { content: ''; display: inline-block; height: " + (location.search.split('listhimage=')[1] ? ('' + decodeURIComponent(location.search.split('listhimage=')[1].split('&')[0])) : (location.search.split('listwimage=')[1] ? ('' + Math.round(eval(('' + decodeURIComponent(location.search.split('listwimage=')[1].split('&')[0]))) * 5.0 / 7.0)) : "25")) + "px; width: " + (location.search.split('listwimage=')[1] ? ('' + decodeURIComponent(location.search.split('listwimage=')[1].split('&')[0])) : "35") + "px; background-image: url('" + listimage + "'); background-size: contain; background-repeat: no-repeat; margin-left: -" + (location.search.split('listwimage=')[1] ? (':' + decodeURIComponent(location.search.split('listwimage=')[1].split('&')[0])) : "35") + "px; } </style>";
} else {
// content:'\000031\0020e3';
contbit=" content:'\\" + ('000000' + blistimage[0]).slice(-6) + "'; ";
for (iblistimage=1; iblistimage<blistimage.length; iblistimage++) {
contbit=contbit.replace("';", "\\" + ('000000' + blistimage[iblistimage]).slice(-6) + "';");
}
document.body.innerHTML+="<style> ul.noclass li" + (location.search.split('midpseudoclass=')[1] ? (':' + decodeURIComponent(location.search.split('midpseudoclass=')[1].split('&')[0])) : ":") + ":before { " + contbit + " } </style>";
}
} else if ((location.search.split('midpseudoclass=')[1] ? (':' + decodeURIComponent(location.search.split('midpseudoclass=')[1].split('&')[0])) : ":") != ":") {
var stylestuff='', sparts=document.head.innerHTML.split('ul.noclass li::before {');
if (eval('' + sparts.length) > 1) {
for (var isparts=1; isparts<sparts.length; isparts++) {
stylestuff+=' ' + sparts[isparts].split('}')[0] + ' ';
}
}
if (stylestuff != '') {
document.body.innerHTML+="<style> ul.noclass li" + (location.search.split('midpseudoclass=')[1] ? (':' + decodeURIComponent(location.search.split('midpseudoclass=')[1].split('&')[0])) : ":") + ":before { " + stylestuff + " } </style>";
}
}
}
function nanb() {
var arrideas=[], karr=0, wasihis='';
//if (document.body.innerHTML.indexOf('ytaud' + 'ioonly') != -1) {
// alert('here at nanb');
//}
console.log('here at nanb()');
if (document.getElementById('nav-above')) {
wasihis=document.getElementById('nav-above').innerHTML;
arrideas=document.getElementById('nav-above').innerHTML.split('/?');
if (eval('' + arrideas.length) > 1) {
for (karr=1; karr<arrideas.length; karr++) {
if (arrideas[karr].indexOf('s=') != 0 && arrideas[karr].indexOf('post=') != 0 && arrideas[karr].indexOf('p=') != 0 && arrideas[karr].indexOf('page=') != 0 && arrideas[karr].indexOf('cat=') != 0 && arrideas[karr].indexOf('tag=') != 0) {
wasihis=wasihis.replace('/?' + arrideas[karr].split('"')[0] + '"', '/"');
console.log('wasihis=' + wasihis);
}
}
}
if (wasihis != document.getElementById('nav-above').innerHTML) {
document.getElementById('nav-above').innerHTML=wasihis;
}
}
if (document.getElementById('nav-below')) {
wasihis=document.getElementById('nav-below').innerHTML;
arrideas=document.getElementById('nav-below').innerHTML.split('/?');
if (eval('' + arrideas.length) > 1) {
for (karr=1; karr<arrideas.length; karr++) {
if (arrideas[karr].indexOf('s=') != 0 && arrideas[karr].indexOf('post=') != 0 && arrideas[karr].indexOf('p=') != 0 && arrideas[karr].indexOf('page=') != 0 && arrideas[karr].indexOf('cat=') != 0 && arrideas[karr].indexOf('tag=') != 0) {
wasihis=wasihis.replace('/?' + arrideas[karr].split('"')[0] + '"', '/"');
console.log('wasihis = ' + wasihis);
}
}
}
if (wasihis != document.getElementById('nav-below').innerHTML) {
document.getElementById('nav-below').innerHTML=wasihis;
}
}
var xconxli=docgetclass("entry-title", "h2");
for (karr=0; karr<xconxli.length; karr++) {
if (xconxli[karr]) {
if (xconxli[karr].innerHTML.indexOf('/?') != -1) {
wasihis=xconxli[karr].innerHTML;
arrideas=wasihis.split('/?');
if (eval('' + arrideas.length) > 1) {
for (karr=1; karr<arrideas.length; karr++) {
if (arrideas[karr].indexOf('s=') != 0 && arrideas[karr].indexOf('post=') != 0 && arrideas[karr].indexOf('p=') != 0 && arrideas[karr].indexOf('page=') != 0 && arrideas[karr].indexOf('cat=') != 0 && arrideas[karr].indexOf('tag=') != 0) {
wasihis=wasihis.replace('/?' + arrideas[karr].split('"')[0] + '"', '/"');
console.log('wasihis = ' + wasihis);
}
}
}
try {
if (wasihis != xconxli[karr].innerHTML) {
xconxli[karr].innerHTML=wasihis;
}
} catch(excvb) { }
}
}
}
}
function chkinodo() {
var mkh=0, lastahelsid='', lastahelstitle='';
var bihis='';
if (document.getElementById('content')) {
setTimeout(function(){
if (('' + document.getElementById('content').style.marginTop).indexOf('-50px') != -1) {
document.getElementById('content').style.marginTop='-40px';
}
}, 14000);
}
//if (document.URL.indexOf('&max=') != -1) { alert(0); }
if (document.URL.indexOf('s=') != -1 && document.URL.replace('&max=','wopenall=').indexOf('wopenall=') != -1 && document.URL.indexOf('ifnooldestdoone=') != -1 && document.URL.replace('&max=','paZge=').replace('/page','page=').indexOf('page=') == -1) {
bihis=document.body.innerHTML;
//if (document.URL.indexOf('&max=') != -1) { bihis=bihis.replace(/lder\ post/g, ''); }
var hels=document.getElementsByTagName('h1');
//if (document.URL.indexOf('&max=') != -1) { alert('' + hels.length + ' ... ' + document.getElementsByTagName('a').length); }
if (document.URL.indexOf('&paged=') != -1 && document.URL.indexOf('ifnooldestdoone=') != -1 && eval('' + hels.length) > 0 && document.body.innerHTML.indexOf('lder post') != -1 && document.URL.replace('&paged=','&max=').indexOf('&max=') != -1) {
location.href=document.URL.replace('&paged=' + document.URL.split('&paged=')[1].split('&')[0].split('#')[0], '&paged=' + eval(1 + eval('' + document.URL.split('&paged=')[1].split('&')[0].split('#')[0])));
return '';
} //else if (document.URL.indexOf('&paged=') != -1 && document.URL.indexOf('ifnooldestdoone=') != -1 && document.URL.indexOf('&max=') != -1) {
//alert('' + eval('' + hels.length) + ' nextpage=' + eval(1 + eval('' + document.URL.split('&paged=')[1].split('&')[0].split('#')[0])));
//alert(document.body.innerHTML.indexOf('lder post'));
//}
if (eval('' + hels.length) > 0 && (bihis.indexOf('lder post') == -1 || document.URL.indexOf('&max=') != -1)) {
//if (document.URL.indexOf('&max=') != -1) { alert(11); }
if (hels[0].innerHTML.indexOf('ldest') == -1) {
//if (document.URL.indexOf('&max=') != -1) { alert(111); }
if (hels[0].innerHTML.toLowerCase().indexOf('search result') != -1) {
//if (document.URL.indexOf('&max=') != -1) { alert(1111); }
var ahels=document.getElementsByTagName('a');
var asthere=false;
//hels[0].innerHTML+=',';
for (var jkh=0; jkh<ahels.length; jkh++) {
//if (document.URL.indexOf('&max=') != -1) { alert('jhk=' + jhk); }
if (('' + ahels[jkh].title).indexOf('Permalink to ') != -1) {
if (('' + ahels[jkh].outerHTML).indexOf(' id=') == -1) {
asthere=true;
ahels[jkh].id='mya' + mkh;
lastahelsid='' + ahels[jkh].id;
lastahelstitle='' + ('' + ahels[jkh].title).split('Permalink to ')[1];
mkh++;
} else {
asthere=true;
lastahelsid='' + ahels[jkh].id;
lastahelstitle='' + ('' + ahels[jkh].title).split('Permalink to ')[1];
}
}
}
if (!asthere) {
setTimeout(chkinodo, 5000);
}
}
}
if (lastahelsid != '' && lastahelstitle != '') {
hels[0].innerHTML+=' ... <a id=reposa href="#' + lastahelsid + '#andabit=-110" title="' + lastahelstitle + '">Oldest</a> ';
if (document.URL.replace('&paged=','&max=').indexOf('&max=') != -1) {
if (navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i)) {
setTimeout(function(){ document.getElementById(lastahelsid).scrollIntoView(); }, 8000);
} else if (document.getElementById('reposa')) {
document.getElementById('reposa').click();
} else {
location.href='#' + lastahelsid + '#andabit=-110';
}
}
}
}
}
}
setTimeout(arsthen, 3000);
setTimeout(divnthcssf, 2000);
</script>
</head>
<body title="Non-mobile right click or spread/pinch mobile gesture on most blog posting images can lead to image editing and annotating functionality, where for animated GIFs first slide is chosen." onload=" chkinodo(); precalpass(); setTimeout(captionsearchit, 1000); setTimeout(nanb,9000); setTimeout(frnx,2000); if (onlok) { ahashlook(); setInterval(prehideIt, 3000); pp_ref(('' + document.URL), ('' + document.referrer)); if (1 == 1) { lookforbincode(); } lookforhighlight(); postcalendar(); changeasfordownload(); if (cafd == cafd) { cafd=0; } else { cafd=true; } checkonl(); setTimeout(initpostedoncc, 3000); widgetcon(); precc(); courseCookies(); cookie_fonts(); is_mentioned_by(); calendar_pass(); prejustshow(); details_summary(0); pre_last_email_check(); maybevp(); setTimeout(last_email_check,15000); } if (navigator.userAgent.match(/Android|BlackBerry|iPhone|iPod|Opera Mini|IEMobile/i)) { setTimeout(bylinedo,5000); } else { bylinedo(); } setTimeout(newlpcheck, 3000); codecopying(''); list_style_image_check(); " class="post-template-default single single-post postid-49579 single-format-standard">
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', '364898112', 'auto');
ga('send', 'pageview');
</script>
<div style='display:none;' id='drefresh'> </div><iframe onload='rptds(this);' style='display:none;' src='//www.rjmprogramming.com.au/PHP/zero.html?rand=57920296'></iframe><select title="Thanks to Google Translate at //translate.google.com" style="display:none;background-color:white;color:blue;" id="xlanguage"><option value="">Language</option><option id="x0" value="af">Afrikaans</option><option id="x00" value="sq">Albanian</option><option id="x000" value="ar">Arabic</option><option id="x0000" value="hy">Armenian</option><option id="x00000" value="az">Azerbaijani</option><option id="x000000" value="eu">Basque</option><option id="x0000000" value="be">Belarusian</option><option id="x00000000" value="bg">Bulgarian</option><option id="x000000000" value="ca">Catalan</option><option id="x0000000000" value="zh-CN">Chinese (Simplified)</option><option id="x00000000000" value="zh-TW">Chinese (Traditional)</option><option id="x000000000000" value="hr">Croatian</option><option id="x0000000000000" value="cs">Czech</option><option id="x00000000000000" value="da">Danish</option><option id="x000000000000000" value="nl">Dutch</option><option value="">English</option><option id="x0000000000000000" value="et">Estonian</option><option id="x00000000000000000" value="tl">Filipino</option><option id="x000000000000000000" value="fi">Finnish</option><option d="0000000000000000000" value="fr">French</option><option id="x00000000000000000000" value="gl">Galician</option><option id="x000000000000000000000" value="ka">Georgian</option><option id="x0000000000000000000000" value="de">German</option><option id="x00000000000000000000000" value="el">Greek</option><option id="x000000000000000000000000" value="ht">Haitian Creole</option><option id="x0000000000000000000000000" value="iw">Hebrew</option><option id="x00000000000000000000000000" value="hi">Hindi</option><option id="x000000000000000000000000000" value="hu">Hungarian</option><option id="x0000000000000000000000000000" value="is">Icelandic</option><option id="x00000000000000000000000000000" value="id">Indonesian</option><option id="x000000000000000000000000000000" value="ga">Irish</option><option id="x0000000000000000000000000000000" value="it">Italian</option><option id="x00000000000000000000000000000000" value="ja">Japanese</option><option id="x000000000000000000000000000000000" value="ko">Korean</option><option id="x0000000000000000000000000000000000" value="la">Latin</option><option id="x00000000000000000000000000000000000" value="lv">Latvian</option><option id="x000000000000000000000000000000000000" value="lt">Lithuanian</option><option id="x0000000000000000000000000000000000000" value="mk">Macedonian</option><option id="x00000000000000000000000000000000000000" value="ms">Malay</option><option id="x000000000000000000000000000000000000000" value="mt">Maltese</option><option id="x0000000000000000000000000000000000000000" value="no">Norwegian</option><option id="x00000000000000000000000000000000000000000" value="fa">Persian</option><option id="x000000000000000000000000000000000000000000" value="pl">Polish</option><option id="x0000000000000000000000000000000000000000000" value="pt">Portuguese</option><option id="x0000000000000000000000000000000000"000000000" value="ro">Romanian</option><option id="x00000000000000000000000000000000000000000000" value="ru">Russian</option><option id="x000000000000000000000000000000000000000000000" value="sr">Serbian</option><option id="x0000000000000000000000000000000000000000000000" value="sk">Slovak</option><option id="x00000000000000000000000000000000000000000000000" value="sl">Slovenian</option><option id="x000000000000000000000000000000000000000000000000" value="es">Spanish</option><option id="x0000000000000000000000000000000000000000000000000" value="sw">Swahili</option><option id="x00000000000000000000000000000000000000000000000000" value="sv">Swedish</option><option id="x000000000000000000000000000000000000000000000000000" value="th">Thai</option><option id="x0000000000000000000000000000000000000000000000000000" value="tr">Turkish</option><option id="x00000000000000000000000000000000000000000000000000000" value="uk">Ukrainian</option><option id="x000000000000000000000000000000000000000000000000000000" value="ur">Urdu</option><option id="x0000000000000000000000000000000000000000000000000000000" value="vi">Vietnamese</option><option id="x00000000000000000000000000000000000000000000000000000000" value="cy">Welsh</option><option id="x000000000000000000000000000000000000000000000000000000000" value="yi">Yiddish</option></select>
<div itemscope itemtype="//schema.org/Article" id="wrapper" class="hfeed">
<div id="header">
<div id="masthead">
<div id="branding" role="banner">
<div id="site-title">
<span id=hdgspan>
<a itemprop="name" id="ahomeis" href="https://www.rjmprogramming.com.au/ITblog/" title="Robert James Metcalfe Blog" rel="home">Robert James Metcalfe Blog</a><iframe style="width:600px;height:600px;display:none;" name=hdgiframe id=hdgiframe srcdoc=''></iframe>
</span>
</div>
<div id="site-description"><span itemprop="publisher" itemscope itemtype="//schema.org/Organization"><span itemprop="name">RJM Programming</span> WordPress site (Copyright © rjmprogramming.com.au 2015 All rights reserved.)</span> </div>
<img id="mytopimage" tabindex=0 oncontextmenu=imgedit(event); ontouchend=imgedit(event); src="//www.rjmprogramming.com.au/wordpress/wp27.jpg" width="940" height="198" style="width:940px;height:198px;" alt="WordPress site (Copyright © rjmprogramming.com.au 2015 All rights reserved.)" />
</div><!-- #branding -->
<div id="access" role="navigation">
<div class="skip-link screen-reader-text"><a href="#content" title="Skip to content">Skip to content</a></div>
<div class="menu"><ul>
<li ><a href="https://www.rjmprogramming.com.au/ITblog/">Home</a></li><li class="page_item page-item-2"><a href="https://www.rjmprogramming.com.au/ITblog/sample-page/">About</a></li>
<li class="page_item page-item-366 page_item_has_children"><a href="https://www.rjmprogramming.com.au/ITblog/all-posts/">All Posts</a>
<ul class='children'>
<li class="page_item page-item-29712"><a href="https://www.rjmprogramming.com.au/ITblog/all-posts/trending-searches-on-this-blog/">Trending Searches on this Blog</a></li>
<li class="page_item page-item-11820"><a href="https://www.rjmprogramming.com.au/ITblog/all-posts/code-download-table/">Code Download Table</a></li>
<li class="page_item page-item-27589"><a href="https://www.rjmprogramming.com.au/ITblog/all-posts/filter-content-via-div-id/">Filter Content via Div ID</a></li>
<li class="page_item page-item-20671"><a href="https://www.rjmprogramming.com.au/ITblog/all-posts/query-monitor/">Query Monitor</a></li>
<li class="page_item page-item-22256"><a href="https://www.rjmprogramming.com.au/ITblog/all-posts/show-most-popular-words-of-current-blog-posting-show-most-popular-words-of-current-blog-posting/">Show Most Popular Words of Next Blog Posting <br><a title='Show Most Popular Words of Current Blog Posting' href="#" onclick=" gohmnow('',''); ">Show Most Popular Words of Current Blog Posting</a></a></li>
<li class="page_item page-item-22011"><a href="https://www.rjmprogramming.com.au/ITblog/all-posts/show-tags/">Show Tags Menu</a></li>
<li class="page_item page-item-22860"><a href="https://www.rjmprogramming.com.au/ITblog/all-posts/temporary-user-css/">Temporary User CSS</a></li>
<li class="page_item page-item-23050"><a href="https://www.rjmprogramming.com.au/ITblog/all-posts/temporary-windows-print-button/">Temporary Windows Print Button</a></li>
<li class="page_item page-item-12212"><a href="https://www.rjmprogramming.com.au/ITblog/all-posts/toggle-context-help-mode-to-off/">Toggle Context Help Mode to Off</a></li>
<li class="page_item page-item-12153"><a href="https://www.rjmprogramming.com.au/ITblog/all-posts/toggle-download-mode-from-getme/">Toggle Download Mode from GETME</a></li>
<li class="page_item page-item-19140"><a href="https://www.rjmprogramming.com.au/ITblog/all-posts/change-user-controllable-font-and-border-and-background-settings/">Change User Controllable Font, Border, Background Settings</a></li>
</ul>
</li>
<li class="page_item page-item-176"><a href="https://www.rjmprogramming.com.au/ITblog/chat/">Chat</a></li>
<li class="page_item page-item-52"><a href="https://www.rjmprogramming.com.au/ITblog/contact/">Contact</a></li>
<li class="page_item page-item-10014"><a href="https://www.rjmprogramming.com.au/ITblog/course/">Course</a></li>
<li class="page_item page-item-46575"><a href="https://www.rjmprogramming.com.au/ITblog/emoji-menu/">Emoji 📨 Menu</a></li>
<li class="page_item page-item-189"><a href="https://www.rjmprogramming.com.au/ITblog/one-image-site/">One Image Site</a></li>
<li class="page_item page-item-1589"><a href="https://www.rjmprogramming.com.au/ITblog/poll/">Poll</a></li>
<li class="page_item page-item-80"><a href="https://www.rjmprogramming.com.au/ITblog/privacy-statement/">Privacy</a></li>
<li class="page_item page-item-37240"><a href="https://www.rjmprogramming.com.au/ITblog/word-search/">Word Search</a></li>
<li class="page_item page-item-304"><a href="https://www.rjmprogramming.com.au/ITblog/language/">Language</a></li>
</ul></div>
<select onchange="ChangeLcode2Now(this);" title="Thanks to Google Translate at //translate.google.com" style="margin-left:5px;margin-top:8px;display:none;background-color:white;color:blue;" id="x2language"><option value="">Language</option><!--option id="x0" value="af">Afrikaans</option><option id="x00" value="sq">Albanian</option><option id="x000" value="ar">Arabic</option><option id="x0000" value="hy">Armenian</option><option id="x00000" value="az">Azerbaijani</option><option id="x000000" value="eu">Basque</option><option id="x0000000" value="be">Belarusian</option><option id="x00000000" value="bg">Bulgarian</option><option id="x000000000" value="ca">Catalan</option><option id="x0000000000" value="zh-CN">Chinese (Simplified)</option><option id="x00000000000" value="zh-TW">Chinese (Traditional)</option><option id="x000000000000" value="hr">Croatian</option><option id="x0000000000000" value="cs">Czech</option><option id="x00000000000000" value="da">Danish</option><option id="x000000000000000" value="nl">Dutch</option><option value="">English</option><option id="x0000000000000000" value="et">Estonian</option><option id="x00000000000000000" value="tl">Filipino</option><option id="x000000000000000000" value="fi">Finnish</option><option d="0000000000000000000" value="fr">French</option><option id="x00000000000000000000" value="gl">Galician</option><option id="x000000000000000000000" value="ka">Georgian</option><option id="x0000000000000000000000" value="de">German</option><option id="x00000000000000000000000" value="el">Greek</option><option id="x000000000000000000000000" value="ht">Haitian Creole</option><option id="x0000000000000000000000000" value="iw">Hebrew</option><option id="x00000000000000000000000000" value="hi">Hindi</option><option id="x000000000000000000000000000" value="hu">Hungarian</option><option id="x0000000000000000000000000000" value="is">Icelandic</option><option id="x00000000000000000000000000000" value="id">Indonesian</option><option id="x000000000000000000000000000000" value="ga">Irish</option><option id="x0000000000000000000000000000000" value="it">Italian</option><option id="x00000000000000000000000000000000" value="ja">Japanese</option><option id="x000000000000000000000000000000000" value="ko">Korean</option><option id="x0000000000000000000000000000000000" value="la">Latin</option><option id="x00000000000000000000000000000000000" value="lv">Latvian</option><option id="x000000000000000000000000000000000000" value="lt">Lithuanian</option><option id="x0000000000000000000000000000000000000" value="mk">Macedonian</option><option id="x00000000000000000000000000000000000000" value="ms">Malay</option><option id="x000000000000000000000000000000000000000" value="mt">Maltese</option><option id="x0000000000000000000000000000000000000000" value="no">Norwegian</option><option id="x00000000000000000000000000000000000000000" value="fa">Persian</option><option id="x000000000000000000000000000000000000000000" value="pl">Polish</option><option id="x0000000000000000000000000000000000000000000" value="pt">Portuguese</option><option id="x0000000000000000000000000000000000"000000000" value="ro">Romanian</option><option id="x00000000000000000000000000000000000000000000" value="ru">Russian</option><option id="x000000000000000000000000000000000000000000000" value="sr">Serbian</option><option id="x0000000000000000000000000000000000000000000000" value="sk">Slovak</option><option id="x00000000000000000000000000000000000000000000000" value="sl">Slovenian</option><option id="x000000000000000000000000000000000000000000000000" value="es">Spanish</option><option id="x0000000000000000000000000000000000000000000000000" value="sw">Swahili</option><option id="x00000000000000000000000000000000000000000000000000" value="sv">Swedish</option><option id="x000000000000000000000000000000000000000000000000000" value="th">Thai</option><option id="x0000000000000000000000000000000000000000000000000000" value="tr">Turkish</option><option id="x00000000000000000000000000000000000000000000000000000" value="uk">Ukrainian</option><option id="x000000000000000000000000000000000000000000000000000000" value="ur">Urdu</option><option id="x0000000000000000000000000000000000000000000000000000000" value="vi">Vietnamese</option><option id="x00000000000000000000000000000000000000000000000000000000" value="cy">Welsh</option><option id="x000000000000000000000000000000000000000000000000000000000" value="yi">Yiddish</option--><option value="af">Afrikaans</option><option value="sq">Albanian</option><option value="am">Amharic</option><option value="ar">Arabic</option><option value="hy">Armenian</option><option value="az">Azerbaijani</option><option value="eu">Basque</option><option value="be">Belarusian</option><option value="bn">Bengali</option><option value="bs">Bosnian</option><option value="bg">Bulgarian</option><option value="ca">Catalan</option><option value="ceb">Cebuano</option><option value="zh-CN">Chinese (Simplified)</option><option value="zh-TW">Chinese (Traditional)</option><option value="co">Corsican</option><option value="hr">Croatian</option><option value="cs">Czech</option><option value="da">Danish</option><option value="nl">Dutch</option><option value="en">English</option><option value="eo">Esperanto</option><option value="et">Estonian</option><option value="fi">Finnish</option><option value="fr">French</option><option value="fy">Frisian</option><option value="gl">Galician</option><option value="ka">Georgian</option><option value="de">German</option><option value="el">Greek</option><option value="gu">Gujarati</option><option value="ht">Haitian Creole</option><option value="ha">Hausa</option><option value="haw">Hawaiian</option><option value="he">Hebrew</option><option value="hi">Hindi</option><option value="hmn">Hmong</option><option value="hu">Hungarian</option><option value="is">Icelandic</option><option value="ig">Igbo</option><option value="id">Indonesian</option><option value="ga">Irish</option><option value="it">Italian</option><option value="ja">Japanese</option><option value="jv">Javanese</option><option value="kn">Kannada</option><option value="kk">Kazakh</option><option value="km">Khmer</option><option value="rw">Kinyarwanda</option><option value="ko">Korean</option><option value="ku">Kurdish</option><option value="ky">Kyrgyz</option><option value="lo">Lao</option><option value="lv">Latvian</option><option value="lt">Lithuanian</option><option value="lb">Luxembourgish</option><option value="mk">Macedonian</option><option value="mg">Malagasy</option><option value="ms">Malay</option><option value="ml">Malayalam</option><option value="mt">Maltese</option><option value="mi">Maori</option><option value="mr">Marathi</option><option value="mn">Mongolian</option><option value="my">Myanmar (Burmese)</option><option value="ne">Nepali</option><option value="no">Norwegian</option><option value="ny">Nyanja (Chichewa)</option><option value="or">Odia (Oriya)</option><option value="ps">Pashto</option><option value="fa">Persian</option><option value="pl">Polish</option><option value="pt">Portuguese (Portugal, Brazil)</option><option value="pa">Punjabi</option><option value="ro">Romanian</option><option value="ru">Russian</option><option value="sm">Samoan</option><option value="gd">Scots Gaelic</option><option value="sr">Serbian</option><option value="st">Sesotho</option><option value="sn">Shona</option><option value="sd">Sindhi</option><option value="si">Sinhala (Sinhalese)</option><option value="sk">Slovak</option><option value="sl">Slovenian</option><option value="so">Somali</option><option value="es">Spanish</option><option value="su">Sundanese</option><option value="sw">Swahili</option><option value="sv">Swedish</option><option value="tl">Tagalog (Filipino)</option><option value="tg">Tajik</option><option value="ta">Tamil</option><option value="tt">Tatar</option><option value="te">Telugu</option><option value="th">Thai</option><option value="tr">Turkish</option><option value="tk">Turkmen</option><option value="uk">Ukrainian</option><option value="ur">Urdu</option><option value="ug">Uyghur</option><option value="uz">Uzbek</option><option value="vi">Vietnamese</option><option value="cy">Welsh</option><option value="xh">Xhosa</option><option value="yi">Yiddish</option><option value="yo">Yoruba</option><option value="zu">Zulu</option></select>
</div><!-- #access -->
<script type="text/javascript">
function donow() {
var sbitis='<select size=9 id="emojih" onchange=window.open(this.value,"_blank");><option title="Web Audio" style="cursor:pointer;text-decoration:none;font-size: 22px;" target="iweb_audio" id="aweb_audio" value="//www.rjmprogramming.com.au/HTMLCSS/web_audio.htm">🔊</option><option title="Square Hr Tracing" style="cursor:pointer;text-decoration:none;font-size: 22px;" target="isquare_hr_tracing" id="asquare_hr_tracing" value="//www.rjmprogramming.com.au/HTMLCSS/square_hr_tracing.htm">📏</option><option title="Emoji Walk Animation" style="cursor:pointer;text-decoration:none;font-size: 22px;" target="iemoji_walk_animation" id="aemoji_walk_animation" value="//www.rjmprogramming.com.au/HTMLCSS/emoji_walk_animation.htm">🏃🏾♀️</option><option title="Fruits" style="cursor:pointer;text-decoration:none;font-size: 22px;" target="ifruits" id="afruits" value="//www.rjmprogramming.com.au/HTMLCSS/fruits.html">🍌</option><option title="Name Your Mascot" style="cursor:pointer;text-decoration:none;font-size: 22px;" target="iname_your_mascot" id="aname_your_mascot" value="//www.rjmprogramming.com.au/HTMLCSS/name_your.html">📧</option><option title="Sushi Train" style="cursor:pointer;text-decoration:none;font-size: 22px;" target="isushi_train" id="asushi_train" value="//www.rjmprogramming.com.au/HTMLCSS/circuit.htm">🍱</option><option title="Flag Quiz" style="cursor:pointer;text-decoration:none;font-size: 22px;" target="iflag_quiz" id="aflag_quiz" value="//www.rjmprogramming.com.au/HTMLCSS/flagquiz.htm">🇦🇩</option><option title="Emoji Overlay" style="cursor:pointer;text-decoration:none;font-size: 22px;" target="iemoji_overlay" id="aemoji_overlay" value="//www.rjmprogramming.com.au/HTMLCSS/emoji_overlay.htm">🔝</option><option value="" selected></option></select>';
sbitis='<iframe src="//www.rjmprogramming.com.au/HTMLCSS/emoji_widget_idea.htm?rand=867598433"></iframe>';
var isdone=0, is2done=0;
if (document.getElementsByClassName){
var x304x = document.getElementsByClassName('page-item-304');
x304x[0].onmouseover = function() { var xl=document.getElementById('x2language'); xl.style.display = 'block'; };
isdone = 1;
var x46544x = document.getElementsByClassName('page-item-46575');
if (navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i)) {
x46544x[0].innerHTML=x46544x[0].innerHTML.replace('Emoji Menu','Emoji');
}
x46544x[0].onmouseover = function() { if (this.innerHTML.replace('iframe ','select ').indexOf('select ') == -1) { this.innerHTML+=sbitis; } };
is2done = 1;
} else { // IE
//var qis = document.getElementById("pick_content").contentWindow.document;
var ilis = 0;
var eleis, ele2is;
var lisis = document.getElementsByTagName("li");
while (eleis = lisis[ilis++]) {
if (eleis.className == "page-item-304" && isdone == 0) {
eleis.onmouseover = function() { var xl=document.getElementById('x2language'); xl.style.display = 'block'; };
isdone = 1;
}
if (eleis.className.indexOf("page-item-46575") != -1 && is2done == 0) {
if (navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i)) {
eleis.innerHTML=eleis.innerHTML.replace('Emoji Menu','Emoji');
}
eleis.onmouseover = function() { var xl2=document.getElementById('emojih'); xl2.style.display = 'block'; };
is2done = 1;
}
}
}
}
setTimeout(donow,2000);
</script>
</div><!-- #masthead -->
</div><!-- #header -->
<div id="hfloater"></div>
<div id="emailformone" style="display:none;"><form id="emailform" style="display:none;" target="emailiframe" method="POST" action="//www.rjmprogramming.com.au/ITblog/"><textarea id=iinline style=display:none; name=inline value=""></textarea>
<input type=hidden style=display:none; name=to id=tdto value=""></input>
<input type=hidden style=display:none; name=subj id=tdsubj value="Robert James Metcalfe Blog - RJM Programming"></input>
<textarea name=hcont style=display:none; value="" id=tdhuhta cols=80 rows=30></textarea>
<input type=hidden style=display:none; name=cc id=tdcc value=""></input>
<input type=hidden style=display:none; name=bcc id=tdbcc value=""></input>
<input style=display:none; type=submit id=fsubm value="Email"></input></form><iframe style='display:none;' name='emailiframe' src='//www.rjmprogramming.com.au/HTMLCSS/emailhtml.php'></iframe></div>
<div id="emailformtwo" style="display:none;"></div>
<div id="ahtreturn"></div>
<div id="bleft"></div>
<div id="bright"></div>
<div id="btop" onmouseover='getBodyBorder();' onmouseout='yehBut();' ontouchstart='getBodyBorder();' ontouchend='yehBut();' title=' ... welcome to the long hover functionality that shows Blog Post regarding Body Border'></div>
<div id="bbottom"></div><div id="dcode"></div>
<a id="jshowd" onclick="jshowdet();" style="display:none;">Click me for Search Report if Not Already Showing</a>
<div id="justshow" style="position:absolute;top:0;left:0;display:none;z-index:23;"></div>
<iframe name=ifov id=ifov style=display:none; src=></iframe><div id=styleandroid></div><details style=display:none;width:100%;height:900px;-webkit-overflow-scrolling:touch;overflow:scroll; id=dtl_image_canvas open><summary id=sum_image_canvas>Image Editing below ...</summary></details>
<div id="main">
<div id="container">
<div id="content" role="main">
<div id="nav-above" class="navigation">
<div class="nav-previous"><a href="https://www.rjmprogramming.com.au/ITblog/macos-speech-to-flash-player-audio-record-tutorial/" rel="prev"><span class="meta-nav">←</span> MacOS Speech to Flash Player Audio Record Tutorial</a></div>
<div class="nav-next"><a href="https://www.rjmprogramming.com.au/ITblog/haiku-multimedia-via-media-record-capture-tutorial/" rel="next">Haiku Multimedia via Media Record Capture Tutorial <span class="meta-nav">→</span></a></div>
</div><!-- #nav-above -->
<div id="post-49579" class="post-49579 post type-post status-publish format-standard hentry category-elearning category-event-driven-programming category-tutorials tag-adobe tag-apple tag-audio tag-capture tag-client-pre-emptive-iframe tag-copy tag-cross-browser tag-curl tag-dictation tag-email tag-exec tag-flash tag-iframe tag-inline-html-email tag-input tag-internationalization tag-language tag-language-code tag-local-web-server tag-mac-os-x tag-macos tag-mamp tag-media tag-microphone tag-mobile tag-operating-system-2 tag-paste tag-php tag-plugin tag-popup tag-programming tag-safari tag-say tag-share tag-sharing tag-smart-device tag-speech tag-speech-to-audio tag-text-to-audio tag-text-to-speech tag-textarea tag-tutorial tag-voice tag-voice-memo tag-voiceover tag-web-server tag-window tag-window-open tag-window-opener">
<h1 class="entry-title">MacOS and Other Mobile Media Record Tutorial</h1>
<div class="entry-meta">
<span class="meta-prep meta-prep-author">Posted on</span> <a itemprop="url" href="https://www.rjmprogramming.com.au/ITblog/macos-and-other-mobile-media-record-tutorial/" title="3:01 am" rel="bookmark"><span itemprop="datePublished" content="2020-07-07" class="entry-date">July 7, 2020</span></a> <span class="meta-sep">by</span> <span class="author vcard"><a class="url fn n" href="https://www.rjmprogramming.com.au/ITblog/author/" title="View all posts by " itemprop="author" content="Robert Metcalfe"></a></span>
<select id='linkhints' class='linkhints' onmouseout="document.getElementById('tdto').focus();" TITLE='Our link hints for this blog posting' style='margin-right:20px;float:right;display:inline-block;width:60px;' onchange="if (this.value.length > 0) { if (this.value.toLowerCase().indexOf('rjmprogramming.com.au') != -1 && this.value.toLowerCase().indexOf('.htm') == -1 && this.value.toLowerCase().indexOf('.php') == -1 && this.value.toLowerCase().indexOf('.pdf') == -1 && this.value.toLowerCase().replace('.au','').slice(-5).indexOf('.') != -1 && document.getElementById('hdgiframe')) { document.getElementById('hdgiframe').style.display='block'; document.getElementById('hdgiframe').className='linkhints'; document.getElementById('hdgiframe').style.marginTop='20px'; document.getElementById('hdgiframe').style.marginBottom='20px'; document.getElementById('hdgiframe').onclick=function() { location.href='#linkhints'; }; location.href='#hdgiframe'; if (this.value.toLowerCase().indexOf('.m') != -1) { document.getElementById('hdgiframe').srcdoc='<html><body><video controls><source SRC=' + this.value + '></source></video></body></html>'; } else if (this.value.toLowerCase().replace('com.au','').indexOf('.a') != -1) { document.getElementById('hdgiframe').srcdoc='<html><body><audio controls><source SRC=' + this.value + '></source></audio></body></html>'; } else if (this.value.toLowerCase().replace('.pdf','').replace('com.au','').slice(-5).indexOf('.') != -1) { document.getElementById('hdgiframe').srcdoc='<html><body><style> html { background: url(' + this.value + ') no-repeat center fixed; background-size: contain; } </style><br></body></html>'; } else { document.getElementById('hdgiframe').src = this.value; } } else { window.open(this.value,'_blank'); } }"><option value=''>💡</option><option value='https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/capture#:~:text=The%20capture%20attribute%20is%20supported'>URL https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/capture#:~:text=The%20capture%20attribute%20is%20supported</option></select>
</div><!-- .entry-meta -->
<div class="entry-content">
<div style="width: 230px" class="wp-caption alignnone"><a target=_blank href="http://www.rjmprogramming.com.au/macos_say_record.php"><img decoding="async" tabindex=0 oncontextmenu=imgedit(event); ontouchend=imgedit(event); style="border: 15px solid pink;" alt="MacOS and Other Mobile Media Record Tutorial" src="http://www.rjmprogramming.com.au/PHP/animegif/audio_video_mobile_capture.jpg" title="MacOS and Other Mobile Media Record Tutorial" style="float:left;" /></a><p class="wp-caption-text">MacOS and Other Mobile Media Record Tutorial</p></div>
<p>We’re letting a little “dishevelment” continue with today’s work on top of yesterday’s <a title='MacOS Speech to Flash Player Audio Record Tutorial' href='#mossfpart'>MacOS Speech to Flash Player Audio Record Tutorial</a>.</p>
<p>The reason (to our mind) is that involving mobile functionality into a media web application’s sphere of influence is a big step with more than the usual time needed for testing <font size=1>… well, that’s my excuse, anyway</font>. The major reason for this is that the …</p>
<p><code><br />
<input type=file accept="video/*,audio/*" <font color=blue><a target=_blank title='input capture' href='https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/capture#:~:text=The%20capture%20attribute%20is%20supported,of%20one%20of%20those%20types.&text=The%20user%2Dfacing%20camera%20and%2For%20microphone%20should%20be%20used.'>capture</a></font>></input><br />
</code></p>
<p> … is an <font color=blue>incredible recent development</font> (allowing dynamic media creation, with “retake” possibilities, all because of that one “capture” property above) separating the mobile (smart device) platforms from the previous laptop media capture capabilities, and at least doubles the amount of unit testing needed to prove the code workings.</p>
<p>And so, for a little while, some users will be annoyed that they see web application functionality not meant for their platform characteristics.</p>
<p>Sometimes “dishevelment” can work, too, or “stewing for a day”, because it turns out a piece of functionality you thought to be impossible with a particular platform amazingly becomes possible the next day?! Hence the adage … “mulling is amazing”!</p>
<p>Code wise …</p>
<ul>
<li>calls (just like <a target=_blank href='//www.rjmprogramming.com.au/ITblog/animated-gif-audio-or-video-foreground-tutorial/'>Animated GIF Audio or Video Foreground Tutorial</a> did) the HTML/Javascript <a target=_blank href="http://www.rjmprogramming.com.au/PHP/Geographicals/diff.php?one=http://www.rjmprogramming.com.au/HTMLCSS/client_browsing.html----GETME">the changed</a> <a target=_blank href="http://www.rjmprogramming.com.au/HTMLCSS/client_browsing.html----GETME">client_browsing.htm</a> <a target=_blank href="http://www.rjmprogramming.com.au/HTMLCSS/client_browsing.htm">child web application</a> to handle this HTML input capture usage and interfacing to (now various) parent.window scenarios …</li>
<li>called by <a target=_blank href="http://www.rjmprogramming.com.au/PHP/Geographicals/diff.php?one=http://www.rjmprogramming.com.au/macos_say_record.php----GETME" title="macos_say_record.php">a changed</a> <a target=_blank href="http://www.rjmprogramming.com.au/macos_say_record.php----GETME" title="macos_say_record.php">macos_say_record.php</a> <a target=_blank href="http://www.rjmprogramming.com.au/macos_say_record.php" title="Click picture">live run</a> link … that relies on our …</li>
<li>Inhouse HTML Email helper/creator’s key interfacing code now goes …<br />
<?php<br />
<code><br />
$smt="";<br />
if (isset($_GET['sliceminusten'])) { $smt=' (' . str_replace(" ","+",urldecode($_GET['sliceminusten'])) . ')'; }<br />
if (strlen($smt) == 13 && strpos(str_replace("+"," ",('' . urldecode($_GET['to']))),"@") !== false && str_replace("+"," ",('' . urldecode($_GET['subj']))) != '') {<br />
echo "<html><head><script type='text/javascript'><br />
var smt=('" . $smt . "').substring(2).substring(0,10), smts='';<br />
function onsm() {<br />
var wpr=null;<br />
var wp=window.parent;<br />
if (wp) { wpr=parent.document.getElementById('result'); }<br />
if ((window.opener && window.opener !== window) || (wp && wpr)) {<br />
if (5 == 5) { // window.opener.document.getElementById('result')) {<br />
document.getElementById('divplace').innerHTML='Email sent' + smts + '.';<br />
//alert(window.opener.document.getElementById('result').slice(-10) + ' vs ' + smt);<br />
return true;<br />
} else {<br />
document.getElementById('divplace').innerHTML='Other green textbox not detected.';<br />
return false;<br />
}<br />
} else {<br />
document.getElementById('divplace').innerHTML='Not a popup window.';<br />
return false;<br />
}<br />
}<br />
function fixta() {<br />
if (document.getElementById('taready').value.indexOf('#') == -1 && ((document.getElementById('taready').value.indexOf('data:audio/') == 0 || document.getElementById('taready').value.indexOf('data:video/') == 0) || document.getElementById('taready').value == '')) {<br />
if (document.getElementById('taready').value == '' || (' ' + document.getElementById('taready').value).slice(-10) == smt) {<br />
if (document.getElementById('taready').value != '') {<br />
var midbit=document.getElementById('taready').value.split('data:')[1].split(';')[0] + ' src=' + \"'\";<br />
document.getElementById('taready').value='<body><' + midbit.substring(0,5) + ' id=thisaudio controls loop><source type=' + midbit + document.getElementById('taready').value.replace(/\ /g,'+') + \"'\" + '></source></' + midbit.substring(0,5) + '></body>';<br />
} else {<br />
document.getElementById('taready').value='<body><p></p></body>';<br />
smts=' with the subject only';<br />
}<br />
return true;<br />
} else {<br />
//document.getElementById('divplace').innerHTML='Copy failed because ' + (' ' + document.getElementById('taready').value).slice(-10) + ' paste does not match ' + smt + ' copy.';<br />
document.getElementById('divplace').innerHTML='Copy failed because paste does not match copy.';<br />
return false;<br />
}<br />
} else {<br />
document.getElementById('divplace').innerHTML='Incorrect data';<br />
return false;<br />
}<br />
}<br />
</script></head><body onload=\"document.getElementById('taready').focus();\"><h1 id=status>Paste to lightgreen here (already copied from lightgreen there (but recopy and repaste yourself if last characters" . $smt . " do not match) and click yellow button to Email off this Audio player ...</h1><br />
<form target=ifplace onsubmit=\"if (fixta()) { return onsm(); } else { return false; }\" action=./emailhtml.php method=POST><br />
<input type=hidden name=inline value=''></input><br />
To: <input style=width:80%; type=text name=to value='" . str_replace("+"," ",urldecode($_GET['to'])) . "'></input><br><br />
Subject: <input style=width:80%; type=text name=subj value='" . str_replace("+"," ",urldecode($_GET['subj'])) . "'></input><br><br />
<textarea style=width:100%;background-color:lightgreen; cols=80 rows=10 name=tdhuhta id=taready></textarea><br><br><br />
<input id=sub type=submit style=background-color:yellow; value='Email'></input></form><br><br />
<iframe style=display:none; name=ifplace id=ifplace src=./emailhtml.php></iframe><br />
<div id=divplace></div><br />
</body></html>";<br />
} else {<br />
echo "<html><body><p>Incorrect usage.</p></body></html>";<br />
}<br />
exit;<br />
</code><br />
?>
</ul>
<p>Please feel free to try it out yourself, email sharing as you go.</p>
<p><!--p>You can also see this play out at WordPress 4.1.1's <a target=_blank href='//www.rjmprogramming.com.au/ITblog/new-macos-speech-to-flash-player-audio-record-tutorial/'>New MacOS Speech to Flash Player Audio Record Tutorial</a>.</p-->
<hr>
<p id='mossfpart'>Previous relevant <a target=_blank title='MacOS Speech to Flash Player Audio Record Tutorial' href='//www.rjmprogramming.com.au/ITblog/macos-speech-to-flash-player-audio-record-tutorial/'>MacOS Speech to Flash Player Audio Record Tutorial</a> is shown below.</p>
<div style="width: 230px" class="wp-caption alignnone"><a target=_blank href="http://www.rjmprogramming.com.au/macos_say_record.php"><img decoding="async" tabindex=0 oncontextmenu=imgedit(event); ontouchend=imgedit(event); style="border: 15px solid pink;" alt="MacOS Speech to Flash Player Audio Record Tutorial" src="http://www.rjmprogramming.com.au/PHP/animegif/macos_audio_nonmobile_flash.jpg" title="MacOS Speech to Flash Player Audio Record Tutorial" style="float:left;" /></a><p class="wp-caption-text">MacOS Speech to Flash Player Audio Record Tutorial</p></div>
<p>Yesterday’s <a title='MacOS Text to Audio Share Tutorial' href='#mostast'>MacOS Text to Audio Share Tutorial</a> involved …</p>
<ul>
<li>local web server (over macOS) text to audio (via macOS say) programmatical input source for “voiceover” aims … and today, still on …</li>
<li>local web server (over macOS) (user) we have speech to audio (via Adobe Flash Player plugin) input source for “voiceover” or “dictation” or “voice memo feeling” aims</li>
</ul>
<p> … all shareable via email. So these are two non-mobile “voiceover” ideas, and we will present a mobile idea into the future, and thereby open a public domain worthy side to the functionality, then. Rereading here, it just tweaked with us that we can offer this “public domain” aspect even today with <a target=_blank href="http://www.rjmprogramming.com.au/PHP/Geographicals/diff.php?one=http://www.rjmprogramming.com.au/macos_say_record.php---GETME" title="macos_say_record.php">a changed</a> <a target=_blank href="http://www.rjmprogramming.com.au/macos_say_record.php---GETME" title="macos_say_record.php">macos_say_record.php</a> <a target=_blank href="http://www.rjmprogramming.com.au/macos_say_record.php" title="Click picture">live run</a> link here, and your Flash Player methodology could work as long as you realize it will be later we hide the inapplicable macOS “say” logics for “public domain” usage.</p>
<p>You’ll see in these changes more interplay among …</p>
<ul>
<li>popup window child windows … and </li>
<li>iframe child windows that listen out for the (next) Flash Player *.wav file creation event via a recursive … HTML …<br />
<?php<br />
<code><br />
<iframe onload=checkff(this); name=checkflash id=checkflash style=display:none; src='./macos_say_record.php?audiosize=y'></iframe><br />
</code><br />
?><br />
…<br />
<?php<br />
<code><br />
if (isset($_GET['audiosize'])) {<br />
// if (file_exists('HTTP://www.rjmprogramming.com.au/MarkItUp/html/audio/audio.wav')) {<br />
if (isset($_GET['getmecontent'])) {<br />
$ch = curl_init();<br />
curl_setopt($ch, CURLOPT_URL, 'HTTP://www.rjmprogramming.com.au/MarkItUp/html/audio/audio.wav');<br />
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);<br />
$output = curl_exec($ch);<br />
curl_close($ch);<br />
echo "<html><body onload=\" parent.document.getElementById('audioname').value='audiocapture.wav'; parent.document.getElementById('daudiolater').innerHTML='<audio id=thataudio controls autoplay loop><source type=audio/x-wav src=" . "data:audio/x-wav;base64," . base64_encode($output) . "></source></audio> <a style=display:inline-block;text-decoration:none;cursor:pointer; onclick=emailit(); title=Email>📧</a>';\"><p>" . strlen($output) . "</p><div>data:audio/x-wav;base64," . base64_encode($output) . "</div></body></html>";<br />
} else {<br />
//$context = stream_context_create(array('http' => array('header'=>'Connection: close\r\n')));<br />
//$ct=file_get_contents('HTTP://www.rjmprogramming.com.au/MarkItUp/html/audio/audio.wav',false,$context);<br />
//file_put_contents("x.x",strlen($ct));<br />
$ch = curl_init();<br />
curl_setopt($ch, CURLOPT_URL, 'HTTP://www.rjmprogramming.com.au/MarkItUp/html/audio/audio.wav');<br />
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);<br />
$output = curl_exec($ch);<br />
curl_close($ch);<br />
echo "<html><body><p>" . strlen($output) . "</p><div></div></body></html>";<br />
}<br />
// } else {<br />
// echo "<html><body><p>-1</p><div></div></body></html>";<br />
// }<br />
exit;<br />
}<br />
</code><br />
?><br />
… file_get_contents turning out to be so much slower than curl
</li>
</ul>
<p>Without resorting to any passwords we tighten up the interface to the PHP email helper code at the PHP email helper code end by insisting the email only be sent if the user entry into the interim textarea …</p>
<ul>
<li>contains no “#” characters</li>
<li>starts with … data:audio/</li>
<li>ends with the same 10 characters passed over to the PHP email helper code</li>
</ul>
<p> … as per …</p>
<p><?php<br />
<code><br />
$smt="";<br />
if (isset($_GET['sliceminusten'])) { $smt=' (' . str_replace(" ","+",urldecode($_GET['sliceminusten'])) . ')'; }<br />
if (strlen($smt) == 13 && strpos(str_replace("+"," ",('' . urldecode($_GET['to']))),"@") !== false && str_replace("+"," ",('' . urldecode($_GET['subj']))) != '') {<br />
echo "<html><head><script type='text/javascript'><br />
var smt=('" . $smt . "').substring(2).substring(0,10), smts='';<br />
function onsm() {<br />
if (window.opener && window.opener !== window) {<br />
if (5 == 5) { // window.opener.document.getElementById('result')) {<br />
document.getElementById('divplace').innerHTML='Email sent' + smts + '.';<br />
//alert(window.opener.document.getElementById('result').slice(-10) + ' vs ' + smt);<br />
return true;<br />
} else {<br />
document.getElementById('divplace').innerHTML='Other green textbox not detected.';<br />
return false;<br />
}<br />
} else {<br />
document.getElementById('divplace').innerHTML='Not a popup window.';<br />
return false;<br />
}<br />
}<br />
function fixta() {<br />
if (document.getElementById('taready').value.indexOf('#') == -1 && (document.getElementById('taready').value.indexOf('data:audio/') == 0 || document.getElementById('taready').value == '')) {<br />
if (document.getElementById('taready').value == '' || (' ' + document.getElementById('taready').value).slice(-10) == smt) {<br />
if (document.getElementById('taready').value != '') {<br />
var midbit=document.getElementById('taready').value.split('data:')[1].split(';')[0] + ' src=' + \"'\";<br />
document.getElementById('taready').value='<body><audio id=thisaudio controls loop><source type=' + midbit + document.getElementById('taready').value.replace(/\ /g,'+') + \"'\" + '></source></audio></body>';<br />
} else {<br />
document.getElementById('taready').value='<body><p></p></body>';<br />
smts=' with the subject only';<br />
}<br />
return true;<br />
} else {<br />
//document.getElementById('divplace').innerHTML='Copy failed because ' + (' ' + document.getElementById('taready').value).slice(-10) + ' paste does not match ' + smt + ' copy.';<br />
document.getElementById('divplace').innerHTML='Copy failed because paste does not match copy.';<br />
return false;<br />
}<br />
} else {<br />
document.getElementById('divplace').innerHTML='Incorrect data';<br />
return false;<br />
}<br />
}<br />
</script></head><body onload=\"document.getElementById('taready').focus();\"><h1 id=status>Paste to lightgreen here (already copied from lightgreen there (but recopy and repaste yourself if last characters" . $smt . " do not match) and click yellow button to Email off this Audio player ...</h1><br />
<form target=ifplace onsubmit=\"if (fixta()) { return onsm(); } else { return false; }\" action=./emailhtml.php method=POST><br />
<input type=hidden name=inline value=''></input><br />
To: <input style=width:80%; type=text name=to value='" . str_replace("+"," ",urldecode($_GET['to'])) . "'></input><br><br />
Subject: <input style=width:80%; type=text name=subj value='" . str_replace("+"," ",urldecode($_GET['subj'])) . "'></input><br><br />
<textarea style=width:100%;background-color:lightgreen; cols=80 rows=10 name=tdhuhta id=taready></textarea><br><br><br />
<input id=sub type=submit style=background-color:yellow; value='Email'></input></form><br><br />
<iframe style=display:none; name=ifplace id=ifplace src=./emailhtml.php></iframe><br />
<div id=divplace></div><br />
</body></html>";<br />
} else {<br />
echo "<html><body><p>Incorrect usage.</p></body></html>";<br />
}<br />
exit;<br />
</code><br />
?></p>
<p><!--p>You can also see this play out at WordPress 4.1.1's <a target=_blank href='//www.rjmprogramming.com.au/ITblog/macos-speech-to-flash-player-audio-record-tutorial/'>MacOS Speech to Flash Player Audio Record Tutorial</a>.</p-->
<hr>
<p id='mostast'>Previous relevant <a target=_blank title='MacOS Text to Audio Share Tutorial' href='//www.rjmprogramming.com.au/ITblog/macos-text-to-audio-share-tutorial/'>MacOS Text to Audio Share Tutorial</a> is shown below.</p>
<div style="width: 230px" class="wp-caption alignnone"><a target=_blank href="http://www.rjmprogramming.com.au/PHP/animegif/haiku_animated_gif.html"><img decoding="async" tabindex=0 oncontextmenu=imgedit(event); ontouchend=imgedit(event); style="border: 15px solid pink;" alt="MacOS Text to Audio Share Tutorial" src="http://www.rjmprogramming.com.au/PHP/animegif/share_say.jpg" title="MacOS Text to Audio Share Tutorial" style="float:left;" /></a><p class="wp-caption-text">MacOS Text to Audio Share Tutorial</p></div>
<p>In order to share the audio file of yesterday’s <a title='MacOS Text to Audio Internationalization Tutorial' href='#mostait'>MacOS Text to Audio Internationalization Tutorial</a> we cannot use …</p>
<ul>
<li>client based “a” “mailto:” link approaches because …
<ol>
<li>the size of data is too large</li>
<li>we need to be able to use HTML within Inline HTML Email if we are not happy leaving around RJM Programming web server audio files (which we are not)</li>
</ol>
<p> … and so we need to call on …</li>
<li>server (public, not local) based code (ie. PHP, for us) that can email Inline HTML Email</li>
</ul>
<p> … and calling on that server (public, not local) based code you can choose to …</p>
<ul>
<li>involve <a target=_blank title='Another useful link' href='http://www.html5rocks.com/en/tutorials/cors/'>CORS</a> in an Ajax FormData call or an HTML Form method=POST … or …</li>
<li>involve window.<a target=_blank title='PostMessage' href='https://developer.mozilla.org/en-US/docs/Web/API/Window/postMessage'>PostMessage</a> approach (perhaps involving web server audio files that are temporary) … or, as we decided upon …</li>
<li>involve popup web server “inhouse” PHP Inline HTML Email creator helper … that …
<ul>
<li>codes allowances for the caller situation (that situation having ensured a data-URI “copy” of the audio content in in the web browser buffer ahead of the popup window appearing, all instigated via a new 📧 email emoji button (📧)) …</li>
<li>sets up the PHP code …<br />
<?php<br />
<code><br />
echo "<html><head><script type='text/javascript'> function fixta() { if (document.getElementById('taready').value.indexOf('data:') == 0) { var midbit=document.getElementById('taready').value.split('data:')[1].split(';')[0] + ' src=' + \"'\"; document.getElementById('taready').value='<body><audio id=thisaudio controls loop><source type=' + midbit + document.getElementById('taready').value.replace(/\ /g,'+') + \"'\" + '></source></audio></body>'; } } </script></head><body onload=\"document.getElementById('taready').focus();\"><h1 id=status>Paste to lightgreen here (already copied from lightgreen there) and click yellow button to Email off ...</h1><br />
<form onsubmit='fixta(); return true;' action=./emailhtml.php method=POST><br />
<input type=hidden name=inline value=''></input><br />
<input type=hidden name=to value='" . str_replace("+"," ",urldecode($_GET['to'])) . "'></input><br />
<input type=hidden name=subj value='" . str_replace("+"," ",urldecode($_GET['subj'])) . "'></input><br />
<textarea style=width:100%;background-color:lightgreen; cols=80 rows=10 name=tdhuhta id=taready></textarea><br><br />
<input id=sub type=submit style=background-color:yellow; value='Email to " . str_replace("+"," ",urldecode($_GET['to'])) . " ... " . str_replace("+"," ",urldecode($_GET['subj'])) . "'></input></form><br />
</body></html>";<br />
exit;<br />
</code><br />
?>
</li>
<li>awaits the user clicking an interim HTML form submit button … that …</li>
<li>recalls itself and really sends the Inline HTML Email containing HTML that includes an audio tag with data-URI content</li>
</ul>
<p> … this whole scenario only acceptable in its entirety by iOS Mail apps (but not Gmail Webmail nor macOS Mail (at least with our testing)).</p>
<p>Again, given the same local web server provisions as outlined on the day before yesterday, feel free to try out <a target=_blank href="http://www.rjmprogramming.com.au/PHP/Geographicals/diff.php?one=http://www.rjmprogramming.com.au/macos_say_record.php--GETME" title="macos_say_record.php">a changed</a> <a target=_blank href="http://www.rjmprogramming.com.au/macos_say_record.php--GETME" title="macos_say_record.php">macos_say_record.php</a> macOS “say” PHP helper with better email sharing functionality.</p>
<p><!--p>You can also see this play out at WordPress 4.1.1's <a target=_blank href='//www.rjmprogramming.com.au/ITblog/new-macos-text-to-audio-share-tutorial/'>MacOS Text to Audio Share Tutorial</a>.</p-->
<hr>
<p id='mostait'>Previous relevant <a target=_blank title='MacOS Text to Audio Internationalization Tutorial' href='//www.rjmprogramming.com.au/ITblog/macos-text-to-audio-internationalization-tutorial/'>MacOS Text to Audio Internationalization Tutorial</a> is shown below.</p>
<div style="width: 230px" class="wp-caption alignnone"><a target=_blank href="http://www.rjmprogramming.com.au/PHP/animegif/haiku_animated_gif.html"><img decoding="async" tabindex=0 oncontextmenu=imgedit(event); ontouchend=imgedit(event); style="border: 15px solid pink;" alt="MacOS Text to Audio Internationalization Tutorial" src="http://www.rjmprogramming.com.au/PHP/animegif/haiku__say_i.jpg" title="MacOS Text to Audio Internationalization Tutorial" style="float:left;" /></a><p class="wp-caption-text">MacOS Text to Audio Internationalization Tutorial</p></div>
<p>Yesterday’s <a title='MacOS Text to Audio Primer Tutorial' href='#mostapt'>MacOS Text to Audio Primer Tutorial</a> was very “English”, at least hereabouts. We think it would be good to Internationalize the “say” integration with “-v” voices in other languages to choose from.</p>
<p>That “Internationalization” we have <a target=_blank title='Apple' href='https://apple.com'>Apple</a> to thank for, because “say” documents …</p>
<blockquote><p>
$ say -v ‘?’<br />
Alex en_US # Most people recognize me by my voice.<br />
Alice it_IT # Salve, mi chiamo Alice e sono una voce italiana.<br />
Alva sv_SE # Hej, jag heter Alva. Jag är en svensk röst.<br />
Amelie fr_CA # Bonjour, je m’appelle Amelie. Je suis une voix canadienne.<br />
Anna de_DE # Hallo, ich heiße Anna und ich bin eine deutsche Stimme.<br />
Carmit he_IL # שלום. קוראים לי כרמית, ואני קול בשפה העברית.<br />
Claire nl_NL # Hallo, mijn naam is Claire. Ik ben een Nederlandse stem.<br />
Damayanti id_ID # Halo, nama saya Damayanti. Saya berbahasa Indonesia.<br />
Daniel en_GB # Hello, my name is Daniel. I am a British-English voice.<br />
Diego es_AR # Hola, me llamo Diego y soy una voz española.<br />
Ellen nl_BE # Hallo, mijn naam is Ellen. Ik ben een Belgische stem.<br />
Fiona en-scotland # Hello, my name is Fiona. I am a Scottish-English voice.<br />
Fred en_US # I sure like being inside this fancy computer<br />
Ioana ro_RO # Bună, mă cheamă Ioana . Sunt o voce românească.<br />
Joana pt_PT # Olá, chamo-me Joana e dou voz ao português falado em Portugal.<br />
Jorge es_ES # Hola, me llamo Jorge y soy una voz española.<br />
Juan es_MX # Hola, me llamo Juan y soy una voz mexicana.<br />
Kanya th_TH # สวัสดีค่ะ ดิฉันชื่อKanya<br />
Karen en_AU # Hello, my name is Karen. I am an Australian-English voice.<br />
Kate en_GB # Hello, my name is Kate. I am a British-English voice.<br />
Kyoko ja_JP # こんにちは、私の名前はKyokoです。日本語の音声をお届けします。<br />
Laura sk_SK # Ahoj. Volám sa Laura . Som hlas v slovenskom jazyku.<br />
Lekha hi_IN # नमस्कार, मेरा नाम लेखा है. मैं हिन्दी में बोलने वाली आवाज़ हूँ.<br />
Luca it_IT # Salve, mi chiamo Luca e sono una voce italiana.<br />
Luciana pt_BR # Olá, o meu nome é Luciana e a minha voz corresponde ao português que é falado no Brasil<br />
Maged ar_SA # مرحبًا اسمي Maged. أنا عربي من السعودية.<br />
Mariska hu_HU # Üdvözlöm! Mariska vagyok. Én vagyok a magyar hang.<br />
Mei-Jia zh_TW # 您好,我叫美佳。我說國語。<br />
Melina el_GR # Γεια σας, ονομάζομαι Melina. Είμαι μια ελληνική φωνή.<br />
Milena ru_RU # Здравствуйте, меня зовут Milena. Я – русский голос системы.<br />
Moira en_IE # Hello, my name is Moira. I am an Irish-English voice.<br />
Monica es_ES # Hola, me llamo Monica y soy una voz española.<br />
Nora nb_NO # Hei, jeg heter Nora. Jeg er en norsk stemme.<br />
Oliver en_GB # Hello, my name is Oliver. I am a British-English voice.<br />
Paulina es_MX # Hola, me llamo Paulina y soy una voz mexicana.<br />
Samantha en_US # Hello, my name is Samantha. I am an American-English voice.<br />
Sara da_DK # Hej, jeg hedder Sara. Jeg er en dansk stemme.<br />
Satu fi_FI # Hei, minun nimeni on Satu. Olen suomalainen ääni.<br />
Serena en_GB # Hello, my name is Serena. I am a British-English voice.<br />
Sin-ji zh_HK # 您好,我叫 Sin-ji。我講廣東話。<br />
Tessa en_ZA # Hello, my name is Tessa. I am a South African-English voice.<br />
Thomas fr_FR # Bonjour, je m’appelle Thomas. Je suis une voix française.<br />
Ting-Ting zh_CN # 您好,我叫Ting-Ting。我讲中文普通话。<br />
Tom en_US # Hello, my name is Tom. I am an American-English voice.<br />
Veena en_IN # Hello, my name is Veena. I am an Indian-English voice.<br />
Victoria en_US # Isn’t it nice to have a computer that will talk to you?<br />
Xander nl_NL # Hallo, mijn naam is Xander. Ik ben een Nederlandse stem.<br />
Yelda tr_TR # Merhaba, benim adım Yelda. Ben Türkçe bir sesim.<br />
Yuna ko_KR # 안녕하세요. 제 이름은 Yuna입니다. 저는 한국어 음성입니다.<br />
Yuri ru_RU # Здравствуйте, меня зовут Yuri. Я – русский голос системы.<br />
Zosia pl_PL # Witaj. Mam na imię Zosia, jestem głosem kobiecym dla języka polskiego.<br />
Zuzana cs_CZ # Dobrý den, jmenuji se Zuzana. Jsem český hlas.
</p></blockquote>
<p> … to go on here, as a help for this <i>level</i> of “Internationalization”. Another “level” again would be to translate the webpage and menu wording, but we’ve decided against that here today.</p>
<p>So we add a language dropdown and a voice dropdown to help the user explore this Text to Audio functionality accessing a macOS or Mac OS X operating system.</p>
<p>Also, today, we’ve introduced “.m4a” (audio/mp4) as the default audio file extension to use with the file created via “say” “-o” switch for all but Safari, as this works better for “all but Safari” (abs<font size=1>olutely</font>).</p>
<p>Given the same local web server provisions as outlined yesterday feel free to try out <a target=_blank href="http://www.rjmprogramming.com.au/PHP/Geographicals/diff.php?one=http://www.rjmprogramming.com.au/macos_say_record.php-GETME" title="macos_say_record.php">a changed</a> <a target=_blank href="http://www.rjmprogramming.com.au/macos_say_record.php-GETME" title="macos_say_record.php">macos_say_record.php</a> macOS “say” PHP helper with better Internationalization functionality, thanks in large part to the great ideas from <a target=_blank title='Useful link' href='https://stackoverflow.com/questions/3770513/detect-browser-language-in-php'>this useful link</a>.</p>
<p><!--p>You can also see this play out at WordPress 4.1.1's <a target=_blank href='//www.rjmprogramming.com.au/ITblog/macos-text-to-audio-internationalization-tutorial/'>MacOS Text to Audio Internationalization Tutorial</a>.</p-->
<hr>
<p id='mostapt'>Previous relevant <a target=_blank title='MacOS Text to Audio Primer Tutorial' href='//www.rjmprogramming.com.au/ITblog/macos-text-to-audio-primer-tutorial/'>MacOS Text to Audio Primer Tutorial</a> is shown below.</p>
<div style="width: 230px" class="wp-caption alignnone"><a target=_blank href="http://www.rjmprogramming.com.au/PHP/animegif/haiku_animated_gif.html"><img decoding="async" tabindex=0 oncontextmenu=imgedit(event); ontouchend=imgedit(event); style="border: 15px solid pink;" alt="MacOS Text to Audio Primer Tutorial" src="http://www.rjmprogramming.com.au/PHP/animegif/haiku__say.jpg" title="MacOS Text to Audio Primer Tutorial" style="float:left;" /></a><p class="wp-caption-text">MacOS Text to Audio Primer Tutorial</p></div>
<p>The previous <a title='Mac OS X Text to English Speech Primer Tutorial' href='#mosxtespt'>Mac OS X Text to English Speech Primer Tutorial</a> …</p>
<ul>
<li>lauded the …<br />
<blockquote cite='//www.rjmprogramming.com.au/ITblog/mac-os-x-text-to-english-speech-primer-tutorial/'><p>
Text to English Speech via Mac OS X’s command line <a target=_blank title='say command information from Apple' href='https://ss64.com/osx/say.html'><i>say</i></a> command
</p></blockquote>
</li>
<li>and today we write some PHP (with its very useful <a target=_blank title='PHP exec() method information' href='http://php.net/manual/en/function.exec.php'><i>exec</i></a> conduit to “say”) to make use of the same (macOS) “say” and its Text to Audio talents (via its “-o” switch usage)</li>
</ul>
<p> … and it’s at times like this we wish that the RJM Programming domain’s web server had a macOS operating system. Alas, “say” is a macOS and Mac OS X application, but not a Linux one.</p>
<p>None the less, we integrated …</p>
<ul>
<li><a target=_blank href="http://www.rjmprogramming.com.au/PHP/Geographicals/diff.php?one=http://www.rjmprogramming.com.au/PHP/animegif/haiku_animated_gif.html--GETME" title="haiku_animated_gif.html">today’s changed</a> <a target=_blank href="http://www.rjmprogramming.com.au/PHP/animegif/haiku_animated_gif.html--GETME">haiku_animated_gif.html</a>‘s <a target=_blank href="http://www.rjmprogramming.com.au/PHP/animegif/haiku_animated_gif.html">Haiku creation and sharing web application live run</a> link’s workings (last talked about at <a target=_blank href='https://www.rjmprogramming.com.au/ITblog/haiku-animated-gif-creator-tutorial/' title='Haiku Animated Gif Creator Tutorial'>Haiku Animated Gif Creator Tutorial</a>) with …</li>
<li><a target=_blank href="http://www.rjmprogramming.com.au/macos_say_record.php_GETME" title="macos_say_record.php">macos_say_record.php</a> macOS “say” PHP helper</li>
</ul>
<p> … so that if you had a <a target=_blank title='MAMP for Apache/PHP/MySql on Mac OS X local web server' href='http://www.mamp.info'><i>MAMP</i></a> local Apache/PHP/MySql web server going, and you …</p>
<ul>
<li>downloaded <a target=_blank href="http://www.rjmprogramming.com.au/PHP/animegif/tutorial_to_animated_gif.php---------------GETME" title="tutorial_to_animated_gif.php">tutorial_to_animated_gif.php</a> to same MAMP subdirectory as …</li>
<li>downloaded <a target=_blank href="http://www.rjmprogramming.com.au/PHP/animegif/haiku_animated_gif.html--GETME">haiku_animated_gif.html</a> to same MAMP place (which can be the same MAMP document root place as talked about below, in which case <i>HTTP://localhost:8888/haiku_animated_gif.html</i> is what you’d type into the web browser address bar to try this for yourself on a macOS or Mac OS X system) … and …</li>
<li>downloaded <a target=_blank href="http://www.rjmprogramming.com.au/macos_say_record.php_GETME" title="macos_say_record.php">macos_say_record.php</a> to MAMP document root (for us, equating to URL <i>HTTP://localhost:8888/macos_say_record.php</i>)</li>
</ul>
<p> … then you would be in the position to see a Haiku creation scenario (where we used the Safari web browser) like with today’s <a target=_blank href="http://www.rjmprogramming.com.au/PHP/animegif/haiku__say.jpg" title="tutorial picture">tutorial picture</a>, interesting, in our view, regarding the integration “tactics” …</p>
<ul>
<li>parent Haiku window opens …</li>
<li>child (popup) PHP “say” helper web application … which …</li>
<li>passes back to parent …<br />
<code><br />
<a target=_blank title='window.opener information from W3Schools' href='https://www.w3schools.com/jsref/prop_win_opener.asp'>window.opener</a>.document.getElementById('aurl').value=document.getElementById('result').value;<br />
window.opener.atab(window.opener.document.getElementById('aurl'));<br />
</code>
</li>
</ul>
<p> … achieving functionality we often ask HTML <a target=_blank title='HTML iframe information from w3schools' href='http://www.w3schools.com/tags/tag_iframe.asp'>iframe</a> elements achieve for our code. HTML iframe does have a role today, though. It uses a favoured “client pre-emptive iframe” approach to determine whether we even try to open that popup window above via …</p>
<ul>
<li>HTML …<br />
<code><br />
<div id=dif></div><br />
</code>
</li>
<li>Javascript …<br />
<code><br />
var mampok=false, mampprefix='';<br />
<br />
if (document.URL.indexOf('/localhost') != -1) {<br />
mampprefix="http://localhost" + document.URL.split('/localhost')[1].split('/')[0] + "/";<br />
document.getElementById('dif').innerHTML="<iframe onload='oicheck(this);' style='display:none;' src='http://localhost" + document.URL.split('/localhost')[1].split('/')[0] + "/'></iframe>";<br />
}<br />
<br />
function oicheck(iois) {<br />
mampok=false;<br />
if (iois != null) {<br />
var aconto = (iois.contentWindow || iois.contentDocument);<br />
if (aconto != null) {<br />
if (aconto.document) { aconto = aconto.document; }<br />
if (aconto.body != null) {<br />
if (aconto.body.innerHTML.toLowerCase().indexOf('>not found<') == -1 && aconto.body.innerHTML.toLowerCase().indexOf("our home page for your perusal") == -1) { mampok=true; }<br />
}<br />
}<br />
}<br />
}<br />
<br />
// and then later when the textarea has text and its onblur event is triggered ...<br />
if (mampok) {<br />
if (wois) { wois.close(); wois=null; }<br />
wois=window.open(mampprefix + "macos_say_record.php?saythis=" + encodeURIComponent(document.getElementById('myta').value),"_blank","top=460,left=400,width=700,height=400");<br />
}<br />
</code>
</li>
<p><!--p>You can also see this play out at WordPress 4.1.1's <a target=_blank href='//www.rjmprogramming.com.au/ITblog/macos-text-to-audio-primer-tutorial/'>MacOS Text to Audio Primer Tutorial</a>.</p-->
<hr>
<p id='mosxtespt'>Previous relevant <a target=_blank title='Mac OS X Text to English Speech Primer Tutorial' href='//www.rjmprogramming.com.au/ITblog/mac-os-x-text-to-english-speech-primer-tutorial/'>Mac OS X Text to English Speech Primer Tutorial</a> is shown below.</p>
<div style="width: 230px" class="wp-caption alignnone"><a target=_blank href="http://www.rjmprogramming.com.au/PHP/audio_video.html?clickit=submitmb"><img decoding="async" tabindex=0 oncontextmenu=imgedit(event); ontouchend=imgedit(event); style="border: 15px solid pink;" alt="Mac OS X Text to English Speech Primer Tutorial" src="http://www.rjmprogramming.com.au/PHP/say.jpg" title="Mac OS X Text to English Speech Primer Tutorial" style="float:left;" /></a><p class="wp-caption-text">Mac OS X Text to English Speech Primer Tutorial</p></div>
<p>We’ve got a few new ideas today …</p>
<ol>
<li>Text to English Speech via Mac OS X’s command line <a target=_blank title='say command information from Apple' href='https://ss64.com/osx/say.html'><i>say</i></a> command used by PHP via <a target=_blank title='PHP exec() method information' href='http://php.net/manual/en/function.exec.php'><i>exec</i></a> to make <a target=_blank title='say.php' href='http://www.rjmprogramming.com.au/PHP/say.php_GETME'>say.php</a> (which is useful as a download to a Mac OS X laptop using <a target=_blank title='MAMP for Apache/PHP/MySql on Mac OS X local web server' href='http://www.mamp.info'>MAMP</a>) which, today, does not have a live run because the web server of domain <i>rjmprogramming.com.au</i> is a CentOS Linux server … Linux equivalent of Mac OS X’s <i>say</i>? … read <a target=_blank title='Useful link' href='https://github.com/usc-isi-i2/festival-text-to-speech-service/blob/master/README.md'>here</a></li>
<li>Trying to present this brought up the usual movie production problem with <a target=_blank title='iMovie for Mac information from Apple' href='http://www.apple.com/au/mac/imovie/'>iMovie</a> overlaying the audio on top of the video (though you may want to try, and you could start reading with <a target=_blank title='Semi useful link' href='http://video.stackexchange.com/questions/2579/can-you-link-an-audio-track-to-a-video-track-in-imovie'>this link</a>) versus <a target=_blank title='QuickTime information from Apple' href='https://support.apple.com/downloads/quicktime'>QuickTime Player</a> talent to catch both audio and video tracks (and that we ended up using), but not of the “screen goings on”, alas versus <a target=_blank title='MPlayer OSX Extended information' href='http://mplayerosx.ch/'>MPlayer OSX Extended</a> which can play separately but not two tracks on top and doesn’t do any reconstituting … so …</li>
<li>Improved on our inhouse Video/Audio synchronizing efforts by allowing <a target=_blank title='audio_video.html' href='http://www.rjmprogramming.com.au/PHP/audio_video.html---GETME'>audio_video.html</a> supervisor (changed in <a target=_blank title='audio_video.html' href='http://www.rjmprogramming.com.au/PHP/Geographicals/diff.php?one=http://www.rjmprogramming.com.au/PHP/audio_video.html---GETME'>this way</a>) be able to be called to press one of its preconceived synchronization buttons <i>onload</i> which we do with (the newly added) <a target=_blank title='Macbeth Act 1 Scene 1' href='http://www.rjmprogramming.com.au/PHP/audio_video.html?clickit=submitmb'>Macbeth Act 1 Scene 1</a> … in a small <a target=_blank title='Birthday of Shakespeare' href='http://www.shakespeare.org.uk/visit-the-houses/whats-on.html/birthday-celebrations.html'>celebration</a> of the Bard … who, am thinking (in that Falstaff way), would have got a huge chuckle out of “anonymous” instead of “anon” during the Three Witches scene … we <i>had</i> to do something to say Happy Birthday</li>
</ol>
<p>Along the way we tried filming the MacBook Pro with the iPad to a <a target=_blank title='YouTube' href='http://youtube.com'>YouTube</a> …</p>
<p><iframe width="420" height="315" src="https://www.youtube.com/embed/9-Hvlz8g1Mg" frameborder="0" allowfullscreen></iframe></p>
<p> … but weren’t happy with the audio quality, alas (too/two).</p>
<p>If this was interesting you may be interested in <a title='Click here to see topics in which you might be interested' href='#d21904' onclick='var dv=document.getElementById("d21904"); dv.innerHTML = "<iframe width=670 height=600 src=" + "https://www.rjmprogramming.com.au/ITblog/tag/text-to-speech" + "></iframe>"; dv.style.display = "block";'>this</a> too.</p>
<div id='d21904' style='display: none; border-left: 2px solid green; border-top: 2px solid green;'></div>
<hr>
<p>If this was interesting you may be interested in <a title='Click here to see topics in which you might be interested' href='#d49544' onclick='var dv=document.getElementById("d49544"); dv.innerHTML = "<iframe width=670 height=600 src=" + "https://www.rjmprogramming.com.au/ITblog/tag/audio" + "></iframe>"; dv.style.display = "block";'>this</a> too.</p>
<div id='d49544' style='display: none; border-left: 2px solid green; border-top: 2px solid green;'></div>
<hr>
<p>If this was interesting you may be interested in <a title='Click here to see topics in which you might be interested' href='#d49558' onclick='var dv=document.getElementById("d49558"); dv.innerHTML = "<iframe width=670 height=600 src=" + "https://www.rjmprogramming.com.au/ITblog/tag/audio" + "></iframe>"; dv.style.display = "block";'>this</a> too.</p>
<div id='d49558' style='display: none; border-left: 2px solid green; border-top: 2px solid green;'></div>
<hr>
<p>If this was interesting you may be interested in <a title='Click here to see topics in which you might be interested' href='#d49565' onclick='var dv=document.getElementById("d49565"); dv.innerHTML = "<iframe width=670 height=600 src=" + "https://www.rjmprogramming.com.au/ITblog/tag/email" + "></iframe>"; dv.style.display = "block";'>this</a> too.</p>
<div id='d49565' style='display: none; border-left: 2px solid green; border-top: 2px solid green;'></div>
<hr>
<p>If this was interesting you may be interested in <a title='Click here to see topics in which you might be interested' href='#d49572' onclick='var dv=document.getElementById("d49572"); dv.innerHTML = "<iframe width=670 height=600 src=" + "https://www.rjmprogramming.com.au/ITblog/tag/flash" + "></iframe>"; dv.style.display = "block";'>this</a> too.</p>
<div id='d49572' style='display: none; border-left: 2px solid green; border-top: 2px solid green;'></div>
<hr>
<p>If this was interesting you may be interested in <a title='Click here to see topics in which you might be interested' href='#d49579' onclick='var dv=document.getElementById("d49579"); dv.innerHTML = "<iframe width=670 height=600 src=" + "https://www.rjmprogramming.com.au/ITblog/tag/mobile" + "></iframe>"; dv.style.display = "block";'>this</a> too.</p>
<div id='d49579' style='display: none; border-left: 2px solid green; border-top: 2px solid green;'></div>
</div><!-- .entry-content -->
<div class="entry-utility">
This entry was posted in <a href="https://www.rjmprogramming.com.au/ITblog/category/elearning/" rel="category tag">eLearning</a>, <a href="https://www.rjmprogramming.com.au/ITblog/category/event-driven-programming/" rel="category tag">Event-Driven Programming</a>, <a href="https://www.rjmprogramming.com.au/ITblog/category/tutorials/" rel="category tag">Tutorials</a> and tagged <a href="https://www.rjmprogramming.com.au/ITblog/tag/adobe/" rel="tag">Adobe</a>, <a href="https://www.rjmprogramming.com.au/ITblog/tag/apple/" rel="tag">Apple</a>, <a href="https://www.rjmprogramming.com.au/ITblog/tag/audio/" rel="tag">audio</a>, <a href="https://www.rjmprogramming.com.au/ITblog/tag/capture/" rel="tag">capture</a>, <a href="https://www.rjmprogramming.com.au/ITblog/tag/client-pre-emptive-iframe/" rel="tag">client pre-emptive iframe</a>, <a href="https://www.rjmprogramming.com.au/ITblog/tag/copy/" rel="tag">copy</a>, <a href="https://www.rjmprogramming.com.au/ITblog/tag/cross-browser/" rel="tag">cross-browser</a>, <a href="https://www.rjmprogramming.com.au/ITblog/tag/curl/" rel="tag">curl</a>, <a href="https://www.rjmprogramming.com.au/ITblog/tag/dictation/" rel="tag">dictation</a>, <a href="https://www.rjmprogramming.com.au/ITblog/tag/email/" rel="tag">email</a>, <a href="https://www.rjmprogramming.com.au/ITblog/tag/exec/" rel="tag">exec</a>, <a href="https://www.rjmprogramming.com.au/ITblog/tag/flash/" rel="tag">Flash</a>, <a href="https://www.rjmprogramming.com.au/ITblog/tag/iframe/" rel="tag">IFRAME</a>, <a href="https://www.rjmprogramming.com.au/ITblog/tag/inline-html-email/" rel="tag">inline html email</a>, <a href="https://www.rjmprogramming.com.au/ITblog/tag/input/" rel="tag">input</a>, <a href="https://www.rjmprogramming.com.au/ITblog/tag/internationalization/" rel="tag">internationalization</a>, <a href="https://www.rjmprogramming.com.au/ITblog/tag/language/" rel="tag">language</a>, <a href="https://www.rjmprogramming.com.au/ITblog/tag/language-code/" rel="tag">language code</a>, <a href="https://www.rjmprogramming.com.au/ITblog/tag/local-web-server/" rel="tag">local web server</a>, <a href="https://www.rjmprogramming.com.au/ITblog/tag/mac-os-x/" rel="tag">Mac OS X</a>, <a href="https://www.rjmprogramming.com.au/ITblog/tag/macos/" rel="tag">macOS</a>, <a href="https://www.rjmprogramming.com.au/ITblog/tag/mamp/" rel="tag">MAMP</a>, <a href="https://www.rjmprogramming.com.au/ITblog/tag/media/" rel="tag">media</a>, <a href="https://www.rjmprogramming.com.au/ITblog/tag/microphone/" rel="tag">microphone</a>, <a href="https://www.rjmprogramming.com.au/ITblog/tag/mobile/" rel="tag">mobile</a>, <a href="https://www.rjmprogramming.com.au/ITblog/tag/operating-system-2/" rel="tag">operating system</a>, <a href="https://www.rjmprogramming.com.au/ITblog/tag/paste/" rel="tag">paste</a>, <a href="https://www.rjmprogramming.com.au/ITblog/tag/php/" rel="tag">PHP</a>, <a href="https://www.rjmprogramming.com.au/ITblog/tag/plugin/" rel="tag">plugin</a>, <a href="https://www.rjmprogramming.com.au/ITblog/tag/popup/" rel="tag">popup</a>, <a href="https://www.rjmprogramming.com.au/ITblog/tag/programming/" rel="tag">programming</a>, <a href="https://www.rjmprogramming.com.au/ITblog/tag/safari/" rel="tag">Safari</a>, <a href="https://www.rjmprogramming.com.au/ITblog/tag/say/" rel="tag">say</a>, <a href="https://www.rjmprogramming.com.au/ITblog/tag/share/" rel="tag">share</a>, <a href="https://www.rjmprogramming.com.au/ITblog/tag/sharing/" rel="tag">sharing</a>, <a href="https://www.rjmprogramming.com.au/ITblog/tag/smart-device/" rel="tag">smart device</a>, <a href="https://www.rjmprogramming.com.au/ITblog/tag/speech/" rel="tag">speech</a>, <a href="https://www.rjmprogramming.com.au/ITblog/tag/speech-to-audio/" rel="tag">speech to audio</a>, <a href="https://www.rjmprogramming.com.au/ITblog/tag/text-to-audio/" rel="tag">text to audio</a>, <a href="https://www.rjmprogramming.com.au/ITblog/tag/text-to-speech/" rel="tag">Text to Speech</a>, <a href="https://www.rjmprogramming.com.au/ITblog/tag/textarea/" rel="tag">textarea</a>, <a href="https://www.rjmprogramming.com.au/ITblog/tag/tutorial/" rel="tag">tutorial</a>, <a href="https://www.rjmprogramming.com.au/ITblog/tag/voice/" rel="tag">voice</a>, <a href="https://www.rjmprogramming.com.au/ITblog/tag/voice-memo/" rel="tag">voice memo</a>, <a href="https://www.rjmprogramming.com.au/ITblog/tag/voiceover/" rel="tag">voiceover</a>, <a href="https://www.rjmprogramming.com.au/ITblog/tag/web-server/" rel="tag">web server</a>, <a href="https://www.rjmprogramming.com.au/ITblog/tag/window/" rel="tag">window</a>, <a href="https://www.rjmprogramming.com.au/ITblog/tag/window-open/" rel="tag">window.open</a>, <a href="https://www.rjmprogramming.com.au/ITblog/tag/window-opener/" rel="tag">window.opener</a>. Bookmark the <a href="https://www.rjmprogramming.com.au/ITblog/macos-and-other-mobile-media-record-tutorial/" title="Permalink to MacOS and Other Mobile Media Record Tutorial" rel="bookmark">permalink</a>. </div><!-- .entry-utility -->
</div><!-- #post-## -->
<div id="nav-below" class="navigation">
<div class="nav-previous"><a href="https://www.rjmprogramming.com.au/ITblog/macos-speech-to-flash-player-audio-record-tutorial/" rel="prev"><span class="meta-nav">←</span> MacOS Speech to Flash Player Audio Record Tutorial</a></div>
<div class="nav-next"><a href="https://www.rjmprogramming.com.au/ITblog/haiku-multimedia-via-media-record-capture-tutorial/" rel="next">Haiku Multimedia via Media Record Capture Tutorial <span class="meta-nav">→</span></a></div>
</div><!-- #nav-below -->
<div id="comments">
<div id="respond" class="comment-respond">
<h3 id="reply-title" class="comment-reply-title">Leave a Reply <small><a rel="nofollow" id="cancel-comment-reply-link" href="/ITblog/macos-and-other-mobile-media-record-tutorial/#respond" style="display:none;">Cancel reply</a></small></h3><form action="https://www.rjmprogramming.com.au/ITblog/wp-comments-post.php" method="post" id="commentform" class="comment-form"><p class="comment-notes"><span id="email-notes">Your email address will not be published.</span> <span class="required-field-message">Required fields are marked <span class="required">*</span></span></p><p class="comment-form-comment"><label for="comment">Comment <span class="required">*</span></label> <textarea id="comment" name="comment" cols="45" rows="8" maxlength="65525" required="required"></textarea></p><p class="comment-form-author"><label for="author">Name <span class="required">*</span></label> <input id="author" name="author" type="text" value="" size="30" maxlength="245" autocomplete="name" required="required" /></p>
<p class="comment-form-email"><label for="email">Email <span class="required">*</span></label> <input id="email" name="email" type="text" value="" size="30" maxlength="100" aria-describedby="email-notes" autocomplete="email" required="required" /></p>
<p class="comment-form-url"><label for="url">Website</label> <input id="url" name="url" type="text" value="" size="30" maxlength="200" autocomplete="url" /></p>
<p class="comment-form-cookies-consent"><input id="wp-comment-cookies-consent" name="wp-comment-cookies-consent" type="checkbox" value="yes" /> <label for="wp-comment-cookies-consent">Save my name, email, and website in this browser for the next time I comment.</label></p>
<p class="form-submit"><input name="submit" type="submit" id="submit" class="submit" value="Post Comment" /> <input type='hidden' name='comment_post_ID' value='49579' id='comment_post_ID' />
<input type='hidden' name='comment_parent' id='comment_parent' value='0' />
</p><p style="display: none;"><input type="hidden" id="akismet_comment_nonce" name="akismet_comment_nonce" value="f7c9575c4c" /></p><p style="display: none;"><input type="hidden" id="ak_js" name="ak_js" value="218"/></p></form> </div><!-- #respond -->
</div><!-- #comments -->
</div><!-- #content -->
</div><!-- #container -->
<div id="primary" class="widget-area" role="complementary">
<ul class="xoxo">
<li id="text-2" class="widget-container widget_text"><h3 class="widget-title">Numbers Guessing Game</h3> <div class="textwidget"><html>
<head>
<script>
var myguess=-3;
var myscore=0;
var outof=0;
function assess(smy) {
var vp=document.getElementById('myp');
if (smy.value == myguess) {
myscore = myscore + 1;
vp.innerHTML = " Congratulations!<br> Score " + myscore + "/" + outof;
} else {
vp.innerHTML = " Bad luck!<br> Score " + myscore + " /" + outof;
}
myguess = -2;
}
function apickone() {
var d = new Date();
var n = d.getMilliseconds();
//alert(n);
//alert('http://www.rjmprogramming.com.au/Games/Battleshipsandcruisers/index2.php?clue=' + (n % 100));
myguess = (n % 100);
var vs=document.getElementById('mys');
vs.value = -1;
outof = outof + 1;
return myguess;
}
</script>
<body>
<table cellpadding=5 border="1"><tbody>
<tr style='display:none;'><td colspan=3><h2>Your Numbers Game</h2></td></tr>
<tr><td style="text-align: left;"><p style="font-size:12px; color: red;">Get <br>clue</p></td><td style="text-align: left;"><p style="font-size:12px; color: orange;"> Your <br>answer</p></td><td style="text-align: left;"><p style="font-size:12px; color: green; text-align: left;">Your <br>Score</p></td></tr>
<tr><td>
<a style="font-size:12px; color: red;" id='mya' href='#text-4' onclick=" window.open('//www.rjmprogramming.com.au/Games/Battleshipsandcruisers/index2.php?clue=' + apickone(),'Clue' + myguess,'width=600,height=100',true) "><b>Clue?</b></a>
</td><td>
<select style="font-size:12px; color: black;" id='mys' onchange='assess(this);'><option value="-1">Answer?</option>
<option value="0">0</option>
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
<option value="6">6</option>
<option value="7">7</option>
<option value="8">8</option>
<option value="9">9</option>
<option value="10">10</option>
<option value="11">11</option>
<option value="12">12</option>
<option value="13">13</option>
<option value="14">14</option>
<option value="15">15</option>
<option value="16">16</option>
<option value="17">17</option>
<option value="18">18</option>
<option value="19">19</option>
<option value="20">20</option>
<option value="21">21</option>
<option value="22">22</option>
<option value="23">23</option>
<option value="24">24</option>
<option value="25">25</option>
<option value="26">26</option>
<option value="27">27</option>
<option value="28">28</option>
<option value="29">29</option>
<option value="30">30</option>
<option value="31">31</option>
<option value="32">32</option>
<option value="33">33</option>
<option value="34">34</option>
<option value="35">35</option>
<option value="36">36</option>
<option value="37">37</option>
<option value="38">38</option>
<option value="39">39</option>
<option value="40">40</option>
<option value="41">41</option>
<option value="42">42</option>
<option value="43">43</option>
<option value="44">44</option>
<option value="45">45</option>
<option value="46">46</option>
<option value="47">47</option>
<option value="48">48</option>
<option value="49">49</option>
<option value="50">50</option>
<option value="51">51</option>
<option value="52">52</option>
<option value="53">53</option>
<option value="54">54</option>
<option value="55">55</option>
<option value="56">56</option>
<option value="57">57</option>
<option value="58">58</option>
<option value="59">59</option>
<option value="60">60</option>
<option value="61">61</option>
<option value="62">62</option>
<option value="63">63</option>
<option value="64">64</option>
<option value="65">65</option>
<option value="66">66</option>
<option value="67">67</option>
<option value="68">68</option>
<option value="69">69</option>
<option value="70">70</option>
<option value="71">71</option>
<option value="72">72</option>
<option value="73">73</option>
<option value="74">74</option>
<option value="75">75</option>
<option value="76">76</option>
<option value="77">77</option>
<option value="78">78</option>
<option value="79">79</option>
<option value="80">80</option>
<option value="81">81</option>
<option value="82">82</option>
<option value="83">83</option>
<option value="84">84</option>
<option value="85">85</option>
<option value="86">86</option>
<option value="87">87</option>
<option value="88">88</option>
<option value="89">89</option>
<option value="90">90</option>
<option value="91">91</option>
<option value="92">92</option>
<option value="93">93</option>
<option value="94">94</option>
<option value="95">95</option>
<option value="96">96</option>
<option value="97">97</option>
<option value="98">98</option>
<option value="99">99</option>
</select>
</td><td>
<p style="font-size:12px; color: green;" id='myp'> Score 0/0</p>
</td></tr></tbody></table>
</body>
</html></div>
</li><li id="search-2" class="widget-container widget_search"><form role="search" method="get" id="searchform" class="searchform" action="https://www.rjmprogramming.com.au/ITblog/">
<div>
<label class="screen-reader-text" for="s">Search for:</label>
<input type="text" value="" name="s" id="s" />
<input type="submit" id="searchsubmit" value="Search" />
</div>
</form></li>
<li id="recent-posts-2" class="widget-container widget_recent_entries">
<h3 class="widget-title">Recent Posts</h3>
<ul>
<li>
<a href="https://www.rjmprogramming.com.au/ITblog/css-variables-textarea-tutorial/">CSS Variables Textarea Tutorial</a>
</li>
<li>
<a href="https://www.rjmprogramming.com.au/ITblog/text-background-clip-animation-emoji-overlay-html-entities-tutorial/">Text Background Clip Animation Emoji Overlay HTML Entities Tutorial</a>
</li>
<li>
<a href="https://www.rjmprogramming.com.au/ITblog/text-background-clip-animation-emoji-overlay-svg-css-tutorial/">Text Background Clip Animation Emoji Overlay SVG CSS Tutorial</a>
</li>
<li>
<a href="https://www.rjmprogramming.com.au/ITblog/text-background-clip-animation-emoji-overlay-svg-sharing-tutorial/">Text Background Clip Animation Emoji Overlay SVG Sharing Tutorial</a>
</li>
<li>
<a href="https://www.rjmprogramming.com.au/ITblog/text-background-clip-animation-emoji-overlay-svg-tutorial/">Text Background Clip Animation Emoji Overlay SVG Tutorial</a>
</li>
<li>
<a href="https://www.rjmprogramming.com.au/ITblog/text-background-clip-animation-emoji-overlay-tutorial/">Text Background Clip Animation Emoji Overlay Tutorial</a>
</li>
<li>
<a href="https://www.rjmprogramming.com.au/ITblog/text-background-clip-animation-tutorial/">Text Background Clip Animation Tutorial</a>
</li>
<li>
<a href="https://www.rjmprogramming.com.au/ITblog/wordpress-blog-comments-url-right-click-popup-check-prevent-default-tutorial/">WordPress Blog Comments URL Right Click Popup Check Prevent Default Tutorial</a>
</li>
</ul>
</li><li id="categories-2" class="widget-container widget_categories"><h3 class="widget-title">Categories</h3>
<ul>
<li class="cat-item cat-item-2"><a href="https://www.rjmprogramming.com.au/ITblog/category/ajax/">Ajax</a>
</li>
<li class="cat-item cat-item-3"><a href="https://www.rjmprogramming.com.au/ITblog/category/android/">Android</a>
</li>
<li class="cat-item cat-item-4"><a href="https://www.rjmprogramming.com.au/ITblog/category/animation/">Animation</a>
</li>
<li class="cat-item cat-item-5"><a href="https://www.rjmprogramming.com.au/ITblog/category/anythingyoulike/">Anything You Like</a>
</li>
<li class="cat-item cat-item-6"><a href="https://www.rjmprogramming.com.au/ITblog/category/codeblocks/">Code::Blocks</a>
</li>
<li class="cat-item cat-item-1848"><a href="https://www.rjmprogramming.com.au/ITblog/category/software-coding/">Coding</a>
</li>
<li class="cat-item cat-item-7"><a href="https://www.rjmprogramming.com.au/ITblog/category/colour-matching/">Colour Matching</a>
</li>
<li class="cat-item cat-item-8"><a href="https://www.rjmprogramming.com.au/ITblog/category/data-integration/">Data Integration</a>
</li>
<li class="cat-item cat-item-9"><a href="https://www.rjmprogramming.com.au/ITblog/category/database/">Database</a>
</li>
<li class="cat-item cat-item-10"><a href="https://www.rjmprogramming.com.au/ITblog/category/delphi/">Delphi</a>
</li>
<li class="cat-item cat-item-11"><a href="https://www.rjmprogramming.com.au/ITblog/category/eclipse/">Eclipse</a>
</li>
<li class="cat-item cat-item-12"><a href="https://www.rjmprogramming.com.au/ITblog/category/elearning/">eLearning</a>
</li>
<li class="cat-item cat-item-13"><a href="https://www.rjmprogramming.com.au/ITblog/category/esl/">ESL</a>
</li>
<li class="cat-item cat-item-14"><a href="https://www.rjmprogramming.com.au/ITblog/category/event-driven-programming/">Event-Driven Programming</a>
</li>
<li class="cat-item cat-item-15"><a href="https://www.rjmprogramming.com.au/ITblog/category/games/">Games</a>
</li>
<li class="cat-item cat-item-16"><a href="https://www.rjmprogramming.com.au/ITblog/category/gimp/">GIMP</a>
</li>
<li class="cat-item cat-item-17"><a href="https://www.rjmprogramming.com.au/ITblog/category/gui/">GUI</a>
</li>
<li class="cat-item cat-item-18"><a href="https://www.rjmprogramming.com.au/ITblog/category/hardware/">Hardware</a>
</li>
<li class="cat-item cat-item-19"><a href="https://www.rjmprogramming.com.au/ITblog/category/installers/">Installers</a>
</li>
<li class="cat-item cat-item-20"><a href="https://www.rjmprogramming.com.au/ITblog/category/ios/">iOS</a>
</li>
<li class="cat-item cat-item-21"><a href="https://www.rjmprogramming.com.au/ITblog/category/land-surveying/">Land Surveying</a>
</li>
<li class="cat-item cat-item-22"><a href="https://www.rjmprogramming.com.au/ITblog/category/moodle/">Moodle</a>
</li>
<li class="cat-item cat-item-23"><a href="https://www.rjmprogramming.com.au/ITblog/category/music/">Music Poll</a>
</li>
<li class="cat-item cat-item-24"><a href="https://www.rjmprogramming.com.au/ITblog/category/netbeans/">NetBeans</a>
</li>
<li class="cat-item cat-item-25"><a href="https://www.rjmprogramming.com.au/ITblog/category/networking/">Networking</a>
</li>
<li class="cat-item cat-item-26"><a href="https://www.rjmprogramming.com.au/ITblog/category/news/">News</a>
</li>
<li class="cat-item cat-item-1"><a href="https://www.rjmprogramming.com.au/ITblog/category/uncategorised/">Not Categorised</a>
</li>
<li class="cat-item cat-item-28"><a href="https://www.rjmprogramming.com.au/ITblog/category/oop/">OOP</a>
</li>
<li class="cat-item cat-item-29"><a href="https://www.rjmprogramming.com.au/ITblog/category/operating-system/">Operating System</a>
</li>
<li class="cat-item cat-item-30"><a href="https://www.rjmprogramming.com.au/ITblog/category/photography/">Photography</a>
</li>
<li class="cat-item cat-item-31"><a href="https://www.rjmprogramming.com.au/ITblog/category/projects/">Projects</a>
</li>
<li class="cat-item cat-item-32"><a href="https://www.rjmprogramming.com.au/ITblog/category/signage-poll/">Signage Poll</a>
</li>
<li class="cat-item cat-item-33"><a href="https://www.rjmprogramming.com.au/ITblog/category/software/">Software</a>
</li>
<li class="cat-item cat-item-34"><a href="https://www.rjmprogramming.com.au/ITblog/category/spectrophotometer/">SpectroPhotometer</a>
</li>
<li class="cat-item cat-item-35"><a href="https://www.rjmprogramming.com.au/ITblog/category/tikiwiki/">Tiki Wiki</a>
</li>
<li class="cat-item cat-item-36"><a href="https://www.rjmprogramming.com.au/ITblog/category/trips/">Trips</a>
</li>
<li class="cat-item cat-item-37"><a href="https://www.rjmprogramming.com.au/ITblog/category/tutorials/">Tutorials</a>
</li>
<li class="cat-item cat-item-38"><a href="https://www.rjmprogramming.com.au/ITblog/category/uncategorized/">Uncategorized</a>
</li>
<li class="cat-item cat-item-39"><a href="https://www.rjmprogramming.com.au/ITblog/category/visual-studio/">Visual Studio</a>
</li>
<li class="cat-item cat-item-40"><a href="https://www.rjmprogramming.com.au/ITblog/category/xcode/">Xcode</a>
</li>
</ul>
</li><li id="calendar-2" class="widget-container widget_calendar"><div id="calendar_wrap" class="calendar_wrap"><table id="wp-calendar" class="wp-calendar-table">
<caption>September 2025</caption>
<thead>
<tr>
<th scope="col" title="Sunday">S</th>
<th scope="col" title="Monday">M</th>
<th scope="col" title="Tuesday">T</th>
<th scope="col" title="Wednesday">W</th>
<th scope="col" title="Thursday">T</th>
<th scope="col" title="Friday">F</th>
<th scope="col" title="Saturday">S</th>
</tr>
</thead>
<tbody>
<tr>
<td colspan="1" class="pad"> </td><td><a href="https://www.rjmprogramming.com.au/ITblog/2025/09/01/" aria-label="Posts published on 1 September 2025">1</a></td><td><a href="https://www.rjmprogramming.com.au/ITblog/2025/09/02/" aria-label="Posts published on 2 September 2025">2</a></td><td><a href="https://www.rjmprogramming.com.au/ITblog/2025/09/03/" aria-label="Posts published on 3 September 2025">3</a></td><td><a href="https://www.rjmprogramming.com.au/ITblog/2025/09/04/" aria-label="Posts published on 4 September 2025">4</a></td><td><a href="https://www.rjmprogramming.com.au/ITblog/2025/09/05/" aria-label="Posts published on 5 September 2025">5</a></td><td><a href="https://www.rjmprogramming.com.au/ITblog/2025/09/06/" aria-label="Posts published on 6 September 2025">6</a></td>
</tr>
<tr>
<td><a href="https://www.rjmprogramming.com.au/ITblog/2025/09/07/" aria-label="Posts published on 7 September 2025">7</a></td><td><a href="https://www.rjmprogramming.com.au/ITblog/2025/09/08/" aria-label="Posts published on 8 September 2025">8</a></td><td><a href="https://www.rjmprogramming.com.au/ITblog/2025/09/09/" aria-label="Posts published on 9 September 2025">9</a></td><td><a href="https://www.rjmprogramming.com.au/ITblog/2025/09/10/" aria-label="Posts published on 10 September 2025">10</a></td><td><a href="https://www.rjmprogramming.com.au/ITblog/2025/09/11/" aria-label="Posts published on 11 September 2025">11</a></td><td><a href="https://www.rjmprogramming.com.au/ITblog/2025/09/12/" aria-label="Posts published on 12 September 2025">12</a></td><td><a href="https://www.rjmprogramming.com.au/ITblog/2025/09/13/" aria-label="Posts published on 13 September 2025">13</a></td>
</tr>
<tr>
<td><a href="https://www.rjmprogramming.com.au/ITblog/2025/09/14/" aria-label="Posts published on 14 September 2025">14</a></td><td><a href="https://www.rjmprogramming.com.au/ITblog/2025/09/15/" aria-label="Posts published on 15 September 2025">15</a></td><td><a href="https://www.rjmprogramming.com.au/ITblog/2025/09/16/" aria-label="Posts published on 16 September 2025">16</a></td><td><a href="https://www.rjmprogramming.com.au/ITblog/2025/09/17/" aria-label="Posts published on 17 September 2025">17</a></td><td><a href="https://www.rjmprogramming.com.au/ITblog/2025/09/18/" aria-label="Posts published on 18 September 2025">18</a></td><td><a href="https://www.rjmprogramming.com.au/ITblog/2025/09/19/" aria-label="Posts published on 19 September 2025">19</a></td><td><a href="https://www.rjmprogramming.com.au/ITblog/2025/09/20/" aria-label="Posts published on 20 September 2025">20</a></td>
</tr>
<tr>
<td id="today"><a href="https://www.rjmprogramming.com.au/ITblog/2025/09/21/" aria-label="Posts published on 21 September 2025">21</a></td><td>22</td><td>23</td><td>24</td><td>25</td><td>26</td><td>27</td>
</tr>
<tr>
<td>28</td><td>29</td><td>30</td>
<td class="pad" colspan="4"> </td>
</tr>
</tbody>
</table><nav aria-label="Previous and next months" class="wp-calendar-nav">
<span class="wp-calendar-nav-prev"><a href="https://www.rjmprogramming.com.au/ITblog/2025/08/">« Aug</a></span>
<span class="pad"> </span>
<span class="wp-calendar-nav-next"> </span>
</nav></div></li><li id="meta-2" class="widget-container widget_meta"><h3 class="widget-title">Meta</h3>
<ul>
<li><a href="https://www.rjmprogramming.com.au/ITblog/wp-login.php">Log in</a></li>
<li><a href="https://www.rjmprogramming.com.au/ITblog/feed/">Entries feed</a></li>
<li><a href="https://www.rjmprogramming.com.au/ITblog/comments/feed/">Comments feed</a></li>
<li><a href="https://wordpress.org/">WordPress.org</a></li>
</ul>
</li><li id="tag_cloud-2" class="widget-container widget_tag_cloud"><h3 class="widget-title">Tags</h3><div class="tagcloud"><a href="https://www.rjmprogramming.com.au/ITblog/tag/ajax/" class="tag-cloud-link tag-link-69 tag-link-position-1" style="font-size: 9.0275229357798pt;" aria-label="Ajax (424 items)">Ajax</a>
<a href="https://www.rjmprogramming.com.au/ITblog/tag/animation-2/" class="tag-cloud-link tag-link-84 tag-link-position-2" style="font-size: 9.2844036697248pt;" aria-label="animation (445 items)">animation</a>
<a href="https://www.rjmprogramming.com.au/ITblog/tag/background/" class="tag-cloud-link tag-link-126 tag-link-position-3" style="font-size: 8.7706422018349pt;" aria-label="background (408 items)">background</a>
<a href="https://www.rjmprogramming.com.au/ITblog/tag/button/" class="tag-cloud-link tag-link-174 tag-link-position-4" style="font-size: 8.5137614678899pt;" aria-label="button (386 items)">button</a>
<a href="https://www.rjmprogramming.com.au/ITblog/tag/canvas/" class="tag-cloud-link tag-link-184 tag-link-position-5" style="font-size: 9.6697247706422pt;" aria-label="canvas (477 items)">canvas</a>
<a href="https://www.rjmprogramming.com.au/ITblog/tag/command-line/" class="tag-cloud-link tag-link-234 tag-link-position-6" style="font-size: 9.4128440366972pt;" aria-label="command line (460 items)">command line</a>
<a href="https://www.rjmprogramming.com.au/ITblog/tag/css/" class="tag-cloud-link tag-link-281 tag-link-position-7" style="font-size: 14.550458715596pt;" aria-label="CSS (1,157 items)">CSS</a>
<a href="https://www.rjmprogramming.com.au/ITblog/tag/did-you-know/" class="tag-cloud-link tag-link-327 tag-link-position-8" style="font-size: 8.1284403669725pt;" aria-label="Did you know (365 items)">Did you know</a>
<a href="https://www.rjmprogramming.com.au/ITblog/tag/div/" class="tag-cloud-link tag-link-342 tag-link-position-9" style="font-size: 8.1284403669725pt;" aria-label="div (365 items)">div</a>
<a href="https://www.rjmprogramming.com.au/ITblog/tag/dom/" class="tag-cloud-link tag-link-354 tag-link-position-10" style="font-size: 12.623853211009pt;" aria-label="DOM (803 items)">DOM</a>
<a href="https://www.rjmprogramming.com.au/ITblog/tag/dropdown/" class="tag-cloud-link tag-link-367 tag-link-position-11" style="font-size: 10.825688073394pt;" aria-label="dropdown (586 items)">dropdown</a>
<a href="https://www.rjmprogramming.com.au/ITblog/tag/email/" class="tag-cloud-link tag-link-380 tag-link-position-12" style="font-size: 12.880733944954pt;" aria-label="email (842 items)">email</a>
<a href="https://www.rjmprogramming.com.au/ITblog/tag/emoji/" class="tag-cloud-link tag-link-385 tag-link-position-13" style="font-size: 12.495412844037pt;" aria-label="emoji (801 items)">emoji</a>
<a href="https://www.rjmprogramming.com.au/ITblog/tag/event/" class="tag-cloud-link tag-link-400 tag-link-position-14" style="font-size: 10.311926605505pt;" aria-label="event (536 items)">event</a>
<a href="https://www.rjmprogramming.com.au/ITblog/tag/form/" class="tag-cloud-link tag-link-452 tag-link-position-15" style="font-size: 11.467889908257pt;" aria-label="form (663 items)">form</a>
<a href="https://www.rjmprogramming.com.au/ITblog/tag/game/" class="tag-cloud-link tag-link-476 tag-link-position-16" style="font-size: 10.440366972477pt;" aria-label="game (553 items)">game</a>
<a href="https://www.rjmprogramming.com.au/ITblog/tag/games-2/" class="tag-cloud-link tag-link-477 tag-link-position-17" style="font-size: 8.5137614678899pt;" aria-label="games (388 items)">games</a>
<a href="https://www.rjmprogramming.com.au/ITblog/tag/google/" class="tag-cloud-link tag-link-513 tag-link-position-18" style="font-size: 11.211009174312pt;" aria-label="Google (623 items)">Google</a>
<a href="https://www.rjmprogramming.com.au/ITblog/tag/google-chart/" class="tag-cloud-link tag-link-518 tag-link-position-19" style="font-size: 8.7706422018349pt;" aria-label="Google chart (402 items)">Google chart</a>
<a href="https://www.rjmprogramming.com.au/ITblog/tag/html/" class="tag-cloud-link tag-link-576 tag-link-position-20" style="font-size: 19.045871559633pt;" aria-label="HTML (2,562 items)">HTML</a>
<a href="https://www.rjmprogramming.com.au/ITblog/tag/iframe/" class="tag-cloud-link tag-link-587 tag-link-position-21" style="font-size: 13.266055045872pt;" aria-label="IFRAME (914 items)">IFRAME</a>
<a href="https://www.rjmprogramming.com.au/ITblog/tag/image/" class="tag-cloud-link tag-link-590 tag-link-position-22" style="font-size: 13.908256880734pt;" aria-label="image (1,029 items)">image</a>
<a href="https://www.rjmprogramming.com.au/ITblog/tag/ios/" class="tag-cloud-link tag-link-626 tag-link-position-23" style="font-size: 8.7706422018349pt;" aria-label="iOS (405 items)">iOS</a>
<a href="https://www.rjmprogramming.com.au/ITblog/tag/javascript/" class="tag-cloud-link tag-link-652 tag-link-position-24" style="font-size: 19.045871559633pt;" aria-label="Javascript (2,570 items)">Javascript</a>
<a href="https://www.rjmprogramming.com.au/ITblog/tag/mamp/" class="tag-cloud-link tag-link-744 tag-link-position-25" style="font-size: 8.8990825688073pt;" aria-label="MAMP (416 items)">MAMP</a>
<a href="https://www.rjmprogramming.com.au/ITblog/tag/map/" class="tag-cloud-link tag-link-745 tag-link-position-26" style="font-size: 8.3853211009174pt;" aria-label="map (381 items)">map</a>
<a href="https://www.rjmprogramming.com.au/ITblog/tag/mobile/" class="tag-cloud-link tag-link-795 tag-link-position-27" style="font-size: 10.825688073394pt;" aria-label="mobile (584 items)">mobile</a>
<a href="https://www.rjmprogramming.com.au/ITblog/tag/navigation/" class="tag-cloud-link tag-link-830 tag-link-position-28" style="font-size: 8.5137614678899pt;" aria-label="navigation (387 items)">navigation</a>
<a href="https://www.rjmprogramming.com.au/ITblog/tag/onclick/" class="tag-cloud-link tag-link-861 tag-link-position-29" style="font-size: 10.440366972477pt;" aria-label="onclick (545 items)">onclick</a>
<a href="https://www.rjmprogramming.com.au/ITblog/tag/overlay/" class="tag-cloud-link tag-link-894 tag-link-position-30" style="font-size: 11.467889908257pt;" aria-label="overlay (661 items)">overlay</a>
<a href="https://www.rjmprogramming.com.au/ITblog/tag/php/" class="tag-cloud-link tag-link-932 tag-link-position-31" style="font-size: 17.761467889908pt;" aria-label="PHP (2,020 items)">PHP</a>
<a href="https://www.rjmprogramming.com.au/ITblog/tag/programming/" class="tag-cloud-link tag-link-997 tag-link-position-32" style="font-size: 21.100917431193pt;" aria-label="programming (3,686 items)">programming</a>
<a href="https://www.rjmprogramming.com.au/ITblog/tag/select/" class="tag-cloud-link tag-link-1866 tag-link-position-33" style="font-size: 9.1559633027523pt;" aria-label="select (438 items)">select</a>
<a href="https://www.rjmprogramming.com.au/ITblog/tag/share/" class="tag-cloud-link tag-link-1133 tag-link-position-34" style="font-size: 10.05504587156pt;" aria-label="share (515 items)">share</a>
<a href="https://www.rjmprogramming.com.au/ITblog/tag/sharing/" class="tag-cloud-link tag-link-1137 tag-link-position-35" style="font-size: 9.6697247706422pt;" aria-label="sharing (477 items)">sharing</a>
<a href="https://www.rjmprogramming.com.au/ITblog/tag/sms/" class="tag-cloud-link tag-link-1159 tag-link-position-36" style="font-size: 8.3853211009174pt;" aria-label="SMS (377 items)">SMS</a>
<a href="https://www.rjmprogramming.com.au/ITblog/tag/svg/" class="tag-cloud-link tag-link-1226 tag-link-position-37" style="font-size: 9.0275229357798pt;" aria-label="SVG (421 items)">SVG</a>
<a href="https://www.rjmprogramming.com.au/ITblog/tag/table/" class="tag-cloud-link tag-link-1238 tag-link-position-38" style="font-size: 9.2844036697248pt;" aria-label="table (450 items)">table</a>
<a href="https://www.rjmprogramming.com.au/ITblog/tag/text/" class="tag-cloud-link tag-link-1254 tag-link-position-39" style="font-size: 8pt;" aria-label="text (356 items)">text</a>
<a href="https://www.rjmprogramming.com.au/ITblog/tag/textarea/" class="tag-cloud-link tag-link-1262 tag-link-position-40" style="font-size: 8.6422018348624pt;" aria-label="textarea (401 items)">textarea</a>
<a href="https://www.rjmprogramming.com.au/ITblog/tag/tutorial/" class="tag-cloud-link tag-link-1319 tag-link-position-41" style="font-size: 22pt;" aria-label="tutorial (4,355 items)">tutorial</a>
<a href="https://www.rjmprogramming.com.au/ITblog/tag/url/" class="tag-cloud-link tag-link-1345 tag-link-position-42" style="font-size: 10.697247706422pt;" aria-label="url (569 items)">url</a>
<a href="https://www.rjmprogramming.com.au/ITblog/tag/video/" class="tag-cloud-link tag-link-1369 tag-link-position-43" style="font-size: 9.4128440366972pt;" aria-label="video (461 items)">video</a>
<a href="https://www.rjmprogramming.com.au/ITblog/tag/web-browser/" class="tag-cloud-link tag-link-1404 tag-link-position-44" style="font-size: 8.6422018348624pt;" aria-label="web browser (396 items)">web browser</a>
<a href="https://www.rjmprogramming.com.au/ITblog/tag/webpage/" class="tag-cloud-link tag-link-1418 tag-link-position-45" style="font-size: 8.256880733945pt;" aria-label="webpage (368 items)">webpage</a></div>
</li><li id="text-6" class="widget-container widget_text"><h3 class="widget-title">Your Background Image</h3> <div class="textwidget"><script>
var dchref="#";
var dcevent="document.body.ondblclick";
function dchrefdo() {
if (dchref.indexOf("#") != 0) {
var bitsare=document.URL.split("highlight=");
if (bitsare.length > 1 && (dchref.indexOf("/wordpress") != -1 || dchref.indexOf("/ITblog") != -1)) {
if (dchref.indexOf("?") != -1) {
window.open(dchref + "?highlight=" + bitsare[1], "_blank");
} else {
window.open(dchref + "&highlight=" + bitsare[1], "_blank");
}
} else {
window.open(dchref, "_blank");
}
}
}
function bckit(oEvent) {
var oimg = (oEvent.target || oEvent.srcElement);
document.body.style.backgroundImage = "url('" + oimg.src + "')";
oimg.style.opacity = 1.0;
}
function loadme() {
var idivis = document.getElementById("ichoices");
//idivis.style.height = '300px';
var cdiv = "", nbs = " ", lastah = "", lasttitle = "";
var imgs = document.getElementsByTagName("img");
var bitsare=document.URL.split("highlight=");
if (navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i)) {
dcevent="this.onclick";
}
for (var ai = 0; ai <= imgs.length * 0; ai += 1) {
imgs[ai].ondblclick = bckit;
cdiv = cdiv + "<img style='opacity:0.7' src='" + imgs[ai].src + "' height=40 width=40 ontouchstart='bckit(event);' onclick='bckit(event);' ondblclick='bckit(event);'></img> ";
}
var aas = document.getElementsByTagName("a");
for (var aai = 0; aai < aas.length; aai += 1) {
if (aas[aai].innerHTML.indexOf("img") != -1) {
aas[aai].ondblclick = bckit;
nbs = " ";
if (lastah != "") {
if (lastah.indexOf("?author") == -1) nbs = '<a target=_blank title="Navigate to blog posting (double click image for slideshow) for ' + lasttitle + '" href="' + lastah + '">.</a>';
}
cdiv = cdiv + aas[aai].innerHTML.replace("<img", "<img style='opacity:0.7' height=40 width=40 ontouchstart='bckit(event);' onclick='bckit(event); dchref=\"" + aas[aai].href + "\"; " + dcevent + "=dchrefdo; ' ondblclick='bckit(event); dchref=\"" + aas[aai].href + "\"; " + dcevent + "=dchrefdo; ' ") + " " + nbs;
lastah = "";
} else if (aas[aai].href.indexOf("/wordpress") != -1) {
lasttitle = aas[aai].title;
lastah = aas[aai].href;
if (bitsare.length > 1 && (lastah.indexOf("/wordpress") != -1 || lastah.indexOf("/ITblog") != -1) && lastah.indexOf("?") != -1) {
lastah += ("?highlight=" + bitsare[1]);
} else if (bitsare.length > 1 && (lastah.indexOf("/wordpress") != -1 || lastah.indexOf("/ITblog") != -1) && lastah.indexOf("?") == -1) {
lastah += ("&highlight=" + bitsare[1]);
}
} else if (aas[aai].href.indexOf("/ITblog") != -1) {
lasttitle = aas[aai].title;
lastah = aas[aai].href;
if (bitsare.length > 1 && (lastah.indexOf("/wordpress") != -1 || lastah.indexOf("/ITblog") != -1) && lastah.indexOf("?") != -1) {
lastah += ("?highlight=" + bitsare[1]);
} else if (bitsare.length > 1 && (lastah.indexOf("/wordpress") != -1 || lastah.indexOf("/ITblog") != -1) && lastah.indexOf("?") == -1) {
lastah += ("&highlight=" + bitsare[1]);
}
} else {
lastah = "";
}
}
for (var zai = 1; zai < imgs.length * 0; zai += 1) {
imgs[zai].ondblclick = bckit;
cdiv = cdiv + "<img style='opacity:0.7' src='" + imgs[zai].src + "' height=40 width=40 ontouchstart='bckit(event);' onclick='bckit(event);' ondblclick='bckit(event);'></img> ";
}
idivis.innerHTML = cdiv;
}
</script>
<input type="button" title="Click here then (Double) Click desired background image below (will be subject of tutorial on 6/4/2014) ... if a tutorial-based image (as background image chosen below) is double clicked the visual part of that tutorial will be shown in a new tab/window." onclick="loadme();" value="Double Click Image Events"></input><br><hr class='ybi'><div id="ichoices"></div>
</div>
</li><li id="text-5" class="widget-container widget_text"><h3 class="widget-title">OnTopList</h3> <div class="textwidget"><a href="//www.ontoplist.com/" target="_blank" rel="noopener"><img src="//www.ontoplist.com/images/ontoplist30.png?id=54e303ad7936b" alt="Blog Directory & Business Pages - OnToplist.com" border="0" /></a></div>
</li> </ul>
</div><!-- #primary .widget-area -->
</div><!-- #main -->
<div id="footer" role="contentinfo">
<div id="colophon">
<div id="footer-widget-area" role="complementary">
<div id="first" class="widget-area">
<ul class="xoxo">
<li id="recent-comments-2" class="widget-container widget_recent_comments"><h3 class="widget-title">Recent Comments</h3><ul id="recentcomments"><li class="recentcomments"><span class="comment-author-link"><a href="https://teespring.com/" class="url" rel="ugc external nofollow">CSR Racing 2 guide</a></span> on <a href="https://www.rjmprogramming.com.au/ITblog/learning-programming-android-app/#comment-2778252">Learning Programming Android App</a></li><li class="recentcomments"><span class="comment-author-link">admin</span> on <a href="https://www.rjmprogramming.com.au/ITblog/php-and-javascript-and-css-shape-drawing-tutorial/#comment-2773847">PHP and Javascript and CSS Shape Drawing Tutorial</a></li><li class="recentcomments"><span class="comment-author-link"><a href="https://deluxeastrology.com/" class="url" rel="ugc external nofollow">Deluxe Astrology</a></span> on <a href="https://www.rjmprogramming.com.au/ITblog/php-and-javascript-and-css-shape-drawing-tutorial/#comment-2773788">PHP and Javascript and CSS Shape Drawing Tutorial</a></li><li class="recentcomments"><span class="comment-author-link"><a href="https://docs.vultr.com/how-to-repair-a-corrupted-mysql-table" class="url" rel="ugc external nofollow">manish sharma</a></span> on <a href="https://www.rjmprogramming.com.au/ITblog/event-calendar-php-bookmark-tutorial/#comment-2771120">Event Calendar PHP Bookmark Tutorial</a></li><li class="recentcomments"><span class="comment-author-link"><a href="https://docs.vultr.com/cpp/cpp/examples/cpp/examples/calculate-power-of-a-number" class="url" rel="ugc external nofollow">growtwitch</a></span> on <a href="https://www.rjmprogramming.com.au/ITblog/event-calendar-php-bookmark-tutorial/#comment-2771053">Event Calendar PHP Bookmark Tutorial</a></li></ul></li> </ul>
</div><!-- #first .widget-area -->
</div><!-- #footer-widget-area -->
<div id="site-info">
<a href="https://www.rjmprogramming.com.au/ITblog/" title="Robert James Metcalfe Blog" rel="home">
Robert James Metcalfe Blog </a><a title="Software need not be hard!" href="//www.rjmprogramming.com.au" target="_blank" style="display:block;width:90%; filter: alpha(opacity=35);" onmouseover="if( this.filters) { this.filters.alpha.opacity=100; }" onmouseout="if( this.filters) { this.filters.alpha.opacity=60; }">
<img onmouseover="this.style.MozOpacity=1.0;" onmouseout="this.style.MozOpacity = 0.35;" src="//www.rjmprogramming.com.au/MyBusinessUnidad/Welcome_files/rjmhomewhite.png?w=df" style="-moz-opacity: 0.35; border: none; height: 50px; left: 435px; opacity: 0.35; z-index: 1; " id="idrjm" alt="//www.rjmprogramming.com.au/MyBusinessUnidad/Welcome_files/rjmhomewhite.png" /></a>
</div><!-- #site-info -->
<div id="site-generator">
<a href="//wordpress.org/"
title="Semantic Personal Publishing Platform" rel="generator">
Proudly powered by WordPress. </a> </div><!-- #site-generator -->
</div><!-- #colophon -->
<a href="http://www.blogarama.com/fashion-blogs/1351624-blog/" title="Blogarama.com - Follow me on Blogarama">Blogarama - Blog Directory</a>
</div><!-- #footer -->
</div><!-- #wrapper -->
<div id='phfloater'></div>
<script type='text/javascript'>
var phight=' ';
var cbackc='';
var cookcnt=0;
var cookblank=' ';
var zoharr=[];
var mpn='', eod='', aec='', withindiv=0;
function ecmore(insg) {
ects='<table><tr><th><b>Selection Toggle of ...</b></th><th><input type=button onclick="bold_all(this);" value="Bold"></input></th><th><input type=button onclick="bold_all(this);" value="StrikeThrough"></input></th><th><input type=button onclick="bold_all(this);" value="SubScript"></input></th><th><input type=button onclick="bold_all(this);" value="SuperScript"></input></th><th><input type=button onclick="bold_all(this);" title="olive" value="BackColor"></input></th><th><input type=button onclick="bold_all(this);" title="red" value="ForeColor"></input></th></tr><tr><th><input type=button onclick="bold_all(this);" value="InsertHorizontalRule"></input></th><th><input type=button onclick="bold_all(this);" title="🔤" value="InsertText"></input></th><th><input type=button onclick="bold_all(this);" title="32px" value="FontSize"></input></th><th><input type=button onclick="bold_all(this);" title="Arial" value="FontName"></input></th><th><input type=button onclick="bold_all(this);" value="InsertParagraph"></input></th><th><input type=button onclick="bold_all(this);" value="InsertLineBreak"></input></th><th><input type=button onclick="bold_all(this);" title="http://www.rjmprogramming.com.au" value="CreateLink"></input></th><th><input type=button style="background-color:orange;" onclick="bold_all(this);" title="Email this blog posting" value="Ask Email"></input></th></tr></table>';
return insg + ects;
}
function bold_all(ibut) {
if (ibut.value.replace(' ','').toLowerCase() == 'askemail') {
dbihis='';
var etois=prompt('Please enter email address to forward this blog ' + document.URL.split(':')[0] + ':' + document.getElementById('emailform').action + ' webpage to (and optionally comma separate an email from address for collaboration)', '');
if (etois != null) {
if (etois.indexOf('@') != -1) {
var ees=etois.split(',');
var xfbmore='';
if (ees.length > 1) {
xfbmore="<form style='background-color:#e0e0e0;border:5px solid orange;padding:12px 12px 12px 12px;' action=" + document.URL.replace('http:','https:') + " method=GET><span style=vertical-align:top;>Optional feedback to " + ees[1] + ": </span><textarea style='width:500px;background-color:#f0f0f0;' rows=4 cols=50 maxlength=200 placeholder='Optional feedback to " + ees[1] + " ...' name=replyis value=''></textarea><br><input type=hidden value='" + ees[1] + "' name=replyto></input><input type=hidden value='" + ees[0] + "' name=replyfrom></input><input type=hidden value='" + document.title + "' name=replysubject></input><input type=hidden value='" + document.URL + "' name=replyurl></input> <input style=background-color:yellow; type=submit value='Email " + ees[1] + "'></input></form><br>";
}
document.getElementById('emailform').action='//www.rjmprogramming.com.au/HTMLCSS/emailhtml.php';
document.getElementById('tdsubj').value=document.title;
document.getElementById('tdhuhta').value=preface('<body>' + String.fromHtmlEntities(xfbmore + document.body.innerHTML) + '</body>');
document.getElementById('iinline').value=encodeURIComponent(document.getElementById('tdhuhta').value);
document.getElementById('tdto').value=ees[0];
document.getElementById('fsubm').click();
}
}
} else {
document.designMode='on';
document.execCommand(ibut.value.toLowerCase(),true,('' + ibut.title));
}
}
function plfhlater() {
var aswq=document.getElementsByTagName("a");
for (var iaswq=0; iaswq<aswq.length; iaswq++) {
if (aswq[iaswq].innerHTML == 'Long hover help available.') {
aswq[iaswq].innerHTML='Highlighting and long hover help.';
aswq[iaswq].title+=' ... also note that Highlighting Webpage Contents allows for Wikipedia, Google Translate, Free Dictionary and Google Search functionalities to appear';
}
}
}
function cookiePutHVal(indv) {
var expireDate = new Date();
var opis='';
expireDate.setMonth(expireDate.getMonth()+6);
expireDate.setDate(expireDate.getDate()-1);
if (indv == '') {
cookcnt=0;
cbackc='';
document.cookie = 'linktoothers' + '=' + cbackc + ';expires=' + expireDate.toGMTString();
} else {
var pvalis=prompt('Enter absolute URL prefix#Title ... where two blank Title prefix replaces value blanks for - and one blank Title prefix replaces value blanks for +', '');
if (pvalis == null) { pvalis=''; }
if (pvalis.indexOf('//') != -1) {
var otit='Other Link';
if (pvalis.indexOf('#') != -1) {
otit=pvalis.split('#')[eval(-1 + pvalis.split('#').length)].trim();
}
if (pvalis.split('#')[eval(-1 + pvalis.split('#').length)].indexOf(' ') == 0) {
opis=phight.replace(/\ /g,' + "'-'" + ');
document.getElementById('phfloater').innerHTML+='' + otit + ' <a style="inline-block;" href="' + pvalis.replace('#' + pvalis.split('#')[eval(-1 + pvalis.split('#').length)],'').trim() + '" title="' + pvalis.replace('#' + pvalis.split('#')[eval(-1 + pvalis.split('#').length)],'').trim() + '" target=_blank onmouseover="this.href=this.title + hopis(String.fromCharCode(45));" ontouchstart="this.href=this.title + hopis(String.fromCharCode(45));" id=b_phfloater_' + cookcnt + '>' + phight + '</a><br>';
} else if (pvalis.split('#')[eval(-1 + pvalis.split('#').length)].indexOf(' ') == 0) {
opis=phight.replace(/\ /g,' + "'+'" + ');
document.getElementById('phfloater').innerHTML+='' + otit + ' <a style="inline-block;" href="' + pvalis.replace('#' + pvalis.split('#')[eval(-1 + pvalis.split('#').length)],'').trim() + '" title="' + pvalis.replace('#' + pvalis.split('#')[eval(-1 + pvalis.split('#').length)],'').trim() + '" target=_blank onmouseover="this.href=this.title + hopis(String.fromCharCode(43));" ontouchstart="this.href=this.title + hopis(String.fromCharCode(43));" id=b_phfloater_' + cookcnt + '>' + phight + '</a><br>';
} else {
document.getElementById('phfloater').innerHTML+='' + otit + ' <a style="inline-block;" href="' + pvalis.replace('#' + pvalis.split('#')[eval(-1 + pvalis.split('#').length)],'').trim() + '" title="' + pvalis.replace('#' + pvalis.split('#')[eval(-1 + pvalis.split('#').length)],'').trim() + '" target=_blank onmouseover="this.href=this.title + encodeURIComponent(phight);" ontouchstart="this.href=this.title + encodeURIComponent(phight);" id=b_phfloater_' + cookcnt + '>' + phight + '</a><br>';
}
if (cbackc != '') {
document.cookie = 'linktoothers' + '=' + cbackc + '|' + encodeURIComponent(pvalis) + ';expires=' + expireDate.toGMTString();
} else {
cbackc=encodeURIComponent(pvalis);
document.cookie = 'linktoothers' + '=' + encodeURIComponent(pvalis) + ';expires=' + expireDate.toGMTString();
}
cookcnt++;
}
}
}
function cookieHVal(cName) {
if (document.cookie != '') {
var tCookie=document.cookie.split('; ');
for (var j=0; j<tCookie.length; j++) {
if (cName == tCookie[j].split('=')[0]) {
return decodeURIComponent(tCookie[j].split('=')[1]);
}
}
}
return '';
}
function hopis(inop) {
return hight.replace(/\ /g, inop);
}
function emaileeis(inideais) {
var presm='', postsm='';
if (inideais.indexOf(':') != -1) {
presm=inideais.split(':')[0] + ':';
postsm=inideais.replace(presm,'');
} else if (inideais.indexOf('?to=') != -1) {
presm=inideais.split('?to=')[0] + '?to=';
if (inideais.indexOf('&') != -1) {
postsm=inideais.replace(presm,'').replace(inideais.split('?to=')[1].split('&')[0],'');
}
} else if (inideais.indexOf('&') != -1) {
presm=inideais.split('&')[0] + '&';
postsm=inideais.replace(presm,'');
} else {
presm=inideais.split('?')[0];
postsm=inideais.replace(presm,'');
}
if (eod == '') {
if (inideais.indexOf('?to=') != -1) {
eod=inideais.split('?to=')[1].split('&')[0];
}
var pwithindiv=withindiv;
withindiv=9000;
eod=prompt('Enter email address', eod);
if (pwithindiv == 0) {
withindiv=0.9999;
} else {
withindiv=pwithindiv;
}
if (eod == null) {
eod='';
}
}
return presm + encodeURIComponent(eod) + postsm;
}
function smsee(inideais) {
var presm='', postsm='';
if (inideais.indexOf(':') != -1) {
presm=inideais.split(':')[0] + ':';
}
if (inideais.indexOf('&') != -1) {
postsm='&' + inideais.split('&')[1];
}
if (mpn == '') {
if (inideais.indexOf(':') != -1) {
mpn=inideais.split(':')[1].split('&')[0];
}
var pwithindiv=withindiv;
withindiv=9000;
mpn=prompt('Enter phone number for SMS (or Cancel to do it at the Messager app', mpn);
if (pwithindiv == 0) {
withindiv=0.9999;
} else {
withindiv=pwithindiv;
}
if (mpn == null) {
mpn='';
}
}
return presm + mpn + postsm;
}
function iftoolongpost(prefixu, restsub, restu) {
var prefixrest=prefixu.replace('&body=', encodeURIComponent(restsub) + '&body=') + restu;
if ((prefixrest).length > 900) {
// dynamic form
var xhr = new XMLHttpRequest();
var form=new FormData();
form.append('to', decodeURIComponent(prefixrest.split('to=')[1].split('&')[0]));
form.append('subject', decodeURIComponent(prefixrest.split('subject=')[1].split('&')[0]));
form.append('body', decodeURIComponent(prefixrest.split('body=')[1].split('&')[0]));
xhr.open('post', '//www.rjmprogramming.com.au/HTMLCSS/emailhtml.php', true);
xhr.send(form);
// end of dynamic form
location.href='#phfloater';
} else {
document.getElementById('aeciframe').src=prefixrest;
}
}
function plookforhighlight() {
var usualdelay=2000, oRange=null, oRect=null, s_top='0px', s_left='5px', opis='', fourhundred=300, isfx='0', otit='';
if (phight == ' ') {
setTimeout(plfhlater, 5000);
phight='';
cbackc=cookieHVal('linktoothers');
if (cbackc != '') {
zoharr=cbackc.split('|');
}
}
if (('' + withindiv).indexOf('.') != -1) {
setTimeout(plookforhighlight, eval(('' + withindiv).split('.')[1]));
withindiv=eval(('' + withindiv).split('.')[0]);
return;
} else if (withindiv != 0) {
setTimeout(plookforhighlight, withindiv);
return;
} else {
setTimeout(plookforhighlight, usualdelay);
}
var xsel=window.getSelection().toString();
if (xsel.length == 0) {
try {
xsel=document.selection.createRange().htmlText;
xsel=xsel.replace(String.fromCharCode(10),' ').replace(String.fromCharCode(10),' ').replace(String.fromCharCode(10),' ').replace(String.fromCharCode(10),' ');
xsel=xsel.replace(String.fromCharCode(13),' ').replace(String.fromCharCode(13),' ').replace(String.fromCharCode(13),' ').replace(String.fromCharCode(13),' ');
} catch(ertw) {
xsel='';
}
} else {
xsel=xsel.replace(String.fromCharCode(10),' ').replace(String.fromCharCode(10),' ').replace(String.fromCharCode(10),' ').replace(String.fromCharCode(10),' ');
xsel=xsel.replace(String.fromCharCode(13),' ').replace(String.fromCharCode(13),' ').replace(String.fromCharCode(13),' ').replace(String.fromCharCode(13),' ');
if (xsel != phight && xsel != '') {
oRange = window.getSelection().getRangeAt(0); //get the text range
oRect = oRange.getBoundingClientRect();
s_top = ('' + oRect.top).replace('px','') + 'px';
s_left = ('' + oRect.left).replace('px','') + 'px';
if (s_top != '0px') {
fourhundred=eval('' + s_top.replace('px',''));
s_top='0px';
var dse='', dde='';
if (document.scrollingElement) {
if (document.scrollingElement.scrollTop) {
dse=('' + document.scrollingElement.scrollTop);
}
}
if (document.documentElement) {
if (document.documentElement.scrollTop) {
dde=('' + document.documentElement.scrollTop);
}
}
if (dse != '') {
fourhundred+=eval('' + dse.replace('px',''));
isfx='0';
} else if (dde != '') {
fourhundred+=eval('' + dde.replace('px',''));
isfx='0';
} else if (('' + window.scrollY) != '') {
fourhundred+=eval('' + ('' + window.scrollY).replace('px',''));
isfx='0';
} else if (('' + window.pageYOffset) != '') {
fourhundred+=eval('' + ('' + window.pageYOffset).replace('px',''));
isfx='0';
} else {
isfx=('' + document.body.scrollTop).replace('px','');
if (isfx.replace('0','') == '') {
isfx=('' + document.scrollingElement.scrollTop).replace('px','');
if (isfx.replace('0','') == '') {
isfx=('' + window.scrollY).replace('px','');
if (isfx.replace('0','') == '') {
isfx=('' + window.pageYOffset).replace('px','');
}
}
}
}
fourhundred+=120;
}
}
}
if (xsel != phight && xsel != '' && eval('' + xsel.length) <= 500) {
phight=xsel;
if (s_top == '0px') { s_top = ('' + eval(fourhundred + eval('' + isfx))) + 'px'; }
if (aec == '') {
aec=' 📧 <div id=daec contenteditable=true onblur="withindiv=0;" onchange="withindiv=9000;" onclick="withindiv=9000; event.stopPropagation();"> </div>';
} else if (document.getElementById('daec') && document.getElementById('b_phfloater_annotated_email')) {
aec=document.getElementById('b_phfloater_annotated_email').innerHTML;
}
if (aec.indexOf('<mark>' + phight + '</mark>') == -1) {
if ((' ' + aec).slice(-14).substring(0,1).replace('?','.').replace('!','.') == '.') {
aec=aec.replace('</div>', ' <mark>' + phight + '</mark></div>');
} else {
aec=aec.replace('</div>', ' <mark>' + phight + '</mark></div>');
}
}
if (document.getElementById('phfloater')) {
if (document.getElementById('phfloater').innerHTML == '') {
document.getElementById('phfloater').style.position='absolute';
document.getElementById('phfloater').style.top=s_top;
document.getElementById('phfloater').style.left=s_left;
document.getElementById('phfloater').style.zIndex='85';
document.getElementById('phfloater').style.backgroundColor='rgba(0,255,165,0.9)';
document.getElementById('phfloater').style.border='1px solid purple';
document.getElementById('phfloater').style.padding='2px 2px 2px 2px';
document.getElementById('phfloater').style.display='block';
document.getElementById('phfloater').innerHTML='<b>Wikipedia <a class="hlclass" style="inline-block;" href="//wikipedia.org/wiki/Main_Page" title="//wikipedia.org/wiki/" target=_blank onmouseover="this.href=this.title + phight.replace(/\ /g,' + "'_'" + ');" ontouchstart="this.href=this.title + phight.replace(/\ /g,' + "'_'" + ');" id=b_phfloater_wikipedia>' + phight + '</a></b><br>';
document.getElementById('phfloater').innerHTML+='<b>Google Translate <a class="hlclass" style="inline-block;" href="//translate.google.com" title="//translate.google.com/#view=home&op=translate&sl=auto&tl=en&text=" target=_blank onmouseover="this.href=this.title + encodeURIComponent(phight);" ontouchstart="this.href=this.title + encodeURIComponent(phight);" id=b_phfloater_google_translate>' + phight + '</a></b><br>';
document.getElementById('phfloater').innerHTML+='<b>Free Dictionary <a class="hlclass" style="inline-block;" href="//www.thefreedictionary.com/" title="//www.thefreedictionary.com/" target=_blank onmouseover="this.href=this.title + phight.replace(/\ /g,' + "'+'" + ');" ontouchstart="this.href=this.title + phight.replace(/\ /g,' + "'+'" + ');" id=b_phfloater_free_dictionary>' + phight + '</a></b><br>';
document.getElementById('phfloater').innerHTML+='<b>Google Search <a class="hlclass" style="inline-block;" href="//www.google.com/" title="//www.google.com/search?q=" target=_blank onmouseover="this.href=this.title + phight.replace(/\ /g,' + "'+'" + ');" ontouchstart="this.href=this.title + phight.replace(/\ /g,' + "'+'" + ');" id=b_phfloater_google_search>' + phight + '</a></b><br>';
document.getElementById('phfloater').innerHTML+='<b>Tag Search <a class="hlclass" style="inline-block;" href="//www.rjmprogramming.com.au/ITblog/" title="//www.rjmprogramming.com.au/ITblog/tag/" target=_blank onmouseover="this.href=this.title + phight.replace(/\ /g,' + "'-'" + ');" ontouchstart="this.href=this.title + phight.replace(/\ /g,' + "'-'" + ');" id=b_phfloater_tag_search>' + phight + '</a></b><br>';
document.getElementById('phfloater').innerHTML+='<b>Category Search <a class="hlclass" style="inline-block;" href="//www.rjmprogramming.com.au/ITblog/" title="//www.rjmprogramming.com.au/ITblog/category/" target=_blank onmouseover="this.href=this.title + phight.replace(/\ /g,' + "'-'" + ');" ontouchstart="this.href=this.title + phight.replace(/\ /g,' + "'-'" + ');" id=b_phfloater_category_search>' + phight + '</a></b><br>';
document.getElementById('phfloater').innerHTML+='<b>Tag First Word Search <a class="hlclass" style="inline-block;" href="//www.rjmprogramming.com.au/ITblog/" title="//www.rjmprogramming.com.au/ITblog/tag/" target=_blank onmouseover="this.href=this.title + phight.replace(/\ /g,' + "'-'" + ').replace(' + "'-','/?wopenall='" + ');" ontouchstart="this.href=this.title + phight.replace(/\ /g,' + "'-'" + ').replace(' + "'-','/?wopenall='" + ');" id=b_phfloater_tag_first_word_search>' + phight + '</a></b><br>';
document.getElementById('phfloater').innerHTML+=ecmore('<b>' + 'Posting Title Search <a class="hlclass" style="inline-block;" href="//www.rjmprogramming.com.au/itblog/match/mapper.php" title="//www.rjmprogramming.com.au/itblog/match/mapper.php?pm=" target=_blank onmouseover="this.href=this.title + encodeURIComponent(phight);" ontouchstart="this.href=this.title + encodeURIComponent(phight);" id=b_phfloater_posting_title_search>' + phight + '</a></b>') + '<br>';
document.getElementById('phfloater').innerHTML+='<b>Email <a class="hlclass" style="inline-block;" href="mailto:?subject=Re%3a%20' + encodeURIComponent(document.title.split('|')[0]) + '%20%28' + encodeURIComponent(document.URL) + '%29&body=" title="mailto:?subject=Re%3a%20' + encodeURIComponent(document.title.split('|')[0]) + '%20%28%20' + encodeURIComponent(document.URL) + '%20%29&body=" target=_blank onmouseover="this.href=emaileeis(this.title) + encodeURIComponent(phight);" ontouchstart="this.href=emaileeis(this.title) + encodeURIComponent(phight);" id=b_phfloater_email>' + phight + '</a></b><br>';
document.getElementById('phfloater').innerHTML+='<b>Annotated Email <a class="hlclass" style="inline-block;cursor:pointer;text-decoration:none;" onclick="iftoolongpost(this.title, encodeURIComponent((this.innerText || this.contentWindow || this.contentDocument)), encodeURIComponent(this.innerHTML.substring(this.innerHTML.indexOf(String.fromCharCode(60)))));" data-href="//www.rjmprogramming.com.au/HTMLCSS/emailhtml.php?to=&subject=Re%3a%20' + encodeURIComponent(document.title.split('|')[0]) + '%20%28' + encodeURIComponent(document.URL) + '%29%0a&body=" title="//www.rjmprogramming.com.au/HTMLCSS/emailhtml.php?to=&subject=Re%3a%20' + encodeURIComponent(document.title.split('|')[0]) + '%20%28%20' + encodeURIComponent(document.URL) + '%20%29%0a&body=" target=aeciframe onmouseover="this.title=emaileeis(this.title);" ontouchstart="this.title=emaileeis(this.title);" id=b_phfloater_annotated_email>' + aec + '</a></b><iframe id=aeciframe name=aeciframe style=display:none; src=#></iframe><br>';
document.getElementById('phfloater').innerHTML+='<b>SMS <a class="hlclass" style="inline-block;" href="sms:&body=" title="sms:&body=" target=_blank onmouseover="this.href=smsee(this.title) + encodeURIComponent(phight);" ontouchstart="this.href=smsee(this.title) + encodeURIComponent(phight);" id=b_phfloater_sms>' + phight + '</a></b><br>';
document.getElementById('phfloater').innerHTML+='<b>Navigate to Link About <a class="hlclass" style="inline-block;text-decoration:underline;cursor:pointer;" title=" " onclick="thisasearch(phight,this);" onmouseover="thisasearch(phight,this);" ontouchstart="thisasearch(phight,this);" id=b_phfloater_posting_a_search>' + phight + '</a></b><br>';
document.getElementById('phfloater').innerHTML+='<b>Display/Copy Link About <a class="hlclass" style="inline-block;text-decoration:underline;cursor:pointer;" title=" " onclick="thisacopysearch(phight,this);" onmouseover="thisacopysearch(phight,this);" ontouchstart="thisacopysearch(phight,this);" id=b_phfloater_posting_a_copy_search>' + phight + '</a></b><br>';
if (zoharr.length >= 1) {
for (var ioharr=0; ioharr<zoharr.length; ioharr++) {
otit='Other Link ' + eval(1 + ioharr);
if (zoharr[ioharr].indexOf('#') != -1) {
otit=zoharr[ioharr].split('#')[1].trim();
}
if (zoharr[ioharr].split('#')[1].indexOf(' ') == 0) {
opis=phight.replace(/\ /g,' + "'-'" + ');
document.getElementById('phfloater').innerHTML+='' + otit + ' <a style="inline-block;" href="' + zoharr[ioharr].split('#')[0].trim() + '" title="' + zoharr[ioharr].split('#')[0].trim() + '" target=_blank onmouseover="this.href=this.title + hopis(String.fromCharCode(45));" ontouchstart="this.href=this.title + hopis(String.fromCharCode(45));" id=b_phfloater_' + cookcnt + '>' + phight + '</a><br>';
} else if (zoharr[ioharr].split('#')[1].indexOf(' ') == 0) {
opis=phight.replace(/\ /g,' + "'+'" + ');
document.getElementById('phfloater').innerHTML+='' + otit + ' <a style="inline-block;" href="' + zoharr[ioharr].split('#')[0].trim() + '" title="' + zoharr[ioharr].split('#')[0].trim() + '" target=_blank onmouseover="this.href=this.title + hopis(String.fromCharCode(43));" ontouchstart="this.href=this.title + hopis(String.fromCharCode(45));" id=b_phfloater_' + cookcnt + '>' + phight + '</a><br>';
} else {
document.getElementById('phfloater').innerHTML+='' + otit + ' <a style="inline-block;" href="' + zoharr[ioharr].split('#')[0].trim() + '" title="' + zoharr[ioharr].split('#')[0].trim() + '" target=_blank onmouseover="this.href=this.title + encodeURIComponent(phight);" ontouchstart="this.href=this.title + encodeURIComponent(phight);" id=b_phfloater_' + cookcnt + '>' + phight + '</a><br>';
}
cookcnt++;
}
}
document.getElementById('phfloater').innerHTML+='<input title="Add your own into HTTP Cookies" type=button onclick=cookiePutHVal(cookblank); value=+></input> <input title="Remove all HTTP Cookie URLs" type=button onclick=cookiePutHVal(cookblank.trim()); value=-></input><br>';
} else {
document.getElementById('b_phfloater_wikipedia').innerHTML=phight;
document.getElementById('b_phfloater_google_translate').innerHTML=phight;
document.getElementById('b_phfloater_free_dictionary').innerHTML=phight;
document.getElementById('b_phfloater_google_search').innerHTML=phight;
document.getElementById('b_phfloater_tag_search').innerHTML=phight;
document.getElementById('b_phfloater_category_search').innerHTML=phight;
document.getElementById('b_phfloater_tag_first_word_search').innerHTML=phight;
document.getElementById('b_phfloater_posting_title_search').innerHTML=phight;
document.getElementById('b_phfloater_email').innerHTML=phight;
document.getElementById('b_phfloater_annotated_email').innerHTML=aec;
document.getElementById('b_phfloater_sms').innerHTML=phight;
document.getElementById('b_phfloater_posting_a_search').innerHTML=phight;
document.getElementById('b_phfloater_posting_a_copy_search').innerHTML=phight;
if (cookcnt > 0) {
for (var icook=0; icook<cookcnt; icook++) {
document.getElementById('b_phfloater_' + icook).innerHTML=phight;
}
}
document.getElementById('phfloater').style.top=s_top;
document.getElementById('phfloater').style.left=s_left;
document.getElementById('phfloater').style.display='block';
}
}
} else if (xsel == '') {
if (document.getElementById('phfloater')) {
document.getElementById('phfloater').style.display='none';
}
phight='';
}
}
function thisasearch(swhat,owhato) {
if (owhato) {
if (owhato.title) {
if (owhato.title != swhat) {
owhato.title=swhat;
var acss=document.getElementsByTagName('a'), acssdone=false, ahuhc='', sparehref='';
for (var iacss=0; iacss<acss.length; iacss++) {
if (acss[iacss].innerHTML.toLowerCase().replace(/\<i\>/g,'').replace(/\<\/i\>/g,'').replace(/\<b\>/g,'').replace(/\<\/b\>/g,'') == swhat.toLowerCase() && !acssdone && acss[iacss].outerHTML.indexOf(' class="hlclass"') == -1) {
if (('' + acss[iacss].href) != '') {
if (('' + acss[iacss].href + ' ').substring(0,1) == '#') {
acssdone=true;
location.href=acss[iacss].href;
owhato.title=' ';
} else if (acss[iacss].href.replace('/cat/','/tag/').replace('?category=','/tag/').replace('?cat=','/tag/').replace('?tag=','/tag/').indexOf('/tag/') != -1) {
sparehref=acss[iacss].href;
} else {
acssdone=true;
window.open(acss[iacss].href, '_blank');
owhato.title=' ';
}
}
}
}
if (!acssdone) {
if (sparehref != '') {
acssdone=true;
window.open(sparehref, '_blank');
owhato.title=' ';
} else {
var pwithindiv=withindiv;
withindiv=9000;
alert('Sorry, no links like that found.');
if (pwithindiv == 0) {
withindiv=0.9999;
} else {
withindiv=pwithindiv;
}
owhato.title=' ';
}
}
}
}
}
}
function thisacopysearch(swhat,owhato) {
if (owhato) {
if (owhato.title) {
if (owhato.title != swhat) {
owhato.title=swhat;
var acss=document.getElementsByTagName('a'), acssdone=false, ahuhc='', sparehref='';
for (var iacss=0; iacss<acss.length; iacss++) {
if (acss[iacss].innerHTML.toLowerCase().replace(/\<i\>/g,'').replace(/\<\/i\>/g,'').replace(/\<b\>/g,'').replace(/\<\/b\>/g,'') == swhat.toLowerCase() && !acssdone && acss[iacss].outerHTML.indexOf(' class="hlclass"') == -1) {
if (('' + acss[iacss].href) != '') {
if (('' + acss[iacss].href + ' ').substring(0,1) == '#') {
acssdone=true;
ahuhc=prompt('Chance to copy link below into the clipboard. Then Cancel finishes and OK navigates to href of what you have left.', acss[iacss].outerHTML);
if (ahuhc == null) {
ahuhc='';
} else if (ahuhc == acss[iacss].outerHTML) {
owhato.title=' ';
thisasearch(swhat,owhato);
} else if (ahuhc.indexOf(' href="') != -1) {
window.open(ahuhc.split(' href="')[1].split('"')[0], '_blank');
} else if (ahuhc.indexOf(" href='") != -1) {
window.open(ahuhc.split(" href='")[1].split("'")[0], '_blank');
} else if (ahuhc.indexOf(" href=") != -1) {
window.open(ahuhc.split(" href=")[1].split(" ")[0].split(">")[0], '_blank');
}
owhato.title=' ';
} else if (acss[iacss].href.replace('/cat/','/tag/').replace('?category=','/tag/').replace('?cat=','/tag/').replace('?tag=','/tag/').indexOf('/tag/') != -1) {
sparehref=acss[iacss].outerHTML;
} else {
acssdone=true;
ahuhc=prompt('Chance to copy link below into the clipboard. Then Cancel finishes and OK navigates to href of what you have left.', acss[iacss].outerHTML);
if (ahuhc == null) {
ahuhc='';
} else if (ahuhc == acss[iacss].outerHTML) {
owhato.title=' ';
thisasearch(swhat,owhato);
} else if (ahuhc.indexOf(' href="') != -1) {
window.open(ahuhc.split(' href="')[1].split('"')[0], '_blank');
} else if (ahuhc.indexOf(" href='") != -1) {
window.open(ahuhc.split(" href='")[1].split("'")[0], '_blank');
} else if (ahuhc.indexOf(" href=") != -1) {
window.open(ahuhc.split(" href=")[1].split(" ")[0].split(">")[0], '_blank');
}
owhato.title=' ';
}
}
}
}
if (!acssdone) {
if (sparehref != '') {
acssdone=true;
ahuhc=prompt('Chance to copy link below into clipboard. Then Cancel finishes and OK navigates to href of what you have left.', sparehref);
if (ahuhc == null) {
ahuhc='';
} else if (ahuhc == sparehref) {
owhato.title=' ';
thisasearch(swhat,owhato);
} else if (ahuhc.indexOf(' href="') != -1) {
window.open(ahuhc.split(' href="')[1].split('"')[0], '_blank');
} else if (ahuhc.indexOf(" href='") != -1) {
window.open(ahuhc.split(" href='")[1].split("'")[0], '_blank');
} else if (ahuhc.indexOf(" href=") != -1) {
window.open(ahuhc.split(" href=")[1].split(" ")[0].split(">")[0], '_blank');
}
owhato.title=' ';
} else {
var pwithindiv=withindiv;
withindiv=9000;
alert('Sorry, no links like that found.');
if (pwithindiv == 0) {
withindiv=0.9999;
} else {
withindiv=pwithindiv;
}
owhato.title=' ';
}
}
}
}
}
}
plookforhighlight();
</script>
<script type="text/javascript" src="https://www.rjmprogramming.com.au/ITblog/wp-content/plugins/akismet/_inc/form.js?ver=3.0.4" id="akismet-form-js"></script>
<script type="text/javascript" src="https://www.rjmprogramming.com.au/ITblog/wp-includes/js/comment-reply.min.js?ver=6.6.3" id="comment-reply-js" async="async" data-wp-strategy="async"></script>
</body>
</html>