126
Otter Browser Forum / Re: extension exemple ??
it's a javscript file, but when i try to used, or modified an html document, nothing happend
i surely miss something important, but what
This section allows you to view all Messages made by this member. Note that you can only see Messages made in areas you currently have access to.
<html>
<head>
<meta http-equiv='Content-Type' content='text/html; charset=utf-8'>
<script type='text/javascript'>
//#========== JSeror =================
function JSeror(){document.getElementById('AAA').style.background = 'lightgrey'; }
//#===================================
//#===================================
function myDL(){
var data = document.getElementById('txta').value;
var blo = new Blob([data], {type:'text/plain'});
if (window.webkitURL != null)
{ document.getElementById('ank').href = window.webkitURL.createObjectURL(blo);
document.getElementById('AAA').style.border = "solid 3px red";
document.getElementById('show').innerHTML = "webkit";}
else { document.getElementById('ank').href = window.URL.createObjectURL(blo);
document.getElementById('AAA').style.border = "solid 3px blue";
document.getElementById('show').innerHTML = "all other";}
document.getElementById('ank').click(); }
function TESTJS(){ myDL(); }
</script>
</head>
<body onload="JSeror();">
<div id="AAA" style="float:left; width:400px; border:solid 1px black; background:red;">
<input type="button" onclick="TESTJS();" value="TESTJS" style="float:left; width:100px;"></input>
<a href="" id="ank" download="kinit.txt" style="display:block;">donwload me if you can !</a>
<div id="show" style="float:left; background:white; border-top:solid 1px black; min-width:400px; min-height:100px"></div>
</div><br><br>
<textarea id="txta" value="write something be there" style="display:block; background:lightgrey; margin-top:150px; width:400px; height:300px; border:solid 1px red; "></textarea>
</div>
</body>
</html>
function fullf11(){ elem = document.body;
if ( (document.fullscreenElement !== undefined && document.fullscreenElement === null)
|| (document.msFullscreenElement !== undefined && document.msFullscreenElement === null)
|| (document.mozFullScreen != undefined && !document.mozFullScreen )
|| (document.webkitIsFullScreen !== undefined && !document.webkitIsFullScreen))
{ if (elem.requestFullscreen) { elem.requestFullscreen(); }
else if (elem.mozRequestFullScreen) { elem.mozRequestFullScreen();}
else if (elem.webkitRequestFullScreen) { elem.webkitRequestFullScreen(Element.ALLOW_KEYBOARD_INPUT);}
else if (elem.msRequestFullscreen) { elem.msRequestFullscreen(); } } }
function exitf11(){ if (document.fullscreenElement !== undefined && document.fullscreenElement === null) { fullf11();}
else {
if (document.exitFullscreen) {document.exitFullscreen(); }
else if (document.webkitExitFullscreen) { document.webkitExitFullscreen(); }
else if (document.mozCancelFullScreen) { document.mozCancelFullScreen(); }
else if (document.msExitFullscreen) { document.msExitFullscreen(); } } }
function filedownload(){
var text = document.getElementById("mytextarea").value;
var blob = new Blob([text], { type: "text/plain"});
var anchor = document.createElement("a");
anchor.download = "mydata.txt";
anchor.href = window.URL.createObjectURL(blob);
anchor.target ="_blank";
anchor.style.display = "none"; // just to be safe!
document.body.appendChild(anchor);
anchor.click();
document.body.removeChild(anchor); }
Hello,
Indeed, I have just had a feedback from our team about this.
The browser versions that support the HTML5 player are:
Chrome> = 55, Chromium:> = 55, Safari> = 10, Firefox> = 54, Edge> = 16, Opera> = 42 and Vivaldi> = 1.6
Opera Neon has been discontinued and is equivalent to Chrome 53. Its latest release dates from March 2017.
Musically !