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: (function() { | |
| var root = $(document.getElementsByTagName('html')); | |
| var watchers = []; | |
| var attributes = []; | |
| var attributes_with_values = []; | |
| var elements = []; | |
| var elements_per_attr = []; | |
| var scopes = []; |
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
| Date.prototype.getDayofYear = function(){ | |
| var d= new Date(this.getFullYear(), 0, 0); | |
| return Math.floor((this-d)/8.64e+7); | |
| } | |
| Date.prototype.addDays = function (n) { | |
| var year = this.getFullYear(); | |
| var month = this.getMonth(); | |
| var date = this.getDate() + n; | |
| newDate = new Date(year, month, date); |
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
| var batchPaths = function() { | |
| var _prefix = ''; | |
| var _suffix = ''; | |
| // _all (Array) | |
| // Populated by calling batchPaths.add(Array). | |
| var _all = []; | |
| // Method: prefix | |
| // Args: toPrefix (String) |
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
| //==== SCSS mixin to create CSS triangles | |
| //==== Examples: | |
| //==== @include triangle ("up", #fff, 10px, 20px); | |
| //==== @include triangle("up", #000, 20px); | |
| @mixin triangle ($direction: "down", $color: #000, $width: 20px, $height: $width ) { | |
| width: 0; | |
| height: 0; | |
| border-left: #{setTriangleSide($direction, "left", $width, $height, $color)}; | |
| border-right: #{setTriangleSide($direction, "right", $width, $height, $color)}; | |
| border-bottom: #{setTriangleSide($direction, "down", $width, $height, $color)}; |
NewerOlder