├── favicon.ico ├── favicon.png ├── img ├── dabblet.ttf ├── loader.png ├── noise.png ├── scrob.png ├── scrob_1.png ├── scrob_10.png ├── scrob_100.png ├── scrob_50.png ├── scrob_50.psd └── settings.png ├── result ├── .htaccess └── index.php ├── result.html ├── .htaccess ├── scrubbingValues.css ├── sample.oauth.php ├── code ├── util.js ├── selection.js ├── incrementable.js ├── scrubbingValues.js ├── prefixfree.min.js ├── previewers.js ├── utopia.js ├── code-highlight.js ├── editor.js └── dabblet.js ├── help ├── style.css └── index.html ├── index.html └── style.css /favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/altryne/dabblet/master/favicon.ico -------------------------------------------------------------------------------- /favicon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/altryne/dabblet/master/favicon.png -------------------------------------------------------------------------------- /img/dabblet.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/altryne/dabblet/master/img/dabblet.ttf -------------------------------------------------------------------------------- /img/loader.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/altryne/dabblet/master/img/loader.png -------------------------------------------------------------------------------- /img/noise.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/altryne/dabblet/master/img/noise.png -------------------------------------------------------------------------------- /img/scrob.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/altryne/dabblet/master/img/scrob.png -------------------------------------------------------------------------------- /img/scrob_1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/altryne/dabblet/master/img/scrob_1.png -------------------------------------------------------------------------------- /img/scrob_10.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/altryne/dabblet/master/img/scrob_10.png -------------------------------------------------------------------------------- /img/scrob_100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/altryne/dabblet/master/img/scrob_100.png -------------------------------------------------------------------------------- /img/scrob_50.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/altryne/dabblet/master/img/scrob_50.png -------------------------------------------------------------------------------- /img/scrob_50.psd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/altryne/dabblet/master/img/scrob_50.psd -------------------------------------------------------------------------------- /img/settings.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/altryne/dabblet/master/img/settings.png -------------------------------------------------------------------------------- /result/.htaccess: -------------------------------------------------------------------------------- 1 | RewriteEngine On 2 | 3 | RewriteBase / 4 | RewriteCond %{REQUEST_FILENAME} !-f 5 | RewriteCond %{REQUEST_FILENAME} !-d 6 | RewriteRule . /result/index.php [L] -------------------------------------------------------------------------------- /result.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | 5 |/** The first commented line is your dabblet’s title */
98 | body{
99 | background: #f06;
100 | background: linear-gradient(45deg, #f06, yellow);
101 | min-height:100px;
102 | }
103 | div{
104 | height:150px;
105 | width:20px;
106 | padding-top:15px;
107 | padding-left:25px;
108 | background:#f00;
109 | border:5px solid #fff;
110 | border-radius:15px;
111 | }
112 |
113 | <div> </div>
117 |
118 | dabblet is an interactive playground for quickly testing snippets of CSS and HTML code. 22 | It uses -prefix-free, 23 | so that you won't have to add any prefixes in your CSS code. You can save your work in 24 | Github gists, embed it in other websites and share it 25 | with others.
26 | 27 |It currently only supports modern versions of Chrome, Safari and Firefox but I'm hoping 28 | to expand browser support soon.
29 | 30 |It’s handcoded by Lea Verou with care 31 | but some other nice folks helped too. 32 | Special thanks go to Roman Komarov who helped tremendously 33 | with his tips & thorough QA.
34 | 35 | 41 |Please report any bugs and suggest features in dabblet’s bug tracker. 59 | An extensive description and (for bugs) a reduced testcase are appreciated. Thanks for your effort towards making dabblet better!
60 | 61 |You may use <script> tags as usual in your HTML markup in order to execute JavaScript code in your dabblet. 63 | However, keep in mind that dabblet is CSS-focused. If your demo needs a lot of JavaScript, you might 64 | find something like jsFiddle 65 | or JSBin more helpful. 66 |
I’m a heavy keyboard user myself, so lots of effort has been put into making dabblet 72 | a breeze to use with the keyboard:
73 || Action | 77 |Result | 78 |
| ⌘S | 83 |Save if not saved, update if saved, fork if not own | 84 |
| ⌘1-8 | 87 |Go to first, second, third etc tab, provided they exist. | 88 |
| ⌘9 | 91 |Go to the last tab | 92 |
| ⌘⇧[ | 95 |Go to previous tab | 96 |
| ⌘⇧] | 99 |Go to next tab | 100 |
| ⇥ in editing mode |
103 | Enters a Tab (\t) character |
104 |
| ⇥ after selecting text |
107 | Indents the selected lines (including partially selected lines) | 108 |
| ⇧⇥ after selecting text |
111 | Removes one indent (Tab or space) from the beginning of each (partially) selected line. | 112 |
| ⌘/ in editing mode |
115 | Comments the current selection (or line if there is none) or uncomments if within a comment | 116 |
| ⌥↑ / ⌥↓ | 119 |Increment/decrement value by 1 | 120 |
| ⇧⌥↑ / ⇧⌥↓ | 123 |Increment/decrement value by 10 | 124 |
| ⌃⌥↑ / ⌃⌥↓ | 127 |Increment/decrement value by 0.1 | 128 |
| ⎋ in editing mode |
131 | The editing area loses focus, so after pressing ⇥ you can use 132 | the navigation bar through the keyboard | 133 |
Note: Wherever ⌘ is used, it means either ⌘ or ⌃, in both platforms. 137 | This wasn’t only done for cross-platform compatibility, but also because some browsers don’t allow overriding their default shortcuts.
138 |In any case, if a keyboard shortcut doesn’t make sense, it’s deferred to the browser (for example ⌘9 when you’re already on the last tab). 139 |
All posted code belongs to the poster and no license is enforced.
144 |I am not responsible or liable for any loss or damage of any kind during the usage of dabblet or provided code.
145 |dabblet itself is open source software and is distributed under a 146 | NPOSL-3.0 license. 147 | Fork dabblet on github, we’re waiting for your pull requests!
148 |The letters for the dabblet logo and all the icons that dabblet uses can be found in this font. For example usage, refer to the following dabblets: 153 |