私はそれが動作しない、これはあなたのため
if (/webOS|Mobile|Mobile Safari|Opera Mobi|iPhone|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) {
(function() {
var slutdiv= document.getElementById ("slut")
var h = "";
h += "</div>"
h += "<div class=dropdown>"
h += " <button onclick='myFunction()' class='dropbtn'>Menu</button>"
h += " <div id='myDropdown' class='dropdown-content'>"
h += " <a href='../home/'>Home</a>"
h += " <a href='../downloads/'>Downloads</a>"
h += " <a href='../io'>Google IO</a>"
h += " </div>"
h += "</div>"
slutdiv.innerHTML=h;
sse1.buildMenu()
})();
}
else
{
(function() {
var slutdiv= document.getElementById ("slut")
var h = "";
h += "<div id='sse1'>"
h += " <div id='sses1'>"
h += " <ul>"
h += " <li><a href='../home/'>Home</a></li>"
h += " <li><a href='../downloads/'>Downloads</a></li>"
h += " <li><a href='../io/'>Google IO</a></li>"
h += " </ul>"
h += " </div>"
slutdiv.innerHTML=h;
sse1.buildMenu()
}();
}
に動作しますあなたのコードを編集した、私はエラー「女が関数ではなく、」取得 – user2565140