test-moviestream-and-notification.php


Quell Code


<form action='/audio/Clip_1080_5sec_10mbps_h264.mp4' method="POST">
<h1>Video in iframe laden mit Popups</h1>
<input type="submit"  value="Mit Popup">
</form>
<form action='/audio/Clip_1080_5sec_10mbps_h264.mp4' method="POST">
<h1> Videos laden ohne Popupüs( WERBUNG )</h1>
<input type="submit"   value="Ohne Popup">
</form>

<script>

function notifyMe() {
  // Let's check if the browser supports notifications
  if (!("Notification" in window)) {
    alert("This browser does not support desktop notification");
  }

  // Let's check whether notification permissions have alredy been granted
  else if (Notification.permission === "granted") {
    // If it's okay let's create a notification
    var notification = new Notification("siw ains auf der seite von basti1012. hier können in zujunftneue scripte als popup werbung angeschaltetwerden");
  }

  // Otherwise, we need to ask the user for permission
  else if (Notification.permission !== 'denied') {
    Notification.requestPermission(function (permission) {
      // If the user accepts, let's create a notification
      if (permission === "granted") {
      var notification = new Notification("siw ains auf der seite von basti1012. hier können in zujunftneue scripte als popup werbung angeschaltetwerden");

      }
    });
  }
 
}

notifyMe();




Notification.requestPermission();
 
new Notification("Blubb");




</script>