This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $font-folder: "/fonts/" | |
| // `font-face($name, $font-files, $eot, $weight, $style) | |
| // --------------------------------------------------------------- | |
| // Cross-browser support for @font-face. Supports IE, Gecko, Webkit, Opera. | |
| // $name is required, arbitrary, and what you will use in font stacks. | |
| // $font-files is required using font-files('relative/location', 'format'). for best results use this order: woff, opentype/truetype, svg | |
| // $eot is required by IE, and is a relative location of the eot file. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // If we want to test Asynchronous events we should use waits or waitsFor | |
| // To test a fadeOut effect, waits(num ms) could be ok, but is not too smart in my opinion | |
| // more info: https://github.com/pivotal/jasmine/wiki/Asynchronous-specs | |
| // What happens if we want to test if any element is correctly deleted but before of that the element is going into a fadeOut | |
| // event?. Which is happening is its opacity is going to 0 but immediately of that the element is undefined. | |
| // This is my way to do it: | |
| it("If one element is deleted correctly", function() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| window.bookmarklet = function(opts){fullFunc(opts)}; | |
| // These are the styles, scripts and callbacks we include in our bookmarklet: | |
| window.bookmarklet({ | |
| js : ['http://dl.dropbox.com/u/3655882/jquery.tablednd_0_5.js'], | |
| jqpath : 'http://jquery.com/src/jquery-latest.js', | |
| ready : function(){ | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| javascript: void((function() { | |
| var colors = []; | |
| var title = document.title.replace(/Dribbble - /g, ''); | |
| var li = document.getElementsByClassName('color'); | |
| if (li.length > 0) { | |
| for (var i = 0; i < li.length; i++) { | |
| var c = li[i].getElementsByTagName('a')[0].getAttribute('title'); | |
| colors.push('<li><div style="display:inline-block; width:20px; height:20px;background:' + c + '"></div> ' + c + '</li>'); | |
| } |
NewerOlder