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
| ko.bindingHandlers.fadeVisible = { | |
| init: function(element, valueAccessor) { | |
| // Start visible/invisible accoring to initial value | |
| var shouldDisplay = valueAccessor(); | |
| $(element).toggle(shouldDisplay); | |
| }, | |
| update: function(element, valueAccessor) { | |
| // On update fade in/out | |
| var shouldDisplay = valueAccessor(); | |
| shouldDisplay ? $(element).fadeIn() : $(element).fadeOut(); |
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
| $('a[href*=#]:not([href=#])').click(function() { | |
| if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') && location.hostname == this.hostname) { | |
| $.waypoints('disable'); | |
| var target = $(this.hash); | |
| $('.site-nav li').removeClass('active'); | |
| $(this).parent().addClass('active'); | |
| target = target.length ? target : $('[name=' + this.hash.slice(1) +']'); | |
| if (target.length) { | |
| var scrollPosition = target.offset().top - 115; |
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
| <style> | |
| body { | |
| text-align: center; | |
| } | |
| .browser-frame { | |
| border-radius: 5px; | |
| border: 2px solid #CCC; | |
| width: 100%; | |
| margin: 0 auto; |
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
| /*-------------------------------------------- */ | |
| /** Hero Unit */ | |
| /*-------------------------------------------- */ | |
| .hero-unit { | |
| position: relative; | |
| width: 100%; | |
| height: 455px; | |
| &.services { |
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
| Shortcode: htitle | |
| Snippet: =========== **%fill:Header Title%** =========== | |
| Result: =========== **Header** =========== | |
| Shortcode: tline | |
| Snippet: ============================== | |
| Result: ============================== | |
| Shortcode: startask | |
| Snippet: **★ %fill:Starred To Do Item%** |
NewerOlder