Minimal source control links

This commit is contained in:
Tim Schaub
2015-08-07 12:36:16 -06:00
parent 5b80da7f6e
commit ab24d9043e
3 changed files with 47 additions and 7 deletions

View File

@@ -10,6 +10,14 @@
});
}
var fiddleButton = document.getElementById('jsfiddle-button');
if (fiddleButton) {
fiddleButton.onclick = function(event) {
event.preventDefault();
document.getElementById('jsfiddle-form').submit();
};
}
if (window.location.host === 'localhost:3000') {
return;
}

View File

@@ -59,6 +59,36 @@ ol.inline>li {
font-family: 'Lucida Grande',Verdana,Geneva,Lucida,Arial,Helvetica,sans-serif;
}
pre[class*="language-"] {
margin-top: 20px;
background: #FFFFFF;
}
#source-controls {
position: absolute;
margin-top: 20px;
right: 40px;
}
#source-controls a {
margin-left: 15px;
}
#copy-button {
text-decoration: none;
cursor: pointer;
}
#jsfiddle-button {
text-decoration: none;
cursor: pointer;
}
pre {
border: 1px solid #eee;
border-radius: 0;
}
#tags, #shortdesc, .hidden {
display: none;
}