miniA4kuser
Lounge-Member
Und wie ist denn dein Status jetzt? Zeig doch mal deinen jetzigen Quellcode um zu sehen was du evtl. nicht richtig gemacht hast...
Follow along with the video below to see how to install our site as a web app on your home screen.
Anmerkung: This feature currently requires accessing the site using the built-in Safari browser.
<div id="Ticker" style="background-color:#fff; color:#000 height; width:95%; height:15%;">
</div>
<script type="text/javascript">
var breite = parseInt(screen.width/1.01);
var hoehe = parseInt(screen.height/10);
document.getElementById('Ticker').innerHTML = 'Bild: '+screen.width+' x '+screen.height+'<br>popup: '+breite+' x '+hoehe' <br> offset: '+Ticker.offsetheight;
</script>
function Ticker() {
var breite = parseInt(screen.width/1.015);
var hoehe = parseInt(screen.height/10);
//document.getElementById('test').innerHTML = 'Bild: '+screen.width+' x '+screen.height+'<br>Popup: '+breite+' x '+hoehe;
var params = 'width='+breite
+',height='+hoehe
+',top='+hoehe*screen.width
+',left='+screen.width/2
;
window.open("Arbeitssicherheit_Ticker.html","_blank",params).focus();
}
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title>Fenstertitel</title>
<script type="text/javascript">
document.onclick = function(){
var height = Math.round(screen.availHeight/10);
var width = screen.availWidth / 1;
var left = Math.round(screen.availWidth - width) / 2;
var top = screen.availHeight - height;
window.open(
"//google.de",
"_blank",
"width=" + width + "," +
"height=" + height + "," +
"location=no," +
"menuebar=no," +
"personalbar=no," +
"status=no," +
"resizable=no," +
"channelmode=no," +
"scrollbars=no," +
"directories=no," +
"toolbar=no," +
"left=" + left + "," +
"top=" + top
);
}
</script>
<style type="text/css"></style>
</head>
<body>
inhalt
</body>
</html>
Nein, da es in JS optional ist, einzeilige Anweisungen mit einem Semikolon zu beenden. Insofern ist das völlig wurscht.im unteren fehlen ja außer beim ersten und letztenparams +=
überall die Semikoli. Kommt da kein Syntaxerror in der Konsole?
Ist es - JSHint meckert das auch an.Aber unsauber finde ich es trotzdem
if(somewhat) var that = somewhat;
...