I want to change the height of a div if the phone as an Iphone 5. I dont know javascript that well so this is a little hard for me. Here is my JS function in my index.html:
       <script>
        function resizeDiv("divId")
        {
            if (window.screen.height==568) { // iPhone 4"
                document.querySelector("meta[name=viewport]").content="width=320.1";
            var obj = document.getElementById(id);
            if (obj)
            {
                obj.setAttribute("style", "height:200px;");
            }
        }
        }
        </script>
I also have these meta tags in my head:
    <meta name="viewport" content="initial-scale=1.0">
    <meta name="viewport" content="width=320.1">
Please help =)