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.
function HaveCSSClass(obj, cssclassname)
{
if (typeof obj=="string")
obj = document.getElementById(obj);
if (typeof obj=="undefined")
return;
CSSClasses = obj.className.split(" ");
for (i=0; i<CSSClasses.length; i++)
if (CSSClasses[i]==cssclassname)
return true;
return false;
// Ist class "red" enthalten?
if (HaveCSSClass("mydiv", "red"))
{
}
// oder mit document.getElementById()
if (HaveCSSClass(document.getElementById("mydiv"), "red"))
{
}