Follow along with the video below to see how to install our site as a web app on your home screen.
Anmerkung: This feature may not be available in some browsers.
<div class="contentLeftContent">
<script type="text/javascript">
var xmlDoc=null;
if (window.ActiveXObject)
{// code for IE
xmlDoc=new ActiveXObject("Microsoft.XMLDOM");
}
else if (document.implementation.createDocument)
{// code for Mozilla, Firefox, Opera, etc.
xmlDoc=document.implementation.createDocument("","",null);
}
else
{
alert('Your browser cannot handle this script');
}
if (xmlDoc!=null)
{
xmlDoc.async=false;
xmlDoc.load("xml/test.xml");
var x=xmlDoc.getElementsByTagName("item");
for (i=0;i<x.length;i++)
{
document.write("<div class='item'>");
document.write("<img src='");
document.write(
x[i].getElementsByTagName("enclosure")[0].childNodes[0].nodeValue);
document.write("' />");
document.write("<h1><a href='");
document.write(
x[i].getElementsByTagName("guid")[0].childNodes[0].nodeValue);
document.write("' target='_blank'>");
document.write(
x[i].getElementsByTagName("title")[0].childNodes[0].nodeValue);
document.write("</a>");
document.write("</h2>");
document.write("<p>");
document.write(
x[i].getElementsByTagName("description")[0].childNodes[0].nodeValue);
document.write("</p>");
document.write("</div>");
}
}
</script>
</div>