├── MIT-License.txt ├── README.txt ├── changelog.txt ├── css └── style.css ├── images └── 08_diagonals_thick.png ├── index.html ├── js ├── jquery.overlay.js ├── jquery.overlay.min.js ├── lib │ └── syntaxhighlighter │ │ ├── LGPL-LICENSE │ │ ├── MIT-LICENSE │ │ ├── compass │ │ ├── _theme_template.scss │ │ ├── config.rb │ │ ├── shCore.scss │ │ ├── shCoreDefault.scss │ │ ├── shCoreDjango.scss │ │ ├── shCoreEclipse.scss │ │ ├── shCoreEmacs.scss │ │ ├── shCoreFadeToGrey.scss │ │ ├── shCoreMDUltra.scss │ │ ├── shCoreMidnight.scss │ │ ├── shCoreRDark.scss │ │ ├── shThemeDefault.scss │ │ ├── shThemeDjango.scss │ │ ├── shThemeEclipse.scss │ │ ├── shThemeEmacs.scss │ │ ├── shThemeFadeToGrey.scss │ │ ├── shThemeMDUltra.scss │ │ ├── shThemeMidnight.scss │ │ └── shThemeRDark.scss │ │ ├── index.html │ │ ├── scripts │ │ ├── shAutoloader.js │ │ ├── shBrushAS3.js │ │ ├── shBrushAppleScript.js │ │ ├── shBrushBash.js │ │ ├── shBrushCSharp.js │ │ ├── shBrushColdFusion.js │ │ ├── shBrushCpp.js │ │ ├── shBrushCss.js │ │ ├── shBrushDelphi.js │ │ ├── shBrushDiff.js │ │ ├── shBrushErlang.js │ │ ├── shBrushGroovy.js │ │ ├── shBrushJScript.js │ │ ├── shBrushJava.js │ │ ├── shBrushJavaFX.js │ │ ├── shBrushPerl.js │ │ ├── shBrushPhp.js │ │ ├── shBrushPlain.js │ │ ├── shBrushPowerShell.js │ │ ├── shBrushPython.js │ │ ├── shBrushRuby.js │ │ ├── shBrushSass.js │ │ ├── shBrushScala.js │ │ ├── shBrushSql.js │ │ ├── shBrushVb.js │ │ ├── shBrushXml.js │ │ ├── shCore.js │ │ └── shLegacy.js │ │ ├── src │ │ ├── shAutoloader.js │ │ ├── shCore.js │ │ └── shLegacy.js │ │ ├── styles │ │ ├── shCore.css │ │ ├── shCoreDefault.css │ │ ├── shCoreDjango.css │ │ ├── shCoreEclipse.css │ │ ├── shCoreEmacs.css │ │ ├── shCoreFadeToGrey.css │ │ ├── shCoreMDUltra.css │ │ ├── shCoreMidnight.css │ │ ├── shCoreRDark.css │ │ ├── shThemeDefault.css │ │ ├── shThemeDjango.css │ │ ├── shThemeEclipse.css │ │ ├── shThemeEmacs.css │ │ ├── shThemeFadeToGrey.css │ │ ├── shThemeMDUltra.css │ │ ├── shThemeMidnight.css │ │ └── shThemeRDark.css │ │ └── tests │ │ ├── .rvmrc │ │ ├── brushes │ │ └── sass.html │ │ ├── brushes_tests.html │ │ ├── cases │ │ ├── 001_basic.html │ │ ├── 002_brushes.html │ │ ├── 003_script_tag.html │ │ ├── 004_url_parsing.html │ │ ├── 005_no_gutter.html │ │ ├── 006_pad_line_numbers.html │ │ ├── 007_collapse.html │ │ ├── 007_collapse_interaction.html │ │ ├── 008_first_line.html │ │ ├── 009_class_name.html │ │ ├── 010_highlight.html │ │ ├── 011_smart_tabs.html │ │ ├── 012_server_side.html │ │ ├── 013_html_script.html │ │ └── 014_legacy.html │ │ ├── commonjs_tests.js │ │ ├── js │ │ ├── jquery-1.4.2.js │ │ ├── qunit.css │ │ └── qunit.js │ │ ├── syntaxhighlighter_tests.html │ │ ├── theme_tests.html │ │ ├── webrick.rb │ │ └── webrick.sh └── site.js └── tests ├── index.html ├── qunit ├── qunit.css └── qunit.js └── test.js /MIT-License.txt: -------------------------------------------------------------------------------- 1 | Copyright (c) 2011 Tom McFarlin http://tommcfarlin.com 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining 4 | a copy of this software and associated documentation files (the 5 | "Software"), to deal in the Software without restriction, including 6 | without limitation the rights to use, copy, modify, merge, publish, 7 | distribute, sublicense, and/or sell copies of the Software, and to 8 | permit persons to whom the Software is furnished to do so, subject to 9 | the following conditions: 10 | 11 | The above copyright notice and this permission notice shall be 12 | included in all copies or substantial portions of the Software. 13 | 14 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 15 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 16 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 17 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 18 | LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 19 | OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 20 | WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -------------------------------------------------------------------------------- /README.txt: -------------------------------------------------------------------------------- 1 | ============================================================================ 2 | jQuery Simple Overlay 3 | Tom McFarlin, http://tommcfarlin.com, @moretom 4 | ============================================================================ 5 | 6 | ABOUT 7 | 8 | Simple Overlay is a jQuery plugin for easily including full screen overlays 9 | in your projects. 10 | 11 | It features a variety of configuration options for incorporating multiple 12 | overlays, custom styles, glossy effect, callbacks, and more. 13 | 14 | You can apply styles to the element that triggers the overlay using the 15 | 'overlay-trigger' class name. The overlay itself given a class name of 16 | 'overlay.' 17 | 18 | ------------------------------------------- 19 | 20 | PARAMETERS 21 | 22 | color string 23 | Specifies the hexidecimal or literal value for the color of the overlay. 24 | Defaults to black. 25 | 26 | opacity number 27 | The level of transparency for the overlay. Ranges from 0 to 1.0. 28 | Defaults to 0.5. 29 | 30 | effect string 31 | Dictates how the overlay is displayed and hidden. Can be either none, 32 | fade, or slide. 33 | Defaults to none. 34 | 35 | onShow function 36 | The function called once the overlay is displayed. 37 | Defaults to null. 38 | 39 | onHide function 40 | The function called once the overlay is hidden. 41 | Defaults to null. 42 | 43 | closeOnClick boolean 44 | Dictates whether or not the overlay is closed when it's clicked. 45 | Defaults to false. 46 | 47 | glossy boolean 48 | Specifies whether or not a glossy effect is applied to the overy. 49 | Defaults to false 50 | 51 | container string 52 | The element to which the overlay is applied. Should be an ID. 53 | Defaults to body. 54 | 55 | ------------------------------------------- 56 | 57 | EXAMPLES 58 | 59 | Display a semi-transparent red overlay when the first anchor on the 60 | page has been clicked. Display an alert dialog and close the overlay 61 | when it has been clicked. 62 | 63 | $('a:first').overlay(function(evt) { 64 | $(this).overlay({ 65 | color: 'red', 66 | closeOnClick: true, 67 | onShow: function() { 68 | alert('Hello world!'); 69 | } 70 | }); 71 | }); 72 | 73 | Fade a semi-transparent black, glossy overlay into view once the element 74 | having the ID of #trigger has been clicked. 75 | 76 | $('#trigger').click(function() { 77 | $(this).overlay({ 78 | effect: 'fade', 79 | glossy: true 80 | }); 81 | }); 82 | 83 | Append a new element to the DOM once the default overlay has been 84 | displayed: 85 | 86 | $('#trigger').click(function() { 87 | $(this).overlay({ 88 | onShow: function() { 89 | $('body').append( 90 | $('
This is my new element!
'); 91 | ); 92 | }); 93 | }); 94 | }); 95 | 96 | ------------------------------------------- 97 | 98 | CONTACT 99 | 100 | Web: http://tommcfarlin.com 101 | Twitter: @moretom 102 | Email: tom@tommcfarlin.com 103 | 104 | ============================================================================ 105 | 106 | MIT license: 107 | http://www.opensource.org/licenses/mit-license.php -------------------------------------------------------------------------------- /changelog.txt: -------------------------------------------------------------------------------- 1 | = 8/5 = 2 | * [ Issue 1 ] Overlays now correct position themselves in relatively positioned elements. 3 | * Updating the minified build 4 | 5 | = 6/27 = 6 | * Fixing a problem with the onHide() callback 7 | 8 | = 6/24 = 9 | * Addressing a problem with Firefox 4 positioning -------------------------------------------------------------------------------- /css/style.css: -------------------------------------------------------------------------------- 1 | body { font-family: Arial, Sans-serif; } 2 | 3 | h1 { font-size: 24px; font-weight: bold; } 4 | h2 { font-size: 18px; font-weight: bold; border-top: 1px solid #ccc; padding-top: 15px; margin-bottom: 25px; } 5 | h3 { font-size: 16px; font-weight: bold; } 6 | p { margin: 10px 0 10px 0; } 7 | ul li { margin: 0 0 0 25px; list-style-type: disc; } 8 | 9 | #container { padding: 10px; } 10 | #small-container { width:640px; height: 380px; border: 1px solid #000; } 11 | 12 | .ui-widget-overlay { background: #666666 url(../images/08_diagonals_thick.png) 50% 50% repeat; opacity: .50;filter:Alpha(Opacity=50); } 13 | -------------------------------------------------------------------------------- /images/08_diagonals_thick.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tommcfarlin/Simple-Overlay/b79f8d39b3c73323d11ddcdcd3a957c8e06ef92a/images/08_diagonals_thick.png -------------------------------------------------------------------------------- /index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | Simple Overlay Demo 14 | 15 | 16 |
17 |

