Permalink
Browse files

demo updates

  • Loading branch information...
1 parent fd3d7fa commit 2b298f445af6a3a552095f1833a648b8d85e304b scottjehl committed Feb 22, 2012
Showing with 8 additions and 2 deletions.
  1. +2 −1 examples/togglelink.js
  2. +6 −1 index.html
View
3 examples/togglelink.js
@@ -13,7 +13,7 @@ if( o.support === "native" || o.support === "polyfilled" ){
oToggleLink.href = "#";
oToggleLink.className = "toggle";
oToggleLink.innerHTML = "Disable Overthrow";
- oToggleLink.onclick = function(){
+ oToggleLink.onclick = function( e ){
if( doc.documentElement.className.indexOf( "overthrow" ) > -1 ){
o.forget();
oToggleLink.innerText = "Enable Overthrow";
@@ -22,6 +22,7 @@ if( o.support === "native" || o.support === "polyfilled" ){
o.set();
oToggleLink.innerText = "Disable Overthrow";
}
+ e.preventDefault();
};
doc.getElementById( "toggleContain" ).appendChild( oToggleLink );
View
7 index.html
@@ -233,13 +233,18 @@
border-bottom: 1px solid #ddd;
}
.embedder {
- height: 220px;
border: 1px solid #000;
margin: 1em;
+ padding: 20px;
+ }
+ .overthrow-enabled .embedder {
+ height: 220px;
}
#content {
margin: 0 auto;
}
+
+
@media (min-width: 40em){
.version {
font-size: .2em;

0 comments on commit 2b298f4

Please sign in to comment.