JSFiddle - React, Tailwind, and code Playground
libbu.open()_v02 v006 last stable version is 006
by dledle2
HTML
<!--googleoff: index-->
<!-- https://stackoverflow.com/questions/3207211/is-there-a-way-to-make-robots-ignore-certain-text
working_myFuncinIframeAndAlsoWindowOpenSameFunction_v01
// -->
<meta name='robots' content='nofollow'>
<meta name='robots' content='disallow'>
<meta name='robots' content='noindex'>
<meta name='robots' content='noindex,disallow,nofollow'>
<div id="myPageContentDIV" class="myPageContentClass">
<!--googleoff: index-->
<meta name='robots' content='nofollow'>
<meta name='robots' content='disallow'>
<meta name='robots' content='noindex'>
<meta name='robots' content='noindex,disallow,nofollow'>
<!-- <pre>index of (streZZZaming links:)
</pre> // -->
<font size="6">
<a href="javascript:setTimeout(function(){var myElement=document.querySelectorAll('.article-hint-button.halo')[0];myElement.style.position='fixed';myElement.style.left='-9999px';myElement.style.top='-9999px'},0020);void(0);">libbu_hide_book_widgets_v01()</a>
<form action="">
<input type=text value="javascript:setTimeout(function(){var myElement=document.querySelectorAll('.article-hint-button.halo')[0];myElement.style.position='fixed';myElement.style.left='-9999px';myElement.style.top='-9999px'},0020);void(0);">
</form>
<script>
function iosCopyToClipboard(el) {
var oldContentEditable = el.contentEditable,
oldReadOnly = el.readOnly,
range = document.createRange();
el.contentEditable = true;
el.readOnly = false;
range.selectNodeContents(el);
var s = window.getSelection();
s.removeAllRanges();
s.addRange(range);
el.setSelectionRange(0, 999999); /* A big number, to cover anything that could be inside the element. */
el.contentEditable = oldContentEditable;
el.readOnly = oldReadOnly;
document.execCommand('copy');
}
</script>
<script>
/*
var myElementWhoseValueToCopy =document.querySelectorAll("input")[0];
iosCopyToClipboard( myElementWhoseValueToCopy );
*/
</script>
<script>
function myCopyTextTest(){
var $input =...
JavaScript
function myFuncinIframeAndAlsoWindowOpenSameFunction() {
if (typeof window.boolWindowOpenedSuccessfullyAlready == 'undefined')
{ window.boolWindowOpenedSuccessfullyAlready=false; }
console.log(window.boolWindowOpenedSuccessfullyAlready);
if (window.boolWindowOpenedSuccessfullyAlready ===false) {
try {
if(window.self !== window.top){
if (window.open(window.location.href)){window.boolWindowOpenedSuccessfullyAlready=true;}
/* */
}
}catch(e){}
}
console.log(window.boolWindowOpenedSuccessfullyAlready);
/* below end bracket: end of function: myFuncinIframeAndAlsoWindowOpenSameFunction */
}
myFuncinIframeAndAlsoWindowOpenSameFunction();
function iosCopyToClipboard(el) {
var oldContentEditable = el.contentEditable,
oldReadOnly = el.readOnly,
range = document.createRange();
el.contentEditable = true;
el.readOnly = false;
range.selectNodeContents(el);
var s = window.getSelection();
s.removeAllRanges();
s.addRange(range);
el.setSelectionRange(0, 999999); /* A big number, to cover anything that could be inside the element. */
el.contentEditable = oldContentEditable;
el.readOnly = oldReadOnly;
document.execCommand('copy');
}
/*
var myElementWhoseValueToCopy =document.querySelectorAll("input")[0];
iosCopyToClipboard( myElementWhoseValueToCopy );
*/