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
| // Place inside setEvents: function() { on line 1361 | |
| // Check for chrome span bug | |
| this.$editor.on("DOMNodeInserted", $.proxy(function(e) { | |
| if (e.target.tagName == "SPAN" ) { | |
| console.log('clean spans'); | |
| var helper = $("<b>helper</b>"); | |
| $(e.target).before(helper); |
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
| @mixin bubblepointer($side,$size: 1,$bottom: 25%,$foreground: inherit,$background: #fff) { | |
| @if $side == 'left' { | |
| z-index: -1; | |
| position: absolute; | |
| height: 0; | |
| padding-bottom: (7%*$size); | |
| width: (13%*$size); | |
| bottom: $bottom; | |
| right: 100%; | |
| background: $foreground; |
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
| <?php | |
| function curlySwap($shortcodes,$string) { | |
| return preg_replace_callback( | |
| '/\{\{(\w+)\}\}/', | |
| function ($match) { | |
| global $shortcodes; | |
| return $shortcodes[substr($match[0], 2, -2)]; | |
| }, | |
| $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
| function distance(x1,y1,x2,y2) { | |
| return Math.sqrt(Math.pow((x1-x2),2)+Math.pow((y1,y2),2)); | |
| } |
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
| @function col($col-width-px, $container-width: $content-width-max) { | |
| @return percentage(strip-unit($col-width-px) / strip-unit($container-width)); | |
| } | |
| @mixin col($col-width-px, $container-width: $content-width-max, $gutter-px: none, $float: left) { | |
| float: $float; | |
| display: block; | |
| width: col($col-width-px, $container-width); | |
| @if ($gutter-px != 'none') { |
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
| /*------------------------------------*\ | |
| $DEFAULT STRUCTURE | |
| \*------------------------------------*/ | |
| $grid_context: if($container-max-width == none, 1024px, $container-max-width) !default; | |
| $gutter_px: 20px !default; | |
| $max_columns:4 !default; | |
| $gutter: percentage($gutter_px / $grid_context); | |
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 folders = { | |
| sass: './resources/sass/', // Location of sass files | |
| sassDest: './htdocs/css', // Where you want complied css files to go | |
| js: ['./resources/js/first.js', './resources/js/plugins/*.js', './resources/js/main.js'], // js files to include (in order listed) | |
| jsDest: './htdocs/js' | |
| } | |
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
| { | |
| "name": "new-web-site", | |
| "version": "1.0.0", | |
| "description": "Foundation for a New Web Site", | |
| "main": "gulpfile.js", | |
| "dependencies": { | |
| "gulp": "^3.8.10" | |
| }, | |
| "devDependencies": { | |
| "gulp-autoprefixer": "^2.1.0", |
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
| <?php | |
| $prev_post = get_adjacent_post(false,'',true); | |
| $next_post = get_adjacent_post(false,'',false); | |
| if ( !empty( $prev_post ) ) | |
| { | |
| echo '<a href="'.get_permalink($prev_post).'" class="btn arrow-left" title="'.$prev_post->post_title.'" rel="prev">Previous</a>'; | |
| } | |
| else | |
| { |
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 ExampleObject = function() | |
| { | |
| var privateStaticMethod = function() {}; | |
| var privateStaticVariable = "foo"; | |
| var constructor = function ExampleObject(foo, bar) | |
| { | |
| var = privateProperty = foo; | |
| this.publicProperty = bar; |
OlderNewer