Simple Overlay Demo

18 |

19 | Simple Overlay can be used in a variety of different ways. Some examples of how to use the plugin are below. All code used is below. 20 |

21 |

22 | Callbacks 23 |

24 |

25 | The plugin supports the use of callbacks for both when it is displayed and when it is hidden. This allows you to take action after the overlay fires. 26 | Examples would be displaying a custom message, modal dialog, or another prompt. 27 |

28 |

29 | For a trivial example, click here. This will add simple modal to the page once the overlay has been displayed. 30 |

31 |

32 | Code Used 33 |

34 |
 35 |         var $modal = $('
This is my modal.
') 36 | .attr('id', 'modal') 37 | .css({ 38 | background: '#fff', 39 | zIndex: 3000, 40 | padding: '10px', 41 | width: '640px', 42 | height: '240px', 43 | margin: '0 auto', 44 | opacity: 1, 45 | position: 'absolute', 46 | top: '10%', 47 | left: '10%' 48 | }); 49 | 50 | $('#modal-trigger').click(function(evt) { 51 | evt.preventDefault(); 52 | $(this).overlay({ 53 | effect: 'fade', 54 | opacity: 0.8, 55 | closeOnClick: true, 56 | onShow: function() { 57 | $('body').append($modal); 58 | }, 59 | onHide: function() { 60 | $modal.remove(); 61 | }, 62 | }) 63 | }); 64 |
65 |

66 | Using Any Element 67 |

68 |

69 | You can trigger the overlay using any element (such as paragraph elements). Click on this sentence for a demo. 70 | Click on the overlay to close it. 71 |

72 |

73 | You can trigger overlays by applying it to any HTML element by calling it on any element. 74 |

75 |

76 | Code Used 77 |

78 |
 79 |         $('#paragraph-trigger').click(function() {
 80 |           $(this).overlay({
 81 |             closeOnClick: true
 82 |           });
 83 |         });
 84 |       
85 |

86 | Using an Anchor 87 |

88 |

89 | You can display overlays by also using anchor elements. It's helpful to prevent the default action 90 | from occuring before displaying the overlay. Click on this anchor for a demo. The gloss effect was achieved by passing 91 | glossy: true to the plugin options. 92 |

93 |

94 | Code Used 95 |

96 |
 97 |         $('#anchor-trigger').click(function(evt) {
 98 |           evt.preventDefault();
 99 |           $(this).overlay({
100 |             color: 'red',
101 |             closeOnClick: true,
102 |             glossy: true
103 |           });
104 |         }); 
105 |       
106 |

107 | Photo Overlay 108 |

109 |

110 | You can also provide an overlay on top of an image. Click on the photo below and notice the overlay come down. Using the onShow callback, you can wire up 111 | an (h/t to @Alex_Morrison for this suggested use :) event handler to prevent right-clicking. 112 |

113 |
114 | 115 |
116 |

117 | Code Used 118 |

119 |
120 |         $('#photo-trigger').click(function() {
121 |           $(this).overlay({
122 |             color: '#ccc',
123 |             effect: 'fade',
124 |             glossy: true,
125 |             container: '#photo-trigger',
126 |             onShow: function() {
127 |               $(this).click(function(evt) {
128 |                 evt.preventDefault();
129 |               }).bind('contextmenu', function(evt) {
130 |                 evt.preventDefault();
131 |               });
132 |             }
133 |           });
134 |         });
135 |       
136 |

137 | Customer Overlay Class 138 |

139 |

140 | You can also used an overlay class already defined in your app from another library (i.e. jQuery UI). Click on the photo below to see the overlay class form jQuery UI used. 141 |

142 |
143 | 144 |
145 |

146 | Code Used 147 |

148 |
149 | 		  $('#photo-trigger-2').click(function() {
150 | 		    $(this).overlay({
151 | 		      overlayClass: 'ui-widget-overlay',
152 | 		      effect: 'fade',
153 | 		      container: '#photo-trigger-2'
154 | 		    });
155 | 		  });
156 |       
157 |
158 | 159 | 160 | -------------------------------------------------------------------------------- /js/jquery.overlay.js: -------------------------------------------------------------------------------- 1 | /* 2 | * jQuery Simple Overlay 3 | * A jQuery Plugin for creating a simple, customizable overlay. Supports multiple instances, 4 | * custom callbacks, hide on click, glossy effect, and more. 5 | * 6 | * Copyright 2011 Tom McFarlin, http://tommcfarlin.com, @moretom 7 | * Released under the MIT License 8 | * 9 | * http://moreco.de/simple-overlay 10 | */ 11 | 12 | (function($) { 13 | 14 | $.fn.overlay = function(options) { 15 | 16 | var opts = $.extend({}, $.fn.overlay.defaults, options); 17 | // If overlayClass is defined we don't want to use opts.color since it will override 18 | // the background from the element. 19 | if( opts.overlayClass ) { 20 | delete opts.color; 21 | } 22 | 23 | return this.each(function(evt) { 24 | if(!$(this).hasClass('overlay-trigger')) { 25 | show(create($(this), opts), opts); 26 | } 27 | }); 28 | 29 | }; // end overlay 30 | 31 | /*--------------------------------------------------* 32 | * helper functions 33 | *--------------------------------------------------*/ 34 | 35 | /** 36 | * Creates the overlay element, applies the styles as specified in the 37 | * options, and sets up the event handlers for closing the overlay. 38 | * 39 | * opts The plugin's array options. 40 | */ 41 | function create($src, opts) { 42 | 43 | // prevents adding multiple overlays to a container 44 | $src.addClass('overlay-trigger'); 45 | 46 | // create the overlay and add it to the dom 47 | var iTop = 0; 48 | if($.browser.mozilla && opts.container.toString() === 'body') { 49 | iTop = $('html').scrollTop(); 50 | } else { 51 | iTop = $(opts.container).scrollTop(); 52 | } // end if/else 53 | 54 | var overlay = $('
').addClass(opts.overlayClass); 55 | 56 | if($src.css('position') === 'relative') { 57 | 58 | overlay 59 | .css({ 60 | background: opts.color, 61 | opacity: opts.opacity, 62 | top: $src.offset().top, 63 | left: $src.offset().left, 64 | width: $src.width(), 65 | height: $src.height(), 66 | position: 'absolute', 67 | zIndex: opts.zIndex, 68 | display: 'none', 69 | overflow: 'hidden' 70 | }); 71 | 72 | } else { 73 | // All absolute positioned elements must proceed the same as body 74 | var $isAbsolute = false; 75 | if(opts.container.toString() === 'body' || $(opts.container).css('position') === 'absolute') { 76 | $isAbsolute = true; 77 | } 78 | overlay 79 | .css({ 80 | background: opts.color, 81 | opacity: opts.opacity, 82 | top: $isAbsolute ? iTop : $(opts.container).offset().top, 83 | left: $isAbsolute ? 0 : $(opts.container).offset().left, 84 | width: $isAbsolute ? '100%' : $(opts.container).width(), 85 | height: $isAbsolute ? '100%' : $(opts.container).height(), 86 | position: 'absolute', 87 | zIndex: opts.zIndex, 88 | display: 'none', 89 | overflow: 'hidden' 90 | }); 91 | 92 | } // end if/else 93 | 94 | 95 | // if specified, apply the gloss 96 | if(opts.glossy) { 97 | applyGloss(opts, overlay); 98 | } // end if 99 | 100 | // setup the event handlers for closing the overlay 101 | if(opts.closeOnClick) { 102 | $(overlay).click(function() { 103 | close(overlay, opts); 104 | $src.removeClass('overlay-trigger'); 105 | }); 106 | } // end if 107 | 108 | // finally add the overlay 109 | $(opts.container).append(overlay); 110 | 111 | return overlay; 112 | 113 | } // end createOverlay 114 | 115 | /** 116 | * Displays the overlay using the effect specified in the options. Optionally 117 | * triggers the onShow callback function. 118 | * 119 | * opts The plugin's array options. 120 | */ 121 | function show(overlay, opts) { 122 | 123 | switch(opts.effect.toString().toLowerCase()) { 124 | 125 | case 'fade': 126 | $(overlay).fadeIn('fast', opts.onShow); 127 | break; 128 | 129 | case 'slide': 130 | $(overlay).slideDown('fast', opts.onShow); 131 | break; 132 | 133 | default: 134 | $(overlay).show(opts.onShow); 135 | break; 136 | 137 | } // end switch/case 138 | 139 | $(opts.container).css('overflow', 'hidden'); 140 | 141 | } // end show 142 | 143 | /** 144 | * Hides the overlay using the effect specified in the options. Optionally 145 | * triggers the onHide callback function. 146 | * 147 | * opts The plugin's array options. 148 | */ 149 | function close(overlay, opts) { 150 | 151 | switch(opts.effect.toString().toLowerCase()) { 152 | 153 | case 'fade': 154 | $(overlay).fadeOut('fast', function() { 155 | if(opts.onHide) { 156 | opts.onHide(); 157 | } 158 | $(this).remove(); 159 | }); 160 | break; 161 | 162 | case 'slide': 163 | $(overlay).slideUp('fast', function() { 164 | if(opts.onHide) { 165 | opts.onHide(); 166 | } 167 | $(this).remove(); 168 | }); 169 | break; 170 | 171 | default: 172 | $(overlay).hide(); 173 | if(opts.onHide) { 174 | opts.onHide(); 175 | } 176 | $(overlay).remove(); 177 | break; 178 | } // end switch/case 179 | 180 | $(opts.container).css('overflow', 'auto'); 181 | } // end close 182 | 183 | /** 184 | * Adds the gloss effect to the overlay. 185 | * 186 | * opts The plugin's options array 187 | * overlay The overlay on which the gloss will be applied 188 | */ 189 | function applyGloss(opts, overlay) { 190 | 191 | var gloss = $('
'); 192 | $(gloss).css({ 193 | background: '#fff', 194 | opacity: 0.2, 195 | width: '200%', 196 | height: '100%', 197 | position: 'absolute', 198 | zIndex: opts.zIndex + 1, 199 | msTransform: 'rotate(45deg)', 200 | webkitTransform: 'rotate(45deg)', 201 | oTransform: 'rotate(45deg)' 202 | }); 203 | 204 | // at the time of development, mozTransform didn't work with >= jQuery 1.5 205 | if($.browser.mozilla) { 206 | $(gloss).css('-moz-transform', 'rotate(45deg'); 207 | } // end if 208 | 209 | $(overlay).append(gloss); 210 | 211 | } // end applyGloss 212 | 213 | /*--------------------------------------------------* 214 | * default settings 215 | *--------------------------------------------------*/ 216 | 217 | $.fn.overlay.defaults = { 218 | color: '#000', 219 | overlayClass: 'overlay', 220 | opacity: 0.5, 221 | effect: 'none', 222 | onShow: null, 223 | onHide: null, 224 | closeOnClick: false, 225 | glossy: false, 226 | zIndex: 1000, 227 | container: 'body' 228 | }; // end defaults 229 | 230 | })(jQuery); 231 | 232 | -------------------------------------------------------------------------------- /js/jquery.overlay.min.js: -------------------------------------------------------------------------------- 1 | /* 2 | * jQuery Simple Overlay 3 | * A jQuery Plugin for creating a simple, customizable overlay. Supports multiple instances, 4 | * custom callbacks, hide on click, glossy effect, and more. 5 | * 6 | * Copyright 2011 Tom McFarlin, http://tommcfarlin.com, @moretom 7 | * Released under the MIT License 8 | * 9 | * http://moreco.de/simple-overlay 10 | */ 11 | (function($){$.fn.overlay=function(options){var opts=$.extend({},$.fn.overlay.defaults,options);if(opts.overlayClass){delete opts.color}return this.each(function(evt){if(!$(this).hasClass('overlay-trigger')){show(create($(this),opts),opts)}})};function create($src,opts){$src.addClass('overlay-trigger');var iTop=0;if($.browser.mozilla&&opts.container.toString()==='body'){iTop=$('html').scrollTop()}else{iTop=$(opts.container).scrollTop()}var overlay=$('
').addClass(opts.overlayClass);if($src.css('position')==='relative'){overlay.css({background:opts.color,opacity:opts.opacity,top:$src.offset().top,left:$src.offset().left,width:$src.width(),height:$src.height(),position:'absolute',zIndex:opts.zIndex,display:'none',overflow:'hidden'})}else{var $isAbsolute=false;if(opts.container.toString()==='body'||$(opts.container).css('position')==='absolute'){$isAbsolute=true}overlay.css({background:opts.color,opacity:opts.opacity,top:$isAbsolute?iTop:$(opts.container).offset().top,left:$isAbsolute?0:$(opts.container).offset().left,width:$isAbsolute?'100%':$(opts.container).width(),height:$isAbsolute?'100%':$(opts.container).height(),position:'absolute',zIndex:opts.zIndex,display:'none',overflow:'hidden'})}if(opts.glossy){applyGloss(opts,overlay)}if(opts.closeOnClick){$(overlay).click(function(){close(overlay,opts);$src.removeClass('overlay-trigger')})}$(opts.container).append(overlay);return overlay}function show(overlay,opts){switch(opts.effect.toString().toLowerCase()){case'fade':$(overlay).fadeIn('fast',opts.onShow);break;case'slide':$(overlay).slideDown('fast',opts.onShow);break;default:$(overlay).show(opts.onShow);break}$(opts.container).css('overflow','hidden')}function close(overlay,opts){switch(opts.effect.toString().toLowerCase()){case'fade':$(overlay).fadeOut('fast',function(){if(opts.onHide){opts.onHide()}$(this).remove()});break;case'slide':$(overlay).slideUp('fast',function(){if(opts.onHide){opts.onHide()}$(this).remove()});break;default:$(overlay).hide();if(opts.onHide){opts.onHide()}$(overlay).remove();break}$(opts.container).css('overflow','auto')}function applyGloss(opts,overlay){var gloss=$('
');$(gloss).css({background:'#fff',opacity:0.2,width:'200%',height:'100%',position:'absolute',zIndex:opts.zIndex+1,msTransform:'rotate(45deg)',webkitTransform:'rotate(45deg)',oTransform:'rotate(45deg)'});if($.browser.mozilla){$(gloss).css('-moz-transform','rotate(45deg')}$(overlay).append(gloss)}$.fn.overlay.defaults={color:'#000',overlayClass:'overlay',opacity:0.5,effect:'none',onShow:null,onHide:null,closeOnClick:false,glossy:false,zIndex:1000,container:'body'}})(jQuery); 12 | -------------------------------------------------------------------------------- /js/lib/syntaxhighlighter/MIT-LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2003, 2004 Jim Weirich 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining 4 | a copy of this software and associated documentation files (the 5 | "Software"), to deal in the Software without restriction, including 6 | without limitation the rights to use, copy, modify, merge, publish, 7 | distribute, sublicense, and/or sell copies of the Software, and to 8 | permit persons to whom the Software is furnished to do so, subject to 9 | the following conditions: 10 | 11 | The above copyright notice and this permission notice shall be 12 | included in all copies or substantial portions of the Software. 13 | 14 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 15 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 16 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 17 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 18 | LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 19 | OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 20 | WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 21 | -------------------------------------------------------------------------------- /js/lib/syntaxhighlighter/compass/_theme_template.scss: -------------------------------------------------------------------------------- 1 | $background: white !default; 2 | 3 | $line_alt1_background: $background !default; 4 | $line_alt2_background: $background !default; 5 | 6 | $line_highlighted_background: #e0e0e0 !default; 7 | $line_highlighted_number: black !default; 8 | 9 | $gutter_text: #afafaf !default; 10 | $gutter_border_color: #6ce26c !default; 11 | $gutter_border: 3px solid $gutter_border_color !default; 12 | 13 | $toolbar_collapsed_a: #00f !default; 14 | $toolbar_collapsed_a_hover: #f00 !default; 15 | $toolbar_collapsed_background: #fff !default; 16 | $toolbar_collapsed_border: 1px solid $gutter_border_color !default; 17 | 18 | $toolbar_a: #fff !default; 19 | $toolbar_a_hover: #000 !default; 20 | $toolbar_background: $gutter_border_color !default; 21 | $toolbar_border: none !default; 22 | 23 | $code_plain: black !default; 24 | $code_comments: #008200 !default; 25 | $code_string: blue !default; 26 | $code_keyword: #006699 !default; 27 | $code_preprocessor: gray !default; 28 | $code_variable: #aa7700 !default; 29 | $code_value: #009900 !default; 30 | $code_functions: #ff1493 !default; 31 | $code_constants: #0066cc !default; 32 | $code_script: $code_keyword !default; 33 | $code_script_background: none !default; 34 | $code_color1: gray !default; 35 | $code_color2: #ff1493 !default; 36 | $code_color3: red !default; 37 | 38 | $caption_color: $code_plain !default; 39 | 40 | // Interface elements. 41 | .syntaxhighlighter { 42 | background-color: $background !important; 43 | 44 | // Highlighed line number 45 | .line { 46 | &.alt1 { background-color: $line_alt1_background !important; } 47 | &.alt2 { background-color: $line_alt2_background !important; } 48 | 49 | // Highlighed line 50 | &.highlighted { 51 | &.alt1, &.alt2 { background-color: $line_highlighted_background !important; } 52 | &.number { color: $line_highlighted_number !important; } 53 | } 54 | } 55 | 56 | table { 57 | caption { 58 | color: $caption_color !important; 59 | } 60 | } 61 | 62 | // Add border to the lines 63 | .gutter { 64 | color: $gutter_text !important; 65 | .line { 66 | border-right: $gutter_border !important; 67 | 68 | &.highlighted { 69 | background-color: $gutter_border_color !important; 70 | color: $background !important; 71 | } 72 | } 73 | } 74 | 75 | &.printing .line .content { border: none !important; } 76 | 77 | &.collapsed { 78 | overflow: visible !important; 79 | 80 | .toolbar { 81 | color: $toolbar_collapsed_a !important; 82 | background: $toolbar_collapsed_background !important; 83 | border: $toolbar_collapsed_border !important; 84 | 85 | a { 86 | color: $toolbar_collapsed_a !important; 87 | &:hover { color: $toolbar_collapsed_a_hover !important; } 88 | } 89 | } 90 | } 91 | 92 | .toolbar { 93 | color: $toolbar_a !important; 94 | background: $toolbar_background !important; 95 | border: $toolbar_border !important; 96 | a { 97 | color: $toolbar_a !important; 98 | &:hover { color: $toolbar_a_hover !important; } 99 | } 100 | } 101 | 102 | // Actual syntax highlighter colors. 103 | .plain, .plain a { color: $code_plain !important; } 104 | .comments, .comments a { color: $code_comments !important; } 105 | .string, .string a { color: $code_string !important; } 106 | .keyword { color: $code_keyword !important; } 107 | .preprocessor { color: $code_preprocessor !important; } 108 | .variable { color: $code_variable !important; } 109 | .value { color: $code_value !important; } 110 | .functions { color: $code_functions !important; } 111 | .constants { color: $code_constants !important; } 112 | .script { 113 | font-weight: bold !important; 114 | color: $code_script !important; 115 | background-color: $code_script_background !important; 116 | } 117 | .color1, .color1 a { color: $code_color1 !important; } 118 | .color2, .color2 a { color: $code_color2 !important; } 119 | .color3, .color3 a { color: $code_color3 !important; } 120 | } 121 | -------------------------------------------------------------------------------- /js/lib/syntaxhighlighter/compass/config.rb: -------------------------------------------------------------------------------- 1 | environment = :production 2 | project_type = :stand_alone 3 | http_path = "/" 4 | css_dir = "../styles" 5 | sass_dir = "." 6 | images_dir = "images" 7 | sass_options = { 8 | :line_numbers => false, 9 | :debug_info => false 10 | } 11 | 12 | # output_style = :compressed 13 | # output_style = :compact 14 | output_style = :expanded 15 | -------------------------------------------------------------------------------- /js/lib/syntaxhighlighter/compass/shCore.scss: -------------------------------------------------------------------------------- 1 | @mixin round_corners_custom($top, $right, $bottom, $left) { 2 | -moz-border-radius: $top $right $bottom $left !important; 3 | -webkit-border-radius: $top $right $bottom $left !important; 4 | } 5 | 6 | @mixin round_corners($radius) { 7 | @include round_corners_custom($radius, $radius, $radius, $radius); 8 | } 9 | 10 | .syntaxhighlighter { 11 | a, 12 | div, 13 | code, 14 | table, 15 | table td, 16 | table tr, 17 | table tbody, 18 | table thead, 19 | table caption, 20 | textarea { 21 | @include round_corners(0); 22 | 23 | background: none !important; 24 | border: 0 !important; 25 | bottom: auto !important; 26 | float: none !important; 27 | height: auto !important; 28 | left: auto !important; 29 | line-height: 1.1em !important; 30 | margin: 0 !important; 31 | outline: 0 !important; 32 | overflow: visible !important; 33 | padding: 0 !important; 34 | position: static !important; 35 | right: auto !important; 36 | text-align: left !important; 37 | top: auto !important; 38 | vertical-align: baseline !important; 39 | width: auto !important; 40 | box-sizing: content-box !important; 41 | font: { 42 | family: "Consolas", "Bitstream Vera Sans Mono", "Courier New", Courier, monospace !important; 43 | weight: normal !important; 44 | style: normal !important; 45 | size: 1em !important; 46 | } 47 | min: { 48 | // For IE8, FF & WebKit 49 | height: inherit !important; 50 | // For IE7 51 | height: auto !important; 52 | } 53 | } 54 | } 55 | 56 | .syntaxhighlighter { 57 | width: 100% !important; 58 | margin: 1em 0 1em 0 !important; 59 | 60 | position: relative !important; 61 | overflow: auto !important; 62 | font-size: 1em !important; 63 | 64 | &.source { overflow: hidden !important; } 65 | 66 | // set up bold and italic 67 | .bold { font-weight: bold !important; } 68 | .italic { font-style: italic !important; } 69 | 70 | .line { white-space: pre !important; } 71 | 72 | // main table and columns 73 | table { 74 | width: 100% !important; 75 | caption { 76 | text-align: left !important; 77 | padding: .5em 0 0.5em 1em !important; 78 | } 79 | 80 | td.code { 81 | width: 100% !important; 82 | 83 | .container { 84 | position: relative !important; 85 | 86 | textarea { 87 | box-sizing: border-box !important; 88 | position: absolute !important; 89 | left: 0 !important; 90 | top: 0 !important; 91 | width: 100% !important; 92 | height: 100% !important; 93 | border: none !important; 94 | background: white !important; 95 | padding-left: 1em !important; 96 | overflow: hidden !important; 97 | white-space: pre !important; 98 | } 99 | } 100 | } 101 | 102 | // middle spacing between line numbers and lines 103 | td.gutter .line { 104 | text-align: right !important; 105 | padding: 0 0.5em 0 1em !important; 106 | } 107 | 108 | td.code .line { 109 | padding: 0 1em !important; 110 | } 111 | } 112 | 113 | &.nogutter { 114 | td.code { 115 | .container textarea, .line { padding-left: 0em !important; } 116 | } 117 | } 118 | 119 | &.show { display: block !important; } 120 | 121 | // Adjust some properties when collapsed 122 | &.collapsed { 123 | table { display: none !important; } 124 | 125 | .toolbar { 126 | padding: 0.1em 0.8em 0em 0.8em !important; 127 | font-size: 1em !important; 128 | position: static !important; 129 | width: auto !important; 130 | height: auto !important; 131 | 132 | span { 133 | display: inline !important; 134 | margin-right: 1em !important; 135 | 136 | a { 137 | padding: 0 !important; 138 | display: none !important; 139 | &.expandSource { display: inline !important; } 140 | } 141 | } 142 | } 143 | } 144 | 145 | // Styles for the toolbar 146 | .toolbar { 147 | position: absolute !important; 148 | right: 1px !important; 149 | top: 1px !important; 150 | width: 11px !important; 151 | height: 11px !important; 152 | font-size: 10px !important; 153 | z-index: 10 !important; 154 | 155 | span.title { display: inline !important; } 156 | 157 | a { 158 | display: block !important; 159 | text-align: center !important; 160 | text-decoration: none !important; 161 | padding-top: 1px !important; 162 | 163 | &.expandSource { display: none !important; } 164 | } 165 | } 166 | 167 | &.ie { 168 | font-size: .9em !important; 169 | padding: 1px 0 1px 0 !important; 170 | 171 | .toolbar { 172 | line-height: 8px !important; 173 | a { 174 | padding-top: 0px !important; 175 | } 176 | } 177 | } 178 | 179 | // Print view. 180 | // Colors are based on the default theme without background. 181 | &.printing { 182 | .line.alt1 .content, 183 | .line.alt2 .content, 184 | .line.highlighted .number, 185 | .line.highlighted.alt1 .content, 186 | .line.highlighted.alt2 .content { background: none !important; } 187 | 188 | // Gutter line numbers 189 | .line { 190 | .number { color: #bbbbbb !important; } 191 | // Add border to the lines 192 | .content { color: black !important; } 193 | } 194 | 195 | // Toolbar when visible 196 | .toolbar { display: none !important; } 197 | a { text-decoration: none !important; } 198 | .plain, .plain a { color: black !important; } 199 | .comments, .comments a { color: #008200 !important; } 200 | .string, .string a { color: blue !important; } 201 | .keyword { 202 | color: #006699 !important; 203 | font-weight: bold !important; 204 | } 205 | .preprocessor { color: gray !important; } 206 | .variable { color: #aa7700 !important; } 207 | .value { color: #009900 !important; } 208 | .functions { color: #ff1493 !important; } 209 | .constants { color: #0066cc !important; } 210 | .script { font-weight: bold !important; } 211 | .color1, .color1 a { color: gray !important; } 212 | .color2, .color2 a { color: #ff1493 !important; } 213 | .color3, .color3 a { color: red !important; } 214 | .break, .break a { color: black !important; } 215 | } 216 | } -------------------------------------------------------------------------------- /js/lib/syntaxhighlighter/compass/shCoreDefault.scss: -------------------------------------------------------------------------------- 1 | @import "shCore.scss"; 2 | @import "shThemeDefault.scss"; 3 | -------------------------------------------------------------------------------- /js/lib/syntaxhighlighter/compass/shCoreDjango.scss: -------------------------------------------------------------------------------- 1 | @import "shCore.scss"; 2 | @import "shThemeDjango.scss"; 3 | -------------------------------------------------------------------------------- /js/lib/syntaxhighlighter/compass/shCoreEclipse.scss: -------------------------------------------------------------------------------- 1 | @import "shCore.scss"; 2 | @import "shThemeEclipse.scss"; 3 | -------------------------------------------------------------------------------- /js/lib/syntaxhighlighter/compass/shCoreEmacs.scss: -------------------------------------------------------------------------------- 1 | @import "shCore.scss"; 2 | @import "shThemeEmacs.scss"; 3 | -------------------------------------------------------------------------------- /js/lib/syntaxhighlighter/compass/shCoreFadeToGrey.scss: -------------------------------------------------------------------------------- 1 | @import "shCore.scss"; 2 | @import "shThemeFadeToGrey.scss"; 3 | -------------------------------------------------------------------------------- /js/lib/syntaxhighlighter/compass/shCoreMDUltra.scss: -------------------------------------------------------------------------------- 1 | @import "shCore.scss"; 2 | @import "shThemeMDUltra.scss"; 3 | -------------------------------------------------------------------------------- /js/lib/syntaxhighlighter/compass/shCoreMidnight.scss: -------------------------------------------------------------------------------- 1 | @import "shCore.scss"; 2 | @import "shThemeMidnight.scss"; 3 | -------------------------------------------------------------------------------- /js/lib/syntaxhighlighter/compass/shCoreRDark.scss: -------------------------------------------------------------------------------- 1 | @import "shCore.scss"; 2 | @import "shThemeRDark.scss"; 3 | -------------------------------------------------------------------------------- /js/lib/syntaxhighlighter/compass/shThemeDefault.scss: -------------------------------------------------------------------------------- 1 | // Default Syntax Highlighter theme. 2 | 3 | @import "_theme_template.scss"; 4 | 5 | .syntaxhighlighter { 6 | .keyword { font-weight: bold !important; } 7 | } 8 | -------------------------------------------------------------------------------- /js/lib/syntaxhighlighter/compass/shThemeDjango.scss: -------------------------------------------------------------------------------- 1 | // Django SyntaxHighlighter theme 2 | 3 | $background: #0a2b1d !default; 4 | 5 | $line_highlighted_background: #233729 !default; 6 | $line_highlighted_number: white !default; 7 | 8 | $gutter_text: #497958 !default; 9 | $gutter_border_color: #41a83e !default; 10 | 11 | $toolbar_collapsed_a: #96dd3b !default; 12 | $toolbar_collapsed_a_hover: #fff !default; 13 | $toolbar_collapsed_background: #000 !default; 14 | 15 | $toolbar_a: #fff !default; 16 | $toolbar_a_hover: #ffe862 !default; 17 | 18 | $code_plain: #f8f8f8 !default; 19 | $code_comments: #336442 !default; 20 | $code_string: #9df39f !default; 21 | $code_keyword: #96dd3b !default; 22 | $code_preprocessor: #91bb9e !default; 23 | $code_variable: #ffaa3e !default; 24 | $code_value: #f7e741 !default; 25 | $code_functions: #ffaa3e !default; 26 | $code_constants: #e0e8ff !default; 27 | $code_color1: #eb939a !default; 28 | $code_color2: #91bb9e !default; 29 | $code_color3: #edef7d !default; 30 | 31 | @import "_theme_template.scss"; 32 | 33 | .syntaxhighlighter { 34 | .comments { font-style: italic !important; } 35 | .keyword { font-weight: bold !important; } 36 | } 37 | -------------------------------------------------------------------------------- /js/lib/syntaxhighlighter/compass/shThemeEclipse.scss: -------------------------------------------------------------------------------- 1 | // Eclipse IDE SyntaxHighlighter color theme 2 | // (C) Code-House 3 | // :http//blog.code-house.org/2009/10/xml-i-adnotacje-kod-ogolnego-przeznaczenia-i-jpa/ 4 | 5 | $background: #fff !default; 6 | 7 | $line_highlighted_background: #c3defe !default; 8 | $line_highlighted_number: #fff !default; 9 | 10 | $gutter_text: #787878 !default; 11 | $gutter_border_color: #d4d0c8 !default; 12 | 13 | $toolbar_collapsed_a: #3f5fbf !default; 14 | $toolbar_collapsed_a_hover: #aa7700 !default; 15 | $toolbar_collapsed_background: #fff !default; 16 | 17 | $toolbar_a: #a0a0a0 !default; 18 | $toolbar_a_hover: red !default; 19 | 20 | $code_plain: black !default; 21 | $code_comments: #3f5fbf !default; 22 | $code_string: #2a00ff !default; 23 | $code_keyword: #7f0055 !default; 24 | $code_preprocessor: #646464 !default; 25 | $code_variable: #aa7700 !default; 26 | $code_value: #009900 !default; 27 | $code_functions: #ff1493 !default; 28 | $code_constants: #0066cc !default; 29 | $code_color1: gray !default; 30 | $code_color2: #ff1493 !default; 31 | $code_color3: red !default; 32 | 33 | @import "_theme_template.scss"; 34 | 35 | .syntaxhighlighter { 36 | .keyword { font-weight: bold !important; } 37 | 38 | .xml { 39 | .keyword { 40 | color: #3f7f7f !important; 41 | font-weight: normal !important; } 42 | .color1, .color1 a { color: #7f007f !important; } 43 | .string { 44 | font-style: italic !important; 45 | color: #2a00ff !important; 46 | } 47 | } 48 | } 49 | -------------------------------------------------------------------------------- /js/lib/syntaxhighlighter/compass/shThemeEmacs.scss: -------------------------------------------------------------------------------- 1 | // Emacs SyntaxHighlighter theme based on theme by Joshua Emmons 2 | // http://www.skia.net/ 3 | 4 | $background: black !default; 5 | 6 | $line_highlighted_background: #2A3133 !default; 7 | $line_highlighted_number: white !default; 8 | 9 | $gutter_text: #d3d3d3 !default; 10 | $gutter_border_color: #990000 !default; 11 | 12 | $toolbar_collapsed_a: #ebdb8d !default; 13 | $toolbar_collapsed_a_hover: #ff7d27 !default; 14 | $toolbar_collapsed_background: black !default; 15 | 16 | $toolbar_a: #fff !default; 17 | $toolbar_a_hover: #9ccff4 !default; 18 | 19 | $code_plain: #d3d3d3 !default; 20 | $code_comments: #ff7d27 !default; 21 | $code_string: #ff9e7b !default; 22 | $code_keyword: aqua !default; 23 | $code_preprocessor: #aec4de !default; 24 | $code_variable: #ffaa3e !default; 25 | $code_value: #009900 !default; 26 | $code_functions: #81cef9 !default; 27 | $code_constants: #ff9e7b !default; 28 | $code_color1: #ebdb8d !default; 29 | $code_color2: #ff7d27 !default; 30 | $code_color3: #aec4de !default; 31 | 32 | @import "_theme_template.scss"; 33 | -------------------------------------------------------------------------------- /js/lib/syntaxhighlighter/compass/shThemeFadeToGrey.scss: -------------------------------------------------------------------------------- 1 | // Fade to Grey SyntaxHighlighter theme based on theme by Brasten Sager 2 | // :http//www.ibrasten.com/ 3 | 4 | $background: #121212 !default; 5 | 6 | $line_highlighted_background: #2C2C29 !default; 7 | $line_highlighted_number: white !default; 8 | 9 | $gutter_text: #afafaf !default; 10 | $gutter_border_color: #3185b9 !default; 11 | 12 | $toolbar_collapsed_a: #3185b9 !default; 13 | $toolbar_collapsed_a_hover: #d01d33 !default; 14 | $toolbar_collapsed_background: black !default; 15 | 16 | $toolbar_a: #fff !default; 17 | $toolbar_a_hover: #96daff !default; 18 | 19 | $code_plain: white !default; 20 | $code_comments: #696854 !default; 21 | $code_string: #e3e658 !default; 22 | $code_keyword: #d01d33 !default; 23 | $code_preprocessor: #435a5f !default; 24 | $code_variable: #898989 !default; 25 | $code_value: #009900 !default; 26 | $code_functions: #aaaaaa !default; 27 | $code_constants: #96daff !default; 28 | $code_color1: #ffc074 !default; 29 | $code_color2: #4a8cdb !default; 30 | $code_color3: #96daff !default; 31 | 32 | @import "_theme_template.scss"; 33 | 34 | .syntaxhighlighter { 35 | .functions { font-weight: bold !important; } 36 | } 37 | -------------------------------------------------------------------------------- /js/lib/syntaxhighlighter/compass/shThemeMDUltra.scss: -------------------------------------------------------------------------------- 1 | // MDUltra SyntaxHighlighter theme based on Midnight Theme 2 | // http://www.mddev.co.uk/ 3 | 4 | $background: #222222 !default; 5 | 6 | $line_highlighted_background: #253e5a !default; 7 | $line_highlighted_number: white !default; 8 | 9 | $gutter_text: #38566f !default; 10 | $gutter_border_color: #435a5f !default; 11 | 12 | $toolbar_collapsed_a: #428bdd !default; 13 | $toolbar_collapsed_a_hover: lime !default; 14 | $toolbar_collapsed_background: black !default; 15 | 16 | $toolbar_a: #aaaaff !default; 17 | $toolbar_a_hover: #9ccff4 !default; 18 | 19 | $code_plain: lime !default; 20 | $code_comments: #428bdd !default; 21 | $code_string: lime !default; 22 | $code_keyword: #aaaaff !default; 23 | $code_preprocessor: #8aa6c1 !default; 24 | $code_variable: aqua !default; 25 | $code_value: #f7e741 !default; 26 | $code_functions: #ff8000 !default; 27 | $code_constants: yellow !default; 28 | $code_color1: red !default; 29 | $code_color2: yellow !default; 30 | $code_color3: #ffaa3e !default; 31 | 32 | @import "_theme_template.scss"; 33 | -------------------------------------------------------------------------------- /js/lib/syntaxhighlighter/compass/shThemeMidnight.scss: -------------------------------------------------------------------------------- 1 | // Midnight SyntaxHighlighter theme based on theme by J.D. Myers 2 | // http://webdesign.lsnjd.com/ 3 | 4 | $background: #0f192a !default; 5 | 6 | $line_highlighted_background: #253e5a !default; 7 | $line_highlighted_number: #38566f !default; 8 | 9 | $gutter_text: #afafaf !default; 10 | $gutter_border_color: #435a5f !default; 11 | 12 | $toolbar_collapsed_a: #428bdd !default; 13 | $toolbar_collapsed_a_hover: #1dc116 !default; 14 | $toolbar_collapsed_background: #000 !default; 15 | 16 | $toolbar_a: #D1EDFF !default; 17 | $toolbar_a_hover: #8aa6c1 !default; 18 | 19 | $code_plain: #d1edff !default; 20 | $code_comments: #428bdd !default; 21 | $code_string: #1dc116 !default; 22 | $code_keyword: #b43d3d !default; 23 | $code_preprocessor: #8aa6c1 !default; 24 | $code_variable: #ffaa3e !default; 25 | $code_value: #f7e741 !default; 26 | $code_functions: #ffaa3e !default; 27 | $code_constants: #e0e8ff !default; 28 | $code_color1: #f8bb00 !default; 29 | $code_color2: white !default; 30 | $code_color3: #ffaa3e !default; 31 | 32 | @import "_theme_template.scss"; 33 | -------------------------------------------------------------------------------- /js/lib/syntaxhighlighter/compass/shThemeRDark.scss: -------------------------------------------------------------------------------- 1 | // RDark SyntaxHighlighter theme based on theme by Radu Dineiu 2 | // http://www.vim.org/scripts/script.php?script_id=1732 3 | 4 | $background: #1b2426 !default; 5 | 6 | $line_highlighted_background: #323E41 !default; 7 | $line_highlighted_number: #b9bdb6 !default; 8 | 9 | $gutter_text: #afafaf !default; 10 | $gutter_border_color: #435a5f !default; 11 | 12 | $toolbar_collapsed_a: #5ba1cf !default; 13 | $toolbar_collapsed_a_hover: #5ce638 !default; 14 | $toolbar_collapsed_background: #000 !default; 15 | 16 | $toolbar_a: #fff !default; 17 | $toolbar_a_hover: #e0e8ff !default; 18 | 19 | $code_plain: #b9bdb6 !default; 20 | $code_comments: #878a85 !default; 21 | $code_string: #5ce638 !default; 22 | $code_keyword: #5ba1cf !default; 23 | $code_preprocessor: #435a5f !default; 24 | $code_variable: #ffaa3e !default; 25 | $code_value: #009900 !default; 26 | $code_functions: #ffaa3e !default; 27 | $code_constants: #e0e8ff !default; 28 | $code_color1: #e0e8ff !default; 29 | $code_color2: white !default; 30 | $code_color3: #ffaa3e !default; 31 | 32 | @import "_theme_template.scss"; 33 | -------------------------------------------------------------------------------- /js/lib/syntaxhighlighter/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Hello SyntaxHighlighter 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 |

Hello SyntaxHighlighter

15 |
16 | function helloSyntaxHighlighter()
17 | {
18 | 	return "hi!";
19 | }
20 | 
21 | 22 | 23 | -------------------------------------------------------------------------------- /js/lib/syntaxhighlighter/scripts/shAutoloader.js: -------------------------------------------------------------------------------- 1 | /** 2 | * SyntaxHighlighter 3 | * http://alexgorbatchev.com/SyntaxHighlighter 4 | * 5 | * SyntaxHighlighter is donationware. If you are using it, please donate. 6 | * http://alexgorbatchev.com/SyntaxHighlighter/donate.html 7 | * 8 | * @version 9 | * 3.0.83 (July 02 2010) 10 | * 11 | * @copyright 12 | * Copyright (C) 2004-2010 Alex Gorbatchev. 13 | * 14 | * @license 15 | * Dual licensed under the MIT and GPL licenses. 16 | */ 17 | eval(function(p,a,c,k,e,d){e=function(c){return(c35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('(2(){1 h=5;h.I=2(){2 n(c,a){4(1 d=0;d