Version Description
- ADDED:
- OCaml langauge thanks to zhenjie
- Added Capacitacionti theme
- FIXED:
- SVN issue with old versions of JS and CSS resources being deployed instead of the latest from the dev repo.
Download this release
Release Info
Developer | akarmenia |
Plugin | Crayon Syntax Highlighter |
Version | 2.6.8 |
Comparing to | |
See all releases |
Code changes from version 2.6.7 to 2.6.8
- crayon_wp.class.php +2 -2
- css/min/crayon.min.css +1 -1
- js/min/crayon.min.js +1 -1
- js/min/crayon.te.min.js +7 -7
- langs/ada/README.md +1 -1
- readme.txt +13 -6
- trans/crayon-syntax-highlighter-de_DE.po +0 -12
- trans/crayon-syntax-highlighter-sl_SI.po +0 -12
crayon_wp.class.php
CHANGED
@@ -1,9 +1,9 @@
|
|
1 |
<?php
|
2 |
/*
|
3 |
Plugin Name: Crayon Syntax Highlighter
|
4 |
-
Plugin URI: https://github.com/
|
5 |
Description: Supports multiple languages, themes, highlighting from a URL, local file or post text.
|
6 |
-
Version: 2.6.
|
7 |
Author: Aram Kocharyan
|
8 |
Author URI: http://aramk.com/
|
9 |
Text Domain: crayon-syntax-highlighter
|
1 |
<?php
|
2 |
/*
|
3 |
Plugin Name: Crayon Syntax Highlighter
|
4 |
+
Plugin URI: https://github.com/aramk/crayon-syntax-highlighter
|
5 |
Description: Supports multiple languages, themes, highlighting from a URL, local file or post text.
|
6 |
+
Version: 2.6.8
|
7 |
Author: Aram Kocharyan
|
8 |
Author URI: http://aramk.com/
|
9 |
Text Domain: crayon-syntax-highlighter
|
css/min/crayon.min.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
#colorbox.crayon-colorbox,#cboxOverlay.crayon-colorbox,.crayon-colorbox #cboxWrapper{position:absolute;top:0;left:0;z-index:9999;overflow:hidden}#cboxOverlay.crayon-colorbox{position:fixed;width:100%;height:100%}.crayon-colorbox #cboxMiddleLeft,.crayon-colorbox #cboxBottomLeft{clear:left}.crayon-colorbox #cboxContent{position:relative}.crayon-colorbox #cboxLoadedContent{overflow:auto;-webkit-overflow-scrolling:touch}.crayon-colorbox #cboxTitle{display:none!important}.crayon-colorbox #cboxLoadingOverlay,.crayon-colorbox #cboxLoadingGraphic{position:absolute;top:0;left:0;width:100%;height:100%}.crayon-colorbox #cboxPrevious,.crayon-colorbox #cboxNext,.crayon-colorbox #cboxClose,.crayon-colorbox #cboxSlideshow{cursor:pointer}.crayon-colorbox .cboxPhoto{float:left;margin:auto;border:0;display:block;max-width:none;-ms-interpolation-mode:bicubic}.crayon-colorbox .cboxIframe{width:100%;height:100%;display:block;border:0}#colorbox.crayon-colorbox,.crayon-colorbox #cboxContent,.crayon-colorbox #cboxLoadedContent{box-sizing:content-box;-moz-box-sizing:content-box;-webkit-box-sizing:content-box}#cboxOverlay.crayon-colorbox{background:#000}#colorbox.crayon-colorbox{outline:0}.crayon-colorbox #cboxContent{margin-top:20px;background:#000}.crayon-colorbox .cboxIframe{background:#fff}.crayon-colorbox #cboxError{padding:50px;border:1px solid #ccc}.crayon-colorbox #cboxLoadedContent{border:5px solid #000;background:#fff}.crayon-colorbox #cboxTitle{position:absolute;top:-20px;left:0;color:#ccc}.crayon-colorbox #cboxCurrent{position:absolute;top:-20px;right:0;color:#ccc}.crayon-colorbox #cboxPrevious,.crayon-colorbox #cboxNext,.crayon-colorbox #cboxSlideshow,.crayon-colorbox #cboxClose{border:0;padding:0;margin:0;overflow:visible;width:auto;background:0}.crayon-colorbox #cboxPrevious:active,.crayon-colorbox #cboxNext:active,.crayon-colorbox #cboxSlideshow:active,.crayon-colorbox #cboxClose:active{outline:0}.crayon-colorbox #cboxSlideshow{position:absolute;top:-20px;right:90px;color:#fff}.crayon-colorbox #cboxContent{margin-top:0}.crayon-colorbox #cboxLoadedContent{border:0}#crayon-main-wrap .form-table th{width:100px}#crayon-log{display:none;max-height:200px;border-color:#dfdfdf;background-color:white;border-width:1px;border-style:solid;border-radius:4px;-moz-border-radius:4px;-webkit-border-radius:4px;margin:1px;padding:3px;overflow:auto;white-space:pre;margin-bottom:5px}.crayon-span,.crayon-span-5,.crayon-span-10,.crayon-span-50,.crayon-span-100,.crayon-span-110{line-height:24px;display:inline-block}.crayon-span-5{min-width:5px}.crayon-span-10{min-width:10px}.crayon-span-50{min-width:50px}.crayon-span-100{min-width:100px}.crayon-span-110{min-width:117px}.crayon-span-margin{margin-left:5px}#height_mode,#width_mode{min-width:65px}.crayon-error{color:#F00}.crayon-success{color:#00F}.crayon-warning{color:#ff8000}.crayon-help{min-height:30px;padding:5px 10px}.crayon-help .crayon-help-close,.crayon-help .crayon-help-close:active,.crayon-help .crayon-help-close:hover{text-decoration:none;float:right;color:#000}.crayon-help span,.crayon-help a{margin:0;padding:0;font-size:12px}#crayon-log-text{font:11px/13px Monaco,'MonacoRegular','Courier New',monospace}#crayon-log-controls{float:left;margin-right:5px}.crayon-table{font-size:12px;border:1px solid #999;padding:0;margin:0;margin-top:12px}.crayon-table td{vertical-align:top;border-bottom:1px solid #AAA;padding:0 6px;margin:0;background:#EEE}.crayon-table-light td{background:#f8f8f8}.crayon-table-header td{font-weight:bold;background:#CCC}.crayon-table-last td,.crayon-table tr:last-child td{border:0}#lang-info div{padding:5px 0}.crayon-table .not-parsed{color:#F00}.crayon-table .parsed-with-errors{color:#f90}.crayon-table .successfully-parsed{color:#77a000}#crayon-live-preview,#crayon-log-wrapper{padding:0;width:100%;float:left;clear:both}#crayon-live-preview{float:none;padding:0}#crayon-logo{text-align:center}#crayon-info,#crayon-info td{border:0;padding:0 5px;margin:0}.crayon-admin-button{display:inline-block;text-align:center}#crayon-subsection-langs-info{margin-top:5px}#crayon-theme-editor-admin-buttons{display:inline}#crayon-theme-editor-admin-buttons .crayon-admin-button{margin-left:5px}#crayon-theme-info{display:table;padding:0;margin:0;margin-top:5px}#crayon-theme-info>div{display:table-cell;vertical-align:middle}#crayon-theme-info .content *{float:left}#crayon-theme-info .field{font-weight:bold}#crayon-theme-info .field,#crayon-theme-info .value{margin-left:5px}#crayon-theme-info .description.value{font-style:italic;color:#999}#crayon-theme-info .type{text-align:center;min-width:120px;font-weight:bold;border-right:1px solid #ccc;padding-right:5px}#crayon-theme-info .type.stock{color:#666}#crayon-theme-info .type.user{color:#5b9a00}#crayon-editor-table td{vertical-align:top}.small-icon{width:24px;height:24px;display:inline-block;margin:5px 5px 0 0}#twitter-icon{background:url(../images/twitter.png)}#gmail-icon{background:url(../images/google.png)}#docs-icon{background:url(../images/docs.png)}#git-icon{background:url(../images/github.png)}#wp-icon{background:url(../images/wordpress-blue.png)}#donate-icon{background:url(../images/donate.png);width:75px}#crayon-donate,#crayon-donate input{margin:0;display:inline;padding:0}#crayon-theme-editor-info a{text-decoration:none!important;font-style:italic!important;color:#666!important}.note{font-style:italic;color:#999}#crayon-change-code-text{width:400px;height:300px}.crayon-syntax{overflow:hidden!important;position:relative!important;direction:ltr;text-align:left;box-sizing:border-box;direction:ltr!important;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;-webkit-text-size-adjust:none}.crayon-syntax div{background:0;border:0;padding:0;margin:0;text-align:left}.crayon-syntax.crayon-loading{visibility:hidden}.crayon-syntax,.crayon-syntax .crayon-main,.crayon-syntax .crayon-toolbar,.crayon-syntax .crayon-info,.crayon-syntax .crayon-plain,.crayon-syntax .crayon-code{width:100%}.crayon-syntax .crayon-main,.crayon-syntax .crayon-plain{overflow:auto}.crayon-syntax,.crayon-syntax .crayon-main,.crayon-syntax .crayon-plain,.crayon-syntax .crayon-table{padding:0;margin:0}.crayon-syntax-inline{margin:0 2px;padding:0 2px}.crayon-syntax .crayon-table{border:none!important;background:none!important;padding:0!important;margin-top:0!important;margin-right:0!important;margin-bottom:0!important;width:auto!important;border-spacing:0!important;border-collapse:collapse!important}.crayon-syntax .crayon-table td,.crayon-syntax .crayon-table tr{padding:0!important;border:none!important;background:0;vertical-align:top!important;margin:0!important}.crayon-syntax .crayon-invisible{display:none!important}.crayon-plain-tag{margin-bottom:12px}.crayon-popup .crayon-plain{display:block!important;width:100%!important;height:100%!important;opacity:100!important;position:relative!important}.crayon-popup-window{background:#fff}.crayon-syntax .crayon-num{text-align:center;padding:0 5px;margin:0}.crayon-syntax .crayon-toolbar{position:relative;overflow:hidden;z-index:4}.crayon-syntax .crayon-info{position:absolute;overflow:hidden;display:none;z-index:3;padding:0;min-height:18px;line-height:18px}.crayon-syntax .crayon-info div{padding:2px!important;text-align:center}.crayon-syntax .crayon-toolbar span{padding:0 4px!important}.crayon-syntax .crayon-toolbar .crayon-button{display:inline;float:left!important;position:relative;width:24px;background-repeat:no-repeat;line-height:15px;border:0;text-decoration:none}.crayon-toolbar .crayon-button,.crayon-toolbar .crayon-button:hover,.crayon-toolbar .crayon-button.crayon-pressed:hover{background-position:0 center}.crayon-toolbar .crayon-button.crayon-pressed,.crayon-toolbar .crayon-button:active,.crayon-toolbar .crayon-button.crayon-pressed:active{background-position:-24px 0}.crayon-toolbar .crayon-button.crayon-popup-button .crayon-button-icon,.crayon-toolbar .crayon-button.crayon-popup-button:hover .crayon-button-icon,.crayon-toolbar .crayon-button.crayon-popup-button.crayon-pressed:hover .crayon-button-icon{background-position:0 0}.crayon-toolbar .crayon-button.crayon-copy-button .crayon-button-icon,.crayon-toolbar .crayon-button.crayon-copy-button:hover .crayon-button-icon,.crayon-toolbar .crayon-button.crayon-copy-button.crayon-pressed:hover .crayon-button-icon{background-position:0 -16px}.crayon-toolbar .crayon-button.crayon-nums-button .crayon-button-icon,.crayon-toolbar .crayon-button.crayon-nums-button:hover .crayon-button-icon,.crayon-toolbar .crayon-button.crayon-nums-button.crayon-pressed:hover .crayon-button-icon{background-position:0 -32px}.crayon-toolbar .crayon-button.crayon-plain-button .crayon-button-icon,.crayon-toolbar .crayon-button.crayon-plain-button:hover .crayon-button-icon,.crayon-toolbar .crayon-button.crayon-plain-button.crayon-pressed:hover .crayon-button-icon{background-position:0 -48px}.crayon-toolbar .crayon-button.crayon-mixed-button .crayon-button-icon,.crayon-toolbar .crayon-button.crayon-mixed-button:hover .crayon-button-icon,.crayon-toolbar .crayon-button.crayon-mixed-button.crayon-pressed:hover .crayon-button-icon{background-position:0 -64px}.crayon-toolbar .crayon-button.crayon-minimize .crayon-button-icon{background-position:0 -80px;background-color:transparent!important}.crayon-toolbar .crayon-button.crayon-expand-button .crayon-button-icon,.crayon-toolbar .crayon-button.crayon-expand-button:hover .crayon-button-icon,.crayon-toolbar .crayon-button.crayon-expand-button.crayon-pressed:hover .crayon-button-icon{background-position:0 -96px}.crayon-toolbar .crayon-button.crayon-wrap-button .crayon-button-icon,.crayon-toolbar .crayon-button.crayon-wrap-button:hover .crayon-button-icon,.crayon-toolbar .crayon-button.crayon-wrap-button.crayon-pressed:hover .crayon-button-icon{background-position:0 -112px}.crayon-toolbar .crayon-button.crayon-popup-button.crayon-pressed .crayon-button-icon,.crayon-toolbar .crayon-button.crayon-popup-button:active .crayon-button-icon,.crayon-toolbar .crayon-button.crayon-popup-button.crayon-pressed:active .crayon-button-icon{background-position:-24px 0}.crayon-toolbar .crayon-button.crayon-copy-button.crayon-pressed .crayon-button-icon,.crayon-toolbar .crayon-button.crayon-copy-button:active .crayon-button-icon,.crayon-toolbar .crayon-button.crayon-copy-button.crayon-pressed:active .crayon-button-icon{background-position:-24px -16px}.crayon-toolbar .crayon-button.crayon-nums-button.crayon-pressed .crayon-button-icon,.crayon-toolbar .crayon-button.crayon-nums-button:active .crayon-button-icon,.crayon-toolbar .crayon-button.crayon-nums-button.crayon-pressed:active .crayon-button-icon{background-position:-24px -32px}.crayon-toolbar .crayon-button.crayon-plain-button.crayon-pressed .crayon-button-icon,.crayon-toolbar .crayon-button.crayon-plain-button:active .crayon-button-icon,.crayon-toolbar .crayon-button.crayon-plain-button.crayon-pressed:active .crayon-button-icon{background-position:-24px -48px}.crayon-toolbar .crayon-button.crayon-mixed-button.crayon-pressed .crayon-button-icon,.crayon-toolbar .crayon-button.crayon-mixed-button:active .crayon-button-icon,.crayon-toolbar .crayon-button.crayon-mixed-button.crayon-pressed:active .crayon-button-icon{background-position:-24px -64px}.crayon-toolbar .crayon-button.crayon-minimize .crayon-button-icon{background-position:-24px -80px;background-color:transparent!important}.crayon-toolbar .crayon-button.crayon-expand-button.crayon-pressed .crayon-button-icon,.crayon-toolbar .crayon-button.crayon-expand-button:active .crayon-button-icon,.crayon-toolbar .crayon-button.crayon-expand-button.crayon-pressed:active .crayon-button-icon{background-position:-24px -96px}.crayon-toolbar .crayon-button.crayon-wrap-button.crayon-pressed .crayon-button-icon,.crayon-toolbar .crayon-button.crayon-wrap-button:active .crayon-button-icon,.crayon-toolbar .crayon-button.crayon-wrap-button.crayon-pressed:active .crayon-button-icon{background-position:-24px -112px}.crayon-syntax .crayon-toolbar .crayon-language{padding-right:8px!important}.crayon-syntax .crayon-title,.crayon-syntax .crayon-language{float:left}.crayon-main::-webkit-scrollbar,.crayon-plain::-webkit-scrollbar{height:6px;overflow:visible;width:6px;background:#EEE}.crayon-main::-webkit-scrollbar-thumb,.crayon-plain::-webkit-scrollbar-thumb{background-color:#CCC;background-clip:padding-box;border:1px solid #AAA;box-shadow:inset 0 0 2px #999;min-height:8px;padding:0;border-width:1px}.crayon-main::-webkit-scrollbar-button,.crayon-plain::-webkit-scrollbar-button{height:0;width:0;padding:0}.crayon-main::-webkit-scrollbar-track,.crayon-plain::-webkit-scrollbar-track{background-clip:padding-box;border:solid transparent;border-width:0 0 0 4px;border:1px solid #BBB;border-right:0;border-bottom:0}.crayon-main::-webkit-scrollbar-corner,.crayon-plain::-webkit-scrollbar-corner{background:#EEE}.crayon-main::-webkit-scrollbar-thumb:hover,.crayon-plain::-webkit-scrollbar-thumb:hover{background:#AAA;border:1px solid #777;box-shadow:inset 0 0 2px #777}.crayon-syntax .crayon-pre,.crayon-syntax pre{color:#000;white-space:pre;margin:0;padding:0;overflow:visible;background:none!important;border:none!important}.crayon-syntax .crayon-line{padding:0 5px}.crayon-syntax.crayon-wrapped .crayon-line{white-space:pre-wrap!important}.crayon-syntax-inline .crayon-pre,.crayon-syntax-inline pre{white-space:normal}.crayon-syntax-inline-nowrap .crayon-pre,.crayon-syntax-inline-nowrap pre{white-space:pre}.crayon-syntax{font-family:Monaco,'MonacoRegular','Courier New',monospace;font-weight:500}.crayon-table .crayon-nums-content{white-space:nowrap}.crayon-syntax.crayon-wrapped .crayon-line{height:auto}.crayon-syntax .crayon-num,.crayon-syntax .crayon-pre .crayon-line,.crayon-syntax .crayon-toolbar *,.crayon-syntax .crayon-pre *{font-family:inherit;font-size:inherit!important;line-height:inherit!important;font-weight:inherit!important;height:inherit}.crayon-syntax .crayon-toolbar .crayon-button .crayon-button-icon{background-image:url('../images/toolbar/buttons.png');height:16px!important;width:100%;position:absolute;left:0;top:50%;margin-top:-8px}.crayon-syntax .crayon-toolbar .crayon-tools{position:absolute;right:0}.crayon-syntax.crayon-expanded{position:absolute!important;margin:0!important}.crayon-syntax.crayon-expanded .crayon-main{overflow:hidden!important}.crayon-placeholder{width:100%!important}.crayon-toolbar-visible .crayon-toolbar{position:relative!important;margin-top:0!important;display:block!important}.crayon-syntax.crayon-expanded .crayon-toolbar .crayon-tools{position:relative;right:auto;float:left!important}.crayon-syntax .crayon-plain-wrap{height:auto!important;padding:0!important;margin:0!important}.crayon-syntax .crayon-plain{width:100%;height:100%;position:absolute;opacity:0;padding:0 5px;margin:0;border:0;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-shadow:none;border-radius:0;-webkit-box-shadow:none;-moz-box-shadow:none;white-space:pre;word-wrap:normal;overflow:auto;resize:none;color:#000;background:#FFF}.crayon-wrapped .crayon-plain{white-space:pre-wrap}.bbp-body .crayon-syntax{clear:none!important}.crayon-minimized .crayon-toolbar{cursor:pointer}.crayon-minimized .crayon-plain-wrap,.crayon-minimized .crayon-main,.crayon-minimized .crayon-toolbar .crayon-tools *{display:none!important}.crayon-minimized .crayon-toolbar .crayon-tools .crayon-minimize{display:block!important}.crayon-minimized .crayon-toolbar{position:relative!important}.crayon-syntax.crayon-minimized .crayon-toolbar{border-bottom:none!important}.crayon-te *,#crayon-te-bar-content{font-family:"Lucida Grande",Arial,sans-serif!important;font-size:12px}.crayon-te input[type="text"],.crayon-te textarea{background:#f9f9f9;border:1px solid #CCC;box-shadow:inset 1px 1px 1px rgba(0,0,0,0.1);-moz-box-shadow:inset 1px 1px 1px rgba(0,0,0,0.1);-webkit-box-shadow:inset 1px 1px 1px rgba(0,0,0,0.1);padding:2px 4px;-webkit-border-radius:3px;border-radius:3px;border-width:1px;border-style:solid}.crayon-te #crayon-code{font-family:monospace!important}#crayon-te-content,#crayon-te-table{width:100%;height:auto!important}#crayon-range,#crayon-mark{width:100px}#crayon-te-table th,#crayon-te-table td{vertical-align:top;text-align:left}#crayon-te-table .crayon-tr-center td,#crayon-te-table .crayon-tr-center th{vertical-align:middle}#crayon-te-table .crayon-nowrap{white-space:nowrap}#crayon-te-bar{position:absolute;top:0;left:0;width:100%}#crayon-te-bar-content{border:1px solid #666;border-bottom:0;height:26px;line-height:25px;padding:0 8px;padding-right:0;background-color:#222;color:#cfcfcf}#crayon-te-bar-content a{line-height:25px;padding:5px 10px;color:#DDD;font-weight:bold;text-decoration:none!important}#crayon-te-bar-content a:hover{color:#FFF}.crayon-te-seperator{color:#666;margin:0;padding:0}#crayon-te-bar-block{height:34px;width:100%}#crayon-te-title{float:left}#crayon-te-controls{float:right}#crayon-url-th{vertical-align:top!important;padding-top:5px}.crayon-te-heading{font-size:14px;font-weight:bold}#crayon-te-settings-info{text-align:center}.crayon-te-section{font-weight:bold;padding:0 10px}#crayon-te-sub-section{margin-left:10px}#crayon-te-sub-section .crayon-te-section{font-weight:normal;padding:0}#crayon-code{height:200px;white-space:pre}#crayon-code,#crayon-url{width:555px!important}.crayon-disabled{background:#EEE!important}.mce_crayon_tinymce_highlight,.qt_crayon_highlight{border:1px solid #7c9dde!important}.qt_crayon_highlight{background-image:-ms-linear-gradient(bottom,#daf2ff,white)!important;background-image:-moz-linear-gradient(bottom,#daf2ff,white)!important;background-image:-o-linear-gradient(bottom,#daf2ff,white)!important;background-image:-webkit-linear-gradient(bottom,#daf2ff,white)!important;background-image:linear-gradient(bottom,#daf2ff,white)!important}.qt_crayon_highlight:hover{background:#ddebf2!important}.mce_crayon_tinymce{background:url(../images/crayon_tinymce.png) 0 0!important}#crayon-te-table{margin-top:26px;padding:10px;border-collapse:separate!important;border-spacing:2px!important}#crayon-te-table th{width:100px}#crayon-te-clear{margin-left:10px;color:#666;background-color:#f4f4f4;border:1px solid #CCC;border-radius:3px;margin-left:8px}#crayon-title{width:360px}#TB_window.crayon-te-ajax{overflow:auto!important}#TB_window.crayon-te-ajax,#TB_window.crayon-te-ajax #TB_ajaxContent,#TB_window.crayon-te-ajax #TB_title{width:680px!important}#TB_window.crayon-te-ajax #TB_ajaxContent{padding:0!important;margin:0!important;width:100%!important;height:auto!important;margin-top:28px!important}#TB_window.crayon-te-ajax #TB_title{position:fixed!important}#TB_window.crayon-te-ajax #TB_title .crayon-te-submit{margin-top:3px!important;float:right!important}#TB_window.crayon-te-ajax a{color:#2587e2;text-decoration:none}#TB_window.crayon-te-ajax a:hover{color:#499ce9}.crayon-te-quote{background:#DDD;padding:0 2px}#crayon-te-submit-wrapper{display:none}#crayon-te-clear{display:none;margin:0;margin-top:10px}.crayon-syntax-pre{background:red;white-space:pre;overflow:auto;display:block;word-wrap:break-word}.crayon-question{padding:1px 4px!important;background:#83b3cb!important;text-decoration:none!important;color:white!important;border-radius:10px!important;height:15px!important;width:15px!important}.crayon-setting-changed,.crayon-setting-selected{background:#fffaad!important}.crayon-question:hover{color:white;background:#a6d6ef}#crayon-te-warning{display:none}.crayon-te-info{padding:5px!important;margin:2px 0!important}#crayon-te-submit{margin-bottom:5px}
|
1 |
+
#colorbox.crayon-colorbox,#cboxOverlay.crayon-colorbox,.crayon-colorbox #cboxWrapper{position:absolute;top:0;left:0;z-index:9999;overflow:hidden}#cboxOverlay.crayon-colorbox{position:fixed;width:100%;height:100%}.crayon-colorbox #cboxMiddleLeft,.crayon-colorbox #cboxBottomLeft{clear:left}.crayon-colorbox #cboxContent{position:relative}.crayon-colorbox #cboxLoadedContent{overflow:auto;-webkit-overflow-scrolling:touch}.crayon-colorbox #cboxTitle{display:none!important}.crayon-colorbox #cboxLoadingOverlay,.crayon-colorbox #cboxLoadingGraphic{position:absolute;top:0;left:0;width:100%;height:100%}.crayon-colorbox #cboxPrevious,.crayon-colorbox #cboxNext,.crayon-colorbox #cboxClose,.crayon-colorbox #cboxSlideshow{cursor:pointer}.crayon-colorbox .cboxPhoto{float:left;margin:auto;border:0;display:block;max-width:none;-ms-interpolation-mode:bicubic}.crayon-colorbox .cboxIframe{width:100%;height:100%;display:block;border:0}#colorbox.crayon-colorbox,.crayon-colorbox #cboxContent,.crayon-colorbox #cboxLoadedContent{box-sizing:content-box;-moz-box-sizing:content-box;-webkit-box-sizing:content-box}#cboxOverlay.crayon-colorbox{background:#000}#colorbox.crayon-colorbox{outline:0}.crayon-colorbox #cboxContent{margin-top:20px;background:#000}.crayon-colorbox .cboxIframe{background:#fff}.crayon-colorbox #cboxError{padding:50px;border:1px solid #ccc}.crayon-colorbox #cboxLoadedContent{border:5px solid #000;background:#fff}.crayon-colorbox #cboxTitle{position:absolute;top:-20px;left:0;color:#ccc}.crayon-colorbox #cboxCurrent{position:absolute;top:-20px;right:0;color:#ccc}.crayon-colorbox #cboxPrevious,.crayon-colorbox #cboxNext,.crayon-colorbox #cboxSlideshow,.crayon-colorbox #cboxClose{border:0;padding:0;margin:0;overflow:visible;width:auto;background:0}.crayon-colorbox #cboxPrevious:active,.crayon-colorbox #cboxNext:active,.crayon-colorbox #cboxSlideshow:active,.crayon-colorbox #cboxClose:active{outline:0}.crayon-colorbox #cboxSlideshow{position:absolute;top:-20px;right:90px;color:#fff}.crayon-colorbox #cboxContent{margin-top:0}.crayon-colorbox #cboxLoadedContent{border:0}#crayon-main-wrap .form-table th{width:100px}#crayon-log{display:none;max-height:200px;border-color:#dfdfdf;background-color:white;border-width:1px;border-style:solid;border-radius:4px;-moz-border-radius:4px;-webkit-border-radius:4px;margin:1px;padding:3px;overflow:auto;white-space:pre;margin-bottom:5px}.crayon-span,.crayon-span-5,.crayon-span-10,.crayon-span-50,.crayon-span-100,.crayon-span-110{line-height:24px;display:inline-block}.crayon-span-5{min-width:5px}.crayon-span-10{min-width:10px}.crayon-span-50{min-width:50px}.crayon-span-100{min-width:100px}.crayon-span-110{min-width:117px}.crayon-span-margin{margin-left:5px}#height_mode,#width_mode{min-width:65px}.crayon-error{color:#F00}.crayon-success{color:#00F}.crayon-warning{color:#ff8000}.crayon-help{min-height:30px;padding:5px 10px}.crayon-help .crayon-help-close,.crayon-help .crayon-help-close:active,.crayon-help .crayon-help-close:hover{text-decoration:none;float:right;color:#000}.crayon-help span,.crayon-help a{margin:0;padding:0;font-size:12px}#crayon-log-text{font:11px/13px Monaco,'MonacoRegular','Courier New',monospace}#crayon-log-controls{float:left;margin-right:5px}.crayon-table{font-size:12px;border:1px solid #999;padding:0;margin:0;margin-top:12px}.crayon-table td{vertical-align:top;border-bottom:1px solid #AAA;padding:0 6px;margin:0;background:#EEE}.crayon-table-light td{background:#f8f8f8}.crayon-table-header td{font-weight:bold;background:#CCC}.crayon-table-last td,.crayon-table tr:last-child td{border:0}#lang-info div{padding:5px 0}.crayon-table .not-parsed{color:#F00}.crayon-table .parsed-with-errors{color:#f90}.crayon-table .successfully-parsed{color:#77a000}#crayon-live-preview,#crayon-log-wrapper{padding:0;width:100%;float:left;clear:both}#crayon-live-preview{float:none;padding:0}#crayon-logo{text-align:center}#crayon-info,#crayon-info td{border:0;padding:0 5px;margin:0}.crayon-admin-button{display:inline-block;text-align:center}#crayon-subsection-langs-info{margin-top:5px}#crayon-theme-editor-admin-buttons{display:inline}#crayon-theme-editor-admin-buttons .crayon-admin-button{margin-left:5px}#crayon-theme-info{display:table;padding:0;margin:0;margin-top:5px}#crayon-theme-info>div{display:table-cell;vertical-align:middle}#crayon-theme-info .content *{float:left}#crayon-theme-info .field{font-weight:bold}#crayon-theme-info .field,#crayon-theme-info .value{margin-left:5px}#crayon-theme-info .description.value{font-style:italic;color:#999}#crayon-theme-info .type{text-align:center;min-width:120px;font-weight:bold;border-right:1px solid #ccc;padding-right:5px}#crayon-theme-info .type.stock{color:#666}#crayon-theme-info .type.user{color:#5b9a00}#crayon-editor-table td{vertical-align:top}.small-icon{width:24px;height:24px;display:inline-block;margin:5px 5px 0 0}#twitter-icon{background:url(../images/twitter.png)}#gmail-icon{background:url(../images/google.png)}#docs-icon{background:url(../images/docs.png)}#git-icon{background:url(../images/github.png)}#wp-icon{background:url(../images/wordpress-blue.png)}#donate-icon{background:url(../images/donate.png);width:75px}#crayon-donate,#crayon-donate input{margin:0;display:inline;padding:0}#crayon-theme-editor-info a{text-decoration:none!important;font-style:italic!important;color:#666!important}.note{font-style:italic;color:#999}#crayon-change-code-text{width:400px;height:300px}.crayon-syntax{overflow:hidden!important;position:relative!important;direction:ltr;text-align:left;box-sizing:border-box;direction:ltr!important;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;-webkit-text-size-adjust:none}.crayon-syntax div{background:0;border:0;padding:0;margin:0;text-align:left}.crayon-syntax.crayon-loading{visibility:hidden}.crayon-syntax,.crayon-syntax .crayon-main,.crayon-syntax .crayon-toolbar,.crayon-syntax .crayon-info,.crayon-syntax .crayon-plain,.crayon-syntax .crayon-code{width:100%}.crayon-syntax .crayon-main,.crayon-syntax .crayon-plain{overflow:auto}.crayon-syntax,.crayon-syntax .crayon-main,.crayon-syntax .crayon-plain,.crayon-syntax .crayon-table{padding:0;margin:0}.crayon-syntax-inline{margin:0 2px;padding:0 2px}.crayon-syntax .crayon-table{border:none!important;background:none!important;padding:0!important;margin-top:0!important;margin-right:0!important;margin-bottom:0!important;width:auto!important;border-spacing:0!important;border-collapse:collapse!important}.crayon-syntax .crayon-table td,.crayon-syntax .crayon-table tr{padding:0!important;border:none!important;background:0;vertical-align:top!important;margin:0!important}.crayon-syntax .crayon-invisible{display:none!important}.crayon-plain-tag{margin-bottom:12px}.crayon-popup .crayon-plain{display:block!important;width:100%!important;height:100%!important;opacity:100!important;position:relative!important}.crayon-popup-window{background:#fff}.crayon-syntax .crayon-num{text-align:center;padding:0 5px;margin:0}.crayon-syntax .crayon-toolbar{position:relative;overflow:hidden;z-index:4}.crayon-syntax .crayon-info{position:absolute;overflow:hidden;display:none;z-index:3;padding:0;min-height:18px;line-height:18px}.crayon-syntax .crayon-info div{padding:2px!important;text-align:center}.crayon-syntax .crayon-toolbar span{padding:0 4px!important}.crayon-syntax .crayon-toolbar .crayon-button{display:inline;float:left!important;position:relative;width:24px;background-repeat:no-repeat;line-height:15px;border:0;text-decoration:none}.crayon-toolbar .crayon-button,.crayon-toolbar .crayon-button:hover,.crayon-toolbar .crayon-button.crayon-pressed:hover{background-position:0 center}.crayon-toolbar .crayon-button.crayon-pressed,.crayon-toolbar .crayon-button:active,.crayon-toolbar .crayon-button.crayon-pressed:active{background-position:-24px 0}.crayon-toolbar .crayon-button.crayon-popup-button .crayon-button-icon,.crayon-toolbar .crayon-button.crayon-popup-button:hover .crayon-button-icon,.crayon-toolbar .crayon-button.crayon-popup-button.crayon-pressed:hover .crayon-button-icon{background-position:0 0}.crayon-toolbar .crayon-button.crayon-copy-button .crayon-button-icon,.crayon-toolbar .crayon-button.crayon-copy-button:hover .crayon-button-icon,.crayon-toolbar .crayon-button.crayon-copy-button.crayon-pressed:hover .crayon-button-icon{background-position:0 -16px}.crayon-toolbar .crayon-button.crayon-nums-button .crayon-button-icon,.crayon-toolbar .crayon-button.crayon-nums-button:hover .crayon-button-icon,.crayon-toolbar .crayon-button.crayon-nums-button.crayon-pressed:hover .crayon-button-icon{background-position:0 -32px}.crayon-toolbar .crayon-button.crayon-plain-button .crayon-button-icon,.crayon-toolbar .crayon-button.crayon-plain-button:hover .crayon-button-icon,.crayon-toolbar .crayon-button.crayon-plain-button.crayon-pressed:hover .crayon-button-icon{background-position:0 -48px}.crayon-toolbar .crayon-button.crayon-mixed-button .crayon-button-icon,.crayon-toolbar .crayon-button.crayon-mixed-button:hover .crayon-button-icon,.crayon-toolbar .crayon-button.crayon-mixed-button.crayon-pressed:hover .crayon-button-icon{background-position:0 -64px}.crayon-toolbar .crayon-button.crayon-minimize .crayon-button-icon{background-position:0 -80px;background-color:transparent!important}.crayon-toolbar .crayon-button.crayon-expand-button .crayon-button-icon,.crayon-toolbar .crayon-button.crayon-expand-button:hover .crayon-button-icon,.crayon-toolbar .crayon-button.crayon-expand-button.crayon-pressed:hover .crayon-button-icon{background-position:0 -96px}.crayon-toolbar .crayon-button.crayon-wrap-button .crayon-button-icon,.crayon-toolbar .crayon-button.crayon-wrap-button:hover .crayon-button-icon,.crayon-toolbar .crayon-button.crayon-wrap-button.crayon-pressed:hover .crayon-button-icon{background-position:0 -112px}.crayon-toolbar .crayon-button.crayon-popup-button.crayon-pressed .crayon-button-icon,.crayon-toolbar .crayon-button.crayon-popup-button:active .crayon-button-icon,.crayon-toolbar .crayon-button.crayon-popup-button.crayon-pressed:active .crayon-button-icon{background-position:-24px 0}.crayon-toolbar .crayon-button.crayon-copy-button.crayon-pressed .crayon-button-icon,.crayon-toolbar .crayon-button.crayon-copy-button:active .crayon-button-icon,.crayon-toolbar .crayon-button.crayon-copy-button.crayon-pressed:active .crayon-button-icon{background-position:-24px -16px}.crayon-toolbar .crayon-button.crayon-nums-button.crayon-pressed .crayon-button-icon,.crayon-toolbar .crayon-button.crayon-nums-button:active .crayon-button-icon,.crayon-toolbar .crayon-button.crayon-nums-button.crayon-pressed:active .crayon-button-icon{background-position:-24px -32px}.crayon-toolbar .crayon-button.crayon-plain-button.crayon-pressed .crayon-button-icon,.crayon-toolbar .crayon-button.crayon-plain-button:active .crayon-button-icon,.crayon-toolbar .crayon-button.crayon-plain-button.crayon-pressed:active .crayon-button-icon{background-position:-24px -48px}.crayon-toolbar .crayon-button.crayon-mixed-button.crayon-pressed .crayon-button-icon,.crayon-toolbar .crayon-button.crayon-mixed-button:active .crayon-button-icon,.crayon-toolbar .crayon-button.crayon-mixed-button.crayon-pressed:active .crayon-button-icon{background-position:-24px -64px}.crayon-toolbar .crayon-button.crayon-minimize .crayon-button-icon{background-position:-24px -80px;background-color:transparent!important}.crayon-toolbar .crayon-button.crayon-expand-button.crayon-pressed .crayon-button-icon,.crayon-toolbar .crayon-button.crayon-expand-button:active .crayon-button-icon,.crayon-toolbar .crayon-button.crayon-expand-button.crayon-pressed:active .crayon-button-icon{background-position:-24px -96px}.crayon-toolbar .crayon-button.crayon-wrap-button.crayon-pressed .crayon-button-icon,.crayon-toolbar .crayon-button.crayon-wrap-button:active .crayon-button-icon,.crayon-toolbar .crayon-button.crayon-wrap-button.crayon-pressed:active .crayon-button-icon{background-position:-24px -112px}.crayon-syntax .crayon-toolbar .crayon-language{padding-right:8px!important}.crayon-syntax .crayon-title,.crayon-syntax .crayon-language{float:left}.crayon-main::-webkit-scrollbar,.crayon-plain::-webkit-scrollbar{height:6px;overflow:visible;width:6px;background:#EEE}.crayon-main::-webkit-scrollbar-thumb,.crayon-plain::-webkit-scrollbar-thumb{background-color:#CCC;background-clip:padding-box;border:1px solid #AAA;box-shadow:inset 0 0 2px #999;min-height:8px;padding:0;border-width:1px}.crayon-main::-webkit-scrollbar-button,.crayon-plain::-webkit-scrollbar-button{height:0;width:0;padding:0}.crayon-main::-webkit-scrollbar-track,.crayon-plain::-webkit-scrollbar-track{background-clip:padding-box;border:solid transparent;border-width:0 0 0 4px;border:1px solid #BBB;border-right:0;border-bottom:0}.crayon-main::-webkit-scrollbar-corner,.crayon-plain::-webkit-scrollbar-corner{background:#EEE}.crayon-main::-webkit-scrollbar-thumb:hover,.crayon-plain::-webkit-scrollbar-thumb:hover{background:#AAA;border:1px solid #777;box-shadow:inset 0 0 2px #777}.crayon-syntax .crayon-pre,.crayon-syntax pre{color:#000;white-space:pre;margin:0;padding:0;overflow:visible;background:none!important;border:none!important;tab-size:4}.crayon-syntax .crayon-line{padding:0 5px}.crayon-syntax.crayon-wrapped .crayon-line{white-space:pre-wrap!important}.crayon-syntax-inline .crayon-pre,.crayon-syntax-inline pre{white-space:normal}.crayon-syntax-inline-nowrap .crayon-pre,.crayon-syntax-inline-nowrap pre{white-space:pre}.crayon-syntax{font-family:Monaco,'MonacoRegular','Courier New',monospace;font-weight:500}.crayon-table .crayon-nums-content{white-space:nowrap}.crayon-syntax.crayon-wrapped .crayon-line{height:auto}.crayon-syntax .crayon-num,.crayon-syntax .crayon-pre .crayon-line,.crayon-syntax .crayon-toolbar *,.crayon-syntax .crayon-pre *{font-family:inherit;font-size:inherit!important;line-height:inherit!important;font-weight:inherit!important;height:inherit}.crayon-syntax .crayon-toolbar .crayon-button .crayon-button-icon{background-image:url('../images/toolbar/buttons.png');height:16px!important;width:100%;position:absolute;left:0;top:50%;margin-top:-8px}.crayon-syntax .crayon-toolbar .crayon-tools{position:absolute;right:0}.crayon-syntax.crayon-expanded{position:absolute!important;margin:0!important}.crayon-syntax.crayon-expanded .crayon-main{overflow:hidden!important}.crayon-placeholder{width:100%!important}.crayon-toolbar-visible .crayon-toolbar{position:relative!important;margin-top:0!important;display:block!important}.crayon-syntax.crayon-expanded .crayon-toolbar .crayon-tools{position:relative;right:auto;float:left!important}.crayon-syntax .crayon-plain-wrap{height:auto!important;padding:0!important;margin:0!important}.crayon-syntax .crayon-plain{width:100%;height:100%;position:absolute;opacity:0;padding:0 5px;margin:0;border:0;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-shadow:none;border-radius:0;-webkit-box-shadow:none;-moz-box-shadow:none;white-space:pre;word-wrap:normal;overflow:auto;resize:none;color:#000;background:#FFF}.crayon-wrapped .crayon-plain{white-space:pre-wrap}.bbp-body .crayon-syntax{clear:none!important}.crayon-minimized .crayon-toolbar{cursor:pointer}.crayon-minimized .crayon-plain-wrap,.crayon-minimized .crayon-main,.crayon-minimized .crayon-toolbar .crayon-tools *{display:none!important}.crayon-minimized .crayon-toolbar .crayon-tools .crayon-minimize{display:block!important}.crayon-minimized .crayon-toolbar{position:relative!important}.crayon-syntax.crayon-minimized .crayon-toolbar{border-bottom:none!important}.crayon-te *,#crayon-te-bar-content{font-family:"Lucida Grande",Arial,sans-serif!important;font-size:12px}.crayon-te input[type="text"],.crayon-te textarea{background:#f9f9f9;border:1px solid #CCC;box-shadow:inset 1px 1px 1px rgba(0,0,0,0.1);-moz-box-shadow:inset 1px 1px 1px rgba(0,0,0,0.1);-webkit-box-shadow:inset 1px 1px 1px rgba(0,0,0,0.1);padding:2px 4px;-webkit-border-radius:3px;border-radius:3px;border-width:1px;border-style:solid}.crayon-te #crayon-code{font-family:monospace!important}#crayon-te-content,#crayon-te-table{width:100%;height:auto!important}#crayon-range,#crayon-mark{width:100px}#crayon-te-table th,#crayon-te-table td{vertical-align:top;text-align:left}.rtl #crayon-te-table th,.rtl #crayon-te-table td{text-align:right}#crayon-te-table .crayon-tr-center td,#crayon-te-table .crayon-tr-center th{vertical-align:middle}#crayon-te-table .crayon-nowrap{white-space:nowrap}#crayon-te-bar{position:absolute;top:0;left:0;width:100%}#crayon-te-bar-content{border:1px solid #666;border-bottom:0;height:26px;line-height:25px;padding:0 8px;padding-right:0;background-color:#222;color:#cfcfcf}#crayon-te-bar-content a{line-height:25px;padding:5px 10px;color:#DDD;font-weight:bold;text-decoration:none!important}#crayon-te-bar-content a:hover{color:#FFF}.crayon-te-seperator{color:#666;margin:0;padding:0}#crayon-te-bar-block{height:34px;width:100%}#crayon-te-title{float:left}#crayon-te-controls{float:right}#crayon-url-th{vertical-align:top!important;padding-top:5px}.crayon-te-heading{font-size:14px;font-weight:bold}#crayon-te-settings-info{text-align:center}.crayon-te-section{font-weight:bold;padding:0 10px}#crayon-te-sub-section{margin-left:10px}#crayon-te-sub-section .crayon-te-section{font-weight:normal;padding:0}#crayon-code{height:200px;white-space:pre}#crayon-code,#crayon-url{width:555px!important}.crayon-disabled{background:#EEE!important}.qt_crayon_highlight{background-image:-ms-linear-gradient(bottom,#daf2ff,white)!important;background-image:-moz-linear-gradient(bottom,#daf2ff,white)!important;background-image:-o-linear-gradient(bottom,#daf2ff,white)!important;background-image:-webkit-linear-gradient(bottom,#daf2ff,white)!important;background-image:linear-gradient(bottom,#daf2ff,white)!important}.qt_crayon_highlight:hover{background:#ddebf2!important}.crayon-tag-editor-button-wrapper{display:inline-block}.mce_crayon_tinymce{padding:0!important;margin:2px 3px!important}.mce-i-crayon_tinymce,.mce_crayon_tinymce{background:url(../images/crayon_tinymce.png) 0 0!important}a.mce_crayon_tinymce{background-position:2px 0!important}.wp_themeSkin .mceButtonEnabled:hover span.mce_crayon_tinymce,.wp_themeSkin .mceButtonActive span.mce_crayon_tinymce{background-position:-20px 0}.wp_themeSkin span.mce_crayon_tinymce{background:none!important}#crayon-te-table{margin-top:26px;padding:10px;border-collapse:separate!important;border-spacing:2px!important}#crayon-te-table th{width:100px}#crayon-te-clear{margin-left:10px;color:#666;background-color:#f4f4f4;border:1px solid #CCC;border-radius:3px;margin-left:8px}#crayon-title{width:360px}#TB_window.crayon-te-ajax{overflow:auto!important}#TB_window.crayon-te-ajax,#TB_window.crayon-te-ajax #TB_ajaxContent,#TB_window.crayon-te-ajax #TB_title{width:680px!important}#TB_window.crayon-te-ajax #TB_ajaxContent{padding:0!important;margin:0!important;width:100%!important;height:auto!important;margin-top:28px!important}#TB_window.crayon-te-ajax #TB_title{position:fixed!important}#TB_window.crayon-te-ajax #TB_title .crayon-te-submit{margin-top:3px!important;float:right!important}#TB_window.crayon-te-ajax a{color:#2587e2;text-decoration:none}#TB_window.crayon-te-ajax a:hover{color:#499ce9}.crayon-te-quote{background:#DDD;padding:0 2px}#crayon-te-submit-wrapper{display:none}#crayon-te-clear{display:none;margin:0;margin-top:10px}.crayon-syntax-pre{background:red;white-space:pre;overflow:auto;display:block;word-wrap:break-word}.crayon-question{padding:1px 4px!important;text-decoration:none!important;color:#83b3cb!important;border-radius:10px!important;height:15px!important;width:15px!important}.crayon-question:hover{background:#83b3cb!important;color:white!important;height:15px!important;width:15px!important}.crayon-setting-changed,.crayon-setting-selected{background:#fffaad!important}.crayon-question:hover{color:white;background:#a6d6ef}#crayon-te-warning{display:none}.crayon-te-info{padding:5px!important;margin:2px 0!important}#crayon-te-submit{margin-bottom:5px}
|
js/min/crayon.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
var jQueryCrayon=jQuery;(function(a){a(document).ready(function(){CrayonUtil.init()});CrayonUtil=new function(){var c=this;var b=null;c.init=function(){b=CrayonSyntaxSettings;c.initGET()};c.addPrefixToID=function(d){return d.replace(/^([#.])?(.*)$/,"$1"+b.prefix+"$2")};c.removePrefixFromID=function(e){var d=new RegExp("^[#.]?"+b.prefix,"i");return e.replace(d,"")};c.cssElem=function(d){return a(c.addPrefixToID(d))};c.setDefault=function(e,f){return(typeof e=="undefined")?f:e};c.setMax=function(e,d){return e<=d?e:d};c.setMin=function(d,e){return d>=e?d:e};c.setRange=function(e,f,d){return c.setMax(c.setMin(e,f),d)};c.getExt=function(e){if(e.indexOf(".")==-1){return undefined}var d=e.split(".");if(d.length){d=d[d.length-1]}else{d=""}return d};c.initGET=function(){window.currentURL=window.location.protocol+"//"+window.location.host+window.location.pathname;window.currentDir=window.currentURL.substring(0,window.currentURL.lastIndexOf("/"));function d(e){e=e.split("+").join(" ");var h={},g,f=/[?&]?([^=]+)=([^&]*)/g;while(g=f.exec(e)){h[decodeURIComponent(g[1])]=decodeURIComponent(g[2])}return h}window.GET=d(document.location.search)};c.getAJAX=function(d,e){d.version=b.version;a.get(b.ajaxurl,d,e)};c.postAJAX=function(d,e){d.version=b.version;a.post(b.ajaxurl,d,e)};c.reload=function(){var d="?";for(var e in window.GET){d+=e+"="+window.GET[e]+"&"}window.location=window.currentURL+d};c.escape=function(d){if(typeof encodeURIComponent=="function"){return encodeURIComponent(d)}else{if(typeof escape!="function"){return escape(d)}else{return d}}};c.log=function(d){if(typeof console!="undefined"&&b.debug){console.log(d)}};c.decode_html=function(d){return String(d).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")};c.encode_html=function(d){return String(d).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")};c.getReadableColor=function(g,f){f=a.extend({amount:0.5,xMulti:1,yMulti:1.5,normalizeHue:[20,180],normalizeHueXMulti:1/2.5,normalizeHueYMulti:1},f);var d=tinycolor(g);var e=d.toHsv();var j={x:e.s,y:1-e.v};j.x*=f.xMulti;j.y*=f.yMulti;if(f.normalizeHue&&e.h>f.normalizeHue[0]&&e.h<f.normalizeHue[1]){j.x*=f.normalizeHueXMulti;j.y*=f.normalizeHueYMulti}var h=Math.sqrt(Math.pow(j.x,2)+Math.pow(j.y,2));if(h<f.amount){e.v=0}else{e.v=1}e.s=0;return tinycolor(e).toHexString()};c.removeChars=function(e,f){var d=new RegExp("["+e+"]","gmi");return f.replace(d,"")}};a.fn.bindFirst=function(c,e){this.bind(c,e);var b=this.data("events")[c.split(".")[0]];var d=b.pop();b.splice(0,0,d)};a.keys=function(d){var c=[];for(var b in d){c.push(b)}return c};RegExp.prototype.execAll=function(c){var f=[];var b=null;while((b=this.exec(c))!=null){var e=[];for(var d in b){if(parseInt(d)==d){e.push(b[d])}}f.push(e)}return f};RegExp.prototype.escape=function(b){return b.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")};String.prototype.sliceReplace=function(d,b,c){return this.substring(0,d)+c+this.substring(b)};String.prototype.escape=function(){var b={"&":"&","<":"<",">":">"};return this.replace(/[&<>]/g,function(c){return b[c]||c})};String.prototype.linkify=function(b){b=typeof b!="undefined"?b:"";return this.replace(/(http(s)?:\/\/(\S)+)/gmi,'<a href="$1" target="'+b+'">$1</a>')};String.prototype.toTitleCase=function(){var b=this.split(/\s+/);var c="";a.each(b,function(e,d){if(d!=""){c+=d.slice(0,1).toUpperCase()+d.slice(1,d.length);if(e!=b.length-1&&b[e+1]!=""){c+=" "}}});return c}})(jQueryCrayon);jqueryPopup=Object();jqueryPopup.defaultSettings={centerBrowser:0,centerScreen:0,height:500,left:0,location:0,menubar:0,resizable:0,scrollbars:0,status:0,width:500,windowName:null,windowURL:null,top:0,toolbar:0,data:null,event:"click"};(function(a){popupWindow=function(d,c,f,b){f=typeof f!=="undefined"?f:null;b=typeof b!=="undefined"?b:null;if(typeof d=="string"){d=jQuery(d)}if(!(d instanceof jQuery)){return false}var e=jQuery.extend({},jqueryPopup.defaultSettings,c||{});d.handler=jQuery(d).bind(e.event,function(){if(f){f()}var g="height="+e.height+",width="+e.width+",toolbar="+e.toolbar+",scrollbars="+e.scrollbars+",status="+e.status+",resizable="+e.resizable+",location="+e.location+",menuBar="+e.menubar;e.windowName=e.windowName||jQuery(this).attr("name");var h=jQuery(this).attr("href");if(!e.windowURL&&!(h=="#")&&!(h=="")){e.windowURL=jQuery(this).attr("href")}var j,k;var l=null;if(e.centerBrowser){if(typeof window.screenY=="undefined"){j=(window.screenTop-120)+((((document.documentElement.clientHeight+120)/2)-(e.height/2)));k=window.screenLeft+((((document.body.offsetWidth+20)/2)-(e.width/2)))}else{j=window.screenY+(((window.outerHeight/2)-(e.height/2)));k=window.screenX+(((window.outerWidth/2)-(e.width/2)))}l=window.open(e.windowURL,e.windowName,g+",left="+k+",top="+j)}else{if(e.centerScreen){j=(screen.height-e.height)/2;k=(screen.width-e.width)/2;l=window.open(e.windowURL,e.windowName,g+",left="+k+",top="+j)}else{l=window.open(e.windowURL,e.windowName,g+",left="+e.left+",top="+e.top)}}if(l!=null){l.focus();if(e.data){l.document.write(e.data)}}if(b){b()}});return e};popdownWindow=function(b,c){if(typeof c=="undefined"){c="click"}b=jQuery(b);if(!(b instanceof jQuery)){return false}b.unbind(c,b.handler)}})(jQueryCrayon);(function(f){f.fn.exists=function(){return this.length!==0};f.fn.style=function(C,F,B){var E=this.get(0);if(typeof E=="undefined"){return}var D=E.style;if(typeof C!="undefined"){if(typeof F!="undefined"){B=typeof B!="undefined"?B:"";if(typeof D.setProperty!="undefined"){D.setProperty(C,F,B)}else{D[C]=F}}else{return D[C]}}else{return D}};var d="crayon-pressed";var a="";var o="div.crayon-syntax";var e=".crayon-toolbar";var c=".crayon-info";var x=".crayon-plain";var p=".crayon-main";var n=".crayon-table";var w=".crayon-loading";var h=".crayon-code";var q=".crayon-title";var m=".crayon-tools";var b=".crayon-nums";var k=".crayon-num";var r=".crayon-line";var g="crayon-wrapped";var t=".crayon-nums-content";var v=".crayon-nums-button";var l=".crayon-wrap-button";var j=".crayon-expand-button";var u="crayon-expanded crayon-toolbar-visible";var z="crayon-placeholder";var y=".crayon-popup-button";var s=".crayon-copy-button";var A=".crayon-plain-button";f(document).ready(function(){CrayonSyntax.init()});CrayonSyntax=new function(){var J=this;var O=new Object();var ah;var I;var H=0;var aa;J.init=function(){if(typeof O=="undefined"){O=new Object()}ah=CrayonSyntaxSettings;I=CrayonSyntaxStrings;f(o).each(function(){J.process(this)})};J.process=function(aE,aF){aE=f(aE);var at=aE.attr("id");if(at=="crayon-"){at+=Y()}aE.attr("id",at);CrayonUtil.log(at);if(typeof aF=="undefined"){aF=false}if(!aF&&!ab(at)){return}var av=aE.find(e);var aD=aE.find(c);var aq=aE.find(x);var ar=aE.find(p);var aC=aE.find(n);var ak=aE.find(h);var aH=aE.find(q);var aB=aE.find(m);var az=aE.find(b);var aw=aE.find(t);var aA=aE.find(v);var an=aE.find(l);var ap=aE.find(j);var aG=aE.find(y);var au=aE.find(s);var am=aE.find(A);O[at]=aE;O[at].toolbar=av;O[at].plain=aq;O[at].info=aD;O[at].main=ar;O[at].table=aC;O[at].code=ak;O[at].title=aH;O[at].tools=aB;O[at].nums=az;O[at].nums_content=aw;O[at].numsButton=aA;O[at].wrapButton=an;O[at].expandButton=ap;O[at].popup_button=aG;O[at].copy_button=au;O[at].plainButton=am;O[at].numsVisible=true;O[at].wrapped=false;O[at].plainVisible=false;O[at].toolbar_delay=0;O[at].time=1;f(x).css("z-index",0);var ax=ar.style();O[at].mainStyle={height:ax&&ax.height||"","max-height":ax&&ax.maxHeight||"","min-height":ax&&ax.minHeight||"",width:ax&&ax.width||"","max-width":ax&&ax.maxWidth||"","min-width":ax&&ax.minWidth||""};O[at].mainHeightAuto=O[at].mainStyle.height==""&&O[at].mainStyle["max-height"]=="";var al;var ay=0;O[at].loading=true;O[at].scrollBlockFix=false;aA.click(function(){CrayonSyntax.toggleNums(at)});an.click(function(){CrayonSyntax.toggleWrap(at)});ap.click(function(){CrayonSyntax.toggleExpand(at)});am.click(function(){CrayonSyntax.togglePlain(at)});au.click(function(){CrayonSyntax.copyPlain(at)});C(at);var ao=function(){if(az.filter('[data-settings~="hide"]').length!=0){aw.ready(function(){CrayonUtil.log("function"+at);CrayonSyntax.toggleNums(at,true,true)})}else{ad(at)}if(typeof O[at].expanded=="undefined"){if(Math.abs(O[at].main.outerWidth()-O[at].table.outerWidth())<10){O[at].expandButton.hide()}else{O[at].expandButton.show()}}if(ay==5){clearInterval(al);O[at].loading=false}ay++};al=setInterval(ao,300);D(at);f(k,O[at]).each(function(){var aK=f(this).attr("data-line");var aJ=f("#"+aK);var aI=aJ.style("height");if(aI){aJ.attr("data-height",aI)}});ar.css("position","relative");ar.css("z-index",1);aa=(aE.filter('[data-settings~="touchscreen"]').length!=0);if(!aa){ar.click(function(){B(at,"",false)});aq.click(function(){B(at,"",false)});aD.click(function(){B(at,"",false)})}if(aE.filter('[data-settings~="no-popup"]').length==0){O[at].popup_settings=popupWindow(aG,{height:screen.height-200,width:screen.width-100,top:75,left:50,scrollbars:1,windowURL:"",data:""},function(){G(at)},function(){})}aq.css("opacity",0);O[at].toolbarVisible=true;O[at].hasOneLine=aC.outerHeight()<av.outerHeight()*2;O[at].toolbarMouseover=false;if(av.filter('[data-settings~="mouseover"]').length!=0&&!aa){O[at].toolbarMouseover=true;O[at].toolbarVisible=false;av.css("margin-top","-"+av.outerHeight()+"px");av.hide();if(av.filter('[data-settings~="overlay"]').length!=0&&!O[at].hasOneLine){av.css("position","absolute");av.css("z-index",2);if(av.filter('[data-settings~="hide"]').length!=0){ar.click(function(){U(at,undefined,undefined,0)});aq.click(function(){U(at,false,undefined,0)})}}else{av.css("z-index",4)}if(av.filter('[data-settings~="delay"]').length!=0){O[at].toolbar_delay=500}aE.mouseenter(function(){U(at,true)}).mouseleave(function(){U(at,false)})}else{if(aa){av.show()}}if(aE.filter('[data-settings~="minimize"]').length==0){J.minimize(at)}if(aq.length!=0&&!aa){if(aq.filter('[data-settings~="dblclick"]').length!=0){ar.dblclick(function(){CrayonSyntax.togglePlain(at)})}else{if(aq.filter('[data-settings~="click"]').length!=0){ar.click(function(){CrayonSyntax.togglePlain(at)})}else{if(aq.filter('[data-settings~="mouseover"]').length!=0){aE.mouseenter(function(){CrayonSyntax.togglePlain(at,true)}).mouseleave(function(){CrayonSyntax.togglePlain(at,false)});aA.hide()}}}if(aq.filter('[data-settings~="show-plain-default"]').length!=0){CrayonSyntax.togglePlain(at,true)}}var aj=aE.filter('[data-settings~="expand"]').length!=0;if(!aa&&aE.filter('[data-settings~="scroll-mouseover"]').length!=0){ar.css("overflow","hidden");aq.css("overflow","hidden");aE.mouseenter(function(){N(at,true,aj)}).mouseleave(function(){N(at,false,aj)})}if(aj){aE.mouseenter(function(){E(at,true)}).mouseleave(function(){E(at,false)})}if(aE.filter('[data-settings~="disable-anim"]').length!=0){O[at].time=0}if(aE.filter('[data-settings~="wrap"]').length!=0){O[at].wrapped=true}O[at].mac=aE.hasClass("crayon-os-mac");ad(at);ac(at);Z(at)};var ab=function(aj){CrayonUtil.log(O);if(typeof O[aj]=="undefined"){O[aj]=f("#"+aj);CrayonUtil.log("make "+aj);return true}CrayonUtil.log("no make "+aj);return false};var Y=function(){return H++};var G=function(aj){if(typeof O[aj]=="undefined"){return ab(aj)}var ak=O[aj].popup_settings;if(ak.data){return}var am=O[aj].clone(true);am.removeClass("crayon-wrapped");if(O[aj].wrapped){f(k,am).each(function(){var ap=f(this).attr("data-line");var ao=f("#"+ap);var an=ao.attr("data-height");an=an?an:"";if(typeof an!="undefined"){ao.css("height",an);f(this).css("height",an)}})}am.find(p).css("height","");var al="";if(O[aj].plainVisible){al=am.find(x)}else{al=am.find(p)}ak.data=J.getAllCSS()+'<body class="crayon-popup-window" style="padding:0; margin:0;"><div class="'+am.attr("class")+' crayon-popup">'+J.removeCssInline(J.getHtmlString(al))+"</div></body>"};J.minimize=function(am){var al=f('<div class="crayon-minimize crayon-button"><div>');O[am].tools.append(al);O[am].origTitle=O[am].title.html();if(!O[am].origTitle){O[am].title.html(I.minimize)}var ak="crayon-minimized";var aj=function(){O[am].toolbarPreventHide=false;al.remove();O[am].removeClass(ak);O[am].title.html(O[am].origTitle);var an=O[am].toolbar;if(an.filter('[data-settings~="never-show"]').length!=0){an.remove()}};O[am].toolbar.click(aj);al.click(aj);O[am].addClass(ak);O[am].toolbarPreventHide=true;U(am,undefined,undefined,0)};J.getHtmlString=function(aj){return f("<div>").append(aj.clone()).remove().html()};J.removeCssInline=function(al){var ak=/style\s*=\s*"([^"]+)"/gmi;var aj=null;while((aj=ak.exec(al))!=null){var am=aj[1];am=am.replace(/\b(?:width|height)\s*:[^;]+;/gmi,"");al=al.sliceReplace(aj.index,aj.index+aj[0].length,'style="'+am+'"')}return al};J.getAllCSS=function(){var al="";var ak=f('link[rel="stylesheet"]');var aj=[];if(ak.length==1){aj=ak}else{aj=ak.filter('[href*="crayon-syntax-highlighter"], [href*="min/"]')}aj.each(function(){var am=J.getHtmlString(f(this));al+=am});return al};J.copyPlain=function(al,am){if(typeof O[al]=="undefined"){return ab(al)}var ak=O[al].plain;J.togglePlain(al,true,true);U(al,true);var aj=O[al].mac?"\u2318":"CTRL";var an=I.copy;an=an.replace(/%s/,aj+"+C");an=an.replace(/%s/,aj+"+V");B(al,an);return false};var B=function(ak,am,aj){if(typeof O[ak]=="undefined"){return ab(ak)}var al=O[ak].info;if(typeof am=="undefined"){am=""}if(typeof aj=="undefined"){aj=true}if(M(al)&&aj){al.html("<div>"+am+"</div>");al.css("margin-top",-al.outerHeight());al.show();R(ak,al,true);setTimeout(function(){R(ak,al,false)},5000)}if(!aj){R(ak,al,false)}};var C=function(aj){if(window.devicePixelRatio>1){var ak=f(".crayon-button-icon",O[aj].toolbar);ak.each(function(){var am=f(this).css("background-image");var al=am.replace(/\.(?=[^\.]+$)/g,"@2x.");f(this).css("background-size","48px 128px");f(this).css("background-image",al)})}};var M=function(aj){var ak="-"+aj.outerHeight()+"px";if(aj.css("margin-top")==ak||aj.css("display")=="none"){return true}else{return false}};var R=function(am,al,ak,ao,an,aq){var aj=function(){if(aq){aq(am,al)}};var ap="-"+al.outerHeight()+"px";if(typeof ak=="undefined"){if(M(al)){ak=true}else{ak=false}}if(typeof ao=="undefined"){ao=100}if(ao==false){ao=false}if(typeof an=="undefined"){an=0}al.stop(true);if(ak==true){al.show();al.animate({marginTop:0},ai(ao,am),aj)}else{if(ak==false){if(al.css("margin-top")=="0px"&&an){al.delay(an)}al.animate({marginTop:ap},ai(ao,am),function(){al.hide();aj()})}}};J.togglePlain=function(am,an,ak){if(typeof O[am]=="undefined"){return ab(am)}var aj=O[am].main;var al=O[am].plain;if((aj.is(":animated")||al.is(":animated"))&&typeof an=="undefined"){return}af(am);var ap,ao;if(typeof an!="undefined"){if(an){ap=aj;ao=al}else{ap=al;ao=aj}}else{if(aj.css("z-index")==1){ap=aj;ao=al}else{ap=al;ao=aj}}O[am].plainVisible=(ao==al);O[am].top=ap.scrollTop();O[am].left=ap.scrollLeft();O[am].scrollChanged=false;D(am);ap.stop(true);ap.fadeTo(ai(500,am),0,function(){ap.css("z-index",0)});ao.stop(true);ao.fadeTo(ai(500,am),1,function(){ao.css("z-index",1);if(ao==al){if(ak){al.select()}else{}}ao.scrollTop(O[am].top+1);ao.scrollTop(O[am].top);ao.scrollLeft(O[am].left+1);ao.scrollLeft(O[am].left)});ao.scrollTop(O[am].top);ao.scrollLeft(O[am].left);ac(am);U(am,false);return false};J.toggleNums=function(an,am,aj){if(typeof O[an]=="undefined"){ab(an);return false}if(O[an].table.is(":animated")){return false}var ap=Math.round(O[an].nums_content.outerWidth()+1);var ao="-"+ap+"px";var al;if(typeof am!="undefined"){al=false}else{al=(O[an].table.css("margin-left")==ao)}var ak;if(al){ak="0px";O[an].numsVisible=true}else{O[an].table.css("margin-left","0px");O[an].numsVisible=false;ak=ao}if(typeof aj!="undefined"){O[an].table.css("margin-left",ak);ad(an);return false}var aq=(O[an].table.outerWidth()+K(O[an].table.css("margin-left"))>O[an].main.outerWidth());var ar=(O[an].table.outerHeight()>O[an].main.outerHeight());if(!aq&&!ar){O[an].main.css("overflow","hidden")}O[an].table.animate({marginLeft:ak},ai(200,an),function(){if(typeof O[an]!="undefined"){ad(an);if(!aq&&!ar){O[an].main.css("overflow","auto")}}});return false};J.toggleWrap=function(aj){O[aj].wrapped=!O[aj].wrapped;Z(aj)};J.toggleExpand=function(aj){var ak=!CrayonUtil.setDefault(O[aj].expanded,false);E(aj,ak)};var Z=function(aj,ak){ak=CrayonUtil.setDefault(ak,true);if(O[aj].wrapped){O[aj].addClass(g)}else{O[aj].removeClass(g)}F(aj);if(!O[aj].expanded&&ak){W(aj)}O[aj].wrapTimes=0;clearInterval(O[aj].wrapTimer);O[aj].wrapTimer=setInterval(function(){if(O[aj].is(":visible")){P(aj);O[aj].wrapTimes++;if(O[aj].wrapTimes==5){clearInterval(O[aj].wrapTimer)}}},200)};var ae=function(aj){if(typeof O[aj]=="undefined"){ab(aj);return false}};var K=function(ak){if(typeof ak!="string"){return 0}var aj=ak.replace(/[^-0-9]/g,"");if(aj.length==0){return 0}else{return parseInt(aj)}};var ad=function(aj){if(typeof O[aj]=="undefined"||typeof O[aj].numsVisible=="undefined"){return}if(O[aj].numsVisible){O[aj].numsButton.removeClass(a);O[aj].numsButton.addClass(d)}else{O[aj].numsButton.removeClass(d);O[aj].numsButton.addClass(a)}};var F=function(aj){if(typeof O[aj]=="undefined"||typeof O[aj].wrapped=="undefined"){return}if(O[aj].wrapped){O[aj].wrapButton.removeClass(a);O[aj].wrapButton.addClass(d)}else{O[aj].wrapButton.removeClass(d);O[aj].wrapButton.addClass(a)}};var X=function(aj){if(typeof O[aj]=="undefined"||typeof O[aj].expanded=="undefined"){return}if(O[aj].expanded){O[aj].expandButton.removeClass(a);O[aj].expandButton.addClass(d)}else{O[aj].expandButton.removeClass(d);O[aj].expandButton.addClass(a)}};var ac=function(aj){if(typeof O[aj]=="undefined"||typeof O[aj].plainVisible=="undefined"){return}if(O[aj].plainVisible){O[aj].plainButton.removeClass(a);O[aj].plainButton.addClass(d)}else{O[aj].plainButton.removeClass(d);O[aj].plainButton.addClass(a)}};var U=function(ak,aj,am,al){if(typeof O[ak]=="undefined"){return ab(ak)}else{if(!O[ak].toolbarMouseover){return}else{if(aj==false&&O[ak].toolbarPreventHide){return}else{if(aa){return}}}}var an=O[ak].toolbar;if(typeof al=="undefined"){al=O[ak].toolbar_delay}R(ak,an,aj,am,al,function(){O[ak].toolbarVisible=aj})};var S=function(al,aj){var ak=f.extend({},al);ak.width+=aj.width;ak.height+=aj.height;return ak};var Q=function(al,aj){var ak=f.extend({},al);ak.width-=aj.width;ak.height-=aj.height;return ak};var V=function(aj){if(typeof O[aj].initialSize=="undefined"){O[aj].toolbarHeight=O[aj].toolbar.outerHeight();O[aj].innerSize={width:O[aj].width(),height:O[aj].height()};O[aj].outerSize={width:O[aj].outerWidth(),height:O[aj].outerHeight()};O[aj].borderSize=Q(O[aj].outerSize,O[aj].innerSize);O[aj].initialSize={width:O[aj].main.outerWidth(),height:O[aj].main.outerHeight()};O[aj].initialSize.height+=O[aj].toolbarHeight;O[aj].initialOuterSize=S(O[aj].initialSize,O[aj].borderSize);O[aj].finalSize={width:O[aj].table.outerWidth(),height:O[aj].table.outerHeight()};O[aj].finalSize.height+=O[aj].toolbarHeight;O[aj].finalSize.width=CrayonUtil.setMin(O[aj].finalSize.width,O[aj].initialSize.width);O[aj].finalSize.height=CrayonUtil.setMin(O[aj].finalSize.height,O[aj].initialSize.height);O[aj].diffSize=Q(O[aj].finalSize,O[aj].initialSize);O[aj].finalOuterSize=S(O[aj].finalSize,O[aj].borderSize);O[aj].initialSize.height+=O[aj].toolbar.outerHeight()}};var E=function(am,ap){if(typeof O[am]=="undefined"){return ab(am)}if(typeof ap=="undefined"){return}var ak=O[am].main;var ar=O[am].plain;if(ap){if(typeof O[am].expanded=="undefined"){V(am);O[am].expandTime=CrayonUtil.setRange(O[am].diffSize.width/3,300,800);O[am].expanded=false;var aq=O[am].finalOuterSize;O[am].placeholder=f("<div></div>");O[am].placeholder.addClass(z);O[am].placeholder.css(aq);O[am].before(O[am].placeholder);O[am].placeholder.css("margin",O[am].css("margin"));f(window).bind("resize",L)}var an={height:"auto","min-height":"none","max-height":"none"};var aj={width:"auto","min-width":"none","max-width":"none"};O[am].outerWidth(O[am].outerWidth());O[am].css({"min-width":"none","max-width":"none"});var ao={width:O[am].finalOuterSize.width};if(!O[am].mainHeightAuto&&!O[am].hasOneLine){ao.height=O[am].finalOuterSize.height;O[am].outerHeight(O[am].outerHeight())}ak.css(an);ak.css(aj);O[am].stop(true);O[am].animate(ao,ai(O[am].expandTime,am),function(){O[am].expanded=true;X(am)});O[am].placeholder.show();f("body").prepend(O[am]);O[am].addClass(u);L()}else{var at=O[am].initialOuterSize;var al=O[am].toolbar_delay;if(at){O[am].stop(true);if(!O[am].expanded){O[am].delay(al)}var ao={width:at.width};if(!O[am].mainHeightAuto&&!O[am].hasOneLine){ao.height=at.height}O[am].animate(ao,ai(O[am].expandTime,am),function(){ag(am)})}else{setTimeout(function(){ag(am)},al)}O[am].placeholder.hide();O[am].placeholder.before(O[am]);O[am].css({left:"auto",top:"auto"});O[am].removeClass(u)}af(am);if(ap){Z(am,false)}};var L=function(){for(uid in O){if(O[uid].hasClass(u)){O[uid].css(O[uid].placeholder.offset())}}};var ag=function(aj){O[aj].expanded=false;W(aj);X(aj);if(O[aj].wrapped){Z(aj)}};var N=function(am,ak,an){if(typeof O[am]=="undefined"){return ab(am)}if(typeof ak=="undefined"||an||O[am].expanded){return}var aj=O[am].main;var al=O[am].plain;if(ak){aj.css("overflow","auto");al.css("overflow","auto");if(typeof O[am].top!="undefined"){visible=(aj.css("z-index")==1?aj:al);visible.scrollTop(O[am].top-1);visible.scrollTop(O[am].top);visible.scrollLeft(O[am].left-1);visible.scrollLeft(O[am].left)}}else{visible=(aj.css("z-index")==1?aj:al);O[am].top=visible.scrollTop();O[am].left=visible.scrollLeft();aj.css("overflow","hidden");al.css("overflow","hidden")}O[am].scrollChanged=true;D(am)};var D=function(aj){O[aj].table.style("width","100%","important");var ak=setTimeout(function(){O[aj].table.style("width","");clearInterval(ak)},10)};var W=function(al){var ak=O[al].main;var aj=O[al].mainStyle;ak.css(aj);O[al].css("height","auto");O[al].css("width",aj.width);O[al].css("max-width",aj["max-width"]);O[al].css("min-width",aj["min-width"])};var af=function(aj){O[aj].plain.outerHeight(O[aj].main.outerHeight())};var P=function(aj){f(k,O[aj]).each(function(){var am=f(this).attr("data-line");var al=f("#"+am);var ak=null;if(O[aj].wrapped){al.css("height","");ak=al.outerHeight();ak=ak?ak:""}else{ak=al.attr("data-height");ak=ak?ak:"";al.css("height",ak)}f(this).css("height",ak)})};var ai=function(aj,ak){if(aj=="fast"){aj=200}else{if(aj=="slow"){aj=600}else{if(!T(aj)){aj=parseInt(aj);if(isNaN(aj)){return 0}}}}return aj*O[ak].time};var T=function(aj){return typeof aj=="number"}}})(jQueryCrayon);var CSSJSON=new function(){var c=this;c.init=function(){String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g,"")};String.prototype.repeat=function(p){return new Array(1+p).join(this)}};c.init();var h=/([^\s\;\{\}][^\;\{\}]*)\{/g;var n=/\}/g;var d=/([^\;\{\}]*)\;/g;var l=/\/\*[\s\S]*?\*\//g;var g=/([^\:]+):([^\;]*);/;var o=/(\/\*[\s\S]*?\*\/)|([^\s\;\{\}][^\;\{\}]*(?=\{))|(\})|([^\;\{\}]+\;(?!\s*\*\/))/gmi;var j=1;var f=2;var b=3;var k=4;var e=function(p){return typeof p=="undefined"||p.length==0||p==null};c.toJSON=function(r,x){var s={children:{},attributes:{}};var u=null;var v=0;if(typeof x=="undefined"){var x={ordered:false,comments:false,stripComments:false,split:false}}if(x.stripComments){x.comments=false;r=r.replace(l,"")}while((u=o.exec(r))!=null){if(!e(u[j])&&x.comments){var C=u[j].trim();s[v++]=C}else{if(!e(u[f])){var p=u[f].trim();var A=c.toJSON(r,x);if(x.ordered){var t={};t.name=p;t.value=A;t.type="rule";s[v++]=t}else{if(x.split){var B=p.split(",")}else{var B=[p]}for(i in B){var q=B[i].trim();if(q in s.children){for(var y in A.attributes){s.children[q].attributes[y]=A.attributes[y]}}else{s.children[q]=A}}}}else{if(!e(u[b])){return s}else{if(!e(u[k])){var D=u[k].trim();var w=g.exec(D);if(w){var p=w[1].trim();var z=w[2].trim();if(x.ordered){var t={};t.name=p;t.value=z;t.type="attr";s[v++]=t}else{s.attributes[p]=z}}else{s[v++]=D}}}}}}return s};c.toCSS=function(r,t,q){var p="";if(typeof t=="undefined"){t=0}if(typeof q=="undefined"){q=false}if(r.attributes){for(i in r.attributes){p+=a(i,r.attributes[i],t)}}if(r.children){var s=true;for(i in r.children){if(q&&!s){p+="\n"}else{s=false}p+=m(i,r.children[i],t)}}return p};var a=function(p,q,r){return"\t".repeat(r)+p+": "+q+";\n"};var m=function(p,r,s){var q="\t".repeat(s)+p+" {\n";q+=c.toCSS(r,s+1);q+="\t".repeat(s)+"}\n";return q}};
|
1 |
+
var jQueryCrayon=jQuery;(function(a){a(document).ready(function(){CrayonUtil.init()});CrayonUtil=new function(){var c=this;var b=null;c.init=function(){b=CrayonSyntaxSettings;c.initGET()};c.addPrefixToID=function(d){return d.replace(/^([#.])?(.*)$/,"$1"+b.prefix+"$2")};c.removePrefixFromID=function(e){var d=new RegExp("^[#.]?"+b.prefix,"i");return e.replace(d,"")};c.cssElem=function(d){return a(c.addPrefixToID(d))};c.setDefault=function(e,f){return(typeof e=="undefined")?f:e};c.setMax=function(e,d){return e<=d?e:d};c.setMin=function(d,e){return d>=e?d:e};c.setRange=function(e,f,d){return c.setMax(c.setMin(e,f),d)};c.getExt=function(e){if(e.indexOf(".")==-1){return undefined}var d=e.split(".");if(d.length){d=d[d.length-1]}else{d=""}return d};c.initGET=function(){window.currentURL=window.location.protocol+"//"+window.location.host+window.location.pathname;window.currentDir=window.currentURL.substring(0,window.currentURL.lastIndexOf("/"));function d(e){e=e.split("+").join(" ");var h={},g,f=/[?&]?([^=]+)=([^&]*)/g;while(g=f.exec(e)){h[decodeURIComponent(g[1])]=decodeURIComponent(g[2])}return h}window.GET=d(document.location.search)};c.getAJAX=function(d,e){d.version=b.version;a.get(b.ajaxurl,d,e)};c.postAJAX=function(d,e){d.version=b.version;a.post(b.ajaxurl,d,e)};c.reload=function(){var d="?";for(var e in window.GET){d+=e+"="+window.GET[e]+"&"}window.location=window.currentURL+d};c.escape=function(d){if(typeof encodeURIComponent=="function"){return encodeURIComponent(d)}else{if(typeof escape!="function"){return escape(d)}else{return d}}};c.log=function(d){if(typeof console!="undefined"&&b.debug){console.log(d)}};c.decode_html=function(d){return String(d).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")};c.encode_html=function(d){return String(d).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")};c.getReadableColor=function(g,f){f=a.extend({amount:0.5,xMulti:1,yMulti:1.5,normalizeHue:[20,180],normalizeHueXMulti:1/2.5,normalizeHueYMulti:1},f);var d=tinycolor(g);var e=d.toHsv();var i={x:e.s,y:1-e.v};i.x*=f.xMulti;i.y*=f.yMulti;if(f.normalizeHue&&e.h>f.normalizeHue[0]&&e.h<f.normalizeHue[1]){i.x*=f.normalizeHueXMulti;i.y*=f.normalizeHueYMulti}var h=Math.sqrt(Math.pow(i.x,2)+Math.pow(i.y,2));if(h<f.amount){e.v=0}else{e.v=1}e.s=0;return tinycolor(e).toHexString()};c.removeChars=function(e,f){var d=new RegExp("["+e+"]","gmi");return f.replace(d,"")}};a.fn.bindFirst=function(c,e){this.bind(c,e);var b=this.data("events")[c.split(".")[0]];var d=b.pop();b.splice(0,0,d)};a.keys=function(d){var c=[];for(var b in d){c.push(b)}return c};RegExp.prototype.execAll=function(c){var f=[];var b=null;while((b=this.exec(c))!=null){var e=[];for(var d in b){if(parseInt(d)==d){e.push(b[d])}}f.push(e)}return f};RegExp.prototype.escape=function(b){return b.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")};String.prototype.sliceReplace=function(d,b,c){return this.substring(0,d)+c+this.substring(b)};String.prototype.escape=function(){var b={"&":"&","<":"<",">":">"};return this.replace(/[&<>]/g,function(c){return b[c]||c})};String.prototype.linkify=function(b){b=typeof b!="undefined"?b:"";return this.replace(/(http(s)?:\/\/(\S)+)/gmi,'<a href="$1" target="'+b+'">$1</a>')};String.prototype.toTitleCase=function(){var b=this.split(/\s+/);var c="";a.each(b,function(e,d){if(d!=""){c+=d.slice(0,1).toUpperCase()+d.slice(1,d.length);if(e!=b.length-1&&b[e+1]!=""){c+=" "}}});return c}})(jQueryCrayon);jqueryPopup=Object();jqueryPopup.defaultSettings={centerBrowser:0,centerScreen:0,height:500,left:0,location:0,menubar:0,resizable:0,scrollbars:0,status:0,width:500,windowName:null,windowURL:null,top:0,toolbar:0,data:null,event:"click"};(function(a){popupWindow=function(d,c,f,b){f=typeof f!=="undefined"?f:null;b=typeof b!=="undefined"?b:null;if(typeof d=="string"){d=jQuery(d)}if(!(d instanceof jQuery)){return false}var e=jQuery.extend({},jqueryPopup.defaultSettings,c||{});d.handler=jQuery(d).bind(e.event,function(){if(f){f()}var g="height="+e.height+",width="+e.width+",toolbar="+e.toolbar+",scrollbars="+e.scrollbars+",status="+e.status+",resizable="+e.resizable+",location="+e.location+",menuBar="+e.menubar;e.windowName=e.windowName||jQuery(this).attr("name");var h=jQuery(this).attr("href");if(!e.windowURL&&!(h=="#")&&!(h=="")){e.windowURL=jQuery(this).attr("href")}var i,j;var k=null;if(e.centerBrowser){if(typeof window.screenY=="undefined"){i=(window.screenTop-120)+((((document.documentElement.clientHeight+120)/2)-(e.height/2)));j=window.screenLeft+((((document.body.offsetWidth+20)/2)-(e.width/2)))}else{i=window.screenY+(((window.outerHeight/2)-(e.height/2)));j=window.screenX+(((window.outerWidth/2)-(e.width/2)))}k=window.open(e.windowURL,e.windowName,g+",left="+j+",top="+i)}else{if(e.centerScreen){i=(screen.height-e.height)/2;j=(screen.width-e.width)/2;k=window.open(e.windowURL,e.windowName,g+",left="+j+",top="+i)}else{k=window.open(e.windowURL,e.windowName,g+",left="+e.left+",top="+e.top)}}if(k!=null){k.focus();if(e.data){k.document.write(e.data)}}if(b){b()}});return e};popdownWindow=function(b,c){if(typeof c=="undefined"){c="click"}b=jQuery(b);if(!(b instanceof jQuery)){return false}b.unbind(c,b.handler)}})(jQueryCrayon);(function(f){f.fn.exists=function(){return this.length!==0};f.fn.style=function(B,E,A){var D=this.get(0);if(typeof D=="undefined"){return}var C=D.style;if(typeof B!="undefined"){if(typeof E!="undefined"){A=typeof A!="undefined"?A:"";if(typeof C.setProperty!="undefined"){C.setProperty(B,E,A)}else{C[B]=E}}else{return C[B]}}else{return C}};var d="crayon-pressed";var a="";var n="div.crayon-syntax";var e=".crayon-toolbar";var c=".crayon-info";var w=".crayon-plain";var o=".crayon-main";var m=".crayon-table";var v=".crayon-loading";var h=".crayon-code";var p=".crayon-title";var l=".crayon-tools";var b=".crayon-nums";var j=".crayon-num";var q=".crayon-line";var g="crayon-wrapped";var s=".crayon-nums-content";var u=".crayon-nums-button";var k=".crayon-wrap-button";var i=".crayon-expand-button";var t="crayon-expanded crayon-toolbar-visible";var y="crayon-placeholder";var x=".crayon-popup-button";var r=".crayon-copy-button";var z=".crayon-plain-button";f(document).ready(function(){CrayonSyntax.init()});CrayonSyntax=new function(){var I=this;var N=new Object();var ag;var H;var G=0;var Z;I.init=function(){if(typeof N=="undefined"){N=new Object()}ag=CrayonSyntaxSettings;H=CrayonSyntaxStrings;f(n).each(function(){I.process(this)})};I.process=function(aD,aE){aD=f(aD);var ar=aD.attr("id");if(ar=="crayon-"){ar+=X()}aD.attr("id",ar);CrayonUtil.log(ar);if(typeof aE=="undefined"){aE=false}if(!aE&&!aa(ar)){return}var au=aD.find(e);var aC=aD.find(c);var ap=aD.find(w);var aq=aD.find(o);var aB=aD.find(m);var aj=aD.find(h);var aG=aD.find(p);var aA=aD.find(l);var ay=aD.find(b);var av=aD.find(s);var az=aD.find(u);var am=aD.find(k);var ao=aD.find(i);var aF=aD.find(x);var at=aD.find(r);var al=aD.find(z);N[ar]=aD;N[ar].toolbar=au;N[ar].plain=ap;N[ar].info=aC;N[ar].main=aq;N[ar].table=aB;N[ar].code=aj;N[ar].title=aG;N[ar].tools=aA;N[ar].nums=ay;N[ar].nums_content=av;N[ar].numsButton=az;N[ar].wrapButton=am;N[ar].expandButton=ao;N[ar].popup_button=aF;N[ar].copy_button=at;N[ar].plainButton=al;N[ar].numsVisible=true;N[ar].wrapped=false;N[ar].plainVisible=false;N[ar].toolbar_delay=0;N[ar].time=1;f(w).css("z-index",0);var aw=aq.style();N[ar].mainStyle={height:aw&&aw.height||"","max-height":aw&&aw.maxHeight||"","min-height":aw&&aw.minHeight||"",width:aw&&aw.width||"","max-width":aw&&aw.maxWidth||"","min-width":aw&&aw.minWidth||""};N[ar].mainHeightAuto=N[ar].mainStyle.height==""&&N[ar].mainStyle["max-height"]=="";var ak;var ax=0;N[ar].loading=true;N[ar].scrollBlockFix=false;az.click(function(){CrayonSyntax.toggleNums(ar)});am.click(function(){CrayonSyntax.toggleWrap(ar)});ao.click(function(){CrayonSyntax.toggleExpand(ar)});al.click(function(){CrayonSyntax.togglePlain(ar)});at.click(function(){CrayonSyntax.copyPlain(ar)});B(ar);var an=function(){if(ay.filter('[data-settings~="hide"]').length!=0){av.ready(function(){CrayonUtil.log("function"+ar);CrayonSyntax.toggleNums(ar,true,true)})}else{ac(ar)}if(typeof N[ar].expanded=="undefined"){if(Math.abs(N[ar].main.outerWidth()-N[ar].table.outerWidth())<10){N[ar].expandButton.hide()}else{N[ar].expandButton.show()}}if(ax==5){clearInterval(ak);N[ar].loading=false}ax++};ak=setInterval(an,300);C(ar);f(j,N[ar]).each(function(){var aJ=f(this).attr("data-line");var aI=f("#"+aJ);var aH=aI.style("height");if(aH){aI.attr("data-height",aH)}});aq.css("position","relative");aq.css("z-index",1);Z=(aD.filter('[data-settings~="touchscreen"]').length!=0);if(!Z){aq.click(function(){A(ar,"",false)});ap.click(function(){A(ar,"",false)});aC.click(function(){A(ar,"",false)})}if(aD.filter('[data-settings~="no-popup"]').length==0){N[ar].popup_settings=popupWindow(aF,{height:screen.height-200,width:screen.width-100,top:75,left:50,scrollbars:1,windowURL:"",data:""},function(){F(ar)},function(){})}ap.css("opacity",0);N[ar].toolbarVisible=true;N[ar].hasOneLine=aB.outerHeight()<au.outerHeight()*2;N[ar].toolbarMouseover=false;if(au.filter('[data-settings~="mouseover"]').length!=0&&!Z){N[ar].toolbarMouseover=true;N[ar].toolbarVisible=false;au.css("margin-top","-"+au.outerHeight()+"px");au.hide();if(au.filter('[data-settings~="overlay"]').length!=0&&!N[ar].hasOneLine){au.css("position","absolute");au.css("z-index",2);if(au.filter('[data-settings~="hide"]').length!=0){aq.click(function(){T(ar,undefined,undefined,0)});ap.click(function(){T(ar,false,undefined,0)})}}else{au.css("z-index",4)}if(au.filter('[data-settings~="delay"]').length!=0){N[ar].toolbar_delay=500}aD.mouseenter(function(){T(ar,true)}).mouseleave(function(){T(ar,false)})}else{if(Z){au.show()}}if(aD.filter('[data-settings~="minimize"]').length==0){I.minimize(ar)}if(ap.length!=0&&!Z){if(ap.filter('[data-settings~="dblclick"]').length!=0){aq.dblclick(function(){CrayonSyntax.togglePlain(ar)})}else{if(ap.filter('[data-settings~="click"]').length!=0){aq.click(function(){CrayonSyntax.togglePlain(ar)})}else{if(ap.filter('[data-settings~="mouseover"]').length!=0){aD.mouseenter(function(){CrayonSyntax.togglePlain(ar,true)}).mouseleave(function(){CrayonSyntax.togglePlain(ar,false)});az.hide()}}}if(ap.filter('[data-settings~="show-plain-default"]').length!=0){CrayonSyntax.togglePlain(ar,true)}}var ai=aD.filter('[data-settings~="expand"]').length!=0;if(!Z&&aD.filter('[data-settings~="scroll-mouseover"]').length!=0){aq.css("overflow","hidden");ap.css("overflow","hidden");aD.mouseenter(function(){M(ar,true,ai)}).mouseleave(function(){M(ar,false,ai)})}if(ai){aD.mouseenter(function(){D(ar,true)}).mouseleave(function(){D(ar,false)})}if(aD.filter('[data-settings~="disable-anim"]').length!=0){N[ar].time=0}if(aD.filter('[data-settings~="wrap"]').length!=0){N[ar].wrapped=true}N[ar].mac=aD.hasClass("crayon-os-mac");ac(ar);ab(ar);Y(ar)};var aa=function(ai){CrayonUtil.log(N);if(typeof N[ai]=="undefined"){N[ai]=f("#"+ai);CrayonUtil.log("make "+ai);return true}CrayonUtil.log("no make "+ai);return false};var X=function(){return G++};var F=function(ai){if(typeof N[ai]=="undefined"){return aa(ai)}var aj=N[ai].popup_settings;if(aj.data){return}var al=N[ai].clone(true);al.removeClass("crayon-wrapped");if(N[ai].wrapped){f(j,al).each(function(){var ao=f(this).attr("data-line");var an=f("#"+ao);var am=an.attr("data-height");am=am?am:"";if(typeof am!="undefined"){an.css("height",am);f(this).css("height",am)}})}al.find(o).css("height","");var ak="";if(N[ai].plainVisible){ak=al.find(w)}else{ak=al.find(o)}aj.data=I.getAllCSS()+'<body class="crayon-popup-window" style="padding:0; margin:0;"><div class="'+al.attr("class")+' crayon-popup">'+I.removeCssInline(I.getHtmlString(ak))+"</div></body>"};I.minimize=function(al){var ak=f('<div class="crayon-minimize crayon-button"><div>');N[al].tools.append(ak);N[al].origTitle=N[al].title.html();if(!N[al].origTitle){N[al].title.html(H.minimize)}var aj="crayon-minimized";var ai=function(){N[al].toolbarPreventHide=false;ak.remove();N[al].removeClass(aj);N[al].title.html(N[al].origTitle);var am=N[al].toolbar;if(am.filter('[data-settings~="never-show"]').length!=0){am.remove()}};N[al].toolbar.click(ai);ak.click(ai);N[al].addClass(aj);N[al].toolbarPreventHide=true;T(al,undefined,undefined,0)};I.getHtmlString=function(ai){return f("<div>").append(ai.clone()).remove().html()};I.removeCssInline=function(ak){var aj=/style\s*=\s*"([^"]+)"/gmi;var ai=null;while((ai=aj.exec(ak))!=null){var al=ai[1];al=al.replace(/\b(?:width|height)\s*:[^;]+;/gmi,"");ak=ak.sliceReplace(ai.index,ai.index+ai[0].length,'style="'+al+'"')}return ak};I.getAllCSS=function(){var ak="";var aj=f('link[rel="stylesheet"]');var ai=[];if(aj.length==1){ai=aj}else{ai=aj.filter('[href*="crayon-syntax-highlighter"], [href*="min/"]')}ai.each(function(){var al=I.getHtmlString(f(this));ak+=al});return ak};I.copyPlain=function(ak,al){if(typeof N[ak]=="undefined"){return aa(ak)}var aj=N[ak].plain;I.togglePlain(ak,true,true);T(ak,true);var ai=N[ak].mac?"\u2318":"CTRL";var am=H.copy;am=am.replace(/%s/,ai+"+C");am=am.replace(/%s/,ai+"+V");A(ak,am);return false};var A=function(aj,al,ai){if(typeof N[aj]=="undefined"){return aa(aj)}var ak=N[aj].info;if(typeof al=="undefined"){al=""}if(typeof ai=="undefined"){ai=true}if(L(ak)&&ai){ak.html("<div>"+al+"</div>");ak.css("margin-top",-ak.outerHeight());ak.show();Q(aj,ak,true);setTimeout(function(){Q(aj,ak,false)},5000)}if(!ai){Q(aj,ak,false)}};var B=function(ai){if(window.devicePixelRatio>1){var aj=f(".crayon-button-icon",N[ai].toolbar);aj.each(function(){var al=f(this).css("background-image");var ak=al.replace(/\.(?=[^\.]+$)/g,"@2x.");f(this).css("background-size","48px 128px");f(this).css("background-image",ak)})}};var L=function(ai){var aj="-"+ai.outerHeight()+"px";if(ai.css("margin-top")==aj||ai.css("display")=="none"){return true}else{return false}};var Q=function(al,ak,aj,an,am,ap){var ai=function(){if(ap){ap(al,ak)}};var ao="-"+ak.outerHeight()+"px";if(typeof aj=="undefined"){if(L(ak)){aj=true}else{aj=false}}if(typeof an=="undefined"){an=100}if(an==false){an=false}if(typeof am=="undefined"){am=0}ak.stop(true);if(aj==true){ak.show();ak.animate({marginTop:0},ah(an,al),ai)}else{if(aj==false){if(ak.css("margin-top")=="0px"&&am){ak.delay(am)}ak.animate({marginTop:ao},ah(an,al),function(){ak.hide();ai()})}}};I.togglePlain=function(al,am,aj){if(typeof N[al]=="undefined"){return aa(al)}var ai=N[al].main;var ak=N[al].plain;if((ai.is(":animated")||ak.is(":animated"))&&typeof am=="undefined"){return}ae(al);var ao,an;if(typeof am!="undefined"){if(am){ao=ai;an=ak}else{ao=ak;an=ai}}else{if(ai.css("z-index")==1){ao=ai;an=ak}else{ao=ak;an=ai}}N[al].plainVisible=(an==ak);N[al].top=ao.scrollTop();N[al].left=ao.scrollLeft();N[al].scrollChanged=false;C(al);ao.stop(true);ao.fadeTo(ah(500,al),0,function(){ao.css("z-index",0)});an.stop(true);an.fadeTo(ah(500,al),1,function(){an.css("z-index",1);if(an==ak){if(aj){ak.select()}else{}}an.scrollTop(N[al].top+1);an.scrollTop(N[al].top);an.scrollLeft(N[al].left+1);an.scrollLeft(N[al].left)});an.scrollTop(N[al].top);an.scrollLeft(N[al].left);ab(al);T(al,false);return false};I.toggleNums=function(am,al,ai){if(typeof N[am]=="undefined"){aa(am);return false}if(N[am].table.is(":animated")){return false}var ao=Math.round(N[am].nums_content.outerWidth()+1);var an="-"+ao+"px";var ak;if(typeof al!="undefined"){ak=false}else{ak=(N[am].table.css("margin-left")==an)}var aj;if(ak){aj="0px";N[am].numsVisible=true}else{N[am].table.css("margin-left","0px");N[am].numsVisible=false;aj=an}if(typeof ai!="undefined"){N[am].table.css("margin-left",aj);ac(am);return false}var ap=(N[am].table.outerWidth()+J(N[am].table.css("margin-left"))>N[am].main.outerWidth());var aq=(N[am].table.outerHeight()>N[am].main.outerHeight());if(!ap&&!aq){N[am].main.css("overflow","hidden")}N[am].table.animate({marginLeft:aj},ah(200,am),function(){if(typeof N[am]!="undefined"){ac(am);if(!ap&&!aq){N[am].main.css("overflow","auto")}}});return false};I.toggleWrap=function(ai){N[ai].wrapped=!N[ai].wrapped;Y(ai)};I.toggleExpand=function(ai){var aj=!CrayonUtil.setDefault(N[ai].expanded,false);D(ai,aj)};var Y=function(ai,aj){aj=CrayonUtil.setDefault(aj,true);if(N[ai].wrapped){N[ai].addClass(g)}else{N[ai].removeClass(g)}E(ai);if(!N[ai].expanded&&aj){V(ai)}N[ai].wrapTimes=0;clearInterval(N[ai].wrapTimer);N[ai].wrapTimer=setInterval(function(){if(N[ai].is(":visible")){O(ai);N[ai].wrapTimes++;if(N[ai].wrapTimes==5){clearInterval(N[ai].wrapTimer)}}},200)};var ad=function(ai){if(typeof N[ai]=="undefined"){aa(ai);return false}};var J=function(aj){if(typeof aj!="string"){return 0}var ai=aj.replace(/[^-0-9]/g,"");if(ai.length==0){return 0}else{return parseInt(ai)}};var ac=function(ai){if(typeof N[ai]=="undefined"||typeof N[ai].numsVisible=="undefined"){return}if(N[ai].numsVisible){N[ai].numsButton.removeClass(a);N[ai].numsButton.addClass(d)}else{N[ai].numsButton.removeClass(d);N[ai].numsButton.addClass(a)}};var E=function(ai){if(typeof N[ai]=="undefined"||typeof N[ai].wrapped=="undefined"){return}if(N[ai].wrapped){N[ai].wrapButton.removeClass(a);N[ai].wrapButton.addClass(d)}else{N[ai].wrapButton.removeClass(d);N[ai].wrapButton.addClass(a)}};var W=function(ai){if(typeof N[ai]=="undefined"||typeof N[ai].expanded=="undefined"){return}if(N[ai].expanded){N[ai].expandButton.removeClass(a);N[ai].expandButton.addClass(d)}else{N[ai].expandButton.removeClass(d);N[ai].expandButton.addClass(a)}};var ab=function(ai){if(typeof N[ai]=="undefined"||typeof N[ai].plainVisible=="undefined"){return}if(N[ai].plainVisible){N[ai].plainButton.removeClass(a);N[ai].plainButton.addClass(d)}else{N[ai].plainButton.removeClass(d);N[ai].plainButton.addClass(a)}};var T=function(aj,ai,al,ak){if(typeof N[aj]=="undefined"){return aa(aj)}else{if(!N[aj].toolbarMouseover){return}else{if(ai==false&&N[aj].toolbarPreventHide){return}else{if(Z){return}}}}var am=N[aj].toolbar;if(typeof ak=="undefined"){ak=N[aj].toolbar_delay}Q(aj,am,ai,al,ak,function(){N[aj].toolbarVisible=ai})};var R=function(ak,ai){var aj=f.extend({},ak);aj.width+=ai.width;aj.height+=ai.height;return aj};var P=function(ak,ai){var aj=f.extend({},ak);aj.width-=ai.width;aj.height-=ai.height;return aj};var U=function(ai){if(typeof N[ai].initialSize=="undefined"){N[ai].toolbarHeight=N[ai].toolbar.outerHeight();N[ai].innerSize={width:N[ai].width(),height:N[ai].height()};N[ai].outerSize={width:N[ai].outerWidth(),height:N[ai].outerHeight()};N[ai].borderSize=P(N[ai].outerSize,N[ai].innerSize);N[ai].initialSize={width:N[ai].main.outerWidth(),height:N[ai].main.outerHeight()};N[ai].initialSize.height+=N[ai].toolbarHeight;N[ai].initialOuterSize=R(N[ai].initialSize,N[ai].borderSize);N[ai].finalSize={width:N[ai].table.outerWidth(),height:N[ai].table.outerHeight()};N[ai].finalSize.height+=N[ai].toolbarHeight;N[ai].finalSize.width=CrayonUtil.setMin(N[ai].finalSize.width,N[ai].initialSize.width);N[ai].finalSize.height=CrayonUtil.setMin(N[ai].finalSize.height,N[ai].initialSize.height);N[ai].diffSize=P(N[ai].finalSize,N[ai].initialSize);N[ai].finalOuterSize=R(N[ai].finalSize,N[ai].borderSize);N[ai].initialSize.height+=N[ai].toolbar.outerHeight()}};var D=function(al,ao){if(typeof N[al]=="undefined"){return aa(al)}if(typeof ao=="undefined"){return}var aj=N[al].main;var aq=N[al].plain;if(ao){if(typeof N[al].expanded=="undefined"){U(al);N[al].expandTime=CrayonUtil.setRange(N[al].diffSize.width/3,300,800);N[al].expanded=false;var ap=N[al].finalOuterSize;N[al].placeholder=f("<div></div>");N[al].placeholder.addClass(y);N[al].placeholder.css(ap);N[al].before(N[al].placeholder);N[al].placeholder.css("margin",N[al].css("margin"));f(window).bind("resize",K)}var am={height:"auto","min-height":"none","max-height":"none"};var ai={width:"auto","min-width":"none","max-width":"none"};N[al].outerWidth(N[al].outerWidth());N[al].css({"min-width":"none","max-width":"none"});var an={width:N[al].finalOuterSize.width};if(!N[al].mainHeightAuto&&!N[al].hasOneLine){an.height=N[al].finalOuterSize.height;N[al].outerHeight(N[al].outerHeight())}aj.css(am);aj.css(ai);N[al].stop(true);N[al].animate(an,ah(N[al].expandTime,al),function(){N[al].expanded=true;W(al)});N[al].placeholder.show();f("body").prepend(N[al]);N[al].addClass(t);K()}else{var ar=N[al].initialOuterSize;var ak=N[al].toolbar_delay;if(ar){N[al].stop(true);if(!N[al].expanded){N[al].delay(ak)}var an={width:ar.width};if(!N[al].mainHeightAuto&&!N[al].hasOneLine){an.height=ar.height}N[al].animate(an,ah(N[al].expandTime,al),function(){af(al)})}else{setTimeout(function(){af(al)},ak)}N[al].placeholder.hide();N[al].placeholder.before(N[al]);N[al].css({left:"auto",top:"auto"});N[al].removeClass(t)}ae(al);if(ao){Y(al,false)}};var K=function(){for(uid in N){if(N[uid].hasClass(t)){N[uid].css(N[uid].placeholder.offset())}}};var af=function(ai){N[ai].expanded=false;V(ai);W(ai);if(N[ai].wrapped){Y(ai)}};var M=function(al,aj,am){if(typeof N[al]=="undefined"){return aa(al)}if(typeof aj=="undefined"||am||N[al].expanded){return}var ai=N[al].main;var ak=N[al].plain;if(aj){ai.css("overflow","auto");ak.css("overflow","auto");if(typeof N[al].top!="undefined"){visible=(ai.css("z-index")==1?ai:ak);visible.scrollTop(N[al].top-1);visible.scrollTop(N[al].top);visible.scrollLeft(N[al].left-1);visible.scrollLeft(N[al].left)}}else{visible=(ai.css("z-index")==1?ai:ak);N[al].top=visible.scrollTop();N[al].left=visible.scrollLeft();ai.css("overflow","hidden");ak.css("overflow","hidden")}N[al].scrollChanged=true;C(al)};var C=function(ai){N[ai].table.style("width","100%","important");var aj=setTimeout(function(){N[ai].table.style("width","");clearInterval(aj)},10)};var V=function(ak){var aj=N[ak].main;var ai=N[ak].mainStyle;aj.css(ai);N[ak].css("height","auto");N[ak].css("width",ai.width);N[ak].css("max-width",ai["max-width"]);N[ak].css("min-width",ai["min-width"])};var ae=function(ai){N[ai].plain.outerHeight(N[ai].main.outerHeight())};var O=function(ai){f(j,N[ai]).each(function(){var al=f(this).attr("data-line");var ak=f("#"+al);var aj=null;if(N[ai].wrapped){ak.css("height","");aj=ak.outerHeight();aj=aj?aj:""}else{aj=ak.attr("data-height");aj=aj?aj:"";ak.css("height",aj)}f(this).css("height",aj)})};var ah=function(ai,aj){if(ai=="fast"){ai=200}else{if(ai=="slow"){ai=600}else{if(!S(ai)){ai=parseInt(ai);if(isNaN(ai)){return 0}}}}return ai*N[aj].time};var S=function(ai){return typeof ai=="number"}}})(jQueryCrayon);
|
js/min/crayon.te.min.js
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
-
var jQueryCrayon=jQuery;(function(a){a(document).ready(function(){CrayonUtil.init()});CrayonUtil=new function(){var c=this;var b=null;c.init=function(){b=CrayonSyntaxSettings;c.initGET()};c.addPrefixToID=function(d){return d.replace(/^([#.])?(.*)$/,"$1"+b.prefix+"$2")};c.removePrefixFromID=function(e){var d=new RegExp("^[#.]?"+b.prefix,"i");return e.replace(d,"")};c.cssElem=function(d){return a(c.addPrefixToID(d))};c.setDefault=function(e,f){return(typeof e=="undefined")?f:e};c.setMax=function(e,d){return e<=d?e:d};c.setMin=function(d,e){return d>=e?d:e};c.setRange=function(e,f,d){return c.setMax(c.setMin(e,f),d)};c.getExt=function(e){if(e.indexOf(".")==-1){return undefined}var d=e.split(".");if(d.length){d=d[d.length-1]}else{d=""}return d};c.initGET=function(){window.currentURL=window.location.protocol+"//"+window.location.host+window.location.pathname;window.currentDir=window.currentURL.substring(0,window.currentURL.lastIndexOf("/"));function d(e){e=e.split("+").join(" ");var h={},g,f=/[?&]?([^=]+)=([^&]*)/g;while(g=f.exec(e)){h[decodeURIComponent(g[1])]=decodeURIComponent(g[2])}return h}window.GET=d(document.location.search)};c.getAJAX=function(d,e){d.version=b.version;a.get(b.ajaxurl,d,e)};c.postAJAX=function(d,e){d.version=b.version;a.post(b.ajaxurl,d,e)};c.reload=function(){var d="?";for(var e in window.GET){d+=e+"="+window.GET[e]+"&"}window.location=window.currentURL+d};c.escape=function(d){if(typeof encodeURIComponent=="function"){return encodeURIComponent(d)}else{if(typeof escape!="function"){return escape(d)}else{return d}}};c.log=function(d){if(typeof console!="undefined"&&b.debug){console.log(d)}};c.decode_html=function(d){return String(d).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")};c.encode_html=function(d){return String(d).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")};c.getReadableColor=function(g,f){f=a.extend({amount:0.5,xMulti:1,yMulti:1.5,normalizeHue:[20,180],normalizeHueXMulti:1/2.5,normalizeHueYMulti:1},f);var d=tinycolor(g);var e=d.toHsv();var j={x:e.s,y:1-e.v};j.x*=f.xMulti;j.y*=f.yMulti;if(f.normalizeHue&&e.h>f.normalizeHue[0]&&e.h<f.normalizeHue[1]){j.x*=f.normalizeHueXMulti;j.y*=f.normalizeHueYMulti}var h=Math.sqrt(Math.pow(j.x,2)+Math.pow(j.y,2));if(h<f.amount){e.v=0}else{e.v=1}e.s=0;return tinycolor(e).toHexString()};c.removeChars=function(e,f){var d=new RegExp("["+e+"]","gmi");return f.replace(d,"")}};a.fn.bindFirst=function(c,e){this.bind(c,e);var b=this.data("events")[c.split(".")[0]];var d=b.pop();b.splice(0,0,d)};a.keys=function(d){var c=[];for(var b in d){c.push(b)}return c};RegExp.prototype.execAll=function(c){var f=[];var b=null;while((b=this.exec(c))!=null){var e=[];for(var d in b){if(parseInt(d)==d){e.push(b[d])}}f.push(e)}return f};RegExp.prototype.escape=function(b){return b.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")};String.prototype.sliceReplace=function(d,b,c){return this.substring(0,d)+c+this.substring(b)};String.prototype.escape=function(){var b={"&":"&","<":"<",">":">"};return this.replace(/[&<>]/g,function(c){return b[c]||c})};String.prototype.linkify=function(b){b=typeof b!="undefined"?b:"";return this.replace(/(http(s)?:\/\/(\S)+)/gmi,'<a href="$1" target="'+b+'">$1</a>')};String.prototype.toTitleCase=function(){var b=this.split(/\s+/);var c="";a.each(b,function(e,d){if(d!=""){c+=d.slice(0,1).toUpperCase()+d.slice(1,d.length);if(e!=b.length-1&&b[e+1]!=""){c+=" "}}});return c}})(jQueryCrayon);jqueryPopup=Object();jqueryPopup.defaultSettings={centerBrowser:0,centerScreen:0,height:500,left:0,location:0,menubar:0,resizable:0,scrollbars:0,status:0,width:500,windowName:null,windowURL:null,top:0,toolbar:0,data:null,event:"click"};(function(a){popupWindow=function(d,c,f,b){f=typeof f!=="undefined"?f:null;b=typeof b!=="undefined"?b:null;if(typeof d=="string"){d=jQuery(d)}if(!(d instanceof jQuery)){return false}var e=jQuery.extend({},jqueryPopup.defaultSettings,c||{});d.handler=jQuery(d).bind(e.event,function(){if(f){f()}var g="height="+e.height+",width="+e.width+",toolbar="+e.toolbar+",scrollbars="+e.scrollbars+",status="+e.status+",resizable="+e.resizable+",location="+e.location+",menuBar="+e.menubar;e.windowName=e.windowName||jQuery(this).attr("name");var h=jQuery(this).attr("href");if(!e.windowURL&&!(h=="#")&&!(h=="")){e.windowURL=jQuery(this).attr("href")}var j,k;var l=null;if(e.centerBrowser){if(typeof window.screenY=="undefined"){j=(window.screenTop-120)+((((document.documentElement.clientHeight+120)/2)-(e.height/2)));k=window.screenLeft+((((document.body.offsetWidth+20)/2)-(e.width/2)))}else{j=window.screenY+(((window.outerHeight/2)-(e.height/2)));k=window.screenX+(((window.outerWidth/2)-(e.width/2)))}l=window.open(e.windowURL,e.windowName,g+",left="+k+",top="+j)}else{if(e.centerScreen){j=(screen.height-e.height)/2;k=(screen.width-e.width)/2;l=window.open(e.windowURL,e.windowName,g+",left="+k+",top="+j)}else{l=window.open(e.windowURL,e.windowName,g+",left="+e.left+",top="+e.top)}}if(l!=null){l.focus();if(e.data){l.document.write(e.data)}}if(b){b()}});return e};popdownWindow=function(b,c){if(typeof c=="undefined"){c="click"}b=jQuery(b);if(!(b instanceof jQuery)){return false}b.unbind(c,b.handler)}})(jQueryCrayon);(function(f){f.fn.exists=function(){return this.length!==0};f.fn.style=function(C,F,B){var E=this.get(0);if(typeof E=="undefined"){return}var D=E.style;if(typeof C!="undefined"){if(typeof F!="undefined"){B=typeof B!="undefined"?B:"";if(typeof D.setProperty!="undefined"){D.setProperty(C,F,B)}else{D[C]=F}}else{return D[C]}}else{return D}};var d="crayon-pressed";var a="";var o="div.crayon-syntax";var e=".crayon-toolbar";var c=".crayon-info";var x=".crayon-plain";var p=".crayon-main";var n=".crayon-table";var w=".crayon-loading";var h=".crayon-code";var q=".crayon-title";var m=".crayon-tools";var b=".crayon-nums";var k=".crayon-num";var r=".crayon-line";var g="crayon-wrapped";var t=".crayon-nums-content";var v=".crayon-nums-button";var l=".crayon-wrap-button";var j=".crayon-expand-button";var u="crayon-expanded crayon-toolbar-visible";var z="crayon-placeholder";var y=".crayon-popup-button";var s=".crayon-copy-button";var A=".crayon-plain-button";f(document).ready(function(){CrayonSyntax.init()});CrayonSyntax=new function(){var J=this;var O=new Object();var ah;var I;var H=0;var aa;J.init=function(){if(typeof O=="undefined"){O=new Object()}ah=CrayonSyntaxSettings;I=CrayonSyntaxStrings;f(o).each(function(){J.process(this)})};J.process=function(aE,aF){aE=f(aE);var at=aE.attr("id");if(at=="crayon-"){at+=Y()}aE.attr("id",at);CrayonUtil.log(at);if(typeof aF=="undefined"){aF=false}if(!aF&&!ab(at)){return}var av=aE.find(e);var aD=aE.find(c);var aq=aE.find(x);var ar=aE.find(p);var aC=aE.find(n);var ak=aE.find(h);var aH=aE.find(q);var aB=aE.find(m);var az=aE.find(b);var aw=aE.find(t);var aA=aE.find(v);var an=aE.find(l);var ap=aE.find(j);var aG=aE.find(y);var au=aE.find(s);var am=aE.find(A);O[at]=aE;O[at].toolbar=av;O[at].plain=aq;O[at].info=aD;O[at].main=ar;O[at].table=aC;O[at].code=ak;O[at].title=aH;O[at].tools=aB;O[at].nums=az;O[at].nums_content=aw;O[at].numsButton=aA;O[at].wrapButton=an;O[at].expandButton=ap;O[at].popup_button=aG;O[at].copy_button=au;O[at].plainButton=am;O[at].numsVisible=true;O[at].wrapped=false;O[at].plainVisible=false;O[at].toolbar_delay=0;O[at].time=1;f(x).css("z-index",0);var ax=ar.style();O[at].mainStyle={height:ax&&ax.height||"","max-height":ax&&ax.maxHeight||"","min-height":ax&&ax.minHeight||"",width:ax&&ax.width||"","max-width":ax&&ax.maxWidth||"","min-width":ax&&ax.minWidth||""};O[at].mainHeightAuto=O[at].mainStyle.height==""&&O[at].mainStyle["max-height"]=="";var al;var ay=0;O[at].loading=true;O[at].scrollBlockFix=false;aA.click(function(){CrayonSyntax.toggleNums(at)});an.click(function(){CrayonSyntax.toggleWrap(at)});ap.click(function(){CrayonSyntax.toggleExpand(at)});am.click(function(){CrayonSyntax.togglePlain(at)});au.click(function(){CrayonSyntax.copyPlain(at)});C(at);var ao=function(){if(az.filter('[data-settings~="hide"]').length!=0){aw.ready(function(){CrayonUtil.log("function"+at);CrayonSyntax.toggleNums(at,true,true)})}else{ad(at)}if(typeof O[at].expanded=="undefined"){if(Math.abs(O[at].main.outerWidth()-O[at].table.outerWidth())<10){O[at].expandButton.hide()}else{O[at].expandButton.show()}}if(ay==5){clearInterval(al);O[at].loading=false}ay++};al=setInterval(ao,300);D(at);f(k,O[at]).each(function(){var aK=f(this).attr("data-line");var aJ=f("#"+aK);var aI=aJ.style("height");if(aI){aJ.attr("data-height",aI)}});ar.css("position","relative");ar.css("z-index",1);aa=(aE.filter('[data-settings~="touchscreen"]').length!=0);if(!aa){ar.click(function(){B(at,"",false)});aq.click(function(){B(at,"",false)});aD.click(function(){B(at,"",false)})}if(aE.filter('[data-settings~="no-popup"]').length==0){O[at].popup_settings=popupWindow(aG,{height:screen.height-200,width:screen.width-100,top:75,left:50,scrollbars:1,windowURL:"",data:""},function(){G(at)},function(){})}aq.css("opacity",0);O[at].toolbarVisible=true;O[at].hasOneLine=aC.outerHeight()<av.outerHeight()*2;O[at].toolbarMouseover=false;if(av.filter('[data-settings~="mouseover"]').length!=0&&!aa){O[at].toolbarMouseover=true;O[at].toolbarVisible=false;av.css("margin-top","-"+av.outerHeight()+"px");av.hide();if(av.filter('[data-settings~="overlay"]').length!=0&&!O[at].hasOneLine){av.css("position","absolute");av.css("z-index",2);if(av.filter('[data-settings~="hide"]').length!=0){ar.click(function(){U(at,undefined,undefined,0)});aq.click(function(){U(at,false,undefined,0)})}}else{av.css("z-index",4)}if(av.filter('[data-settings~="delay"]').length!=0){O[at].toolbar_delay=500}aE.mouseenter(function(){U(at,true)}).mouseleave(function(){U(at,false)})}else{if(aa){av.show()}}if(aE.filter('[data-settings~="minimize"]').length==0){J.minimize(at)}if(aq.length!=0&&!aa){if(aq.filter('[data-settings~="dblclick"]').length!=0){ar.dblclick(function(){CrayonSyntax.togglePlain(at)})}else{if(aq.filter('[data-settings~="click"]').length!=0){ar.click(function(){CrayonSyntax.togglePlain(at)})}else{if(aq.filter('[data-settings~="mouseover"]').length!=0){aE.mouseenter(function(){CrayonSyntax.togglePlain(at,true)}).mouseleave(function(){CrayonSyntax.togglePlain(at,false)});aA.hide()}}}if(aq.filter('[data-settings~="show-plain-default"]').length!=0){CrayonSyntax.togglePlain(at,true)}}var aj=aE.filter('[data-settings~="expand"]').length!=0;if(!aa&&aE.filter('[data-settings~="scroll-mouseover"]').length!=0){ar.css("overflow","hidden");aq.css("overflow","hidden");aE.mouseenter(function(){N(at,true,aj)}).mouseleave(function(){N(at,false,aj)})}if(aj){aE.mouseenter(function(){E(at,true)}).mouseleave(function(){E(at,false)})}if(aE.filter('[data-settings~="disable-anim"]').length!=0){O[at].time=0}if(aE.filter('[data-settings~="wrap"]').length!=0){O[at].wrapped=true}O[at].mac=aE.hasClass("crayon-os-mac");ad(at);ac(at);Z(at)};var ab=function(aj){CrayonUtil.log(O);if(typeof O[aj]=="undefined"){O[aj]=f("#"+aj);CrayonUtil.log("make "+aj);return true}CrayonUtil.log("no make "+aj);return false};var Y=function(){return H++};var G=function(aj){if(typeof O[aj]=="undefined"){return ab(aj)}var ak=O[aj].popup_settings;if(ak.data){return}var am=O[aj].clone(true);am.removeClass("crayon-wrapped");if(O[aj].wrapped){f(k,am).each(function(){var ap=f(this).attr("data-line");var ao=f("#"+ap);var an=ao.attr("data-height");an=an?an:"";if(typeof an!="undefined"){ao.css("height",an);f(this).css("height",an)}})}am.find(p).css("height","");var al="";if(O[aj].plainVisible){al=am.find(x)}else{al=am.find(p)}ak.data=J.getAllCSS()+'<body class="crayon-popup-window" style="padding:0; margin:0;"><div class="'+am.attr("class")+' crayon-popup">'+J.removeCssInline(J.getHtmlString(al))+"</div></body>"};J.minimize=function(am){var al=f('<div class="crayon-minimize crayon-button"><div>');O[am].tools.append(al);O[am].origTitle=O[am].title.html();if(!O[am].origTitle){O[am].title.html(I.minimize)}var ak="crayon-minimized";var aj=function(){O[am].toolbarPreventHide=false;al.remove();O[am].removeClass(ak);O[am].title.html(O[am].origTitle);var an=O[am].toolbar;if(an.filter('[data-settings~="never-show"]').length!=0){an.remove()}};O[am].toolbar.click(aj);al.click(aj);O[am].addClass(ak);O[am].toolbarPreventHide=true;U(am,undefined,undefined,0)};J.getHtmlString=function(aj){return f("<div>").append(aj.clone()).remove().html()};J.removeCssInline=function(al){var ak=/style\s*=\s*"([^"]+)"/gmi;var aj=null;while((aj=ak.exec(al))!=null){var am=aj[1];am=am.replace(/\b(?:width|height)\s*:[^;]+;/gmi,"");al=al.sliceReplace(aj.index,aj.index+aj[0].length,'style="'+am+'"')}return al};J.getAllCSS=function(){var al="";var ak=f('link[rel="stylesheet"]');var aj=[];if(ak.length==1){aj=ak}else{aj=ak.filter('[href*="crayon-syntax-highlighter"], [href*="min/"]')}aj.each(function(){var am=J.getHtmlString(f(this));al+=am});return al};J.copyPlain=function(al,am){if(typeof O[al]=="undefined"){return ab(al)}var ak=O[al].plain;J.togglePlain(al,true,true);U(al,true);var aj=O[al].mac?"\u2318":"CTRL";var an=I.copy;an=an.replace(/%s/,aj+"+C");an=an.replace(/%s/,aj+"+V");B(al,an);return false};var B=function(ak,am,aj){if(typeof O[ak]=="undefined"){return ab(ak)}var al=O[ak].info;if(typeof am=="undefined"){am=""}if(typeof aj=="undefined"){aj=true}if(M(al)&&aj){al.html("<div>"+am+"</div>");al.css("margin-top",-al.outerHeight());al.show();R(ak,al,true);setTimeout(function(){R(ak,al,false)},5000)}if(!aj){R(ak,al,false)}};var C=function(aj){if(window.devicePixelRatio>1){var ak=f(".crayon-button-icon",O[aj].toolbar);ak.each(function(){var am=f(this).css("background-image");var al=am.replace(/\.(?=[^\.]+$)/g,"@2x.");f(this).css("background-size","48px 128px");f(this).css("background-image",al)})}};var M=function(aj){var ak="-"+aj.outerHeight()+"px";if(aj.css("margin-top")==ak||aj.css("display")=="none"){return true}else{return false}};var R=function(am,al,ak,ao,an,aq){var aj=function(){if(aq){aq(am,al)}};var ap="-"+al.outerHeight()+"px";if(typeof ak=="undefined"){if(M(al)){ak=true}else{ak=false}}if(typeof ao=="undefined"){ao=100}if(ao==false){ao=false}if(typeof an=="undefined"){an=0}al.stop(true);if(ak==true){al.show();al.animate({marginTop:0},ai(ao,am),aj)}else{if(ak==false){if(al.css("margin-top")=="0px"&&an){al.delay(an)}al.animate({marginTop:ap},ai(ao,am),function(){al.hide();aj()})}}};J.togglePlain=function(am,an,ak){if(typeof O[am]=="undefined"){return ab(am)}var aj=O[am].main;var al=O[am].plain;if((aj.is(":animated")||al.is(":animated"))&&typeof an=="undefined"){return}af(am);var ap,ao;if(typeof an!="undefined"){if(an){ap=aj;ao=al}else{ap=al;ao=aj}}else{if(aj.css("z-index")==1){ap=aj;ao=al}else{ap=al;ao=aj}}O[am].plainVisible=(ao==al);O[am].top=ap.scrollTop();O[am].left=ap.scrollLeft();O[am].scrollChanged=false;D(am);ap.stop(true);ap.fadeTo(ai(500,am),0,function(){ap.css("z-index",0)});ao.stop(true);ao.fadeTo(ai(500,am),1,function(){ao.css("z-index",1);if(ao==al){if(ak){al.select()}else{}}ao.scrollTop(O[am].top+1);ao.scrollTop(O[am].top);ao.scrollLeft(O[am].left+1);ao.scrollLeft(O[am].left)});ao.scrollTop(O[am].top);ao.scrollLeft(O[am].left);ac(am);U(am,false);return false};J.toggleNums=function(an,am,aj){if(typeof O[an]=="undefined"){ab(an);return false}if(O[an].table.is(":animated")){return false}var ap=Math.round(O[an].nums_content.outerWidth()+1);var ao="-"+ap+"px";var al;if(typeof am!="undefined"){al=false}else{al=(O[an].table.css("margin-left")==ao)}var ak;if(al){ak="0px";O[an].numsVisible=true}else{O[an].table.css("margin-left","0px");O[an].numsVisible=false;ak=ao}if(typeof aj!="undefined"){O[an].table.css("margin-left",ak);ad(an);return false}var aq=(O[an].table.outerWidth()+K(O[an].table.css("margin-left"))>O[an].main.outerWidth());var ar=(O[an].table.outerHeight()>O[an].main.outerHeight());if(!aq&&!ar){O[an].main.css("overflow","hidden")}O[an].table.animate({marginLeft:ak},ai(200,an),function(){if(typeof O[an]!="undefined"){ad(an);if(!aq&&!ar){O[an].main.css("overflow","auto")}}});return false};J.toggleWrap=function(aj){O[aj].wrapped=!O[aj].wrapped;Z(aj)};J.toggleExpand=function(aj){var ak=!CrayonUtil.setDefault(O[aj].expanded,false);E(aj,ak)};var Z=function(aj,ak){ak=CrayonUtil.setDefault(ak,true);if(O[aj].wrapped){O[aj].addClass(g)}else{O[aj].removeClass(g)}F(aj);if(!O[aj].expanded&&ak){W(aj)}O[aj].wrapTimes=0;clearInterval(O[aj].wrapTimer);O[aj].wrapTimer=setInterval(function(){if(O[aj].is(":visible")){P(aj);O[aj].wrapTimes++;if(O[aj].wrapTimes==5){clearInterval(O[aj].wrapTimer)}}},200)};var ae=function(aj){if(typeof O[aj]=="undefined"){ab(aj);return false}};var K=function(ak){if(typeof ak!="string"){return 0}var aj=ak.replace(/[^-0-9]/g,"");if(aj.length==0){return 0}else{return parseInt(aj)}};var ad=function(aj){if(typeof O[aj]=="undefined"||typeof O[aj].numsVisible=="undefined"){return}if(O[aj].numsVisible){O[aj].numsButton.removeClass(a);O[aj].numsButton.addClass(d)}else{O[aj].numsButton.removeClass(d);O[aj].numsButton.addClass(a)}};var F=function(aj){if(typeof O[aj]=="undefined"||typeof O[aj].wrapped=="undefined"){return}if(O[aj].wrapped){O[aj].wrapButton.removeClass(a);O[aj].wrapButton.addClass(d)}else{O[aj].wrapButton.removeClass(d);O[aj].wrapButton.addClass(a)}};var X=function(aj){if(typeof O[aj]=="undefined"||typeof O[aj].expanded=="undefined"){return}if(O[aj].expanded){O[aj].expandButton.removeClass(a);O[aj].expandButton.addClass(d)}else{O[aj].expandButton.removeClass(d);O[aj].expandButton.addClass(a)}};var ac=function(aj){if(typeof O[aj]=="undefined"||typeof O[aj].plainVisible=="undefined"){return}if(O[aj].plainVisible){O[aj].plainButton.removeClass(a);O[aj].plainButton.addClass(d)}else{O[aj].plainButton.removeClass(d);O[aj].plainButton.addClass(a)}};var U=function(ak,aj,am,al){if(typeof O[ak]=="undefined"){return ab(ak)}else{if(!O[ak].toolbarMouseover){return}else{if(aj==false&&O[ak].toolbarPreventHide){return}else{if(aa){return}}}}var an=O[ak].toolbar;if(typeof al=="undefined"){al=O[ak].toolbar_delay}R(ak,an,aj,am,al,function(){O[ak].toolbarVisible=aj})};var S=function(al,aj){var ak=f.extend({},al);ak.width+=aj.width;ak.height+=aj.height;return ak};var Q=function(al,aj){var ak=f.extend({},al);ak.width-=aj.width;ak.height-=aj.height;return ak};var V=function(aj){if(typeof O[aj].initialSize=="undefined"){O[aj].toolbarHeight=O[aj].toolbar.outerHeight();O[aj].innerSize={width:O[aj].width(),height:O[aj].height()};O[aj].outerSize={width:O[aj].outerWidth(),height:O[aj].outerHeight()};O[aj].borderSize=Q(O[aj].outerSize,O[aj].innerSize);O[aj].initialSize={width:O[aj].main.outerWidth(),height:O[aj].main.outerHeight()};O[aj].initialSize.height+=O[aj].toolbarHeight;O[aj].initialOuterSize=S(O[aj].initialSize,O[aj].borderSize);O[aj].finalSize={width:O[aj].table.outerWidth(),height:O[aj].table.outerHeight()};O[aj].finalSize.height+=O[aj].toolbarHeight;O[aj].finalSize.width=CrayonUtil.setMin(O[aj].finalSize.width,O[aj].initialSize.width);O[aj].finalSize.height=CrayonUtil.setMin(O[aj].finalSize.height,O[aj].initialSize.height);O[aj].diffSize=Q(O[aj].finalSize,O[aj].initialSize);O[aj].finalOuterSize=S(O[aj].finalSize,O[aj].borderSize);O[aj].initialSize.height+=O[aj].toolbar.outerHeight()}};var E=function(am,ap){if(typeof O[am]=="undefined"){return ab(am)}if(typeof ap=="undefined"){return}var ak=O[am].main;var ar=O[am].plain;if(ap){if(typeof O[am].expanded=="undefined"){V(am);O[am].expandTime=CrayonUtil.setRange(O[am].diffSize.width/3,300,800);O[am].expanded=false;var aq=O[am].finalOuterSize;O[am].placeholder=f("<div></div>");O[am].placeholder.addClass(z);O[am].placeholder.css(aq);O[am].before(O[am].placeholder);O[am].placeholder.css("margin",O[am].css("margin"));f(window).bind("resize",L)}var an={height:"auto","min-height":"none","max-height":"none"};var aj={width:"auto","min-width":"none","max-width":"none"};O[am].outerWidth(O[am].outerWidth());O[am].css({"min-width":"none","max-width":"none"});var ao={width:O[am].finalOuterSize.width};if(!O[am].mainHeightAuto&&!O[am].hasOneLine){ao.height=O[am].finalOuterSize.height;O[am].outerHeight(O[am].outerHeight())}ak.css(an);ak.css(aj);O[am].stop(true);O[am].animate(ao,ai(O[am].expandTime,am),function(){O[am].expanded=true;X(am)});O[am].placeholder.show();f("body").prepend(O[am]);O[am].addClass(u);L()}else{var at=O[am].initialOuterSize;var al=O[am].toolbar_delay;if(at){O[am].stop(true);if(!O[am].expanded){O[am].delay(al)}var ao={width:at.width};if(!O[am].mainHeightAuto&&!O[am].hasOneLine){ao.height=at.height}O[am].animate(ao,ai(O[am].expandTime,am),function(){ag(am)})}else{setTimeout(function(){ag(am)},al)}O[am].placeholder.hide();O[am].placeholder.before(O[am]);O[am].css({left:"auto",top:"auto"});O[am].removeClass(u)}af(am);if(ap){Z(am,false)}};var L=function(){for(uid in O){if(O[uid].hasClass(u)){O[uid].css(O[uid].placeholder.offset())}}};var ag=function(aj){O[aj].expanded=false;W(aj);X(aj);if(O[aj].wrapped){Z(aj)}};var N=function(am,ak,an){if(typeof O[am]=="undefined"){return ab(am)}if(typeof ak=="undefined"||an||O[am].expanded){return}var aj=O[am].main;var al=O[am].plain;if(ak){aj.css("overflow","auto");al.css("overflow","auto");if(typeof O[am].top!="undefined"){visible=(aj.css("z-index")==1?aj:al);visible.scrollTop(O[am].top-1);visible.scrollTop(O[am].top);visible.scrollLeft(O[am].left-1);visible.scrollLeft(O[am].left)}}else{visible=(aj.css("z-index")==1?aj:al);O[am].top=visible.scrollTop();O[am].left=visible.scrollLeft();aj.css("overflow","hidden");al.css("overflow","hidden")}O[am].scrollChanged=true;D(am)};var D=function(aj){O[aj].table.style("width","100%","important");var ak=setTimeout(function(){O[aj].table.style("width","");clearInterval(ak)},10)};var W=function(al){var ak=O[al].main;var aj=O[al].mainStyle;ak.css(aj);O[al].css("height","auto");O[al].css("width",aj.width);O[al].css("max-width",aj["max-width"]);O[al].css("min-width",aj["min-width"])};var af=function(aj){O[aj].plain.outerHeight(O[aj].main.outerHeight())};var P=function(aj){f(k,O[aj]).each(function(){var am=f(this).attr("data-line");var al=f("#"+am);var ak=null;if(O[aj].wrapped){al.css("height","");ak=al.outerHeight();ak=ak?ak:""}else{ak=al.attr("data-height");ak=ak?ak:"";al.css("height",ak)}f(this).css("height",ak)})};var ai=function(aj,ak){if(aj=="fast"){aj=200}else{if(aj=="slow"){aj=600}else{if(!T(aj)){aj=parseInt(aj);if(isNaN(aj)){return 0}}}}return aj*O[ak].time};var T=function(aj){return typeof aj=="number"}}})(jQueryCrayon);var CSSJSON=new function(){var c=this;c.init=function(){String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g,"")};String.prototype.repeat=function(p){return new Array(1+p).join(this)}};c.init();var h=/([^\s\;\{\}][^\;\{\}]*)\{/g;var n=/\}/g;var d=/([^\;\{\}]*)\;/g;var l=/\/\*[\s\S]*?\*\//g;var g=/([^\:]+):([^\;]*);/;var o=/(\/\*[\s\S]*?\*\/)|([^\s\;\{\}][^\;\{\}]*(?=\{))|(\})|([^\;\{\}]+\;(?!\s*\*\/))/gmi;var j=1;var f=2;var b=3;var k=4;var e=function(p){return typeof p=="undefined"||p.length==0||p==null};c.toJSON=function(r,x){var s={children:{},attributes:{}};var u=null;var v=0;if(typeof x=="undefined"){var x={ordered:false,comments:false,stripComments:false,split:false}}if(x.stripComments){x.comments=false;r=r.replace(l,"")}while((u=o.exec(r))!=null){if(!e(u[j])&&x.comments){var C=u[j].trim();s[v++]=C}else{if(!e(u[f])){var p=u[f].trim();var A=c.toJSON(r,x);if(x.ordered){var t={};t.name=p;t.value=A;t.type="rule";s[v++]=t}else{if(x.split){var B=p.split(",")}else{var B=[p]}for(i in B){var q=B[i].trim();if(q in s.children){for(var y in A.attributes){s.children[q].attributes[y]=A.attributes[y]}}else{s.children[q]=A}}}}else{if(!e(u[b])){return s}else{if(!e(u[k])){var D=u[k].trim();var w=g.exec(D);if(w){var p=w[1].trim();var z=w[2].trim();if(x.ordered){var t={};t.name=p;t.value=z;t.type="attr";s[v++]=t}else{s.attributes[p]=z}}else{s[v++]=D}}}}}}return s};c.toCSS=function(r,t,q){var p="";if(typeof t=="undefined"){t=0}if(typeof q=="undefined"){q=false}if(r.attributes){for(i in r.attributes){p+=a(i,r.attributes[i],t)}}if(r.children){var s=true;for(i in r.children){if(q&&!s){p+="\n"}else{s=false}p+=m(i,r.children[i],t)}}return p};var a=function(p,q,r){return"\t".repeat(r)+p+": "+q+";\n"};var m=function(p,r,s){var q="\t".repeat(s)+p+" {\n";q+=c.toCSS(r,s+1);q+="\t".repeat(s)+"}\n";return q}};(function(a){window.CrayonQuickTags=new function(){var b=this;b.init=function(){b.sel='*[id*="crayon_quicktag"],*[class*="crayon_quicktag"]';QTags.addButton("crayon_quicktag","crayon",function(){CrayonTagEditor.showDialog({insert:function(e){QTags.insertContent(e)},select:b.getSelectedText,editor_str:"html",output:"encode"});a(b.sel).removeClass("qt_crayon_highlight")});var c;var d=setInterval(function(){c=a(b.sel).first();if(typeof c!="undefined"){CrayonTagEditor.bind(b.sel);clearInterval(d)}},100)};b.getSelectedText=function(){if(QTags.instances.length==0){return null}else{var e=QTags.instances[0];var d=e.canvas.selectionStart;var c=e.canvas.selectionEnd;return e.canvas.value.substring(d,c)}}};a(document).ready(function(){CrayonQuickTags.init()})})(jQueryCrayon);
|
2 |
/*!
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
*/
|
8 |
-
(function(aT,a8,a4){function aY(a,c,d){var b=a8.createElement(a);return c&&(b.id=af+c),d&&(b.style.cssText=d),aT(b)}function aZ(){return a4.innerHeight?a4.innerHeight:aT(a4).height()}function aV(b){var c=az.length,a=(a3+b)%c;return 0>a?c+a:a}function a1(a,b){return Math.round((/%/.test(a)?("x"===b?aw.width():aZ())/100:1)*parseInt(a,10))}function a5(a,b){return a.photo||a.photoRegex.test(b)}function aU(a,b){return a.retinaUrl&&a4.devicePixelRatio>1?b.replace(a.photoRegex,a.retinaSuffix):b}function bd(a){"contains" in aR[0]&&!aR[0].contains(a.target)&&(a.stopPropagation(),aR.focus())}function a9(){var b,a=aT.data(aF,ab);null==a?(ao=aT.extend({},ac),console&&console.log&&console.log("Error: cboxElement missing settings object")):ao=aT.extend({},a);for(b in ao){aT.isFunction(ao[b])&&"on"!==b.slice(0,2)&&(ao[b]=ao[b].call(aF))}ao.rel=ao.rel||aF.rel||aT(aF).data("rel")||"nofollow",ao.href=ao.href||aT(aF).attr("href"),ao.title=ao.title||aF.title,"string"==typeof ao.href&&(ao.href=aT.trim(ao.href))}function ba(a,b){aT(a8).trigger(a),aG.trigger(a),aT.isFunction(b)&&b.call(aF)}function aS(){var c,f,b,g,h,d=af+"Slideshow_",a="click."+af;ao.slideshow&&az[1]?(f=function(){clearTimeout(c)},b=function(){(ao.loop||az[a3+1])&&(c=setTimeout(au.next,ao.slideshowSpeed))},g=function(){al.html(ao.slideshowStop).unbind(a).one(a,h),aG.bind(aa,b).bind(aL,f).bind(aO,h),aR.removeClass(d+"off").addClass(d+"on")},h=function(){f(),aG.unbind(aa,b).unbind(aL,f).unbind(aO,h),al.html(ao.slideshowStart).unbind(a).one(a,function(){au.next(),g()}),aR.removeClass(d+"on").addClass(d+"off")},ao.slideshowAuto?g():h()):aR.removeClass(d+"off "+d+"on")}function aX(a){ax||(aF=a,a9(),az=aT(aF),a3=0,"nofollow"!==ao.rel&&(az=aT("."+bc).filter(function(){var c,b=aT.data(this,ab);return b&&(c=aT(this).data("rel")||b.rel||this.rel),c===ao.rel}),a3=az.index(aF),-1===a3&&(az=az.add(aF),a3=az.length-1)),a6.css({opacity:parseFloat(ao.opacity),cursor:ao.overlayClose?"pointer":"auto",visibility:"visible"}).show(),ah&&aR.add(a6).removeClass(ah),ao.className&&aR.add(a6).addClass(ao.className),ah=ao.className,ao.closeButton?an.html(ao.close).appendTo(aP):an.appendTo("<div/>"),aH||(aH=aW=!0,aR.css({visibility:"hidden",display:"block"}),ag=aY(aA,"LoadedContent","width:0; height:0; overflow:hidden"),aP.css({width:"",height:""}).append(ag),bf=bb.height()+a2.height()+aP.outerHeight(!0)-aP.height(),aB=aj.width()+aC.width()+aP.outerWidth(!0)-aP.width(),ap=ag.outerHeight(!0),aM=ag.outerWidth(!0),ao.w=a1(ao.initialWidth,"x"),ao.h=a1(ao.initialHeight,"y"),au.position(),aS(),ba(aJ,ao.onOpen),aE.add(ak).hide(),aR.focus(),ao.trapFocus&&a8.addEventListener&&(a8.addEventListener("focus",bd,!0),aG.one(aK,function(){a8.removeEventListener("focus",bd,!0)})),ao.returnFocus&&aG.one(aK,function(){aT(aF).focus()})),aQ())}function a7(){!aR&&a8.body&&(ad=!1,aw=aT(a4),aR=aY(aA).attr({id:ab,"class":aT.support.opacity===!1?af+"IE":"",role:"dialog",tabindex:"-1"}).hide(),a6=aY(aA,"Overlay").hide(),ar=aT([aY(aA,"LoadingOverlay")[0],aY(aA,"LoadingGraphic")[0]]),aN=aY(aA,"Wrapper"),aP=aY(aA,"Content").append(ak=aY(aA,"Title"),aq=aY(aA,"Current"),at=aT('<button type="button"/>').attr({id:af+"Previous"}),av=aT('<button type="button"/>').attr({id:af+"Next"}),al=aY("button","Slideshow"),ar),an=aT('<button type="button"/>').attr({id:af+"Close"}),aN.append(aY(aA).append(aY(aA,"TopLeft"),bb=aY(aA,"TopCenter"),aY(aA,"TopRight")),aY(aA,!1,"clear:left").append(aj=aY(aA,"MiddleLeft"),aP,aC=aY(aA,"MiddleRight")),aY(aA,!1,"clear:left").append(aY(aA,"BottomLeft"),a2=aY(aA,"BottomCenter"),aY(aA,"BottomRight"))).find("div div").css({"float":"left"}),ay=aY(aA,!1,"position:absolute; width:9999px; visibility:hidden; display:none"),aE=av.add(at).add(aq).add(al),aT(a8.body).append(a6,aR.append(aN,ay)))}function a0(){function a(b){b.which>1||b.shiftKey||b.altKey||b.metaKey||b.ctrlKey||(b.preventDefault(),aX(this))}return aR?(ad||(ad=!0,av.click(function(){au.next()}),at.click(function(){au.prev()}),an.click(function(){au.close()}),a6.click(function(){ao.overlayClose&&au.close()}),aT(a8).bind("keydown."+af,function(b){var c=b.keyCode;aH&&ao.escKey&&27===c&&(b.preventDefault(),au.close()),aH&&ao.arrowKey&&az[1]&&!b.altKey&&(37===c?(b.preventDefault(),at.click()):39===c&&(b.preventDefault(),av.click()))}),aT.isFunction(aT.fn.on)?aT(a8).on("click."+af,"."+bc,a):aT("."+bc).live("click."+af,a)),!0):!1}function aQ(){var f,d,b,c=au.prep,e=++aD;aW=!0,ai=!1,aF=az[a3],a9(),ba(be),ba(aL,ao.onLoad),ao.h=ao.height?a1(ao.height,"y")-ap-bf:ao.innerHeight&&a1(ao.innerHeight,"y"),ao.w=ao.width?a1(ao.width,"x")-aM-aB:ao.innerWidth&&a1(ao.innerWidth,"x"),ao.mw=ao.w,ao.mh=ao.h,ao.maxWidth&&(ao.mw=a1(ao.maxWidth,"x")-aM-aB,ao.mw=ao.w&&ao.w<ao.mw?ao.w:ao.mw),ao.maxHeight&&(ao.mh=a1(ao.maxHeight,"y")-ap-bf,ao.mh=ao.h&&ao.h<ao.mh?ao.h:ao.mh),f=ao.href,am=setTimeout(function(){ar.show()},100),ao.inline?(b=aY(aA).hide().insertBefore(aT(f)[0]),aG.one(be,function(){b.replaceWith(ag.children())}),c(aT(f))):ao.iframe?c(" "):ao.html?c(ao.html):a5(ao,f)?(f=aU(ao,f),ai=a8.createElement("img"),aT(ai).addClass(af+"Photo").bind("error",function(){ao.title=!1,c(aY(aA,"Error").html(ao.imgError))}).one("load",function(){var a;e===aD&&(ai.alt=aT(aF).attr("alt")||aT(aF).attr("data-alt")||"",ao.retinaImage&&a4.devicePixelRatio>1&&(ai.height=ai.height/a4.devicePixelRatio,ai.width=ai.width/a4.devicePixelRatio),ao.scalePhotos&&(d=function(){ai.height-=ai.height*a,ai.width-=ai.width*a},ao.mw&&ai.width>ao.mw&&(a=(ai.width-ao.mw)/ai.width,d()),ao.mh&&ai.height>ao.mh&&(a=(ai.height-ao.mh)/ai.height,d())),ao.h&&(ai.style.marginTop=Math.max(ao.mh-ai.height,0)/2+"px"),az[1]&&(ao.loop||az[a3+1])&&(ai.style.cursor="pointer",ai.onclick=function(){au.next()}),ai.style.width=ai.width+"px",ai.style.height=ai.height+"px",setTimeout(function(){c(ai)},1))}),setTimeout(function(){ai.src=f},1)):f&&ay.load(f,ao.data,function(g,a){e===aD&&c("error"===a?aY(aA,"Error").html(ao.xhrError):aT(this).contents())})}var a6,aR,aN,aP,bb,aj,aC,a2,az,aw,ag,ay,ar,ak,aq,al,av,at,an,aE,ao,bf,aB,ap,aM,aF,a3,ai,aH,aW,ax,am,au,ah,ad,ac={transition:"elastic",speed:300,fadeOut:300,width:!1,initialWidth:"600",innerWidth:!1,maxWidth:!1,height:!1,initialHeight:"450",innerHeight:!1,maxHeight:!1,scalePhotos:!0,scrolling:!0,inline:!1,html:!1,iframe:!1,fastIframe:!0,photo:!1,href:!1,title:!1,rel:!1,opacity:0.9,preloading:!0,className:!1,retinaImage:!1,retinaUrl:!1,retinaSuffix:"@2x.$1",current:"image {current} of {total}",previous:"previous",next:"next",close:"close",xhrError:"This content failed to load.",imgError:"This image failed to load.",open:!1,returnFocus:!0,trapFocus:!0,reposition:!0,loop:!0,slideshow:!1,slideshowAuto:!0,slideshowSpeed:2500,slideshowStart:"start slideshow",slideshowStop:"stop slideshow",photoRegex:/\.(gif|png|jp(e|g|eg)|bmp|ico|webp)((#|\?).*)?$/i,onOpen:!1,onLoad:!1,onComplete:!1,onCleanup:!1,onClosed:!1,overlayClose:!0,escKey:!0,arrowKey:!0,top:!1,bottom:!1,left:!1,right:!1,fixed:!1,data:void 0,closeButton:!0},ab="colorbox",af="cbox",bc=af+"Element",aJ=af+"_open",aL=af+"_load",aa=af+"_complete",aO=af+"_cleanup",aK=af+"_closed",be=af+"_purge",aG=aT("<a/>"),aA="div",aD=0,aI={};aT.colorbox||(aT(a7),au=aT.fn[ab]=aT[ab]=function(b,a){var c=this;if(b=b||{},a7(),a0()){if(aT.isFunction(c)){c=aT("<a/>"),b.open=!0}else{if(!c[0]){return c}}a&&(b.onComplete=a),c.each(function(){aT.data(this,ab,aT.extend({},aT.data(this,ab)||ac,b))}).addClass(bc),(aT.isFunction(b.open)&&b.open.call(c)||b.open)&&aX(c[0])}return c},au.position=function(k,g){function f(){bb[0].style.width=a2[0].style.width=aP[0].style.width=parseInt(aR[0].style.width,10)-aB+"px",aP[0].style.height=aj[0].style.height=aC[0].style.height=parseInt(aR[0].style.height,10)-bf+"px"}var b,j,q,n=0,l=0,m=aR.offset();if(aw.unbind("resize."+af),aR.css({top:-90000,left:-90000}),j=aw.scrollTop(),q=aw.scrollLeft(),ao.fixed?(m.top-=j,m.left-=q,aR.css({position:"fixed"})):(n=j,l=q,aR.css({position:"absolute"})),l+=ao.right!==!1?Math.max(aw.width()-ao.w-aM-aB-a1(ao.right,"x"),0):ao.left!==!1?a1(ao.left,"x"):Math.round(Math.max(aw.width()-ao.w-aM-aB,0)/2),n+=ao.bottom!==!1?Math.max(aZ()-ao.h-ap-bf-a1(ao.bottom,"y"),0):ao.top!==!1?a1(ao.top,"y"):Math.round(Math.max(aZ()-ao.h-ap-bf,0)/2),aR.css({top:m.top,left:m.left,visibility:"visible"}),aN[0].style.width=aN[0].style.height="9999px",b={width:ao.w+aM+aB,height:ao.h+ap+bf,top:n,left:l},k){var p=0;aT.each(b,function(a){return b[a]!==aI[a]?(p=k,void 0):void 0}),k=p}aI=b,k||aR.css(b),aR.dequeue().animate(b,{duration:k||0,complete:function(){f(),aW=!1,aN[0].style.width=ao.w+aM+aB+"px",aN[0].style.height=ao.h+ap+bf+"px",ao.reposition&&setTimeout(function(){aw.bind("resize."+af,au.position)},1),g&&g()},step:f})},au.resize=function(a){var b;aH&&(a=a||{},a.width&&(ao.w=a1(a.width,"x")-aM-aB),a.innerWidth&&(ao.w=a1(a.innerWidth,"x")),ag.css({width:ao.w}),a.height&&(ao.h=a1(a.height,"y")-ap-bf),a.innerHeight&&(ao.h=a1(a.innerHeight,"y")),a.innerHeight||a.height||(b=ag.scrollTop(),ag.css({height:"auto"}),ao.h=ag.height()),ag.css({height:ao.h}),b&&ag.scrollTop(b),au.position("none"===ao.transition?0:ao.speed))},au.prep=function(e){function g(){return ao.w=ao.w||ag.width(),ao.w=ao.mw&&ao.mw<ao.w?ao.mw:ao.w,ao.w}function c(){return ao.h=ao.h||ag.height(),ao.h=ao.mh&&ao.mh<ao.h?ao.mh:ao.h,ao.h}if(aH){var b,f="none"===ao.transition?0:ao.speed;ag.empty().remove(),ag=aY(aA,"LoadedContent").append(e),ag.hide().appendTo(ay.show()).css({width:g(),overflow:ao.scrolling?"auto":"hidden"}).css({height:c()}).prependTo(aP),ay.hide(),aT(ai).css({"float":"none"}),b=function(){function k(){aT.support.opacity===!1&&aR[0].style.removeAttribute("filter")}var o,h,d=az.length,j="frameBorder",m="allowTransparency";aH&&(h=function(){clearTimeout(am),ar.hide(),ba(aa,ao.onComplete)},ak.html(ao.title).add(ag).show(),d>1?("string"==typeof ao.current&&aq.html(ao.current.replace("{current}",a3+1).replace("{total}",d)).show(),av[ao.loop||d-1>a3?"show":"hide"]().html(ao.next),at[ao.loop||a3?"show":"hide"]().html(ao.previous),ao.slideshow&&al.show(),ao.preloading&&aT.each([aV(-1),aV(1)],function(){var a,p,q=az[this],l=aT.data(q,ab);l&&l.href?(a=l.href,aT.isFunction(a)&&(a=a.call(q))):a=aT(q).attr("href"),a&&a5(l,a)&&(a=aU(l,a),p=a8.createElement("img"),p.src=a)})):aE.hide(),ao.iframe?(o=aY("iframe")[0],j in o&&(o[j]=0),m in o&&(o[m]="true"),ao.scrolling||(o.scrolling="no"),aT(o).attr({src:ao.href,name:(new Date).getTime(),"class":af+"Iframe",allowFullScreen:!0,webkitAllowFullScreen:!0,mozallowfullscreen:!0}).one("load",h).appendTo(ag),aG.one(be,function(){o.src="//about:blank"}),ao.fastIframe&&aT(o).trigger("load")):h(),"fade"===ao.transition?aR.fadeTo(f,1,k):k())},"fade"===ao.transition?aR.fadeTo(f,0,function(){au.position(0,b)}):au.position(f,b)}},au.next=function(){!aW&&az[1]&&(ao.loop||az[a3+1])&&(a3=aV(1),aX(az[a3]))},au.prev=function(){!aW&&az[1]&&(ao.loop||a3)&&(a3=aV(-1),aX(az[a3]))},au.close=function(){aH&&!ax&&(ax=!0,aH=!1,ba(aO,ao.onCleanup),aw.unbind("."+af),a6.fadeTo(ao.fadeOut||0,0),aR.stop().fadeTo(ao.fadeOut||0,0,function(){aR.add(a6).css({opacity:1,cursor:"auto"}).hide(),ba(be),ag.empty().remove(),setTimeout(function(){ax=!1,ba(aK,ao.onClosed)},1)}))},au.remove=function(){aR&&(aR.stop(),aT.colorbox.close(),aR.stop().remove(),a6.remove(),ax=!1,aR=null,aT("."+bc).removeData(ab).removeClass(bc),aT(a8).unbind("click."+af))},au.element=function(){return aT(aF)},au.settings=ac)})(jQuery,document,window);(function(a){window.CrayonTagEditor=new function(){var k=this;var B=false;var y=false;var e=false;var o,f,r,A,w;var C,t,j,v;var x=0;var l,q;var b=null;var g="";var D=false;var n,p,d;var z,c,u,m,h;k.init=function(){n=CrayonTagEditorSettings;p=CrayonSyntaxSettings;d=CrayonUtil};k.bind=function(s){if(!B){B=true;k.init()}k.loadDialog();a(s).colorbox({inline:true,href:n.content_css,width:690,height:"90%",closeButton:false,fixed:true,transition:"none",className:"crayon-colorbox",onOpen:function(){a(this.outer).prepend(a(n.bar_content))},onComplete:function(){a(n.code_css).focus()},onCleanup:function(){a(n.bar).prepend(a(n.bar_content))}})};k.hide=function(){a.colorbox.close();return false};k.loadDialog=function(){if(!y){y=true}else{return}CrayonUtil.getAJAX({action:"crayon-tag-editor",is_admin:p.is_admin},function(H){z=a('<div id="'+n.css+'"></div>');z.appendTo("body").hide();z.html(H);k.setOrigValues();m=z.find(n.submit_css);h=z.find(n.cancel_css);c=a(n.code_css);u=a("#crayon-te-clear");l=function(){var I=u.is(":visible");if(c.val().length>0&&!I){u.show();c.removeClass(p.selected)}else{if(c.val().length<=0){u.hide()}}};c.keyup(l);c.change(l);u.click(function(){c.val("");c.removeClass(p.selected);c.focus()});var F=a(n.url_css);var E=a(n.url_info_css);var G=CrayonTagEditorSettings.extensions;q=function(){if(F.val().length>0&&!E.is(":visible")){E.show();F.removeClass(p.selected)}else{if(F.val().length<=0){E.hide()}}var K=CrayonUtil.getExt(F.val());if(K){var L=G[K];var J=L?L:K;var I=CrayonTagEditorSettings.fallback_lang;a(n.lang_css+" option").each(function(){if(a(this).val()==J){I=J}});a(n.lang_css).val(I)}};F.keyup(q);F.change(q);var s=function(){var K=a(this);var I=a(this).attr(p.orig_value);if(typeof I=="undefined"){I=""}var L=k.settingValue(K);CrayonUtil.log(K.attr("id")+" value: "+L);var J=null;if(K.is("input[type=checkbox]")){J=K.next("span")}CrayonUtil.log(" >>> "+K.attr("id")+" is "+I+" = "+L);if(I==L){K.removeClass(p.changed);if(J){J.removeClass(p.changed)}}else{K.addClass(p.changed);if(J){J.addClass(p.changed)}}k.settingValue(K,L)};a("."+p.setting+"[id]:not(."+p.special+")").each(function(){a(this).change(s);a(this).keyup(s)})})};k.showDialog=function(E){E=a.extend({insert:null,edit:null,show:null,hide:k.hide,select:null,editor_str:null,ed:null,node:null,input:null,output:null},E);k.resetSettings();o=E.insert;f=E.edit;r=E.show;A=E.hide;w=E.select;C=E.input;t=E.output;j=E.editor_str;var F=E.node;var F=E.node;D=false;m.unbind();m.click(function(V){k.submitButton();V.preventDefault()});k.setSubmitText(n.submit_add);h.unbind();h.click(function(V){k.hide();V.preventDefault()});if(k.isCrayon(F)){b=a(F);if(b.length!=0){g=b.attr("class");var L=new RegExp("\\b([A-Za-z-]+)"+n.attr_sep+"(\\S+)","gim");var s=L.execAll(g);g=a.trim(g.replace(L,""));var M={};for(var R in s){var J=s[R][1];var N=s[R][2];M[J]=N}var U=b.attr("title");if(U){M.title=U}var H=b.attr("data-url");if(H){M.url=H}if(typeof M.highlight!="undefined"){M.highlight="0"?"1":"0"}D=b.hasClass(n.inline_css);M.inline=D?"1":"0";var S=[];a(n.lang_css+" option").each(function(){var V=a(this).val();if(V){S.push(V)}});if(a.inArray(M.lang,S)==-1){M.lang=n.fallback_lang}M=k.validate(M);for(var O in M){var K=a("#"+p.prefix+O+"."+p.setting);var N=M[O];k.settingValue(K,N);K.change();if(!K.hasClass(p.special)){K.addClass(p.changed);if(K.is("input[type=checkbox]")){highlight=K.next("span");highlight.addClass(p.changed)}}CrayonUtil.log("loaded: "+O+":"+N)}e=true;k.setSubmitText(n.submit_edit);var Q=b.html();if(C=="encode"){Q=CrayonUtil.encode_html(Q)}else{if(C=="decode"){Q=CrayonUtil.decode_html(Q)}}c.val(Q)}else{CrayonUtil.log("cannot load currNode of type pre")}}else{if(w){c.val(w)}e=false;k.setSubmitText(n.submit_add);b=null;g=""}var G=a("#"+n.inline_css);G.change(function(){D=a(this).is(":checked");var V=a("."+n.inline_hide_css);var Z=a("."+n.inline_hide_only_css);var X=[n.mark_css,n.range_css,n.title_css,n.url_css];for(var W in X){var Y=a(X[W]);Y.attr("disabled",D)}if(D){V.hide();Z.hide();V.closest("tr").hide();for(var W in X){var Y=a(X[W]);Y.addClass("crayon-disabled")}}else{V.show();Z.show();V.closest("tr").show();for(var W in X){var Y=a(X[W]);Y.removeClass("crayon-disabled")}}});G.change();var I=e?n.dialog_title_edit:n.dialog_title_add;a(n.dialog_title_css).html(I);if(r){r()}c.focus();l();q();if(v){clearInterval(v);x=0}var T=a("#TB_window");T.hide();var P=function(){T.show();var V=a(window).scrollTop();a(window).scrollTop(V+10);a(window).scrollTop(V-10)};v=setInterval(function(){if(typeof T!="undefined"&&!T.hasClass("crayon-te-ajax")){T.addClass("crayon-te-ajax");clearInterval(v);P()}if(x>=100){clearInterval(v);P()}x++},40)};k.addCrayon=function(){var E=a(n.url_css);if(E.val().length==0&&c.val().length==0){c.addClass(p.selected);c.focus();return false}c.removeClass(p.selected);var M=a("#"+n.inline_css);D=M.length!=0&&M.is(":checked");var G=br_after="";if(!e){if(!D){if(j=="html"){br_after=G=" \n"}else{br_after="<p> </p>"}}else{if(j=="html"){br_after=G=" "}else{br_after=" "}}}var P=(D?"span":"pre");var I=G+"<"+P+" ";var K={};I+='class="';var s=new RegExp("\\b"+n.inline_css+"\\b","gim");if(D){if(s.exec(g)==null){g+=" "+n.inline_css+" "}}else{g=g.replace(s,"")}a("."+p.changed+"[id],."+p.changed+"["+n.data_value+"]").each(function(){var R=a(this).attr("id");var Q=a(this).attr(n.data_value);R=d.removePrefixFromID(R);K[R]=Q});K.lang=a(n.lang_css).val();var H=a(n.mark_css).val();if(H.length!=0&&!D){K.mark=H}var J=a(n.range_css).val();if(J.length!=0&&!D){K.range=J}if(a(n.hl_css).is(":checked")){K.highlight="0"}K.decode="true";K=k.validate(K);for(var F in K){var O=K[F];CrayonUtil.log("add "+F+":"+O);I+=F+n.attr_sep+O+" "}I+=g;I+='" ';if(!D){var N=a(n.title_css).val();if(N.length!=0){I+='title="'+N+'" '}var E=a(n.url_css).val();if(E.length!=0){I+='data-url="'+E+'" '}}var L=a(n.code_css).val();if(t=="encode"){L=CrayonUtil.encode_html(L)}else{if(t=="decode"){L=CrayonUtil.decode_html(L)}}L=typeof L!="undefined"?L:"";I+=">"+L+"</"+P+">"+br_after;if(e&&f){f(I)}else{if(o){o(I)}}return true};k.submitButton=function(){CrayonUtil.log("submit");if(k.addCrayon()!=false){k.hideDialog()}};k.hideDialog=function(){CrayonUtil.log("hide");if(A){A()}};k.setOrigValues=function(){a("."+p.setting+"[id]").each(function(){var s=a(this);s.attr(p.orig_value,k.settingValue(s))})};k.resetSettings=function(){CrayonUtil.log("reset");a("."+p.setting).each(function(){var s=a(this);k.settingValue(s,s.attr(p.orig_value));s.change()});c.val("")};k.settingValue=function(s,E){if(typeof E=="undefined"){E="";if(s.is("input[type=checkbox]")){E=s.is(":checked")?"true":"false"}else{E=s.val()}return E}else{if(s.is("input[type=checkbox]")){if(typeof E=="string"){if(E=="true"||E=="1"){E=true}else{if(E=="false"||E=="0"){E=false}}}s.prop("checked",E)}else{s.val(E)}s.attr(n.data_value,E)}};k.validate=function(G){var s=["range","mark"];for(var E in s){var F=s[E];if(typeof G[F]!="undefined"){G[F]=G[F].replace(/\s/g,"")}}return G};k.isCrayon=function(s){return s!=null&&(s.nodeName=="PRE"||(s.nodeName=="SPAN"&&a(s).hasClass(n.inline_css)))};k.elemValue=function(E){var s=null;if(E.is("input[type=checkbox]")){s=E.is(":checked")}else{s=E.val()}return s};k.setSubmitText=function(s){m.html(s)}}})(jQueryCrayon);
|
1 |
+
var jQueryCrayon=jQuery;(function(a){a(document).ready(function(){CrayonUtil.init()});CrayonUtil=new function(){var c=this;var b=null;c.init=function(){b=CrayonSyntaxSettings;c.initGET()};c.addPrefixToID=function(d){return d.replace(/^([#.])?(.*)$/,"$1"+b.prefix+"$2")};c.removePrefixFromID=function(e){var d=new RegExp("^[#.]?"+b.prefix,"i");return e.replace(d,"")};c.cssElem=function(d){return a(c.addPrefixToID(d))};c.setDefault=function(e,f){return(typeof e=="undefined")?f:e};c.setMax=function(e,d){return e<=d?e:d};c.setMin=function(d,e){return d>=e?d:e};c.setRange=function(e,f,d){return c.setMax(c.setMin(e,f),d)};c.getExt=function(e){if(e.indexOf(".")==-1){return undefined}var d=e.split(".");if(d.length){d=d[d.length-1]}else{d=""}return d};c.initGET=function(){window.currentURL=window.location.protocol+"//"+window.location.host+window.location.pathname;window.currentDir=window.currentURL.substring(0,window.currentURL.lastIndexOf("/"));function d(e){e=e.split("+").join(" ");var h={},g,f=/[?&]?([^=]+)=([^&]*)/g;while(g=f.exec(e)){h[decodeURIComponent(g[1])]=decodeURIComponent(g[2])}return h}window.GET=d(document.location.search)};c.getAJAX=function(d,e){d.version=b.version;a.get(b.ajaxurl,d,e)};c.postAJAX=function(d,e){d.version=b.version;a.post(b.ajaxurl,d,e)};c.reload=function(){var d="?";for(var e in window.GET){d+=e+"="+window.GET[e]+"&"}window.location=window.currentURL+d};c.escape=function(d){if(typeof encodeURIComponent=="function"){return encodeURIComponent(d)}else{if(typeof escape!="function"){return escape(d)}else{return d}}};c.log=function(d){if(typeof console!="undefined"&&b.debug){console.log(d)}};c.decode_html=function(d){return String(d).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")};c.encode_html=function(d){return String(d).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")};c.getReadableColor=function(g,f){f=a.extend({amount:0.5,xMulti:1,yMulti:1.5,normalizeHue:[20,180],normalizeHueXMulti:1/2.5,normalizeHueYMulti:1},f);var d=tinycolor(g);var e=d.toHsv();var i={x:e.s,y:1-e.v};i.x*=f.xMulti;i.y*=f.yMulti;if(f.normalizeHue&&e.h>f.normalizeHue[0]&&e.h<f.normalizeHue[1]){i.x*=f.normalizeHueXMulti;i.y*=f.normalizeHueYMulti}var h=Math.sqrt(Math.pow(i.x,2)+Math.pow(i.y,2));if(h<f.amount){e.v=0}else{e.v=1}e.s=0;return tinycolor(e).toHexString()};c.removeChars=function(e,f){var d=new RegExp("["+e+"]","gmi");return f.replace(d,"")}};a.fn.bindFirst=function(c,e){this.bind(c,e);var b=this.data("events")[c.split(".")[0]];var d=b.pop();b.splice(0,0,d)};a.keys=function(d){var c=[];for(var b in d){c.push(b)}return c};RegExp.prototype.execAll=function(c){var f=[];var b=null;while((b=this.exec(c))!=null){var e=[];for(var d in b){if(parseInt(d)==d){e.push(b[d])}}f.push(e)}return f};RegExp.prototype.escape=function(b){return b.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")};String.prototype.sliceReplace=function(d,b,c){return this.substring(0,d)+c+this.substring(b)};String.prototype.escape=function(){var b={"&":"&","<":"<",">":">"};return this.replace(/[&<>]/g,function(c){return b[c]||c})};String.prototype.linkify=function(b){b=typeof b!="undefined"?b:"";return this.replace(/(http(s)?:\/\/(\S)+)/gmi,'<a href="$1" target="'+b+'">$1</a>')};String.prototype.toTitleCase=function(){var b=this.split(/\s+/);var c="";a.each(b,function(e,d){if(d!=""){c+=d.slice(0,1).toUpperCase()+d.slice(1,d.length);if(e!=b.length-1&&b[e+1]!=""){c+=" "}}});return c}})(jQueryCrayon);jqueryPopup=Object();jqueryPopup.defaultSettings={centerBrowser:0,centerScreen:0,height:500,left:0,location:0,menubar:0,resizable:0,scrollbars:0,status:0,width:500,windowName:null,windowURL:null,top:0,toolbar:0,data:null,event:"click"};(function(a){popupWindow=function(d,c,f,b){f=typeof f!=="undefined"?f:null;b=typeof b!=="undefined"?b:null;if(typeof d=="string"){d=jQuery(d)}if(!(d instanceof jQuery)){return false}var e=jQuery.extend({},jqueryPopup.defaultSettings,c||{});d.handler=jQuery(d).bind(e.event,function(){if(f){f()}var g="height="+e.height+",width="+e.width+",toolbar="+e.toolbar+",scrollbars="+e.scrollbars+",status="+e.status+",resizable="+e.resizable+",location="+e.location+",menuBar="+e.menubar;e.windowName=e.windowName||jQuery(this).attr("name");var h=jQuery(this).attr("href");if(!e.windowURL&&!(h=="#")&&!(h=="")){e.windowURL=jQuery(this).attr("href")}var i,j;var k=null;if(e.centerBrowser){if(typeof window.screenY=="undefined"){i=(window.screenTop-120)+((((document.documentElement.clientHeight+120)/2)-(e.height/2)));j=window.screenLeft+((((document.body.offsetWidth+20)/2)-(e.width/2)))}else{i=window.screenY+(((window.outerHeight/2)-(e.height/2)));j=window.screenX+(((window.outerWidth/2)-(e.width/2)))}k=window.open(e.windowURL,e.windowName,g+",left="+j+",top="+i)}else{if(e.centerScreen){i=(screen.height-e.height)/2;j=(screen.width-e.width)/2;k=window.open(e.windowURL,e.windowName,g+",left="+j+",top="+i)}else{k=window.open(e.windowURL,e.windowName,g+",left="+e.left+",top="+e.top)}}if(k!=null){k.focus();if(e.data){k.document.write(e.data)}}if(b){b()}});return e};popdownWindow=function(b,c){if(typeof c=="undefined"){c="click"}b=jQuery(b);if(!(b instanceof jQuery)){return false}b.unbind(c,b.handler)}})(jQueryCrayon);(function(f){f.fn.exists=function(){return this.length!==0};f.fn.style=function(B,E,A){var D=this.get(0);if(typeof D=="undefined"){return}var C=D.style;if(typeof B!="undefined"){if(typeof E!="undefined"){A=typeof A!="undefined"?A:"";if(typeof C.setProperty!="undefined"){C.setProperty(B,E,A)}else{C[B]=E}}else{return C[B]}}else{return C}};var d="crayon-pressed";var a="";var n="div.crayon-syntax";var e=".crayon-toolbar";var c=".crayon-info";var w=".crayon-plain";var o=".crayon-main";var m=".crayon-table";var v=".crayon-loading";var h=".crayon-code";var p=".crayon-title";var l=".crayon-tools";var b=".crayon-nums";var j=".crayon-num";var q=".crayon-line";var g="crayon-wrapped";var s=".crayon-nums-content";var u=".crayon-nums-button";var k=".crayon-wrap-button";var i=".crayon-expand-button";var t="crayon-expanded crayon-toolbar-visible";var y="crayon-placeholder";var x=".crayon-popup-button";var r=".crayon-copy-button";var z=".crayon-plain-button";f(document).ready(function(){CrayonSyntax.init()});CrayonSyntax=new function(){var I=this;var N=new Object();var ag;var H;var G=0;var Z;I.init=function(){if(typeof N=="undefined"){N=new Object()}ag=CrayonSyntaxSettings;H=CrayonSyntaxStrings;f(n).each(function(){I.process(this)})};I.process=function(aD,aE){aD=f(aD);var ar=aD.attr("id");if(ar=="crayon-"){ar+=X()}aD.attr("id",ar);CrayonUtil.log(ar);if(typeof aE=="undefined"){aE=false}if(!aE&&!aa(ar)){return}var au=aD.find(e);var aC=aD.find(c);var ap=aD.find(w);var aq=aD.find(o);var aB=aD.find(m);var aj=aD.find(h);var aG=aD.find(p);var aA=aD.find(l);var ay=aD.find(b);var av=aD.find(s);var az=aD.find(u);var am=aD.find(k);var ao=aD.find(i);var aF=aD.find(x);var at=aD.find(r);var al=aD.find(z);N[ar]=aD;N[ar].toolbar=au;N[ar].plain=ap;N[ar].info=aC;N[ar].main=aq;N[ar].table=aB;N[ar].code=aj;N[ar].title=aG;N[ar].tools=aA;N[ar].nums=ay;N[ar].nums_content=av;N[ar].numsButton=az;N[ar].wrapButton=am;N[ar].expandButton=ao;N[ar].popup_button=aF;N[ar].copy_button=at;N[ar].plainButton=al;N[ar].numsVisible=true;N[ar].wrapped=false;N[ar].plainVisible=false;N[ar].toolbar_delay=0;N[ar].time=1;f(w).css("z-index",0);var aw=aq.style();N[ar].mainStyle={height:aw&&aw.height||"","max-height":aw&&aw.maxHeight||"","min-height":aw&&aw.minHeight||"",width:aw&&aw.width||"","max-width":aw&&aw.maxWidth||"","min-width":aw&&aw.minWidth||""};N[ar].mainHeightAuto=N[ar].mainStyle.height==""&&N[ar].mainStyle["max-height"]=="";var ak;var ax=0;N[ar].loading=true;N[ar].scrollBlockFix=false;az.click(function(){CrayonSyntax.toggleNums(ar)});am.click(function(){CrayonSyntax.toggleWrap(ar)});ao.click(function(){CrayonSyntax.toggleExpand(ar)});al.click(function(){CrayonSyntax.togglePlain(ar)});at.click(function(){CrayonSyntax.copyPlain(ar)});B(ar);var an=function(){if(ay.filter('[data-settings~="hide"]').length!=0){av.ready(function(){CrayonUtil.log("function"+ar);CrayonSyntax.toggleNums(ar,true,true)})}else{ac(ar)}if(typeof N[ar].expanded=="undefined"){if(Math.abs(N[ar].main.outerWidth()-N[ar].table.outerWidth())<10){N[ar].expandButton.hide()}else{N[ar].expandButton.show()}}if(ax==5){clearInterval(ak);N[ar].loading=false}ax++};ak=setInterval(an,300);C(ar);f(j,N[ar]).each(function(){var aJ=f(this).attr("data-line");var aI=f("#"+aJ);var aH=aI.style("height");if(aH){aI.attr("data-height",aH)}});aq.css("position","relative");aq.css("z-index",1);Z=(aD.filter('[data-settings~="touchscreen"]').length!=0);if(!Z){aq.click(function(){A(ar,"",false)});ap.click(function(){A(ar,"",false)});aC.click(function(){A(ar,"",false)})}if(aD.filter('[data-settings~="no-popup"]').length==0){N[ar].popup_settings=popupWindow(aF,{height:screen.height-200,width:screen.width-100,top:75,left:50,scrollbars:1,windowURL:"",data:""},function(){F(ar)},function(){})}ap.css("opacity",0);N[ar].toolbarVisible=true;N[ar].hasOneLine=aB.outerHeight()<au.outerHeight()*2;N[ar].toolbarMouseover=false;if(au.filter('[data-settings~="mouseover"]').length!=0&&!Z){N[ar].toolbarMouseover=true;N[ar].toolbarVisible=false;au.css("margin-top","-"+au.outerHeight()+"px");au.hide();if(au.filter('[data-settings~="overlay"]').length!=0&&!N[ar].hasOneLine){au.css("position","absolute");au.css("z-index",2);if(au.filter('[data-settings~="hide"]').length!=0){aq.click(function(){T(ar,undefined,undefined,0)});ap.click(function(){T(ar,false,undefined,0)})}}else{au.css("z-index",4)}if(au.filter('[data-settings~="delay"]').length!=0){N[ar].toolbar_delay=500}aD.mouseenter(function(){T(ar,true)}).mouseleave(function(){T(ar,false)})}else{if(Z){au.show()}}if(aD.filter('[data-settings~="minimize"]').length==0){I.minimize(ar)}if(ap.length!=0&&!Z){if(ap.filter('[data-settings~="dblclick"]').length!=0){aq.dblclick(function(){CrayonSyntax.togglePlain(ar)})}else{if(ap.filter('[data-settings~="click"]').length!=0){aq.click(function(){CrayonSyntax.togglePlain(ar)})}else{if(ap.filter('[data-settings~="mouseover"]').length!=0){aD.mouseenter(function(){CrayonSyntax.togglePlain(ar,true)}).mouseleave(function(){CrayonSyntax.togglePlain(ar,false)});az.hide()}}}if(ap.filter('[data-settings~="show-plain-default"]').length!=0){CrayonSyntax.togglePlain(ar,true)}}var ai=aD.filter('[data-settings~="expand"]').length!=0;if(!Z&&aD.filter('[data-settings~="scroll-mouseover"]').length!=0){aq.css("overflow","hidden");ap.css("overflow","hidden");aD.mouseenter(function(){M(ar,true,ai)}).mouseleave(function(){M(ar,false,ai)})}if(ai){aD.mouseenter(function(){D(ar,true)}).mouseleave(function(){D(ar,false)})}if(aD.filter('[data-settings~="disable-anim"]').length!=0){N[ar].time=0}if(aD.filter('[data-settings~="wrap"]').length!=0){N[ar].wrapped=true}N[ar].mac=aD.hasClass("crayon-os-mac");ac(ar);ab(ar);Y(ar)};var aa=function(ai){CrayonUtil.log(N);if(typeof N[ai]=="undefined"){N[ai]=f("#"+ai);CrayonUtil.log("make "+ai);return true}CrayonUtil.log("no make "+ai);return false};var X=function(){return G++};var F=function(ai){if(typeof N[ai]=="undefined"){return aa(ai)}var aj=N[ai].popup_settings;if(aj.data){return}var al=N[ai].clone(true);al.removeClass("crayon-wrapped");if(N[ai].wrapped){f(j,al).each(function(){var ao=f(this).attr("data-line");var an=f("#"+ao);var am=an.attr("data-height");am=am?am:"";if(typeof am!="undefined"){an.css("height",am);f(this).css("height",am)}})}al.find(o).css("height","");var ak="";if(N[ai].plainVisible){ak=al.find(w)}else{ak=al.find(o)}aj.data=I.getAllCSS()+'<body class="crayon-popup-window" style="padding:0; margin:0;"><div class="'+al.attr("class")+' crayon-popup">'+I.removeCssInline(I.getHtmlString(ak))+"</div></body>"};I.minimize=function(al){var ak=f('<div class="crayon-minimize crayon-button"><div>');N[al].tools.append(ak);N[al].origTitle=N[al].title.html();if(!N[al].origTitle){N[al].title.html(H.minimize)}var aj="crayon-minimized";var ai=function(){N[al].toolbarPreventHide=false;ak.remove();N[al].removeClass(aj);N[al].title.html(N[al].origTitle);var am=N[al].toolbar;if(am.filter('[data-settings~="never-show"]').length!=0){am.remove()}};N[al].toolbar.click(ai);ak.click(ai);N[al].addClass(aj);N[al].toolbarPreventHide=true;T(al,undefined,undefined,0)};I.getHtmlString=function(ai){return f("<div>").append(ai.clone()).remove().html()};I.removeCssInline=function(ak){var aj=/style\s*=\s*"([^"]+)"/gmi;var ai=null;while((ai=aj.exec(ak))!=null){var al=ai[1];al=al.replace(/\b(?:width|height)\s*:[^;]+;/gmi,"");ak=ak.sliceReplace(ai.index,ai.index+ai[0].length,'style="'+al+'"')}return ak};I.getAllCSS=function(){var ak="";var aj=f('link[rel="stylesheet"]');var ai=[];if(aj.length==1){ai=aj}else{ai=aj.filter('[href*="crayon-syntax-highlighter"], [href*="min/"]')}ai.each(function(){var al=I.getHtmlString(f(this));ak+=al});return ak};I.copyPlain=function(ak,al){if(typeof N[ak]=="undefined"){return aa(ak)}var aj=N[ak].plain;I.togglePlain(ak,true,true);T(ak,true);var ai=N[ak].mac?"\u2318":"CTRL";var am=H.copy;am=am.replace(/%s/,ai+"+C");am=am.replace(/%s/,ai+"+V");A(ak,am);return false};var A=function(aj,al,ai){if(typeof N[aj]=="undefined"){return aa(aj)}var ak=N[aj].info;if(typeof al=="undefined"){al=""}if(typeof ai=="undefined"){ai=true}if(L(ak)&&ai){ak.html("<div>"+al+"</div>");ak.css("margin-top",-ak.outerHeight());ak.show();Q(aj,ak,true);setTimeout(function(){Q(aj,ak,false)},5000)}if(!ai){Q(aj,ak,false)}};var B=function(ai){if(window.devicePixelRatio>1){var aj=f(".crayon-button-icon",N[ai].toolbar);aj.each(function(){var al=f(this).css("background-image");var ak=al.replace(/\.(?=[^\.]+$)/g,"@2x.");f(this).css("background-size","48px 128px");f(this).css("background-image",ak)})}};var L=function(ai){var aj="-"+ai.outerHeight()+"px";if(ai.css("margin-top")==aj||ai.css("display")=="none"){return true}else{return false}};var Q=function(al,ak,aj,an,am,ap){var ai=function(){if(ap){ap(al,ak)}};var ao="-"+ak.outerHeight()+"px";if(typeof aj=="undefined"){if(L(ak)){aj=true}else{aj=false}}if(typeof an=="undefined"){an=100}if(an==false){an=false}if(typeof am=="undefined"){am=0}ak.stop(true);if(aj==true){ak.show();ak.animate({marginTop:0},ah(an,al),ai)}else{if(aj==false){if(ak.css("margin-top")=="0px"&&am){ak.delay(am)}ak.animate({marginTop:ao},ah(an,al),function(){ak.hide();ai()})}}};I.togglePlain=function(al,am,aj){if(typeof N[al]=="undefined"){return aa(al)}var ai=N[al].main;var ak=N[al].plain;if((ai.is(":animated")||ak.is(":animated"))&&typeof am=="undefined"){return}ae(al);var ao,an;if(typeof am!="undefined"){if(am){ao=ai;an=ak}else{ao=ak;an=ai}}else{if(ai.css("z-index")==1){ao=ai;an=ak}else{ao=ak;an=ai}}N[al].plainVisible=(an==ak);N[al].top=ao.scrollTop();N[al].left=ao.scrollLeft();N[al].scrollChanged=false;C(al);ao.stop(true);ao.fadeTo(ah(500,al),0,function(){ao.css("z-index",0)});an.stop(true);an.fadeTo(ah(500,al),1,function(){an.css("z-index",1);if(an==ak){if(aj){ak.select()}else{}}an.scrollTop(N[al].top+1);an.scrollTop(N[al].top);an.scrollLeft(N[al].left+1);an.scrollLeft(N[al].left)});an.scrollTop(N[al].top);an.scrollLeft(N[al].left);ab(al);T(al,false);return false};I.toggleNums=function(am,al,ai){if(typeof N[am]=="undefined"){aa(am);return false}if(N[am].table.is(":animated")){return false}var ao=Math.round(N[am].nums_content.outerWidth()+1);var an="-"+ao+"px";var ak;if(typeof al!="undefined"){ak=false}else{ak=(N[am].table.css("margin-left")==an)}var aj;if(ak){aj="0px";N[am].numsVisible=true}else{N[am].table.css("margin-left","0px");N[am].numsVisible=false;aj=an}if(typeof ai!="undefined"){N[am].table.css("margin-left",aj);ac(am);return false}var ap=(N[am].table.outerWidth()+J(N[am].table.css("margin-left"))>N[am].main.outerWidth());var aq=(N[am].table.outerHeight()>N[am].main.outerHeight());if(!ap&&!aq){N[am].main.css("overflow","hidden")}N[am].table.animate({marginLeft:aj},ah(200,am),function(){if(typeof N[am]!="undefined"){ac(am);if(!ap&&!aq){N[am].main.css("overflow","auto")}}});return false};I.toggleWrap=function(ai){N[ai].wrapped=!N[ai].wrapped;Y(ai)};I.toggleExpand=function(ai){var aj=!CrayonUtil.setDefault(N[ai].expanded,false);D(ai,aj)};var Y=function(ai,aj){aj=CrayonUtil.setDefault(aj,true);if(N[ai].wrapped){N[ai].addClass(g)}else{N[ai].removeClass(g)}E(ai);if(!N[ai].expanded&&aj){V(ai)}N[ai].wrapTimes=0;clearInterval(N[ai].wrapTimer);N[ai].wrapTimer=setInterval(function(){if(N[ai].is(":visible")){O(ai);N[ai].wrapTimes++;if(N[ai].wrapTimes==5){clearInterval(N[ai].wrapTimer)}}},200)};var ad=function(ai){if(typeof N[ai]=="undefined"){aa(ai);return false}};var J=function(aj){if(typeof aj!="string"){return 0}var ai=aj.replace(/[^-0-9]/g,"");if(ai.length==0){return 0}else{return parseInt(ai)}};var ac=function(ai){if(typeof N[ai]=="undefined"||typeof N[ai].numsVisible=="undefined"){return}if(N[ai].numsVisible){N[ai].numsButton.removeClass(a);N[ai].numsButton.addClass(d)}else{N[ai].numsButton.removeClass(d);N[ai].numsButton.addClass(a)}};var E=function(ai){if(typeof N[ai]=="undefined"||typeof N[ai].wrapped=="undefined"){return}if(N[ai].wrapped){N[ai].wrapButton.removeClass(a);N[ai].wrapButton.addClass(d)}else{N[ai].wrapButton.removeClass(d);N[ai].wrapButton.addClass(a)}};var W=function(ai){if(typeof N[ai]=="undefined"||typeof N[ai].expanded=="undefined"){return}if(N[ai].expanded){N[ai].expandButton.removeClass(a);N[ai].expandButton.addClass(d)}else{N[ai].expandButton.removeClass(d);N[ai].expandButton.addClass(a)}};var ab=function(ai){if(typeof N[ai]=="undefined"||typeof N[ai].plainVisible=="undefined"){return}if(N[ai].plainVisible){N[ai].plainButton.removeClass(a);N[ai].plainButton.addClass(d)}else{N[ai].plainButton.removeClass(d);N[ai].plainButton.addClass(a)}};var T=function(aj,ai,al,ak){if(typeof N[aj]=="undefined"){return aa(aj)}else{if(!N[aj].toolbarMouseover){return}else{if(ai==false&&N[aj].toolbarPreventHide){return}else{if(Z){return}}}}var am=N[aj].toolbar;if(typeof ak=="undefined"){ak=N[aj].toolbar_delay}Q(aj,am,ai,al,ak,function(){N[aj].toolbarVisible=ai})};var R=function(ak,ai){var aj=f.extend({},ak);aj.width+=ai.width;aj.height+=ai.height;return aj};var P=function(ak,ai){var aj=f.extend({},ak);aj.width-=ai.width;aj.height-=ai.height;return aj};var U=function(ai){if(typeof N[ai].initialSize=="undefined"){N[ai].toolbarHeight=N[ai].toolbar.outerHeight();N[ai].innerSize={width:N[ai].width(),height:N[ai].height()};N[ai].outerSize={width:N[ai].outerWidth(),height:N[ai].outerHeight()};N[ai].borderSize=P(N[ai].outerSize,N[ai].innerSize);N[ai].initialSize={width:N[ai].main.outerWidth(),height:N[ai].main.outerHeight()};N[ai].initialSize.height+=N[ai].toolbarHeight;N[ai].initialOuterSize=R(N[ai].initialSize,N[ai].borderSize);N[ai].finalSize={width:N[ai].table.outerWidth(),height:N[ai].table.outerHeight()};N[ai].finalSize.height+=N[ai].toolbarHeight;N[ai].finalSize.width=CrayonUtil.setMin(N[ai].finalSize.width,N[ai].initialSize.width);N[ai].finalSize.height=CrayonUtil.setMin(N[ai].finalSize.height,N[ai].initialSize.height);N[ai].diffSize=P(N[ai].finalSize,N[ai].initialSize);N[ai].finalOuterSize=R(N[ai].finalSize,N[ai].borderSize);N[ai].initialSize.height+=N[ai].toolbar.outerHeight()}};var D=function(al,ao){if(typeof N[al]=="undefined"){return aa(al)}if(typeof ao=="undefined"){return}var aj=N[al].main;var aq=N[al].plain;if(ao){if(typeof N[al].expanded=="undefined"){U(al);N[al].expandTime=CrayonUtil.setRange(N[al].diffSize.width/3,300,800);N[al].expanded=false;var ap=N[al].finalOuterSize;N[al].placeholder=f("<div></div>");N[al].placeholder.addClass(y);N[al].placeholder.css(ap);N[al].before(N[al].placeholder);N[al].placeholder.css("margin",N[al].css("margin"));f(window).bind("resize",K)}var am={height:"auto","min-height":"none","max-height":"none"};var ai={width:"auto","min-width":"none","max-width":"none"};N[al].outerWidth(N[al].outerWidth());N[al].css({"min-width":"none","max-width":"none"});var an={width:N[al].finalOuterSize.width};if(!N[al].mainHeightAuto&&!N[al].hasOneLine){an.height=N[al].finalOuterSize.height;N[al].outerHeight(N[al].outerHeight())}aj.css(am);aj.css(ai);N[al].stop(true);N[al].animate(an,ah(N[al].expandTime,al),function(){N[al].expanded=true;W(al)});N[al].placeholder.show();f("body").prepend(N[al]);N[al].addClass(t);K()}else{var ar=N[al].initialOuterSize;var ak=N[al].toolbar_delay;if(ar){N[al].stop(true);if(!N[al].expanded){N[al].delay(ak)}var an={width:ar.width};if(!N[al].mainHeightAuto&&!N[al].hasOneLine){an.height=ar.height}N[al].animate(an,ah(N[al].expandTime,al),function(){af(al)})}else{setTimeout(function(){af(al)},ak)}N[al].placeholder.hide();N[al].placeholder.before(N[al]);N[al].css({left:"auto",top:"auto"});N[al].removeClass(t)}ae(al);if(ao){Y(al,false)}};var K=function(){for(uid in N){if(N[uid].hasClass(t)){N[uid].css(N[uid].placeholder.offset())}}};var af=function(ai){N[ai].expanded=false;V(ai);W(ai);if(N[ai].wrapped){Y(ai)}};var M=function(al,aj,am){if(typeof N[al]=="undefined"){return aa(al)}if(typeof aj=="undefined"||am||N[al].expanded){return}var ai=N[al].main;var ak=N[al].plain;if(aj){ai.css("overflow","auto");ak.css("overflow","auto");if(typeof N[al].top!="undefined"){visible=(ai.css("z-index")==1?ai:ak);visible.scrollTop(N[al].top-1);visible.scrollTop(N[al].top);visible.scrollLeft(N[al].left-1);visible.scrollLeft(N[al].left)}}else{visible=(ai.css("z-index")==1?ai:ak);N[al].top=visible.scrollTop();N[al].left=visible.scrollLeft();ai.css("overflow","hidden");ak.css("overflow","hidden")}N[al].scrollChanged=true;C(al)};var C=function(ai){N[ai].table.style("width","100%","important");var aj=setTimeout(function(){N[ai].table.style("width","");clearInterval(aj)},10)};var V=function(ak){var aj=N[ak].main;var ai=N[ak].mainStyle;aj.css(ai);N[ak].css("height","auto");N[ak].css("width",ai.width);N[ak].css("max-width",ai["max-width"]);N[ak].css("min-width",ai["min-width"])};var ae=function(ai){N[ai].plain.outerHeight(N[ai].main.outerHeight())};var O=function(ai){f(j,N[ai]).each(function(){var al=f(this).attr("data-line");var ak=f("#"+al);var aj=null;if(N[ai].wrapped){ak.css("height","");aj=ak.outerHeight();aj=aj?aj:""}else{aj=ak.attr("data-height");aj=aj?aj:"";ak.css("height",aj)}f(this).css("height",aj)})};var ah=function(ai,aj){if(ai=="fast"){ai=200}else{if(ai=="slow"){ai=600}else{if(!S(ai)){ai=parseInt(ai);if(isNaN(ai)){return 0}}}}return ai*N[aj].time};var S=function(ai){return typeof ai=="number"}}})(jQueryCrayon);(function(a){window.CrayonQuickTags=new function(){var b=this;b.init=function(){b.sel='*[id*="crayon_quicktag"],*[class*="crayon_quicktag"]';QTags.addButton("crayon_quicktag","crayon",function(){CrayonTagEditor.showDialog({insert:function(e){QTags.insertContent(e)},select:b.getSelectedText,editor_str:"html",output:"encode"});a(b.sel).removeClass("qt_crayon_highlight")});var c;var d=setInterval(function(){c=a(b.sel).first();if(typeof c!="undefined"){CrayonTagEditor.bind(b.sel);clearInterval(d)}},100)};b.getSelectedText=function(){if(QTags.instances.length==0){return null}else{var e=QTags.instances[0];var d=e.canvas.selectionStart;var c=e.canvas.selectionEnd;return e.canvas.value.substring(d,c)}}};a(document).ready(function(){CrayonQuickTags.init()})})(jQueryCrayon);
|
2 |
/*!
|
3 |
+
Colorbox v1.5.9 - 2014-04-25
|
4 |
+
jQuery lightbox and modal window plugin
|
5 |
+
(c) 2014 Jack Moore - http://www.jacklmoore.com/colorbox
|
6 |
+
license: http://www.opensource.org/licenses/mit-license.php
|
7 |
+
*/
|
8 |
+
(function(aT,a8,a4){function aZ(a,d,c){var b=a8.createElement(a);return d&&(b.id=ab+d),c&&(b.style.cssText=c),aT(b)}function aY(){return a4.innerHeight?a4.innerHeight:aT(a4).height()}function aV(b,a){a!==Object(a)&&(a={}),this.cache={},this.el=b,this.value=function(c){var d;return void 0===this.cache[c]&&(d=aT(this.el).attr("data-cbox-"+c),void 0!==d?this.cache[c]=d:void 0!==a[c]?this.cache[c]=a[c]:void 0!==ad[c]&&(this.cache[c]=ad[c])),this.cache[c]},this.get=function(d){var c=this.value(d);return aT.isFunction(c)?c.call(this.el,this):c}}function a5(b){var c=ag.length,a=(aM+b)%c;return 0>a?c+a:a}function bd(a,b){return Math.round((/%/.test(a)?("x"===b?az.width():aY())/100:1)*parseInt(a,10))}function aU(a,b){return a.get("photo")||a.get("photoRegex").test(b)}function a1(a,b){return a.get("retinaUrl")&&a4.devicePixelRatio>1?b.replace(a.get("photoRegex"),a.get("retinaSuffix")):b}function a9(a){"contains" in aP[0]&&!aP[0].contains(a.target)&&a.target!==aR[0]&&(a.stopPropagation(),aP.focus())}function ba(a){ba.str!==a&&(aP.add(aR).removeClass(ba.str).addClass(a),ba.str=a)}function a6(a){aM=0,a&&a!==!1?(ag=aT("."+af).filter(function(){var b=aT.data(this,ac),c=new aV(this,b);return c.get("rel")===a}),aM=ag.index(bf.el),-1===aM&&(ag=ag.add(bf.el),aM=ag.length-1)):ag=aT(bf.el)}function aS(a){aT(a8).trigger(a),aA.triggerHandler(a)}function a7(b){var g;if(!ax){if(g=aT(b).data("colorbox"),bf=new aV(b,g),a6(bf.get("rel")),!aH){aH=aW=!0,ba(bf.get("className")),aP.css({visibility:"hidden",display:"block",opacity:""}),ar=aZ(aG,"LoadedContent","width:0; height:0; overflow:hidden; visibility:hidden"),bb.css({width:"",height:""}).append(ar),aB=aj.height()+a2.height()+bb.outerHeight(!0)-bb.height(),a3=aC.width()+aw.width()+bb.outerWidth(!0)-bb.width(),aF=ar.outerHeight(!0),ap=ar.outerWidth(!0);var d=bd(bf.get("initialWidth"),"x"),c=bd(bf.get("initialHeight"),"y"),a=bf.get("maxWidth"),e=bf.get("maxHeight");bf.w=(a!==!1?Math.min(d,bd(a,"x")):d)-ap-a3,bf.h=(e!==!1?Math.min(c,bd(e,"y")):c)-aF-aB,ar.css({width:"",height:bf.h}),au.position(),aS(bc),bf.get("onOpen"),ao.add(av).hide(),aP.focus(),bf.get("trapFocus")&&a8.addEventListener&&(a8.addEventListener("focus",a9,!0),aA.one(aO,function(){a8.removeEventListener("focus",a9,!0)})),bf.get("returnFocus")&&aA.one(aO,function(){aT(bf.el).focus()})}aR.css({opacity:parseFloat(bf.get("opacity"))||"",cursor:bf.get("overlayClose")?"pointer":"",visibility:"visible"}).show(),bf.get("closeButton")?aE.html(bf.get("close")).appendTo(bb):aE.appendTo("<div/>"),aQ()}}function aX(){!aP&&a8.body&&(ah=!1,az=aT(a4),aP=aZ(aG).attr({id:ac,"class":aT.support.opacity===!1?ab+"IE":"",role:"dialog",tabindex:"-1"}).hide(),aR=aZ(aG,"Overlay").hide(),ak=aT([aZ(aG,"LoadingOverlay")[0],aZ(aG,"LoadingGraphic")[0]]),aN=aZ(aG,"Wrapper"),bb=aZ(aG,"Content").append(av=aZ(aG,"Title"),al=aZ(aG,"Current"),an=aT('<button type="button"/>').attr({id:ab+"Previous"}),at=aT('<button type="button"/>').attr({id:ab+"Next"}),ay=aZ("button","Slideshow"),ak),aE=aT('<button type="button"/>').attr({id:ab+"Close"}),aN.append(aZ(aG).append(aZ(aG,"TopLeft"),aj=aZ(aG,"TopCenter"),aZ(aG,"TopRight")),aZ(aG,!1,"clear:left").append(aC=aZ(aG,"MiddleLeft"),bb,aw=aZ(aG,"MiddleRight")),aZ(aG,!1,"clear:left").append(aZ(aG,"BottomLeft"),a2=aZ(aG,"BottomCenter"),aZ(aG,"BottomRight"))).find("div div").css({"float":"left"}),aq=aZ(aG,!1,"position:absolute; width:9999px; visibility:hidden; display:none; max-width:none;"),ao=at.add(an).add(al).add(ay),aT(a8.body).append(aR,aP.append(aN,aq)))}function a0(){function a(b){b.which>1||b.shiftKey||b.altKey||b.metaKey||b.ctrlKey||(b.preventDefault(),a7(this))}return aP?(ah||(ah=!0,at.click(function(){au.next()}),an.click(function(){au.prev()}),aE.click(function(){au.close()}),aR.click(function(){bf.get("overlayClose")&&au.close()}),aT(a8).bind("keydown."+ab,function(b){var c=b.keyCode;aH&&bf.get("escKey")&&27===c&&(b.preventDefault(),au.close()),aH&&bf.get("arrowKey")&&ag[1]&&!b.altKey&&(37===c?(b.preventDefault(),an.click()):39===c&&(b.preventDefault(),at.click()))}),aT.isFunction(aT.fn.on)?aT(a8).on("click."+ab,"."+af,a):aT("."+af).live("click."+ab,a)),!0):!1}function aQ(){var f,i,b,a=au.prep,g=++aK;if(aW=!0,ai=!1,aS(be),aS(aJ),bf.get("onLoad"),bf.h=bf.get("height")?bd(bf.get("height"),"y")-aF-aB:bf.get("innerHeight")&&bd(bf.get("innerHeight"),"y"),bf.w=bf.get("width")?bd(bf.get("width"),"x")-ap-a3:bf.get("innerWidth")&&bd(bf.get("innerWidth"),"x"),bf.mw=bf.w,bf.mh=bf.h,bf.get("maxWidth")&&(bf.mw=bd(bf.get("maxWidth"),"x")-ap-a3,bf.mw=bf.w&&bf.w<bf.mw?bf.w:bf.mw),bf.get("maxHeight")&&(bf.mh=bd(bf.get("maxHeight"),"y")-aF-aB,bf.mh=bf.h&&bf.h<bf.mh?bf.h:bf.mh),f=bf.get("href"),am=setTimeout(function(){ak.show()},100),bf.get("inline")){var j=aT(f);b=aT("<div>").hide().insertBefore(j),aA.one(be,function(){b.replaceWith(j)}),a(j)}else{bf.get("iframe")?a(" "):bf.get("html")?a(bf.get("html")):aU(bf,f)?(f=a1(bf,f),ai=new Image,aT(ai).addClass(ab+"Photo").bind("error",function(){a(aZ(aG,"Error").html(bf.get("imgError")))}).one("load",function(){g===aK&&setTimeout(function(){var c;aT.each(["alt","longdesc","aria-describedby"],function(h,d){var k=aT(bf.el).attr(d)||aT(bf.el).attr("data-"+d);k&&ai.setAttribute(d,k)}),bf.get("retinaImage")&&a4.devicePixelRatio>1&&(ai.height=ai.height/a4.devicePixelRatio,ai.width=ai.width/a4.devicePixelRatio),bf.get("scalePhotos")&&(i=function(){ai.height-=ai.height*c,ai.width-=ai.width*c},bf.mw&&ai.width>bf.mw&&(c=(ai.width-bf.mw)/ai.width,i()),bf.mh&&ai.height>bf.mh&&(c=(ai.height-bf.mh)/ai.height,i())),bf.h&&(ai.style.marginTop=Math.max(bf.mh-ai.height,0)/2+"px"),ag[1]&&(bf.get("loop")||ag[aM+1])&&(ai.style.cursor="pointer",ai.onclick=function(){au.next()}),ai.style.width=ai.width+"px",ai.style.height=ai.height+"px",a(ai)},1)}),ai.src=f):f&&aq.load(f,bf.get("data"),function(d,c){g===aK&&a("error"===c?aZ(aG,"Error").html(bf.get("xhrError")):aT(this).contents())})}}var aR,aP,aN,bb,aj,aC,aw,a2,ag,az,ar,aq,ak,av,al,ay,at,an,aE,ao,bf,aB,a3,aF,ap,aM,ai,aH,aW,ax,am,au,ah,ad={html:!1,photo:!1,iframe:!1,inline:!1,transition:"elastic",speed:300,fadeOut:300,width:!1,initialWidth:"600",innerWidth:!1,maxWidth:!1,height:!1,initialHeight:"450",innerHeight:!1,maxHeight:!1,scalePhotos:!0,scrolling:!0,opacity:0.9,preloading:!0,className:!1,overlayClose:!0,escKey:!0,arrowKey:!0,top:!1,bottom:!1,left:!1,right:!1,fixed:!1,data:void 0,closeButton:!0,fastIframe:!0,open:!1,reposition:!0,loop:!0,slideshow:!1,slideshowAuto:!0,slideshowSpeed:2500,slideshowStart:"start slideshow",slideshowStop:"stop slideshow",photoRegex:/\.(gif|png|jp(e|g|eg)|bmp|ico|webp|jxr|svg)((#|\?).*)?$/i,retinaImage:!1,retinaUrl:!1,retinaSuffix:"@2x.$1",current:"image {current} of {total}",previous:"previous",next:"next",close:"close",xhrError:"This content failed to load.",imgError:"This image failed to load.",returnFocus:!0,trapFocus:!0,onOpen:!1,onLoad:!1,onComplete:!1,onCleanup:!1,onClosed:!1,rel:function(){return this.rel},href:function(){return aT(this).attr("href")},title:function(){return this.title}},ac="colorbox",ab="cbox",af=ab+"Element",bc=ab+"_open",aJ=ab+"_load",aa=ab+"_complete",aL=ab+"_cleanup",aO=ab+"_closed",be=ab+"_purge",aA=aT("<a/>"),aG="div",aK=0,aD={},aI=function(){function l(){clearTimeout(g)}function j(){(bf.get("loop")||ag[aM+1])&&(l(),g=setTimeout(au.next,bf.get("slideshowSpeed")))}function f(){ay.html(bf.get("slideshowStop")).unbind(m).one(m,d),aA.bind(aa,j).bind(aJ,l),aP.removeClass(k+"off").addClass(k+"on")}function d(){l(),aA.unbind(aa,j).unbind(aJ,l),ay.html(bf.get("slideshowStart")).unbind(m).one(m,function(){au.next(),f()}),aP.removeClass(k+"on").addClass(k+"off")}function c(){b=!1,ay.hide(),l(),aA.unbind(aa,j).unbind(aJ,l),aP.removeClass(k+"off "+k+"on")}var b,g,k=ab+"Slideshow_",m="click."+ab;return function(){b?bf.get("slideshow")||(aA.unbind(aL,c),c()):bf.get("slideshow")&&ag[1]&&(b=!0,aA.one(aL,c),bf.get("slideshowAuto")?f():d(),ay.show())}}();aT.colorbox||(aT(aX),au=aT.fn[ac]=aT[ac]=function(b,a){var d,c=this;if(b=b||{},aT.isFunction(c)){c=aT("<a/>"),b.open=!0}else{if(!c[0]){return c}}return c[0]?(aX(),a0()&&(a&&(b.onComplete=a),c.each(function(){var e=aT.data(this,ac)||{};aT.data(this,ac,aT.extend(e,b))}).addClass(af),d=new aV(c[0],b),d.get("open")&&a7(c[0])),c):c},au.position=function(o,j){function b(){aj[0].style.width=a2[0].style.width=bb[0].style.width=parseInt(aP[0].style.width,10)-a3+"px",bb[0].style.height=aC[0].style.height=aw[0].style.height=parseInt(aP[0].style.height,10)-aB+"px"}var a,k,t,f=0,p=0,q=aP.offset();if(az.unbind("resize."+ab),aP.css({top:-90000,left:-90000}),k=az.scrollTop(),t=az.scrollLeft(),bf.get("fixed")?(q.top-=k,q.left-=t,aP.css({position:"fixed"})):(f=k,p=t,aP.css({position:"absolute"})),p+=bf.get("right")!==!1?Math.max(az.width()-bf.w-ap-a3-bd(bf.get("right"),"x"),0):bf.get("left")!==!1?bd(bf.get("left"),"x"):Math.round(Math.max(az.width()-bf.w-ap-a3,0)/2),f+=bf.get("bottom")!==!1?Math.max(aY()-bf.h-aF-aB-bd(bf.get("bottom"),"y"),0):bf.get("top")!==!1?bd(bf.get("top"),"y"):Math.round(Math.max(aY()-bf.h-aF-aB,0)/2),aP.css({top:q.top,left:q.left,visibility:"visible"}),aN[0].style.width=aN[0].style.height="9999px",a={width:bf.w+ap+a3,height:bf.h+aF+aB,top:f,left:p},o){var m=0;aT.each(a,function(c){return a[c]!==aD[c]?(m=o,void 0):void 0}),o=m}aD=a,o||aP.css(a),aP.dequeue().animate(a,{duration:o||0,complete:function(){b(),aW=!1,aN[0].style.width=bf.w+ap+a3+"px",aN[0].style.height=bf.h+aF+aB+"px",bf.get("reposition")&&setTimeout(function(){az.bind("resize."+ab,au.position)},1),j&&j()},step:b})},au.resize=function(a){var b;aH&&(a=a||{},a.width&&(bf.w=bd(a.width,"x")-ap-a3),a.innerWidth&&(bf.w=bd(a.innerWidth,"x")),ar.css({width:bf.w}),a.height&&(bf.h=bd(a.height,"y")-aF-aB),a.innerHeight&&(bf.h=bd(a.innerHeight,"y")),a.innerHeight||a.height||(b=ar.scrollTop(),ar.css({height:"auto"}),bf.h=ar.height()),ar.css({height:bf.h}),b&&ar.scrollTop(b),au.position("none"===bf.get("transition")?0:bf.get("speed")))},au.prep=function(c){function h(){return bf.w=bf.w||ar.width(),bf.w=bf.mw&&bf.mw<bf.w?bf.mw:bf.w,bf.w}function b(){return bf.h=bf.h||ar.height(),bf.h=bf.mh&&bf.mh<bf.h?bf.mh:bf.h,bf.h}if(aH){var f,e="none"===bf.get("transition")?0:bf.get("speed");ar.remove(),ar=aZ(aG,"LoadedContent").append(c),ar.hide().appendTo(aq.show()).css({width:h(),overflow:bf.get("scrolling")?"auto":"hidden"}).css({height:b()}).prependTo(bb),aq.hide(),aT(ai).css({"float":"none"}),ba(bf.get("className")),f=function(){function g(){aT.support.opacity===!1&&aP[0].style.removeAttribute("filter")}var k,j,d=ag.length;aH&&(j=function(){clearTimeout(am),ak.hide(),aS(aa),bf.get("onComplete")},av.html(bf.get("title")).show(),ar.show(),d>1?("string"==typeof bf.get("current")&&al.html(bf.get("current").replace("{current}",aM+1).replace("{total}",d)).show(),at[bf.get("loop")||d-1>aM?"show":"hide"]().html(bf.get("next")),an[bf.get("loop")||aM?"show":"hide"]().html(bf.get("previous")),aI(),bf.get("preloading")&&aT.each([a5(-1),a5(1)],function(){var a,p=ag[this],m=new aV(p,aT.data(p,ac)),l=m.get("href");l&&aU(m,l)&&(l=a1(m,l),a=a8.createElement("img"),a.src=l)})):ao.hide(),bf.get("iframe")?(k=a8.createElement("iframe"),"frameBorder" in k&&(k.frameBorder=0),"allowTransparency" in k&&(k.allowTransparency="true"),bf.get("scrolling")||(k.scrolling="no"),aT(k).attr({src:bf.get("href"),name:(new Date).getTime(),"class":ab+"Iframe",allowFullScreen:!0}).one("load",j).appendTo(ar),aA.one(be,function(){k.src="//about:blank"}),bf.get("fastIframe")&&aT(k).trigger("load")):j(),"fade"===bf.get("transition")?aP.fadeTo(e,1,g):g())},"fade"===bf.get("transition")?aP.fadeTo(e,0,function(){au.position(0,f)}):au.position(e,f)}},au.next=function(){!aW&&ag[1]&&(bf.get("loop")||ag[aM+1])&&(aM=a5(1),a7(ag[aM]))},au.prev=function(){!aW&&ag[1]&&(bf.get("loop")||aM)&&(aM=a5(-1),a7(ag[aM]))},au.close=function(){aH&&!ax&&(ax=!0,aH=!1,aS(aL),bf.get("onCleanup"),az.unbind("."+ab),aR.fadeTo(bf.get("fadeOut")||0,0),aP.stop().fadeTo(bf.get("fadeOut")||0,0,function(){aP.hide(),aR.hide(),aS(be),ar.remove(),setTimeout(function(){ax=!1,aS(aO),bf.get("onClosed")},1)}))},au.remove=function(){aP&&(aP.stop(),aT.colorbox.close(),aP.stop().remove(),aR.remove(),ax=!1,aP=null,aT("."+af).removeData(ac).removeClass(af),aT(a8).unbind("click."+ab))},au.element=function(){return aT(bf.el)},au.settings=ad)})(jQuery,document,window);(function(a){window.CrayonTagEditor=new function(){var j=this;var B=false;var y=false;var e=false;var o,f,r,A,w;var C,t,i,v;var x=0;var k,q;var b=null;var g="";var D=false;var n,p,d;var z,c,u,l,h;var m={inline:true,width:690,height:"90%",closeButton:false,fixed:true,transition:"none",className:"crayon-colorbox",onOpen:function(){a(this.outer).prepend(a(n.bar_content))},onComplete:function(){a(n.code_css).focus()},onCleanup:function(){a(n.bar).prepend(a(n.bar_content))}};j.init=function(){n=CrayonTagEditorSettings;p=CrayonSyntaxSettings;d=CrayonUtil;m.href=n.content_css};j.bind=function(E){if(!B){B=true;j.init()}var s=a(E);s.each(function(G,F){var I=a(F);var H=a('<a class="crayon-tag-editor-button-wrapper"></a>').attr("href",n.content_css);I.after(H);H.append(I);H.colorbox(m)})};j.hide=function(){a.colorbox.close();return false};j.loadDialog=function(s){if(!y){y=true}else{s&&s();return}CrayonUtil.getAJAX({action:"crayon-tag-editor",is_admin:p.is_admin},function(I){z=a('<div id="'+n.css+'"></div>');z.appendTo("body").hide();z.html(I);j.setOrigValues();l=z.find(n.submit_css);h=z.find(n.cancel_css);c=a(n.code_css);u=a("#crayon-te-clear");k=function(){var J=u.is(":visible");if(c.val().length>0&&!J){u.show();c.removeClass(p.selected)}else{if(c.val().length<=0){u.hide()}}};c.keyup(k);c.change(k);u.click(function(){c.val("");c.removeClass(p.selected);c.focus()});var G=a(n.url_css);var F=a(n.url_info_css);var H=CrayonTagEditorSettings.extensions;q=function(){if(G.val().length>0&&!F.is(":visible")){F.show();G.removeClass(p.selected)}else{if(G.val().length<=0){F.hide()}}var L=CrayonUtil.getExt(G.val());if(L){var M=H[L];var K=M?M:L;var J=CrayonTagEditorSettings.fallback_lang;a(n.lang_css+" option").each(function(){if(a(this).val()==K){J=K}});a(n.lang_css).val(J)}};G.keyup(q);G.change(q);var E=function(){var L=a(this);var J=a(this).attr(p.orig_value);if(typeof J=="undefined"){J=""}var M=j.settingValue(L);CrayonUtil.log(L.attr("id")+" value: "+M);var K=null;if(L.is("input[type=checkbox]")){K=L.next("span")}CrayonUtil.log(" >>> "+L.attr("id")+" is "+J+" = "+M);if(J==M){L.removeClass(p.changed);if(K){K.removeClass(p.changed)}}else{L.addClass(p.changed);if(K){K.addClass(p.changed)}}j.settingValue(L,M)};a("."+p.setting+"[id]:not(."+p.special+")").each(function(){a(this).change(E);a(this).keyup(E)});s&&s()})};j.showDialog=function(E){var s=y;j.loadDialog(function(){if(!s){a.colorbox(m)}j._showDialog(E)})};j._showDialog=function(E){E=a.extend({insert:null,edit:null,show:null,hide:j.hide,select:null,editor_str:null,ed:null,node:null,input:null,output:null},E);j.resetSettings();o=E.insert;f=E.edit;r=E.show;A=E.hide;w=E.select;C=E.input;t=E.output;i=E.editor_str;var F=E.node;var F=E.node;D=false;l.unbind();l.click(function(V){j.submitButton();V.preventDefault()});j.setSubmitText(n.submit_add);h.unbind();h.click(function(V){j.hide();V.preventDefault()});if(j.isCrayon(F)){b=a(F);if(b.length!=0){g=b.attr("class");var L=new RegExp("\\b([A-Za-z-]+)"+n.attr_sep+"(\\S+)","gim");var s=L.execAll(g);g=a.trim(g.replace(L,""));var M={};for(var R in s){var J=s[R][1];var N=s[R][2];M[J]=N}var U=b.attr("title");if(U){M.title=U}var H=b.attr("data-url");if(H){M.url=H}if(typeof M.highlight!="undefined"){M.highlight="0"?"1":"0"}D=b.hasClass(n.inline_css);M.inline=D?"1":"0";var S=[];a(n.lang_css+" option").each(function(){var V=a(this).val();if(V){S.push(V)}});if(a.inArray(M.lang,S)==-1){M.lang=n.fallback_lang}M=j.validate(M);for(var O in M){var K=a("#"+p.prefix+O+"."+p.setting);var N=M[O];j.settingValue(K,N);K.change();if(!K.hasClass(p.special)){K.addClass(p.changed);if(K.is("input[type=checkbox]")){highlight=K.next("span");highlight.addClass(p.changed)}}CrayonUtil.log("loaded: "+O+":"+N)}e=true;j.setSubmitText(n.submit_edit);var Q=b.html();if(C=="encode"){Q=CrayonUtil.encode_html(Q)}else{if(C=="decode"){Q=CrayonUtil.decode_html(Q)}}c.val(Q)}else{CrayonUtil.log("cannot load currNode of type pre")}}else{if(w){c.val(w)}e=false;j.setSubmitText(n.submit_add);b=null;g=""}var G=a("#"+n.inline_css);G.change(function(){D=a(this).is(":checked");var V=a("."+n.inline_hide_css);var Z=a("."+n.inline_hide_only_css);var X=[n.mark_css,n.range_css,n.title_css,n.url_css];for(var W in X){var Y=a(X[W]);Y.attr("disabled",D)}if(D){V.hide();Z.hide();V.closest("tr").hide();for(var W in X){var Y=a(X[W]);Y.addClass("crayon-disabled")}}else{V.show();Z.show();V.closest("tr").show();for(var W in X){var Y=a(X[W]);Y.removeClass("crayon-disabled")}}});G.change();var I=e?n.dialog_title_edit:n.dialog_title_add;a(n.dialog_title_css).html(I);if(r){r()}c.focus();k();q();if(v){clearInterval(v);x=0}var T=a("#TB_window");T.hide();var P=function(){T.show();var V=a(window).scrollTop();a(window).scrollTop(V+10);a(window).scrollTop(V-10)};v=setInterval(function(){if(typeof T!="undefined"&&!T.hasClass("crayon-te-ajax")){T.addClass("crayon-te-ajax");clearInterval(v);P()}if(x>=100){clearInterval(v);P()}x++},40)};j.addCrayon=function(){var E=a(n.url_css);if(E.val().length==0&&c.val().length==0){c.addClass(p.selected);c.focus();return false}c.removeClass(p.selected);var M=a("#"+n.inline_css);D=M.length!=0&&M.is(":checked");var G=br_after="";if(!e){if(!D){if(i=="html"){br_after=G=" \n"}else{br_after="<p> </p>"}}else{if(i=="html"){br_after=G=" "}else{br_after=" "}}}var P=(D?"span":"pre");var I=G+"<"+P+" ";var K={};I+='class="';var s=new RegExp("\\b"+n.inline_css+"\\b","gim");if(D){if(s.exec(g)==null){g+=" "+n.inline_css+" "}}else{g=g.replace(s,"")}a("."+p.changed+"[id],."+p.changed+"["+n.data_value+"]").each(function(){var R=a(this).attr("id");var Q=a(this).attr(n.data_value);R=d.removePrefixFromID(R);K[R]=Q});K.lang=a(n.lang_css).val();var H=a(n.mark_css).val();if(H.length!=0&&!D){K.mark=H}var J=a(n.range_css).val();if(J.length!=0&&!D){K.range=J}if(a(n.hl_css).is(":checked")){K.highlight="0"}K.decode="true";K=j.validate(K);for(var F in K){var O=K[F];CrayonUtil.log("add "+F+":"+O);I+=F+n.attr_sep+O+" "}I+=g;I+='" ';if(!D){var N=a(n.title_css).val();if(N.length!=0){I+='title="'+N+'" '}var E=a(n.url_css).val();if(E.length!=0){I+='data-url="'+E+'" '}}var L=a(n.code_css).val();if(t=="encode"){L=CrayonUtil.encode_html(L)}else{if(t=="decode"){L=CrayonUtil.decode_html(L)}}L=typeof L!="undefined"?L:"";I+=">"+L+"</"+P+">"+br_after;if(e&&f){f(I)}else{if(o){o(I)}}return true};j.submitButton=function(){CrayonUtil.log("submit");if(j.addCrayon()!=false){j.hideDialog()}};j.hideDialog=function(){CrayonUtil.log("hide");if(A){A()}};j.setOrigValues=function(){a("."+p.setting+"[id]").each(function(){var s=a(this);s.attr(p.orig_value,j.settingValue(s))})};j.resetSettings=function(){CrayonUtil.log("reset");a("."+p.setting).each(function(){var s=a(this);j.settingValue(s,s.attr(p.orig_value));s.change()});c.val("")};j.settingValue=function(s,E){if(typeof E=="undefined"){E="";if(s.is("input[type=checkbox]")){E=s.is(":checked")?"true":"false"}else{E=s.val()}return E}else{if(s.is("input[type=checkbox]")){if(typeof E=="string"){if(E=="true"||E=="1"){E=true}else{if(E=="false"||E=="0"){E=false}}}s.prop("checked",E)}else{s.val(E)}s.attr(n.data_value,E)}};j.validate=function(G){var s=["range","mark"];for(var E in s){var F=s[E];if(typeof G[F]!="undefined"){G[F]=G[F].replace(/\s/g,"")}}return G};j.isCrayon=function(s){return s!=null&&(s.nodeName=="PRE"||(s.nodeName=="SPAN"&&a(s).hasClass(n.inline_css)))};j.elemValue=function(E){var s=null;if(E.is("input[type=checkbox]")){s=E.is(":checked")}else{s=E.val()}return s};j.setSubmitText=function(s){l.html(s)}}})(jQueryCrayon);
|
langs/ada/README.md
CHANGED
@@ -13,4 +13,4 @@ Installation:
|
|
13 |
|
14 |
|
15 |
Aram (crayons creator) has added it to the crayon repo here on github. So you can simply pull the current repo to get it.
|
16 |
-
https://github.com/
|
13 |
|
14 |
|
15 |
Aram (crayons creator) has added it to the crayon repo here on github. So you can simply pull the current repo to get it.
|
16 |
+
https://github.com/aramk/crayon-syntax-highlighter
|
readme.txt
CHANGED
@@ -54,9 +54,9 @@ It also supports some neat features like:
|
|
54 |
|
55 |
**Links**
|
56 |
|
57 |
-
* <a href="https://github.com/
|
58 |
* <a href="http://aramk.com/blog/2012/12/27/crayon-theme-editor/" target="_blank">Themes Demo</a>
|
59 |
-
* <a href="https://github.com/
|
60 |
|
61 |
**Contributions**
|
62 |
|
@@ -262,7 +262,7 @@ Thanks to all those who donate to the project:
|
|
262 |
|
263 |
== Frequently Asked Questions ==
|
264 |
|
265 |
-
Please see the <a href="https://github.com/
|
266 |
|
267 |
= Support =
|
268 |
|
@@ -278,6 +278,13 @@ Contact me at http://twitter.com/crayonsyntax or crayon.syntax@gmail.com.
|
|
278 |
|
279 |
== Changelog ==
|
280 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
281 |
= 2.6.7 =
|
282 |
* ADDED:
|
283 |
* Traditional Chinese translation (thanks to <a href="http://www.arefly.com/" target="_blank">Arefly</a>)
|
@@ -422,7 +429,7 @@ Contact me at http://twitter.com/crayonsyntax or crayon.syntax@gmail.com.
|
|
422 |
* Forced LTR for Crayon CSS, preventing the line numbers from appearing on the right
|
423 |
* Added unhighlighted colour to theme editor and existing dark themes
|
424 |
* New theme inputs not present in the loaded theme are added during save
|
425 |
-
* Fixed a bug related to IIS 7.5 and uniqid(): https://github.com/
|
426 |
|
427 |
= 2.2.1 =
|
428 |
* ADDED:
|
@@ -511,7 +518,7 @@ Contact me at http://twitter.com/crayonsyntax or crayon.syntax@gmail.com.
|
|
511 |
* Translation to Slovak
|
512 |
* FIXED:
|
513 |
* jQuery UI is no longer an external dependency; now using wpdialog(). Theme Editor updated to use wpdialog.
|
514 |
-
* Inline tags. See: https://github.com/
|
515 |
* Tag Editor didn't work on front end
|
516 |
* Improved legacy tag conversion functions by removing false positives arising from duplicate regex
|
517 |
* Slightly faster conversion of legacy by delaying database writes until the end
|
@@ -946,7 +953,7 @@ Contact me at http://twitter.com/crayonsyntax or crayon.syntax@gmail.com.
|
|
946 |
= 1.7.3 =
|
947 |
* Added Mini Tags and Plain Tags into Crayon. http://aramk.com/blog/2011/12/27/mini-tags-in-crayon/
|
948 |
* Fixed a bug causing RSS feeds to contain malformed HTML of Crayons, now it shows plain code with correct indentations. Thanks to Артём.
|
949 |
-
* Updated help in Settings and https://github.com/
|
950 |
|
951 |
= 1.7.2 =
|
952 |
* Fixed a bug that prevented foreign languages from being initialised and used. Thanks to @west_323 for finding it.
|
54 |
|
55 |
**Links**
|
56 |
|
57 |
+
* <a href="https://github.com/aramk/crayon-syntax-highlighter" target="_blank">Beta Releases</a>
|
58 |
* <a href="http://aramk.com/blog/2012/12/27/crayon-theme-editor/" target="_blank">Themes Demo</a>
|
59 |
+
* <a href="https://github.com/aramk/crayon-syntax-highlighter" target="_blank">GitHub Project</a>
|
60 |
|
61 |
**Contributions**
|
62 |
|
262 |
|
263 |
== Frequently Asked Questions ==
|
264 |
|
265 |
+
Please see the <a href="https://github.com/aramk/crayon-syntax-highlighter" target="_blank">documentation</a> for all the details.
|
266 |
|
267 |
= Support =
|
268 |
|
278 |
|
279 |
== Changelog ==
|
280 |
|
281 |
+
= 2.6.8 =
|
282 |
+
* ADDED:
|
283 |
+
* OCaml langauge thanks to <a href="https://github.com/zhenjie" target="_blank">zhenjie</a>
|
284 |
+
* Added Capacitacionti theme
|
285 |
+
* FIXED:
|
286 |
+
* SVN issue with old versions of JS and CSS resources being deployed instead of the latest from the dev repo.
|
287 |
+
|
288 |
= 2.6.7 =
|
289 |
* ADDED:
|
290 |
* Traditional Chinese translation (thanks to <a href="http://www.arefly.com/" target="_blank">Arefly</a>)
|
429 |
* Forced LTR for Crayon CSS, preventing the line numbers from appearing on the right
|
430 |
* Added unhighlighted colour to theme editor and existing dark themes
|
431 |
* New theme inputs not present in the loaded theme are added during save
|
432 |
+
* Fixed a bug related to IIS 7.5 and uniqid(): https://github.com/aramk/crayon-syntax-highlighter/issues/97
|
433 |
|
434 |
= 2.2.1 =
|
435 |
* ADDED:
|
518 |
* Translation to Slovak
|
519 |
* FIXED:
|
520 |
* jQuery UI is no longer an external dependency; now using wpdialog(). Theme Editor updated to use wpdialog.
|
521 |
+
* Inline tags. See: https://github.com/aramk/crayon-syntax-highlighter/issues/57
|
522 |
* Tag Editor didn't work on front end
|
523 |
* Improved legacy tag conversion functions by removing false positives arising from duplicate regex
|
524 |
* Slightly faster conversion of legacy by delaying database writes until the end
|
953 |
= 1.7.3 =
|
954 |
* Added Mini Tags and Plain Tags into Crayon. http://aramk.com/blog/2011/12/27/mini-tags-in-crayon/
|
955 |
* Fixed a bug causing RSS feeds to contain malformed HTML of Crayons, now it shows plain code with correct indentations. Thanks to Артём.
|
956 |
+
* Updated help in Settings and https://github.com/aramk/crayon-syntax-highlighter
|
957 |
|
958 |
= 1.7.2 =
|
959 |
* Fixed a bug that prevented foreign languages from being initialised and used. Thanks to @west_323 for finding it.
|
trans/crayon-syntax-highlighter-de_DE.po
CHANGED
@@ -1067,18 +1067,6 @@ msgstr ""
|
|
1067 |
msgid "Display the Tag Editor in any TinyMCE instances on the frontend (e.g. bbPress)"
|
1068 |
msgstr "Tag Editor in jedem TinyMCE Editor auf der Seite anzeigen (z.B. bbPress)"
|
1069 |
|
1070 |
-
#. translators: plugin header field 'PluginURI'
|
1071 |
-
#: crayon_wp.class.php:0
|
1072 |
-
#@ crayon-syntax-highlighter
|
1073 |
-
msgid "https://github.com/aramkocharyan/crayon-syntax-highlighter"
|
1074 |
-
msgstr ""
|
1075 |
-
|
1076 |
-
#. translators: plugin header field 'Version'
|
1077 |
-
#: crayon_wp.class.php:0
|
1078 |
-
#@ crayon-syntax-highlighter
|
1079 |
-
msgid "2.4.0"
|
1080 |
-
msgstr ""
|
1081 |
-
|
1082 |
#: util/tag-editor/crayon_tag_editor_wp.class.php:180
|
1083 |
#@ crayon-syntax-highlighter
|
1084 |
msgid "OK"
|
1067 |
msgid "Display the Tag Editor in any TinyMCE instances on the frontend (e.g. bbPress)"
|
1068 |
msgstr "Tag Editor in jedem TinyMCE Editor auf der Seite anzeigen (z.B. bbPress)"
|
1069 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1070 |
#: util/tag-editor/crayon_tag_editor_wp.class.php:180
|
1071 |
#@ crayon-syntax-highlighter
|
1072 |
msgid "OK"
|
trans/crayon-syntax-highlighter-sl_SI.po
CHANGED
@@ -1084,18 +1084,6 @@ msgstr ""
|
|
1084 |
"Prikaži urejevalnik značk v kateremkoli primerku TinyMCE v ospredju (kot je "
|
1085 |
"bbPress)"
|
1086 |
|
1087 |
-
# @ crayon-syntax-highlighter
|
1088 |
-
#. translators: plugin header field 'PluginURI'
|
1089 |
-
#: crayon_wp.class.php:0
|
1090 |
-
msgid "https://github.com/aramkocharyan/crayon-syntax-highlighter"
|
1091 |
-
msgstr "https://github.com/aramkocharyan/crayon-syntax-highlighter"
|
1092 |
-
|
1093 |
-
# @ crayon-syntax-highlighter
|
1094 |
-
#. translators: plugin header field 'Version'
|
1095 |
-
#: crayon_wp.class.php:0
|
1096 |
-
msgid "2.4.0"
|
1097 |
-
msgstr "2.4.0"
|
1098 |
-
|
1099 |
# @ crayon-syntax-highlighter
|
1100 |
#: util/tag-editor/crayon_tag_editor_wp.class.php:180
|
1101 |
msgid "OK"
|
1084 |
"Prikaži urejevalnik značk v kateremkoli primerku TinyMCE v ospredju (kot je "
|
1085 |
"bbPress)"
|
1086 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1087 |
# @ crayon-syntax-highlighter
|
1088 |
#: util/tag-editor/crayon_tag_editor_wp.class.php:180
|
1089 |
msgid "OK"
|