LearningAppsBeispiel

Aus ProgrammingWiki

Wiki-Quelltext dieser Seite.

<html>
<iframe src="//LearningApps.org/watch?app=22714" style="border:0px;width:100%;height:500px" webkitallowfullscreen="true" mozallowfullscreen="true"></iframe>

<script>
var onmessage = function(e) { 
 var a = e.data.split("|");
 if(a[0] == "AppSolved"){ alert("App "+ a[1] +" wurde erfolgreich geloest!"); }
 if(a[0] == "Score"){ alert("App Punkte: " + a[1]); }
} 
 
window.addEventListener('message', onmessage, false); 
</script>
</html>