Skip to content

Instantly share code, notes, and snippets.

Created August 8, 2009 13:19
Show Gist options
  • Save anonymous/164410 to your computer and use it in GitHub Desktop.
Save anonymous/164410 to your computer and use it in GitHub Desktop.
Also das in den Head:
<% if iphone_user_agent? %>
<script type="text/javascript" language="JavaScript">
<!-- Original: Gilbert Davis -->
<!-- Begin
function LadeInfo() {
if (document.getElementById) { // DOM3 = IE5, NS6
document.getElementById('hidepage').style.visibility = 'hidden';
}
else {
if (document.layers) { // Netscape 4
document.hidepage.visibility = 'hidden';
}
else { // IE 4
document.all.hidepage.style.visibility = 'hidden';
}
}
}
// End -->
</script>
<% end %>
Und das in innerhalb des Body:
<% if iphone_user_agent? %>
<script type="text/javascript">
jQuery(window).load(LadeInfo);
</script>
<% end %>
Richtig?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment