Skip to content
Browse files

Fixed Firefox delay on header hover, fixed drafts saving, fixed issue #…

  • Loading branch information...
1 parent a647745 commit f79cd100dc27173d005dfad8ae1d523a7a02eb66 @LeaVerou LeaVerou committed
Showing with 17 additions and 12 deletions.
  1. +12 −8 code/dabblet.js
  2. +4 −3 index.html
  3. +1 −1 style.css
View
20 code/dabblet.js
@@ -775,9 +775,9 @@ var Dabblet = {
if(this.checked) {
Dabblet.settings.applyOne(name, this.value);
- if(evt && this.getAttribute('data-scope')) {
+ /*if(evt && this.getAttribute('data-scope')) {
gist.saved = false;
- }
+ }*/
}
}).call(input);
});
@@ -1060,11 +1060,13 @@ $$('pre').forEach(function(pre){
});
break;
- case 9:
- Dabblet.codeActions.call(this, 'indent', {
- inverse: evt.shiftKey
- });
- return false;
+ case 9: // Tab
+ if(!cmdOrCtrl) {
+ Dabblet.codeActions.call(this, 'indent', {
+ inverse: evt.shiftKey
+ });
+ return false;
+ }
case 13:
Dabblet.codeActions.call(this, 'newline');
return false;
@@ -1215,7 +1217,9 @@ $$('pre').forEach(function(pre){
pre.onblur = function() {
if(!gist.saved) {
- localStorage['dabblet.' + this.id] = this.textContent;
+ // Save draft
+ localStorage['dabblet.css'] = css.textContent;
+ localStorage['dabblet.html'] = html.textContent;
}
Dabblet.hidePreviewers();
View
7 index.html
@@ -5,10 +5,14 @@
<meta charset="utf-8" />
<title>dabblet.com</title>
<meta name="viewport" content="width=device-width, initial-scale=1" />
+
<link rel="shortcut icon" href="/favicon.png" />
<link rel="stylesheet" href="/style.css" />
<script src="/code/prefixfree.min.js"></script>
+<script>window._gaq = [['_setAccount', 'UA-27750908-1'], ['_trackPageview']];</script>
+<script src="http://www.google-analytics.com/ga.js" async></script>
+
</head>
<body>
@@ -226,8 +230,5 @@
<script src="/code/code-highlight.js"></script>
<script src="/code/dabblet.js"></script>
-<script>window._gaq = [['_setAccount', 'UA-27750908-1'], ['_trackPageview']];</script>
-<script src="http://www.google-analytics.com/ga.js" async></script>
-
</body>
</html>
View
2 style.css
@@ -221,7 +221,7 @@ header:hover,
header:active,
header.focus {
top: 0;
- transition-delay: 0;
+ transition-delay: 0s;
}
header > h1 {

0 comments on commit f79cd10

Please sign in to comment.
Something went wrong with that request. Please try again.