提交 d07e76d0 编写于 作者: M Mr.doob

Examples: More robust panel collapse on mobile.

上级 97e7bf60
......@@ -224,7 +224,7 @@
</head>
<body>
<div id="panel" class="collapsed">
<div id="panel">
<h1><a href="http://threejs.org">three.js</a> / examples</h1>
<a id="expandButton" href="#">
<span></span>
......@@ -260,8 +260,8 @@
var expandButton = document.getElementById( 'expandButton' );
expandButton.addEventListener( 'click', function ( event ) {
panel.classList.toggle( 'collapsed' );
event.preventDefault();
panel.classList.remove( 'collapsed' );
} );
// iOS iframe auto-resize workaround
......@@ -346,7 +346,7 @@
window.location.hash = file;
viewer.focus();
panel.classList.toggle( 'collapsed' );
panel.classList.add( 'collapsed' );
selected = file;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册