├── 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 | $('
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 |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 |35 | var $modal = $('65 |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 |
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 |79 | $('#paragraph-trigger').click(function() { 80 | $(this).overlay({ 81 | closeOnClick: true 82 | }); 83 | }); 84 |85 |
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 |
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 |
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 |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 |
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 |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 |
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
\\\\w+)\\\\]$","U"),i=1,p=0;ptags to the document body 81 | for (i = 0; i < elements.length; i++) 82 | { 83 | var url = brushes[elements[i].params.brush]; 84 | 85 | if (!url) 86 | continue; 87 | 88 | scripts[url] = false; 89 | loadScript(url); 90 | } 91 | 92 | function loadScript(url) 93 | { 94 | var script = document.createElement('script'), 95 | done = false 96 | ; 97 | 98 | script.src = url; 99 | script.type = 'text/javascript'; 100 | script.language = 'javascript'; 101 | script.onload = script.onreadystatechange = function() 102 | { 103 | if (!done && (!this.readyState || this.readyState == 'loaded' || this.readyState == 'complete')) 104 | { 105 | done = true; 106 | scripts[url] = true; 107 | checkAll(); 108 | 109 | // Handle memory leak in IE 110 | script.onload = script.onreadystatechange = null; 111 | script.parentNode.removeChild(script); 112 | } 113 | }; 114 | 115 | // sync way of adding script tags to the page 116 | document.body.appendChild(script); 117 | }; 118 | 119 | function checkAll() 120 | { 121 | for(var url in scripts) 122 | if (scripts[url] == false) 123 | return; 124 | 125 | if (allCalled) 126 | SyntaxHighlighter.highlight(allParams); 127 | }; 128 | }; 129 | 130 | })(); 131 | -------------------------------------------------------------------------------- /js/lib/syntaxhighlighter/src/shLegacy.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 | var dp = { 18 | SyntaxHighlighter : {} 19 | }; 20 | 21 | dp.SyntaxHighlighter = { 22 | parseParams: function( 23 | input, 24 | showGutter, 25 | showControls, 26 | collapseAll, 27 | firstLine, 28 | showColumns 29 | ) 30 | { 31 | function getValue(list, name) 32 | { 33 | var regex = new XRegExp('^' + name + '\\[(? \\w+)\\]$', 'gi'), 34 | match = null 35 | ; 36 | 37 | for (var i = 0; i < list.length; i++) 38 | if ((match = regex.exec(list[i])) != null) 39 | return match.value; 40 | 41 | return null; 42 | }; 43 | 44 | function defaultValue(value, def) 45 | { 46 | return value != null ? value : def; 47 | }; 48 | 49 | function asString(value) 50 | { 51 | return value != null ? value.toString() : null; 52 | }; 53 | 54 | var parts = input.split(':'), 55 | brushName = parts[0], 56 | options = {}, 57 | straight = { 'true' : true } 58 | reverse = { 'true' : false }, 59 | result = null, 60 | defaults = SyntaxHighlighter.defaults 61 | ; 62 | 63 | for (var i in parts) 64 | options[parts[i]] = 'true'; 65 | 66 | showGutter = asString(defaultValue(showGutter, defaults.gutter)); 67 | showControls = asString(defaultValue(showControls, defaults.toolbar)); 68 | collapseAll = asString(defaultValue(collapseAll, defaults.collapse)); 69 | showColumns = asString(defaultValue(showColumns, defaults.ruler)); 70 | firstLine = asString(defaultValue(firstLine, defaults['first-line'])); 71 | 72 | return { 73 | brush : brushName, 74 | gutter : defaultValue(reverse[options.nogutter], showGutter), 75 | toolbar : defaultValue(reverse[options.nocontrols], showControls), 76 | collapse : defaultValue(straight[options.collapse], collapseAll), 77 | // ruler : defaultValue(straight[options.showcolumns], showColumns), 78 | 'first-line' : defaultValue(getValue(parts, 'firstline'), firstLine) 79 | }; 80 | }, 81 | 82 | HighlightAll: function( 83 | name, 84 | showGutter /* optional */, 85 | showControls /* optional */, 86 | collapseAll /* optional */, 87 | firstLine /* optional */, 88 | showColumns /* optional */ 89 | ) 90 | { 91 | function findValue() 92 | { 93 | var a = arguments; 94 | 95 | for (var i = 0; i < a.length; i++) 96 | { 97 | if (a[i] === null) 98 | continue; 99 | 100 | if (typeof(a[i]) == 'string' && a[i] != '') 101 | return a[i] + ''; 102 | 103 | if (typeof(a[i]) == 'object' && a[i].value != '') 104 | return a[i].value + ''; 105 | } 106 | 107 | return null; 108 | }; 109 | 110 | function findTagsByName(list, name, tagName) 111 | { 112 | var tags = document.getElementsByTagName(tagName); 113 | 114 | for (var i = 0; i < tags.length; i++) 115 | if (tags[i].getAttribute('name') == name) 116 | list.push(tags[i]); 117 | } 118 | 119 | var elements = [], 120 | highlighter = null, 121 | registered = {}, 122 | propertyName = 'innerHTML' 123 | ; 124 | 125 | // for some reason IE doesn't find by name, however it does see them just fine by tag name... 126 | findTagsByName(elements, name, 'pre'); 127 | findTagsByName(elements, name, 'textarea'); 128 | 129 | if (elements.length === 0) 130 | return; 131 | 132 | for (var i = 0; i < elements.length; i++) 133 | { 134 | var element = elements[i], 135 | params = findValue( 136 | element.attributes['class'], element.className, 137 | element.attributes['language'], element.language 138 | ), 139 | language = '' 140 | ; 141 | 142 | if (params === null) 143 | continue; 144 | 145 | params = dp.SyntaxHighlighter.parseParams( 146 | params, 147 | showGutter, 148 | showControls, 149 | collapseAll, 150 | firstLine, 151 | showColumns 152 | ); 153 | 154 | SyntaxHighlighter.highlight(params, element); 155 | } 156 | } 157 | }; 158 | -------------------------------------------------------------------------------- /js/lib/syntaxhighlighter/styles/shCore.css: -------------------------------------------------------------------------------- 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 | .syntaxhighlighter a, 18 | .syntaxhighlighter div, 19 | .syntaxhighlighter code, 20 | .syntaxhighlighter table, 21 | .syntaxhighlighter table td, 22 | .syntaxhighlighter table tr, 23 | .syntaxhighlighter table tbody, 24 | .syntaxhighlighter table thead, 25 | .syntaxhighlighter table caption, 26 | .syntaxhighlighter textarea { 27 | -moz-border-radius: 0 0 0 0 !important; 28 | -webkit-border-radius: 0 0 0 0 !important; 29 | background: none !important; 30 | border: 0 !important; 31 | bottom: auto !important; 32 | float: none !important; 33 | height: auto !important; 34 | left: auto !important; 35 | line-height: 1.1em !important; 36 | margin: 0 !important; 37 | outline: 0 !important; 38 | overflow: visible !important; 39 | padding: 0 !important; 40 | position: static !important; 41 | right: auto !important; 42 | text-align: left !important; 43 | top: auto !important; 44 | vertical-align: baseline !important; 45 | width: auto !important; 46 | box-sizing: content-box !important; 47 | font-family: "Consolas", "Bitstream Vera Sans Mono", "Courier New", Courier, monospace !important; 48 | font-weight: normal !important; 49 | font-style: normal !important; 50 | font-size: 1em !important; 51 | min-height: inherit !important; 52 | min-height: auto !important; 53 | } 54 | 55 | .syntaxhighlighter { 56 | width: 100% !important; 57 | margin: 1em 0 1em 0 !important; 58 | position: relative !important; 59 | overflow: auto !important; 60 | font-size: 1em !important; 61 | } 62 | .syntaxhighlighter.source { 63 | overflow: hidden !important; 64 | } 65 | .syntaxhighlighter .bold { 66 | font-weight: bold !important; 67 | } 68 | .syntaxhighlighter .italic { 69 | font-style: italic !important; 70 | } 71 | .syntaxhighlighter .line { 72 | white-space: pre !important; 73 | } 74 | .syntaxhighlighter table { 75 | width: 100% !important; 76 | } 77 | .syntaxhighlighter table caption { 78 | text-align: left !important; 79 | padding: .5em 0 0.5em 1em !important; 80 | } 81 | .syntaxhighlighter table td.code { 82 | width: 100% !important; 83 | } 84 | .syntaxhighlighter table td.code .container { 85 | position: relative !important; 86 | } 87 | .syntaxhighlighter table td.code .container textarea { 88 | box-sizing: border-box !important; 89 | position: absolute !important; 90 | left: 0 !important; 91 | top: 0 !important; 92 | width: 100% !important; 93 | height: 100% !important; 94 | border: none !important; 95 | background: white !important; 96 | padding-left: 1em !important; 97 | overflow: hidden !important; 98 | white-space: pre !important; 99 | } 100 | .syntaxhighlighter table td.gutter .line { 101 | text-align: right !important; 102 | padding: 0 0.5em 0 1em !important; 103 | } 104 | .syntaxhighlighter table td.code .line { 105 | padding: 0 1em !important; 106 | } 107 | .syntaxhighlighter.nogutter td.code .container textarea, .syntaxhighlighter.nogutter td.code .line { 108 | padding-left: 0em !important; 109 | } 110 | .syntaxhighlighter.show { 111 | display: block !important; 112 | } 113 | .syntaxhighlighter.collapsed table { 114 | display: none !important; 115 | } 116 | .syntaxhighlighter.collapsed .toolbar { 117 | padding: 0.1em 0.8em 0em 0.8em !important; 118 | font-size: 1em !important; 119 | position: static !important; 120 | width: auto !important; 121 | height: auto !important; 122 | } 123 | .syntaxhighlighter.collapsed .toolbar span { 124 | display: inline !important; 125 | margin-right: 1em !important; 126 | } 127 | .syntaxhighlighter.collapsed .toolbar span a { 128 | padding: 0 !important; 129 | display: none !important; 130 | } 131 | .syntaxhighlighter.collapsed .toolbar span a.expandSource { 132 | display: inline !important; 133 | } 134 | .syntaxhighlighter .toolbar { 135 | position: absolute !important; 136 | right: 1px !important; 137 | top: 1px !important; 138 | width: 11px !important; 139 | height: 11px !important; 140 | font-size: 10px !important; 141 | z-index: 10 !important; 142 | } 143 | .syntaxhighlighter .toolbar span.title { 144 | display: inline !important; 145 | } 146 | .syntaxhighlighter .toolbar a { 147 | display: block !important; 148 | text-align: center !important; 149 | text-decoration: none !important; 150 | padding-top: 1px !important; 151 | } 152 | .syntaxhighlighter .toolbar a.expandSource { 153 | display: none !important; 154 | } 155 | .syntaxhighlighter.ie { 156 | font-size: .9em !important; 157 | padding: 1px 0 1px 0 !important; 158 | } 159 | .syntaxhighlighter.ie .toolbar { 160 | line-height: 8px !important; 161 | } 162 | .syntaxhighlighter.ie .toolbar a { 163 | padding-top: 0px !important; 164 | } 165 | .syntaxhighlighter.printing .line.alt1 .content, 166 | .syntaxhighlighter.printing .line.alt2 .content, 167 | .syntaxhighlighter.printing .line.highlighted .number, 168 | .syntaxhighlighter.printing .line.highlighted.alt1 .content, 169 | .syntaxhighlighter.printing .line.highlighted.alt2 .content { 170 | background: none !important; 171 | } 172 | .syntaxhighlighter.printing .line .number { 173 | color: #bbbbbb !important; 174 | } 175 | .syntaxhighlighter.printing .line .content { 176 | color: black !important; 177 | } 178 | .syntaxhighlighter.printing .toolbar { 179 | display: none !important; 180 | } 181 | .syntaxhighlighter.printing a { 182 | text-decoration: none !important; 183 | } 184 | .syntaxhighlighter.printing .plain, .syntaxhighlighter.printing .plain a { 185 | color: black !important; 186 | } 187 | .syntaxhighlighter.printing .comments, .syntaxhighlighter.printing .comments a { 188 | color: #008200 !important; 189 | } 190 | .syntaxhighlighter.printing .string, .syntaxhighlighter.printing .string a { 191 | color: blue !important; 192 | } 193 | .syntaxhighlighter.printing .keyword { 194 | color: #006699 !important; 195 | font-weight: bold !important; 196 | } 197 | .syntaxhighlighter.printing .preprocessor { 198 | color: gray !important; 199 | } 200 | .syntaxhighlighter.printing .variable { 201 | color: #aa7700 !important; 202 | } 203 | .syntaxhighlighter.printing .value { 204 | color: #009900 !important; 205 | } 206 | .syntaxhighlighter.printing .functions { 207 | color: #ff1493 !important; 208 | } 209 | .syntaxhighlighter.printing .constants { 210 | color: #0066cc !important; 211 | } 212 | .syntaxhighlighter.printing .script { 213 | font-weight: bold !important; 214 | } 215 | .syntaxhighlighter.printing .color1, .syntaxhighlighter.printing .color1 a { 216 | color: gray !important; 217 | } 218 | .syntaxhighlighter.printing .color2, .syntaxhighlighter.printing .color2 a { 219 | color: #ff1493 !important; 220 | } 221 | .syntaxhighlighter.printing .color3, .syntaxhighlighter.printing .color3 a { 222 | color: red !important; 223 | } 224 | .syntaxhighlighter.printing .break, .syntaxhighlighter.printing .break a { 225 | color: black !important; 226 | } 227 | -------------------------------------------------------------------------------- /js/lib/syntaxhighlighter/styles/shThemeDefault.css: -------------------------------------------------------------------------------- 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 | .syntaxhighlighter { 18 | background-color: white !important; 19 | } 20 | .syntaxhighlighter .line.alt1 { 21 | background-color: white !important; 22 | } 23 | .syntaxhighlighter .line.alt2 { 24 | background-color: white !important; 25 | } 26 | .syntaxhighlighter .line.highlighted.alt1, .syntaxhighlighter .line.highlighted.alt2 { 27 | background-color: #e0e0e0 !important; 28 | } 29 | .syntaxhighlighter .line.highlighted.number { 30 | color: black !important; 31 | } 32 | .syntaxhighlighter table caption { 33 | color: black !important; 34 | } 35 | .syntaxhighlighter .gutter { 36 | color: #afafaf !important; 37 | } 38 | .syntaxhighlighter .gutter .line { 39 | border-right: 3px solid #6ce26c !important; 40 | } 41 | .syntaxhighlighter .gutter .line.highlighted { 42 | background-color: #6ce26c !important; 43 | color: white !important; 44 | } 45 | .syntaxhighlighter.printing .line .content { 46 | border: none !important; 47 | } 48 | .syntaxhighlighter.collapsed { 49 | overflow: visible !important; 50 | } 51 | .syntaxhighlighter.collapsed .toolbar { 52 | color: blue !important; 53 | background: white !important; 54 | border: 1px solid #6ce26c !important; 55 | } 56 | .syntaxhighlighter.collapsed .toolbar a { 57 | color: blue !important; 58 | } 59 | .syntaxhighlighter.collapsed .toolbar a:hover { 60 | color: red !important; 61 | } 62 | .syntaxhighlighter .toolbar { 63 | color: white !important; 64 | background: #6ce26c !important; 65 | border: none !important; 66 | } 67 | .syntaxhighlighter .toolbar a { 68 | color: white !important; 69 | } 70 | .syntaxhighlighter .toolbar a:hover { 71 | color: black !important; 72 | } 73 | .syntaxhighlighter .plain, .syntaxhighlighter .plain a { 74 | color: black !important; 75 | } 76 | .syntaxhighlighter .comments, .syntaxhighlighter .comments a { 77 | color: #008200 !important; 78 | } 79 | .syntaxhighlighter .string, .syntaxhighlighter .string a { 80 | color: blue !important; 81 | } 82 | .syntaxhighlighter .keyword { 83 | color: #006699 !important; 84 | } 85 | .syntaxhighlighter .preprocessor { 86 | color: gray !important; 87 | } 88 | .syntaxhighlighter .variable { 89 | color: #aa7700 !important; 90 | } 91 | .syntaxhighlighter .value { 92 | color: #009900 !important; 93 | } 94 | .syntaxhighlighter .functions { 95 | color: #ff1493 !important; 96 | } 97 | .syntaxhighlighter .constants { 98 | color: #0066cc !important; 99 | } 100 | .syntaxhighlighter .script { 101 | font-weight: bold !important; 102 | color: #006699 !important; 103 | background-color: none !important; 104 | } 105 | .syntaxhighlighter .color1, .syntaxhighlighter .color1 a { 106 | color: gray !important; 107 | } 108 | .syntaxhighlighter .color2, .syntaxhighlighter .color2 a { 109 | color: #ff1493 !important; 110 | } 111 | .syntaxhighlighter .color3, .syntaxhighlighter .color3 a { 112 | color: red !important; 113 | } 114 | 115 | .syntaxhighlighter .keyword { 116 | font-weight: bold !important; 117 | } 118 | -------------------------------------------------------------------------------- /js/lib/syntaxhighlighter/styles/shThemeDjango.css: -------------------------------------------------------------------------------- 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 | .syntaxhighlighter { 18 | background-color: #0a2b1d !important; 19 | } 20 | .syntaxhighlighter .line.alt1 { 21 | background-color: #0a2b1d !important; 22 | } 23 | .syntaxhighlighter .line.alt2 { 24 | background-color: #0a2b1d !important; 25 | } 26 | .syntaxhighlighter .line.highlighted.alt1, .syntaxhighlighter .line.highlighted.alt2 { 27 | background-color: #233729 !important; 28 | } 29 | .syntaxhighlighter .line.highlighted.number { 30 | color: white !important; 31 | } 32 | .syntaxhighlighter table caption { 33 | color: #f8f8f8 !important; 34 | } 35 | .syntaxhighlighter .gutter { 36 | color: #497958 !important; 37 | } 38 | .syntaxhighlighter .gutter .line { 39 | border-right: 3px solid #41a83e !important; 40 | } 41 | .syntaxhighlighter .gutter .line.highlighted { 42 | background-color: #41a83e !important; 43 | color: #0a2b1d !important; 44 | } 45 | .syntaxhighlighter.printing .line .content { 46 | border: none !important; 47 | } 48 | .syntaxhighlighter.collapsed { 49 | overflow: visible !important; 50 | } 51 | .syntaxhighlighter.collapsed .toolbar { 52 | color: #96dd3b !important; 53 | background: black !important; 54 | border: 1px solid #41a83e !important; 55 | } 56 | .syntaxhighlighter.collapsed .toolbar a { 57 | color: #96dd3b !important; 58 | } 59 | .syntaxhighlighter.collapsed .toolbar a:hover { 60 | color: white !important; 61 | } 62 | .syntaxhighlighter .toolbar { 63 | color: white !important; 64 | background: #41a83e !important; 65 | border: none !important; 66 | } 67 | .syntaxhighlighter .toolbar a { 68 | color: white !important; 69 | } 70 | .syntaxhighlighter .toolbar a:hover { 71 | color: #ffe862 !important; 72 | } 73 | .syntaxhighlighter .plain, .syntaxhighlighter .plain a { 74 | color: #f8f8f8 !important; 75 | } 76 | .syntaxhighlighter .comments, .syntaxhighlighter .comments a { 77 | color: #336442 !important; 78 | } 79 | .syntaxhighlighter .string, .syntaxhighlighter .string a { 80 | color: #9df39f !important; 81 | } 82 | .syntaxhighlighter .keyword { 83 | color: #96dd3b !important; 84 | } 85 | .syntaxhighlighter .preprocessor { 86 | color: #91bb9e !important; 87 | } 88 | .syntaxhighlighter .variable { 89 | color: #ffaa3e !important; 90 | } 91 | .syntaxhighlighter .value { 92 | color: #f7e741 !important; 93 | } 94 | .syntaxhighlighter .functions { 95 | color: #ffaa3e !important; 96 | } 97 | .syntaxhighlighter .constants { 98 | color: #e0e8ff !important; 99 | } 100 | .syntaxhighlighter .script { 101 | font-weight: bold !important; 102 | color: #96dd3b !important; 103 | background-color: none !important; 104 | } 105 | .syntaxhighlighter .color1, .syntaxhighlighter .color1 a { 106 | color: #eb939a !important; 107 | } 108 | .syntaxhighlighter .color2, .syntaxhighlighter .color2 a { 109 | color: #91bb9e !important; 110 | } 111 | .syntaxhighlighter .color3, .syntaxhighlighter .color3 a { 112 | color: #edef7d !important; 113 | } 114 | 115 | .syntaxhighlighter .comments { 116 | font-style: italic !important; 117 | } 118 | .syntaxhighlighter .keyword { 119 | font-weight: bold !important; 120 | } 121 | -------------------------------------------------------------------------------- /js/lib/syntaxhighlighter/styles/shThemeEclipse.css: -------------------------------------------------------------------------------- 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 | .syntaxhighlighter { 18 | background-color: white !important; 19 | } 20 | .syntaxhighlighter .line.alt1 { 21 | background-color: white !important; 22 | } 23 | .syntaxhighlighter .line.alt2 { 24 | background-color: white !important; 25 | } 26 | .syntaxhighlighter .line.highlighted.alt1, .syntaxhighlighter .line.highlighted.alt2 { 27 | background-color: #c3defe !important; 28 | } 29 | .syntaxhighlighter .line.highlighted.number { 30 | color: white !important; 31 | } 32 | .syntaxhighlighter table caption { 33 | color: black !important; 34 | } 35 | .syntaxhighlighter .gutter { 36 | color: #787878 !important; 37 | } 38 | .syntaxhighlighter .gutter .line { 39 | border-right: 3px solid #d4d0c8 !important; 40 | } 41 | .syntaxhighlighter .gutter .line.highlighted { 42 | background-color: #d4d0c8 !important; 43 | color: white !important; 44 | } 45 | .syntaxhighlighter.printing .line .content { 46 | border: none !important; 47 | } 48 | .syntaxhighlighter.collapsed { 49 | overflow: visible !important; 50 | } 51 | .syntaxhighlighter.collapsed .toolbar { 52 | color: #3f5fbf !important; 53 | background: white !important; 54 | border: 1px solid #d4d0c8 !important; 55 | } 56 | .syntaxhighlighter.collapsed .toolbar a { 57 | color: #3f5fbf !important; 58 | } 59 | .syntaxhighlighter.collapsed .toolbar a:hover { 60 | color: #aa7700 !important; 61 | } 62 | .syntaxhighlighter .toolbar { 63 | color: #a0a0a0 !important; 64 | background: #d4d0c8 !important; 65 | border: none !important; 66 | } 67 | .syntaxhighlighter .toolbar a { 68 | color: #a0a0a0 !important; 69 | } 70 | .syntaxhighlighter .toolbar a:hover { 71 | color: red !important; 72 | } 73 | .syntaxhighlighter .plain, .syntaxhighlighter .plain a { 74 | color: black !important; 75 | } 76 | .syntaxhighlighter .comments, .syntaxhighlighter .comments a { 77 | color: #3f5fbf !important; 78 | } 79 | .syntaxhighlighter .string, .syntaxhighlighter .string a { 80 | color: #2a00ff !important; 81 | } 82 | .syntaxhighlighter .keyword { 83 | color: #7f0055 !important; 84 | } 85 | .syntaxhighlighter .preprocessor { 86 | color: #646464 !important; 87 | } 88 | .syntaxhighlighter .variable { 89 | color: #aa7700 !important; 90 | } 91 | .syntaxhighlighter .value { 92 | color: #009900 !important; 93 | } 94 | .syntaxhighlighter .functions { 95 | color: #ff1493 !important; 96 | } 97 | .syntaxhighlighter .constants { 98 | color: #0066cc !important; 99 | } 100 | .syntaxhighlighter .script { 101 | font-weight: bold !important; 102 | color: #7f0055 !important; 103 | background-color: none !important; 104 | } 105 | .syntaxhighlighter .color1, .syntaxhighlighter .color1 a { 106 | color: gray !important; 107 | } 108 | .syntaxhighlighter .color2, .syntaxhighlighter .color2 a { 109 | color: #ff1493 !important; 110 | } 111 | .syntaxhighlighter .color3, .syntaxhighlighter .color3 a { 112 | color: red !important; 113 | } 114 | 115 | .syntaxhighlighter .keyword { 116 | font-weight: bold !important; 117 | } 118 | .syntaxhighlighter .xml .keyword { 119 | color: #3f7f7f !important; 120 | font-weight: normal !important; 121 | } 122 | .syntaxhighlighter .xml .color1, .syntaxhighlighter .xml .color1 a { 123 | color: #7f007f !important; 124 | } 125 | .syntaxhighlighter .xml .string { 126 | font-style: italic !important; 127 | color: #2a00ff !important; 128 | } 129 | -------------------------------------------------------------------------------- /js/lib/syntaxhighlighter/styles/shThemeEmacs.css: -------------------------------------------------------------------------------- 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 | .syntaxhighlighter { 18 | background-color: black !important; 19 | } 20 | .syntaxhighlighter .line.alt1 { 21 | background-color: black !important; 22 | } 23 | .syntaxhighlighter .line.alt2 { 24 | background-color: black !important; 25 | } 26 | .syntaxhighlighter .line.highlighted.alt1, .syntaxhighlighter .line.highlighted.alt2 { 27 | background-color: #2a3133 !important; 28 | } 29 | .syntaxhighlighter .line.highlighted.number { 30 | color: white !important; 31 | } 32 | .syntaxhighlighter table caption { 33 | color: #d3d3d3 !important; 34 | } 35 | .syntaxhighlighter .gutter { 36 | color: #d3d3d3 !important; 37 | } 38 | .syntaxhighlighter .gutter .line { 39 | border-right: 3px solid #990000 !important; 40 | } 41 | .syntaxhighlighter .gutter .line.highlighted { 42 | background-color: #990000 !important; 43 | color: black !important; 44 | } 45 | .syntaxhighlighter.printing .line .content { 46 | border: none !important; 47 | } 48 | .syntaxhighlighter.collapsed { 49 | overflow: visible !important; 50 | } 51 | .syntaxhighlighter.collapsed .toolbar { 52 | color: #ebdb8d !important; 53 | background: black !important; 54 | border: 1px solid #990000 !important; 55 | } 56 | .syntaxhighlighter.collapsed .toolbar a { 57 | color: #ebdb8d !important; 58 | } 59 | .syntaxhighlighter.collapsed .toolbar a:hover { 60 | color: #ff7d27 !important; 61 | } 62 | .syntaxhighlighter .toolbar { 63 | color: white !important; 64 | background: #990000 !important; 65 | border: none !important; 66 | } 67 | .syntaxhighlighter .toolbar a { 68 | color: white !important; 69 | } 70 | .syntaxhighlighter .toolbar a:hover { 71 | color: #9ccff4 !important; 72 | } 73 | .syntaxhighlighter .plain, .syntaxhighlighter .plain a { 74 | color: #d3d3d3 !important; 75 | } 76 | .syntaxhighlighter .comments, .syntaxhighlighter .comments a { 77 | color: #ff7d27 !important; 78 | } 79 | .syntaxhighlighter .string, .syntaxhighlighter .string a { 80 | color: #ff9e7b !important; 81 | } 82 | .syntaxhighlighter .keyword { 83 | color: aqua !important; 84 | } 85 | .syntaxhighlighter .preprocessor { 86 | color: #aec4de !important; 87 | } 88 | .syntaxhighlighter .variable { 89 | color: #ffaa3e !important; 90 | } 91 | .syntaxhighlighter .value { 92 | color: #009900 !important; 93 | } 94 | .syntaxhighlighter .functions { 95 | color: #81cef9 !important; 96 | } 97 | .syntaxhighlighter .constants { 98 | color: #ff9e7b !important; 99 | } 100 | .syntaxhighlighter .script { 101 | font-weight: bold !important; 102 | color: aqua !important; 103 | background-color: none !important; 104 | } 105 | .syntaxhighlighter .color1, .syntaxhighlighter .color1 a { 106 | color: #ebdb8d !important; 107 | } 108 | .syntaxhighlighter .color2, .syntaxhighlighter .color2 a { 109 | color: #ff7d27 !important; 110 | } 111 | .syntaxhighlighter .color3, .syntaxhighlighter .color3 a { 112 | color: #aec4de !important; 113 | } 114 | -------------------------------------------------------------------------------- /js/lib/syntaxhighlighter/styles/shThemeFadeToGrey.css: -------------------------------------------------------------------------------- 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 | .syntaxhighlighter { 18 | background-color: #121212 !important; 19 | } 20 | .syntaxhighlighter .line.alt1 { 21 | background-color: #121212 !important; 22 | } 23 | .syntaxhighlighter .line.alt2 { 24 | background-color: #121212 !important; 25 | } 26 | .syntaxhighlighter .line.highlighted.alt1, .syntaxhighlighter .line.highlighted.alt2 { 27 | background-color: #2c2c29 !important; 28 | } 29 | .syntaxhighlighter .line.highlighted.number { 30 | color: white !important; 31 | } 32 | .syntaxhighlighter table caption { 33 | color: white !important; 34 | } 35 | .syntaxhighlighter .gutter { 36 | color: #afafaf !important; 37 | } 38 | .syntaxhighlighter .gutter .line { 39 | border-right: 3px solid #3185b9 !important; 40 | } 41 | .syntaxhighlighter .gutter .line.highlighted { 42 | background-color: #3185b9 !important; 43 | color: #121212 !important; 44 | } 45 | .syntaxhighlighter.printing .line .content { 46 | border: none !important; 47 | } 48 | .syntaxhighlighter.collapsed { 49 | overflow: visible !important; 50 | } 51 | .syntaxhighlighter.collapsed .toolbar { 52 | color: #3185b9 !important; 53 | background: black !important; 54 | border: 1px solid #3185b9 !important; 55 | } 56 | .syntaxhighlighter.collapsed .toolbar a { 57 | color: #3185b9 !important; 58 | } 59 | .syntaxhighlighter.collapsed .toolbar a:hover { 60 | color: #d01d33 !important; 61 | } 62 | .syntaxhighlighter .toolbar { 63 | color: white !important; 64 | background: #3185b9 !important; 65 | border: none !important; 66 | } 67 | .syntaxhighlighter .toolbar a { 68 | color: white !important; 69 | } 70 | .syntaxhighlighter .toolbar a:hover { 71 | color: #96daff !important; 72 | } 73 | .syntaxhighlighter .plain, .syntaxhighlighter .plain a { 74 | color: white !important; 75 | } 76 | .syntaxhighlighter .comments, .syntaxhighlighter .comments a { 77 | color: #696854 !important; 78 | } 79 | .syntaxhighlighter .string, .syntaxhighlighter .string a { 80 | color: #e3e658 !important; 81 | } 82 | .syntaxhighlighter .keyword { 83 | color: #d01d33 !important; 84 | } 85 | .syntaxhighlighter .preprocessor { 86 | color: #435a5f !important; 87 | } 88 | .syntaxhighlighter .variable { 89 | color: #898989 !important; 90 | } 91 | .syntaxhighlighter .value { 92 | color: #009900 !important; 93 | } 94 | .syntaxhighlighter .functions { 95 | color: #aaaaaa !important; 96 | } 97 | .syntaxhighlighter .constants { 98 | color: #96daff !important; 99 | } 100 | .syntaxhighlighter .script { 101 | font-weight: bold !important; 102 | color: #d01d33 !important; 103 | background-color: none !important; 104 | } 105 | .syntaxhighlighter .color1, .syntaxhighlighter .color1 a { 106 | color: #ffc074 !important; 107 | } 108 | .syntaxhighlighter .color2, .syntaxhighlighter .color2 a { 109 | color: #4a8cdb !important; 110 | } 111 | .syntaxhighlighter .color3, .syntaxhighlighter .color3 a { 112 | color: #96daff !important; 113 | } 114 | 115 | .syntaxhighlighter .functions { 116 | font-weight: bold !important; 117 | } 118 | -------------------------------------------------------------------------------- /js/lib/syntaxhighlighter/styles/shThemeMDUltra.css: -------------------------------------------------------------------------------- 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 | .syntaxhighlighter { 18 | background-color: #222222 !important; 19 | } 20 | .syntaxhighlighter .line.alt1 { 21 | background-color: #222222 !important; 22 | } 23 | .syntaxhighlighter .line.alt2 { 24 | background-color: #222222 !important; 25 | } 26 | .syntaxhighlighter .line.highlighted.alt1, .syntaxhighlighter .line.highlighted.alt2 { 27 | background-color: #253e5a !important; 28 | } 29 | .syntaxhighlighter .line.highlighted.number { 30 | color: white !important; 31 | } 32 | .syntaxhighlighter table caption { 33 | color: lime !important; 34 | } 35 | .syntaxhighlighter .gutter { 36 | color: #38566f !important; 37 | } 38 | .syntaxhighlighter .gutter .line { 39 | border-right: 3px solid #435a5f !important; 40 | } 41 | .syntaxhighlighter .gutter .line.highlighted { 42 | background-color: #435a5f !important; 43 | color: #222222 !important; 44 | } 45 | .syntaxhighlighter.printing .line .content { 46 | border: none !important; 47 | } 48 | .syntaxhighlighter.collapsed { 49 | overflow: visible !important; 50 | } 51 | .syntaxhighlighter.collapsed .toolbar { 52 | color: #428bdd !important; 53 | background: black !important; 54 | border: 1px solid #435a5f !important; 55 | } 56 | .syntaxhighlighter.collapsed .toolbar a { 57 | color: #428bdd !important; 58 | } 59 | .syntaxhighlighter.collapsed .toolbar a:hover { 60 | color: lime !important; 61 | } 62 | .syntaxhighlighter .toolbar { 63 | color: #aaaaff !important; 64 | background: #435a5f !important; 65 | border: none !important; 66 | } 67 | .syntaxhighlighter .toolbar a { 68 | color: #aaaaff !important; 69 | } 70 | .syntaxhighlighter .toolbar a:hover { 71 | color: #9ccff4 !important; 72 | } 73 | .syntaxhighlighter .plain, .syntaxhighlighter .plain a { 74 | color: lime !important; 75 | } 76 | .syntaxhighlighter .comments, .syntaxhighlighter .comments a { 77 | color: #428bdd !important; 78 | } 79 | .syntaxhighlighter .string, .syntaxhighlighter .string a { 80 | color: lime !important; 81 | } 82 | .syntaxhighlighter .keyword { 83 | color: #aaaaff !important; 84 | } 85 | .syntaxhighlighter .preprocessor { 86 | color: #8aa6c1 !important; 87 | } 88 | .syntaxhighlighter .variable { 89 | color: aqua !important; 90 | } 91 | .syntaxhighlighter .value { 92 | color: #f7e741 !important; 93 | } 94 | .syntaxhighlighter .functions { 95 | color: #ff8000 !important; 96 | } 97 | .syntaxhighlighter .constants { 98 | color: yellow !important; 99 | } 100 | .syntaxhighlighter .script { 101 | font-weight: bold !important; 102 | color: #aaaaff !important; 103 | background-color: none !important; 104 | } 105 | .syntaxhighlighter .color1, .syntaxhighlighter .color1 a { 106 | color: red !important; 107 | } 108 | .syntaxhighlighter .color2, .syntaxhighlighter .color2 a { 109 | color: yellow !important; 110 | } 111 | .syntaxhighlighter .color3, .syntaxhighlighter .color3 a { 112 | color: #ffaa3e !important; 113 | } 114 | -------------------------------------------------------------------------------- /js/lib/syntaxhighlighter/styles/shThemeMidnight.css: -------------------------------------------------------------------------------- 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 | .syntaxhighlighter { 18 | background-color: #0f192a !important; 19 | } 20 | .syntaxhighlighter .line.alt1 { 21 | background-color: #0f192a !important; 22 | } 23 | .syntaxhighlighter .line.alt2 { 24 | background-color: #0f192a !important; 25 | } 26 | .syntaxhighlighter .line.highlighted.alt1, .syntaxhighlighter .line.highlighted.alt2 { 27 | background-color: #253e5a !important; 28 | } 29 | .syntaxhighlighter .line.highlighted.number { 30 | color: #38566f !important; 31 | } 32 | .syntaxhighlighter table caption { 33 | color: #d1edff !important; 34 | } 35 | .syntaxhighlighter .gutter { 36 | color: #afafaf !important; 37 | } 38 | .syntaxhighlighter .gutter .line { 39 | border-right: 3px solid #435a5f !important; 40 | } 41 | .syntaxhighlighter .gutter .line.highlighted { 42 | background-color: #435a5f !important; 43 | color: #0f192a !important; 44 | } 45 | .syntaxhighlighter.printing .line .content { 46 | border: none !important; 47 | } 48 | .syntaxhighlighter.collapsed { 49 | overflow: visible !important; 50 | } 51 | .syntaxhighlighter.collapsed .toolbar { 52 | color: #428bdd !important; 53 | background: black !important; 54 | border: 1px solid #435a5f !important; 55 | } 56 | .syntaxhighlighter.collapsed .toolbar a { 57 | color: #428bdd !important; 58 | } 59 | .syntaxhighlighter.collapsed .toolbar a:hover { 60 | color: #1dc116 !important; 61 | } 62 | .syntaxhighlighter .toolbar { 63 | color: #d1edff !important; 64 | background: #435a5f !important; 65 | border: none !important; 66 | } 67 | .syntaxhighlighter .toolbar a { 68 | color: #d1edff !important; 69 | } 70 | .syntaxhighlighter .toolbar a:hover { 71 | color: #8aa6c1 !important; 72 | } 73 | .syntaxhighlighter .plain, .syntaxhighlighter .plain a { 74 | color: #d1edff !important; 75 | } 76 | .syntaxhighlighter .comments, .syntaxhighlighter .comments a { 77 | color: #428bdd !important; 78 | } 79 | .syntaxhighlighter .string, .syntaxhighlighter .string a { 80 | color: #1dc116 !important; 81 | } 82 | .syntaxhighlighter .keyword { 83 | color: #b43d3d !important; 84 | } 85 | .syntaxhighlighter .preprocessor { 86 | color: #8aa6c1 !important; 87 | } 88 | .syntaxhighlighter .variable { 89 | color: #ffaa3e !important; 90 | } 91 | .syntaxhighlighter .value { 92 | color: #f7e741 !important; 93 | } 94 | .syntaxhighlighter .functions { 95 | color: #ffaa3e !important; 96 | } 97 | .syntaxhighlighter .constants { 98 | color: #e0e8ff !important; 99 | } 100 | .syntaxhighlighter .script { 101 | font-weight: bold !important; 102 | color: #b43d3d !important; 103 | background-color: none !important; 104 | } 105 | .syntaxhighlighter .color1, .syntaxhighlighter .color1 a { 106 | color: #f8bb00 !important; 107 | } 108 | .syntaxhighlighter .color2, .syntaxhighlighter .color2 a { 109 | color: white !important; 110 | } 111 | .syntaxhighlighter .color3, .syntaxhighlighter .color3 a { 112 | color: #ffaa3e !important; 113 | } 114 | -------------------------------------------------------------------------------- /js/lib/syntaxhighlighter/styles/shThemeRDark.css: -------------------------------------------------------------------------------- 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 | .syntaxhighlighter { 18 | background-color: #1b2426 !important; 19 | } 20 | .syntaxhighlighter .line.alt1 { 21 | background-color: #1b2426 !important; 22 | } 23 | .syntaxhighlighter .line.alt2 { 24 | background-color: #1b2426 !important; 25 | } 26 | .syntaxhighlighter .line.highlighted.alt1, .syntaxhighlighter .line.highlighted.alt2 { 27 | background-color: #323e41 !important; 28 | } 29 | .syntaxhighlighter .line.highlighted.number { 30 | color: #b9bdb6 !important; 31 | } 32 | .syntaxhighlighter table caption { 33 | color: #b9bdb6 !important; 34 | } 35 | .syntaxhighlighter .gutter { 36 | color: #afafaf !important; 37 | } 38 | .syntaxhighlighter .gutter .line { 39 | border-right: 3px solid #435a5f !important; 40 | } 41 | .syntaxhighlighter .gutter .line.highlighted { 42 | background-color: #435a5f !important; 43 | color: #1b2426 !important; 44 | } 45 | .syntaxhighlighter.printing .line .content { 46 | border: none !important; 47 | } 48 | .syntaxhighlighter.collapsed { 49 | overflow: visible !important; 50 | } 51 | .syntaxhighlighter.collapsed .toolbar { 52 | color: #5ba1cf !important; 53 | background: black !important; 54 | border: 1px solid #435a5f !important; 55 | } 56 | .syntaxhighlighter.collapsed .toolbar a { 57 | color: #5ba1cf !important; 58 | } 59 | .syntaxhighlighter.collapsed .toolbar a:hover { 60 | color: #5ce638 !important; 61 | } 62 | .syntaxhighlighter .toolbar { 63 | color: white !important; 64 | background: #435a5f !important; 65 | border: none !important; 66 | } 67 | .syntaxhighlighter .toolbar a { 68 | color: white !important; 69 | } 70 | .syntaxhighlighter .toolbar a:hover { 71 | color: #e0e8ff !important; 72 | } 73 | .syntaxhighlighter .plain, .syntaxhighlighter .plain a { 74 | color: #b9bdb6 !important; 75 | } 76 | .syntaxhighlighter .comments, .syntaxhighlighter .comments a { 77 | color: #878a85 !important; 78 | } 79 | .syntaxhighlighter .string, .syntaxhighlighter .string a { 80 | color: #5ce638 !important; 81 | } 82 | .syntaxhighlighter .keyword { 83 | color: #5ba1cf !important; 84 | } 85 | .syntaxhighlighter .preprocessor { 86 | color: #435a5f !important; 87 | } 88 | .syntaxhighlighter .variable { 89 | color: #ffaa3e !important; 90 | } 91 | .syntaxhighlighter .value { 92 | color: #009900 !important; 93 | } 94 | .syntaxhighlighter .functions { 95 | color: #ffaa3e !important; 96 | } 97 | .syntaxhighlighter .constants { 98 | color: #e0e8ff !important; 99 | } 100 | .syntaxhighlighter .script { 101 | font-weight: bold !important; 102 | color: #5ba1cf !important; 103 | background-color: none !important; 104 | } 105 | .syntaxhighlighter .color1, .syntaxhighlighter .color1 a { 106 | color: #e0e8ff !important; 107 | } 108 | .syntaxhighlighter .color2, .syntaxhighlighter .color2 a { 109 | color: white !important; 110 | } 111 | .syntaxhighlighter .color3, .syntaxhighlighter .color3 a { 112 | color: #ffaa3e !important; 113 | } 114 | -------------------------------------------------------------------------------- /js/lib/syntaxhighlighter/tests/.rvmrc: -------------------------------------------------------------------------------- 1 | rvm 1.8.7-p249@copydeca -------------------------------------------------------------------------------- /js/lib/syntaxhighlighter/tests/brushes/sass.html: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /js/lib/syntaxhighlighter/tests/brushes_tests.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SyntaxHighlighter Brushes Tests 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 58 | 59 | 134 | 135 | 136 | 137 | -------------------------------------------------------------------------------- /js/lib/syntaxhighlighter/tests/cases/001_basic.html: -------------------------------------------------------------------------------- 1 |2 | /** 3 | * multiline comment 4 | */ 5 | 6 | text 7 | 8 | // single line comment 9 | 10 | text 11 | 12 | "string" text 'string' text "string" 13 | "string with \" escape" text 'string with \' escape' text "string with \" escape" 14 | 15 | var code = '\ 16 | function helloWorld()\ 17 | {\ 18 | // this is great!\ 19 | for(var i = 0; i <= 1; i++)\ 20 | alert("yay");\ 21 | }\ 22 | '; 23 |24 | 25 | 43 | -------------------------------------------------------------------------------- /js/lib/syntaxhighlighter/tests/cases/002_brushes.html: -------------------------------------------------------------------------------- 1 |2 |28 | 29 | 51 | -------------------------------------------------------------------------------- /js/lib/syntaxhighlighter/tests/cases/003_script_tag.html: -------------------------------------------------------------------------------- 1 |test3 |test4 |test5 |test6 |test7 |test8 |test9 |test10 |test11 |test12 |test13 |test14 |test15 |test16 |test17 |test18 |test19 |test20 |test21 |test22 |test23 |test24 |test25 |test26 |test27 |2 | 22 |23 | 24 | 43 | -------------------------------------------------------------------------------- /js/lib/syntaxhighlighter/tests/cases/004_url_parsing.html: -------------------------------------------------------------------------------- 1 |2 | /** 3 | * Please see <http://www.alexgorbatchev.come/?test=1&y=2> 4 | */ 5 | var home = "http://www.alexgorbatchev.come/?test=1&y=2;test/1/2/3;"; 6 | // < http://www.gnu.org/licenses/?test=1&y=2 >. 7 | 8 | // Test embedded URLs that terminate at a left angle bracket. 9 | // See bug #28: http://bitbucket.org/alexg/syntaxhighlighter/issue/28/ 10 | "12 | 13 | -------------------------------------------------------------------------------- /js/lib/syntaxhighlighter/tests/cases/005_no_gutter.html: -------------------------------------------------------------------------------- 1 |http://www.example.com/song2.mp3 "; 11 |2 | public Image getImage(URL url, String name) { 3 | try { 4 | /* 5 | Regular multiline comment. 6 | */ 7 | return getImage(new URL(url, name)); 8 | } catch (MalformedURLException e) { 9 | return null; 10 | } 11 | } 12 |13 | 14 | 34 | -------------------------------------------------------------------------------- /js/lib/syntaxhighlighter/tests/cases/006_pad_line_numbers.html: -------------------------------------------------------------------------------- 1 |2 | /** 3 | * Returns an Image object that can then be painted on the screen. 4 | * The url argument must specify an absolute {@link URL}. The name 5 | * argument is a specifier that is relative to the url argument. 6 | * 7 | * @param url an absolute URL giving the base location of the image 8 | * @param name the location of the image, relative to the url argument 9 | * @return the image at the specified URL 10 | * @see Image 11 | */ 12 |13 | 14 | 40 | -------------------------------------------------------------------------------- /js/lib/syntaxhighlighter/tests/cases/007_collapse.html: -------------------------------------------------------------------------------- 1 |2 | /** 3 | * Returns an Image object that can then be painted on the screen. 4 | * The url argument must specify an absolute {@link URL}. The name 5 | * argument is a specifier that is relative to the url argument. 6 | * 7 | * @param url an absolute URL giving the base location of the image 8 | * @param name the location of the image, relative to the url argument 9 | * @return the image at the specified URL 10 | * @see Image 11 | */ 12 |13 | 14 |15 | /** 16 | * Returns an Image object that can then be painted on the screen. 17 | * The url argument must specify an absolute {@link URL}. The name 18 | * argument is a specifier that is relative to the url argument. 19 | * 20 | * @param url an absolute URL giving the base location of the image 21 | * @param name the location of the image, relative to the url argument 22 | * @return the image at the specified URL 23 | * @see Image 24 | */ 25 |26 | 27 | 61 | -------------------------------------------------------------------------------- /js/lib/syntaxhighlighter/tests/cases/007_collapse_interaction.html: -------------------------------------------------------------------------------- 1 | 45 | -------------------------------------------------------------------------------- /js/lib/syntaxhighlighter/tests/cases/008_first_line.html: -------------------------------------------------------------------------------- 1 |2 | partial class Foo 3 | { 4 | function test() 5 | { 6 | yield return; 7 | } 8 | } 9 |10 | 11 | 30 | -------------------------------------------------------------------------------- /js/lib/syntaxhighlighter/tests/cases/009_class_name.html: -------------------------------------------------------------------------------- 1 |2 | public Image getImage(URL url, String name) { 3 | try { 4 | /* 5 | Regular multiline comment. 6 | */ 7 | return getImage(new URL(url, name)); 8 | } catch (MalformedURLException e) { 9 | return null; 10 | } 11 | } 12 |13 | 14 | 33 | -------------------------------------------------------------------------------- /js/lib/syntaxhighlighter/tests/cases/010_highlight.html: -------------------------------------------------------------------------------- 1 |2 | public function validateStrongPassword(password:String):Boolean 3 | { 4 | if (password == null || password.length <= 0) 5 | { 6 | return false; 7 | } 8 | 9 | return STRONG_PASSWORD_PATTERN.test(password); 10 | } 11 |12 | 40 | 41 | 71 | -------------------------------------------------------------------------------- /js/lib/syntaxhighlighter/tests/cases/011_smart_tabs.html: -------------------------------------------------------------------------------- 1 |2 | the words in this paragraph 3 | should look like they are 4 | evenly spaced between columns 5 |6 | 7 |8 | the words in this paragraph 9 | should look like they are 10 | evenly spaced between columns 11 |12 | 13 |14 | the words in this paragraph 15 | should look out of whack 16 | because smart tabs are disabled 17 |18 | 19 | 99 | -------------------------------------------------------------------------------- /js/lib/syntaxhighlighter/tests/cases/012_server_side.html: -------------------------------------------------------------------------------- 1 | 9 | 10 |11 |12 | 13 | -------------------------------------------------------------------------------- /js/lib/syntaxhighlighter/tests/cases/013_html_script.html: -------------------------------------------------------------------------------- 1 |2 | <hello> 3 | <% 4 | package free.cafekiwi.gotapi; 5 | %> 6 | </hello> 7 | 8 | 11 | <%= print(); %> 12 |13 | 14 | -------------------------------------------------------------------------------- /js/lib/syntaxhighlighter/tests/cases/014_legacy.html: -------------------------------------------------------------------------------- 1 |basic check2 |no toolbar3 |no gutter4 |collapsed5 |first line6 | 7 | 71 | -------------------------------------------------------------------------------- /js/lib/syntaxhighlighter/tests/commonjs_tests.js: -------------------------------------------------------------------------------- 1 | /** 2 | * This is a CommonJS compatibility test. You can run this file with node. 3 | */ 4 | require.paths.unshift(__dirname + '/../scripts'); 5 | 6 | var sys = require('sys'), 7 | shSyntaxHighlighter = require('shCore').SyntaxHighlighter, 8 | code = 'test', 9 | brushes = [ 10 | 'AS3', 11 | 'AppleScript', 12 | 'Bash', 13 | 'CSharp', 14 | 'ColdFusion', 15 | 'Cpp', 16 | 'Css', 17 | 'Delphi', 18 | 'Diff', 19 | 'Erlang', 20 | 'Groovy', 21 | 'JScript', 22 | 'Java', 23 | 'JavaFX', 24 | 'Perl', 25 | 'Php', 26 | 'Plain', 27 | 'PowerShell', 28 | 'Python', 29 | 'Ruby', 30 | 'Sass', 31 | 'Scala', 32 | 'Sql', 33 | 'Vb', 34 | 'Xml' 35 | ] 36 | ; 37 | 38 | brushes.sort(); 39 | 40 | for (var i = 0; i < brushes.length; i++) 41 | { 42 | var name = brushes[i], 43 | brush = require('shBrush' + name).Brush 44 | ; 45 | 46 | brush = new brush(); 47 | brush.init({ toolbar: false }); 48 | 49 | var result = brush.getHtml(code); 50 | 51 | sys.puts(name + (result != null ? ': ok' : ': NOT OK')); 52 | } 53 | -------------------------------------------------------------------------------- /js/lib/syntaxhighlighter/tests/js/qunit.css: -------------------------------------------------------------------------------- 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 | 18 | ol#qunit-tests { 19 | font-family:"Helvetica Neue Light", "HelveticaNeue-Light", "Helvetica Neue", Calibri, Helvetica, Arial; 20 | margin:0; 21 | padding:0; 22 | list-style-position:inside; 23 | 24 | font-size: smaller; 25 | } 26 | ol#qunit-tests li{ 27 | padding:0.4em 0.5em 0.4em 2.5em; 28 | border-bottom:1px solid #fff; 29 | font-size:small; 30 | list-style-position:inside; 31 | } 32 | ol#qunit-tests li ol{ 33 | box-shadow: inset 0px 2px 13px #999; 34 | -moz-box-shadow: inset 0px 2px 13px #999; 35 | -webkit-box-shadow: inset 0px 2px 13px #999; 36 | margin-top:0.5em; 37 | margin-left:0; 38 | padding:0.5em; 39 | background-color:#fff; 40 | border-radius:15px; 41 | -moz-border-radius: 15px; 42 | -webkit-border-radius: 15px; 43 | } 44 | ol#qunit-tests li li{ 45 | border-bottom:none; 46 | margin:0.5em; 47 | background-color:#fff; 48 | list-style-position: inside; 49 | padding:0.4em 0.5em 0.4em 0.5em; 50 | } 51 | 52 | ol#qunit-tests li li.pass{ 53 | border-left:26px solid #C6E746; 54 | background-color:#fff; 55 | color:#5E740B; 56 | } 57 | ol#qunit-tests li li.fail{ 58 | border-left:26px solid #EE5757; 59 | background-color:#fff; 60 | color:#710909; 61 | } 62 | ol#qunit-tests li.pass{ 63 | background-color:#D2E0E6; 64 | color:#528CE0; 65 | } 66 | ol#qunit-tests li.fail{ 67 | background-color:#EE5757; 68 | color:#000; 69 | } 70 | ol#qunit-tests li strong { 71 | cursor:pointer; 72 | } 73 | h1#qunit-header{ 74 | background-color:#0d3349; 75 | margin:0; 76 | padding:0.5em 0 0.5em 1em; 77 | color:#fff; 78 | font-family:"Helvetica Neue Light", "HelveticaNeue-Light", "Helvetica Neue", Calibri, Helvetica, Arial; 79 | border-top-right-radius:15px; 80 | border-top-left-radius:15px; 81 | -moz-border-radius-topright:15px; 82 | -moz-border-radius-topleft:15px; 83 | -webkit-border-top-right-radius:15px; 84 | -webkit-border-top-left-radius:15px; 85 | text-shadow: rgba(0, 0, 0, 0.5) 4px 4px 1px; 86 | } 87 | h2#qunit-banner{ 88 | font-family:"Helvetica Neue Light", "HelveticaNeue-Light", "Helvetica Neue", Calibri, Helvetica, Arial; 89 | height:5px; 90 | margin:0; 91 | padding:0; 92 | } 93 | h2#qunit-banner.qunit-pass{ 94 | background-color:#C6E746; 95 | } 96 | h2#qunit-banner.qunit-fail, #qunit-testrunner-toolbar { 97 | background-color:#EE5757; 98 | } 99 | #qunit-testrunner-toolbar { 100 | font-family:"Helvetica Neue Light", "HelveticaNeue-Light", "Helvetica Neue", Calibri, Helvetica, Arial; 101 | padding:0; 102 | /*width:80%;*/ 103 | padding:0em 0 0.5em 2em; 104 | font-size: small; 105 | } 106 | h2#qunit-userAgent { 107 | font-family:"Helvetica Neue Light", "HelveticaNeue-Light", "Helvetica Neue", Calibri, Helvetica, Arial; 108 | background-color:#2b81af; 109 | margin:0; 110 | padding:0; 111 | color:#fff; 112 | font-size: small; 113 | padding:0.5em 0 0.5em 2.5em; 114 | text-shadow: rgba(0, 0, 0, 0.5) 2px 2px 1px; 115 | } 116 | p#qunit-testresult{ 117 | font-family:"Helvetica Neue Light", "HelveticaNeue-Light", "Helvetica Neue", Calibri, Helvetica, Arial; 118 | margin:0; 119 | font-size: small; 120 | color:#2b81af; 121 | border-bottom-right-radius:15px; 122 | border-bottom-left-radius:15px; 123 | -moz-border-radius-bottomright:15px; 124 | -moz-border-radius-bottomleft:15px; 125 | -webkit-border-bottom-right-radius:15px; 126 | -webkit-border-bottom-left-radius:15px; 127 | background-color:#D2E0E6; 128 | padding:0.5em 0.5em 0.5em 2.5em; 129 | } 130 | strong b.fail{ 131 | color:#710909; 132 | } 133 | strong b.pass{ 134 | color:#5E740B; 135 | } 136 | -------------------------------------------------------------------------------- /js/lib/syntaxhighlighter/tests/theme_tests.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 |SyntaxHighlighter Theme Tests 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 26 | 27 | 67 | 68 | 132 | 133 | 134 | 135 | -------------------------------------------------------------------------------- /js/lib/syntaxhighlighter/tests/webrick.rb: -------------------------------------------------------------------------------- 1 | require 'webrick' 2 | include WEBrick 3 | 4 | s = HTTPServer.new( 5 | :Port => 2010, 6 | :DocumentRoot => Dir::pwd 7 | ) 8 | s.mount('/sh/scripts', WEBrick::HTTPServlet::FileHandler, '../scripts') 9 | s.mount('/sh/styles', WEBrick::HTTPServlet::FileHandler, '../styles') 10 | trap('INT') { s.stop } 11 | s.start 12 | -------------------------------------------------------------------------------- /js/lib/syntaxhighlighter/tests/webrick.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | ruby webrick.rb 3 | -------------------------------------------------------------------------------- /js/site.js: -------------------------------------------------------------------------------- 1 | $(function() { 2 | 3 | SyntaxHighlighter.all(); 4 | 5 | $('#paragraph-trigger').click(function() { 6 | $(this).overlay({ 7 | closeOnClick: true 8 | }); 9 | }); 10 | 11 | var $modal = $('This is my modal.') 12 | .attr('id', 'modal') 13 | .css({ 14 | background: '#fff', 15 | zIndex: 3000, 16 | padding: '10px', 17 | width: '640px', 18 | height: '240px', 19 | margin: '0 auto', 20 | opacity: 1, 21 | position: 'absolute', 22 | top: '10%', 23 | left: '10%' 24 | }); 25 | 26 | $('#modal-trigger').click(function(evt) { 27 | evt.preventDefault(); 28 | $(this).overlay({ 29 | effect: 'fade', 30 | opacity: 0.8, 31 | closeOnClick: true, 32 | onShow: function() { 33 | $('body').append($modal); 34 | }, 35 | onHide: function() { 36 | $modal.remove(); 37 | }, 38 | }) 39 | }); 40 | 41 | $('#anchor-trigger').click(function(evt) { 42 | evt.preventDefault(); 43 | $(this).overlay({ 44 | color: 'red', 45 | closeOnClick: true, 46 | glossy: true 47 | }); 48 | }); 49 | 50 | $('#photo-trigger').click(function() { 51 | $(this).overlay({ 52 | color: '#ccc', 53 | effect: 'fade', 54 | glossy: true, 55 | container: '#photo-trigger', 56 | onShow: function() { 57 | $(this).click(function(evt) { 58 | evt.preventDefault(); 59 | }).bind('contextmenu', function(evt) { 60 | evt.preventDefault(); 61 | }); 62 | } 63 | }); 64 | }); 65 | 66 | $('#photo-trigger-2').click(function() { 67 | $(this).overlay({ 68 | overlayClass: 'ui-widget-overlay', 69 | effect: 'fade', 70 | container: '#photo-trigger-2' 71 | }); 72 | }); 73 | }); -------------------------------------------------------------------------------- /tests/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 |Simple Overlay Demo 10 | 11 | 12 |Simple Overlay Test Suite
13 | 14 | 15 | 16 |17 |
18 |23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /tests/qunit/qunit.css: -------------------------------------------------------------------------------- 1 | /** Font Family and Sizes */ 2 | 3 | #qunit-tests, #qunit-header, #qunit-banner, #qunit-testrunner-toolbar, #qunit-userAgent, #qunit-testresult { 4 | font-family: "Helvetica Neue Light", "HelveticaNeue-Light", "Helvetica Neue", Calibri, Helvetica, Arial; 5 | } 6 | 7 | #qunit-testrunner-toolbar, #qunit-userAgent, #qunit-testresult, #qunit-tests li { font-size: small; } 8 | #qunit-tests { font-size: smaller; } 9 | 10 | 11 | /** Resets */ 12 | 13 | #qunit-tests, #qunit-tests ol, #qunit-header, #qunit-banner, #qunit-userAgent, #qunit-testresult { 14 | margin: 0; 15 | padding: 0; 16 | } 17 | 18 | 19 | /** Header */ 20 | 21 | #qunit-header { 22 | padding: 0.5em 0 0.5em 1em; 23 | 24 | color: #fff; 25 | text-shadow: rgba(0, 0, 0, 0.5) 4px 4px 1px; 26 | background-color: #0d3349; 27 | 28 | border-radius: 15px 15px 0 0; 29 | -moz-border-radius: 15px 15px 0 0; 30 | -webkit-border-top-right-radius: 15px; 31 | -webkit-border-top-left-radius: 15px; 32 | } 33 | 34 | #qunit-header a { 35 | text-decoration: none; 36 | color: white; 37 | } 38 | 39 | #qunit-banner { 40 | height: 5px; 41 | } 42 | 43 | #qunit-testrunner-toolbar { 44 | padding: 0em 0 0.5em 2em; 45 | } 46 | 47 | #qunit-userAgent { 48 | padding: 0.5em 0 0.5em 2.5em; 49 | background-color: #2b81af; 50 | color: #fff; 51 | text-shadow: rgba(0, 0, 0, 0.5) 2px 2px 1px; 52 | } 53 | 54 | 55 | /** Tests: Pass/Fail */ 56 | 57 | #qunit-tests { 58 | list-style-position: inside; 59 | } 60 | 61 | #qunit-tests li { 62 | padding: 0.4em 0.5em 0.4em 2.5em; 63 | border-bottom: 1px solid #fff; 64 | list-style-position: inside; 65 | } 66 | 67 | #qunit-tests li strong { 68 | cursor: pointer; 69 | } 70 | 71 | #qunit-tests ol { 72 | margin-top: 0.5em; 73 | padding: 0.5em; 74 | 75 | background-color: #fff; 76 | 77 | border-radius: 15px; 78 | -moz-border-radius: 15px; 79 | -webkit-border-radius: 15px; 80 | 81 | box-shadow: inset 0px 2px 13px #999; 82 | -moz-box-shadow: inset 0px 2px 13px #999; 83 | -webkit-box-shadow: inset 0px 2px 13px #999; 84 | } 85 | 86 | /*** Test Counts */ 87 | 88 | #qunit-tests b.counts { color: black; } 89 | #qunit-tests b.passed { color: #5E740B; } 90 | #qunit-tests b.failed { color: #710909; } 91 | 92 | #qunit-tests li li { 93 | margin: 0.5em; 94 | padding: 0.4em 0.5em 0.4em 0.5em; 95 | background-color: #fff; 96 | border-bottom: none; 97 | list-style-position: inside; 98 | } 99 | 100 | /*** Passing Styles */ 101 | 102 | #qunit-tests li li.pass { 103 | color: #5E740B; 104 | background-color: #fff; 105 | border-left: 26px solid #C6E746; 106 | } 107 | 108 | #qunit-tests .pass { color: #528CE0; background-color: #D2E0E6; } 109 | #qunit-tests .pass .test-name { color: #366097; } 110 | 111 | #qunit-tests .pass .test-actual, 112 | #qunit-tests .pass .test-expected { color: #999999; } 113 | 114 | #qunit-banner.qunit-pass { background-color: #C6E746; } 115 | 116 | /*** Failing Styles */ 117 | 118 | #qunit-tests li li.fail { 119 | color: #710909; 120 | background-color: #fff; 121 | border-left: 26px solid #EE5757; 122 | } 123 | 124 | #qunit-tests .fail { color: #000000; background-color: #EE5757; } 125 | #qunit-tests .fail .test-name, 126 | #qunit-tests .fail .module-name { color: #000000; } 127 | 128 | #qunit-tests .fail .test-actual { color: #EE5757; } 129 | #qunit-tests .fail .test-expected { color: green; } 130 | 131 | #qunit-banner.qunit-fail, 132 | #qunit-testrunner-toolbar { background-color: #EE5757; } 133 | 134 | 135 | /** Footer */ 136 | 137 | #qunit-testresult { 138 | padding: 0.5em 0.5em 0.5em 2.5em; 139 | 140 | color: #2b81af; 141 | background-color: #D2E0E6; 142 | 143 | border-radius: 0 0 15px 15px; 144 | -moz-border-radius: 0 0 15px 15px; 145 | -webkit-border-bottom-right-radius: 15px; 146 | -webkit-border-bottom-left-radius: 15px; 147 | } 148 | 149 | /** Fixture */ 150 | 151 | #qunit-fixture { 152 | position: absolute; 153 | top: -10000px; 154 | left: -10000px; 155 | } 156 | -------------------------------------------------------------------------------- /tests/test.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Simple Overlay Test Suite 3 | * Unit Tests for Simple Overlay 4 | * A jQuery Plugin for creating a simple, customizable overlay. Supports multiple instances, 5 | * custom callbacks, hide on click, glossy effect, and more. 6 | * 7 | * Copyright 2011 Tom McFarlin, http://tommcfarlin.com 8 | * Released under the MIT License 9 | * More information: http://moreco.de/simple-overlay 10 | */ 11 | 12 | /*-------------------------------------------------------* 13 | * Default Value Tests 14 | *-------------------------------------------------------*/ 15 | 16 | module("Default Option Values"); 17 | test("color", function() { 18 | function defaultColorValue() { 19 | return $.fn.overlay.defaults.color; 20 | } 21 | equal(defaultColorValue(), '#000', 'The default color for the overlay.'); 22 | }); 23 | 24 | test("opacity", function() { 25 | function defaultOpacityValue() { 26 | return $.fn.overlay.defaults.opacity; 27 | } 28 | equal(defaultOpacityValue(), 0.5, 'The level of opacity for the overlay.'); 29 | }); 30 | 31 | test("effect", function() { 32 | function defaultDisplayEffect() { 33 | return $.fn.overlay.defaults.effect; 34 | } 35 | equal(defaultDisplayEffect(), 'none', 'Verifies that no effect is applied for the default overlay.'); 36 | }); 37 | 38 | test("onShow", function() { 39 | function defaultOnShowValue() { 40 | return $.fn.overlay.defaults.onShow; 41 | } 42 | equal(defaultOnShowValue(), null, 'Verifies there is no default callback when the overlay is shown.'); 43 | }); 44 | 45 | test("onHide", function() { 46 | function defaultOnHideValue() { 47 | return $.fn.overlay.defaults.onHide; 48 | } 49 | equal(defaultOnHideValue(), null, 'Verifies there is no default callback when the overlay is hidden.'); 50 | }); 51 | 52 | test("closeOnClick", function() { 53 | function defaultCloseOnClickValue() { 54 | return $.fn.overlay.defaults.closeOnClick; 55 | } 56 | equal(defaultCloseOnClickValue(), false, 'Verifies the modal is not closed by clicking by default.'); 57 | }); 58 | 59 | test("glossy", function() { 60 | function defaultGlossyValue() { 61 | return $.fn.overlay.defaults.glossy; 62 | } 63 | equal(defaultGlossyValue(), false, 'Verifies there is no gloss effect applied to the default overlay.'); 64 | }); 65 | 66 | test("container", function() { 67 | function defaultContainer() { 68 | return $.fn.overlay.defaults.container; 69 | } 70 | equal(defaultContainer(), 'body', 'Verifies the body element is the default container.'); 71 | }); 72 | 73 | /*-------------------------------------------------------* 74 | * Specific Value Tests 75 | *-------------------------------------------------------*/ 76 | 77 | module("Specific Option Values"); 78 | test("color without class", function() { 79 | function colorValue() { 80 | $('#overlay-trigger').click(function() { 81 | $(this).overlay({ 82 | overlayClass: null, 83 | color: '#fff', 84 | closeOnClick: true 85 | }); 86 | }); 87 | $('#overlay-trigger').trigger('click'); 88 | return $('div:last').css('display', 'none').css('background-color'); 89 | } 90 | equal(colorValue(), 'rgb(255, 255, 255)', 'The specified color for the overlay.'); 91 | }); 92 | test("color", function() { 93 | function colorValue() { 94 | $('#overlay-trigger').click(function() { 95 | $(this).overlay({ 96 | color: '#fff', 97 | closeOnClick: true 98 | }); 99 | }); 100 | $('#overlay-trigger').trigger('click'); 101 | return $('.overlay:first').css('display', 'none').css('background-color'); 102 | } 103 | equal(colorValue(), 'rgba(0, 0, 0, 0)', 'The specified color for the overlay can not be set if class provided.'); 104 | }); 105 | 106 | test("opacity", function() { 107 | function opacityValue() { 108 | $('.overlay:first').trigger('click'); // clears the last overlay 109 | $('#overlay-trigger').click(function() { 110 | $(this).overlay({ 111 | opacity: 1 112 | }); 113 | }); 114 | $('#overlay-trigger').trigger('click'); 115 | return $('.overlay:first').css('display', 'none') 116 | .css('opacity'); 117 | } 118 | equal(opacityValue(), 1, 'The level of opacity for the overlay.'); 119 | }); 120 | 121 | /*-------------------------------------------------------* 122 | * Event Tests 123 | *-------------------------------------------------------*/ 124 | 125 | asyncTest('onShow', function() { 126 | 127 | $('.overlay').trigger('click'); 128 | 129 | $('#overlay-trigger').click(function() { 130 | $(this).overlay({ 131 | onShow: function() { 132 | $('body').addClass('added-by-overlay'); 133 | }, 134 | closeOnClick: true 135 | }); 136 | }); 137 | 138 | $('#overlay-trigger').trigger('click'); 139 | 140 | setTimeout(function() { 141 | equal($('body').hasClass('added-by-overlay'), true, 'Verifies the onShow callback is properly called'); 142 | start(); 143 | }, 1000); 144 | 145 | $('.overlay').trigger('click'); 146 | 147 | }); 148 | 149 | asyncTest('onHide', function() { 150 | 151 | $('#overlay-trigger').click(function() { 152 | $(this).overlay({ 153 | onHide: function() { 154 | $('body').addClass('added-by-overlay'); 155 | }, 156 | closeOnClick: true 157 | }); 158 | }); 159 | 160 | $('#overlay-trigger').trigger('click'); 161 | 162 | setTimeout(function() { 163 | equal($('body').hasClass('added-by-overlay'), true, 'Verifies the onHide callback is properly called'); 164 | start(); 165 | }, 1000); 166 | 167 | $('.overlay').trigger('click'); 168 | 169 | }); 170 | 171 | asyncTest('closeOnClick', function() { 172 | 173 | $('.overlay').trigger('click').remove(); 174 | 175 | $('#overlay-trigger').click(function() { 176 | $(this).overlay({ 177 | closeOnClick: true 178 | }); 179 | }); 180 | 181 | setTimeout(function() { 182 | 183 | $('#overlay-trigger').trigger('click'); 184 | $('.overlay').click(); 185 | 186 | equal($('.overlay').length === 0, true, 'Verifies the overlay is closed when clicked.'); 187 | start(); 188 | }, 1000); 189 | 190 | }); 191 | 192 | asyncTest("glossy", function() { 193 | 194 | $('.overlay').trigger('click'); 195 | 196 | $('#overlay-trigger').click(function() { 197 | $(this).overlay({ 198 | glossy: true, 199 | closeOnClick: true 200 | }); 201 | }); 202 | 203 | setTimeout(function() { 204 | 205 | $('#overlay-trigger').click(); 206 | 207 | equal($('.overlay').children().length > 0, true, 'Verifies the glossy element is added to the overlay.'); 208 | 209 | start(); 210 | 211 | $('.overlay').click(); 212 | 213 | }, 1000); 214 | 215 | }); 216 | 217 | asyncTest("container", function() { 218 | 219 | $('.overlay').trigger('click'); 220 | 221 | $('#overlay-trigger').click(function() { 222 | $(this).overlay({ 223 | glossy: true, 224 | closeOnClick: true, 225 | container: '#overlay-container' 226 | }); 227 | }); 228 | 229 | setTimeout(function() { 230 | 231 | $('#overlay-trigger').click(); 232 | 233 | equal($('#overlay-container').children().length > 0, true, 'Verifies the overlay is added to another element rather than the body.'); 234 | 235 | start(); 236 | 237 | $('.overlay').click(); 238 | 239 | }, 1000); 240 | 241 | }); 242 | --------------------------------------------------------------------------------19 |21 | 22 |Simple Overlay
20 |