When you click on expand/collapse links on code snippet window page scrolls up. And you have to scroll it back to place where you was. it takes time and sometimes you can forget where you were before
To prevent it you can add "return false" to:
Code: Select all
<a onclick="selectCode(this); return false;" href="#">Select all</a>
<a class="codebox" onclick="expandCode(this, true);" href="#">Expand view</a>
<a class="codeboxexp" onclick="expandCode(this, false);" href="#">Collapse view</a>
Code: Select all
<a onclick="selectCode(this); return false;" href="#">Select all</a>
<a class="codebox" onclick="expandCode(this, true); return false;" href="#">Expand view</a>
<a class="codeboxexp" onclick="expandCode(this, false); return false;" href="#">Collapse view</a>