Crayon Syntax Highlighter - Version 2.4.0

Version Description

  • ADDED:
    • MySQL language
  • FIXED:
    • Replaced Fancybox with Colorbox to comply with GPLv2
Download this release

Release Info

Developer akarmenia
Plugin Icon wp plugin Crayon Syntax Highlighter
Version 2.4.0
Comparing to
See all releases

Code changes from version 2.3.1 to 2.4.0

crayon_wp.class.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Crayon Syntax Highlighter
4
  Plugin URI: https://github.com/aramkocharyan/crayon-syntax-highlighter
5
  Description: Supports multiple languages, themes, highlighting from a URL, local file or post text.
6
- Version: 2.3.1
7
  Author: Aram Kocharyan
8
  Author URI: http://aramk.com/
9
  Text Domain: crayon-syntax-highlighter
3
  Plugin Name: Crayon Syntax Highlighter
4
  Plugin URI: https://github.com/aramkocharyan/crayon-syntax-highlighter
5
  Description: Supports multiple languages, themes, highlighting from a URL, local file or post text.
6
+ Version: 2.4.0
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
- #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}.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-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!important}.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-pre .crayon-line span{display:inline-block;*display:inline;zoom:1}.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}/*! fancyBox v2.1.0 fancyapps.com | fancyapps.com/fancybox/#license */.fancybox-wrap,.fancybox-skin,.fancybox-outer,.fancybox-inner,.fancybox-image,.fancybox-wrap iframe,.fancybox-wrap object,.fancybox-nav,.fancybox-nav span,.fancybox-tmp{padding:0;margin:0;border:0;outline:0;vertical-align:top}.fancybox-wrap{position:absolute;top:0;left:0;z-index:8020}.fancybox-skin{position:relative;background:#f9f9f9;color:#444;text-shadow:none;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px}.fancybox-opened{z-index:8030}.fancybox-opened .fancybox-skin{-webkit-box-shadow:0 10px 25px rgba(0,0,0,0.5);-moz-box-shadow:0 10px 25px rgba(0,0,0,0.5);box-shadow:0 10px 25px rgba(0,0,0,0.5)}.fancybox-outer,.fancybox-inner{position:relative}.fancybox-inner{overflow:hidden}.fancybox-type-iframe .fancybox-inner{-webkit-overflow-scrolling:touch}.fancybox-error{color:#444;font:14px/20px "Helvetica Neue",Helvetica,Arial,sans-serif;margin:0;padding:15px;white-space:nowrap}.fancybox-image,.fancybox-iframe{display:block;width:100%;height:100%}.fancybox-image{max-width:100%;max-height:100%}#fancybox-loading,.fancybox-close,.fancybox-prev span,.fancybox-next span{background-image:url('../../js/fancybox/fancybox_sprite.png')}#fancybox-loading{position:fixed;top:50%;left:50%;margin-top:-22px;margin-left:-22px;background-position:0 -108px;opacity:.8;cursor:pointer;z-index:8060}#fancybox-loading div{width:44px;height:44px;background:url('../../js/fancybox/fancybox_loading.gif') center center no-repeat}.fancybox-close{position:absolute;top:-18px;right:-18px;width:36px;height:36px;cursor:pointer;z-index:8040}.fancybox-nav{position:absolute;top:0;width:40%;height:100%;cursor:pointer;text-decoration:none;background:transparent url('../../js/fancybox/blank.gif');-webkit-tap-highlight-color:rgba(0,0,0,0);z-index:8040}.fancybox-prev{left:0}.fancybox-next{right:0}.fancybox-nav span{position:absolute;top:50%;width:36px;height:34px;margin-top:-18px;cursor:pointer;z-index:8040;visibility:hidden}.fancybox-prev span{left:10px;background-position:0 -36px}.fancybox-next span{right:10px;background-position:0 -72px}.fancybox-nav:hover span{visibility:visible}.fancybox-tmp{position:absolute;top:-9999px;left:-9999px;visibility:hidden}.fancybox-lock{overflow:hidden}.fancybox-overlay{position:absolute;top:0;left:0;overflow:hidden;display:none;z-index:8010;background:url('../../js/fancybox/fancybox_overlay.png') repeat}.fancybox-overlay-fixed{position:fixed;bottom:0;right:0}.fancybox-lock .fancybox-overlay{overflow:auto;overflow-y:scroll}.fancybox-title{visibility:hidden;font:normal 13px/20px "Helvetica Neue",Helvetica,Arial,sans-serif;position:relative;text-shadow:none;z-index:8050}.fancybox-opened .fancybox-title{visibility:visible}.fancybox-title-float-wrap{position:absolute;bottom:0;right:50%;margin-bottom:-35px;z-index:8050;text-align:center}.fancybox-title-float-wrap .child{display:inline-block;margin-right:-100%;padding:2px 20px;background:transparent;background:rgba(0,0,0,0.8);-webkit-border-radius:15px;-moz-border-radius:15px;border-radius:15px;text-shadow:0 1px 2px #222;color:#FFF;font-weight:bold;line-height:24px;white-space:nowrap}.fancybox-title-outside-wrap{position:relative;margin-top:10px;color:#fff}.fancybox-title-inside-wrap{padding-top:10px}.fancybox-title-over-wrap{position:absolute;bottom:0;left:0;color:#fff;padding:10px;background:#000;background:rgba(0,0,0,.8)}.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-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}.wp_themeSkin .mceButtonEnabled:hover span.mce_crayon_tinymce,.wp_themeSkin .mceButtonActive span.mce_crayon_tinymce{background-position:-20px 0}#crayon-te-table{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}.wp_themeSkin span.mce_crayon_tinymce{background:url(../images/crayon_tinymce.png)}
1
+ #colorbox,#cboxOverlay,#cboxWrapper{position:absolute;top:0;left:0;z-index:9999;overflow:hidden}#cboxOverlay{position:fixed;width:100%;height:100%}#cboxMiddleLeft,#cboxBottomLeft{clear:left}#cboxContent{position:relative}#cboxLoadedContent{overflow:auto;-webkit-overflow-scrolling:touch}#cboxTitle{margin:0}#cboxLoadingOverlay,#cboxLoadingGraphic{position:absolute;top:0;left:0;width:100%;height:100%}#cboxPrevious,#cboxNext,#cboxClose,#cboxSlideshow{cursor:pointer}.cboxPhoto{float:left;margin:auto;border:0;display:block;max-width:none;-ms-interpolation-mode:bicubic}.cboxIframe{width:100%;height:100%;display:block;border:0}#colorbox,#cboxContent,#cboxLoadedContent{box-sizing:content-box;-moz-box-sizing:content-box;-webkit-box-sizing:content-box}#cboxOverlay{background:#000}#colorbox{outline:0}#cboxContent{margin-top:20px;background:#000}.cboxIframe{background:#fff}#cboxError{padding:50px;border:1px solid #ccc}#cboxLoadedContent{border:5px solid #000;background:#fff}#cboxTitle{position:absolute;top:-20px;left:0;color:#ccc}#cboxCurrent{position:absolute;top:-20px;right:0;color:#ccc}#cboxPrevious,#cboxNext,#cboxSlideshow,#cboxClose{border:0;padding:0;margin:0;overflow:visible;width:auto;background:0}#cboxPrevious:active,#cboxNext:active,#cboxSlideshow:active,#cboxClose:active{outline:0}#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}.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-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!important}.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-pre .crayon-line span{display:inline-block;*display:inline;zoom:1}.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}.wp_themeSkin .mceButtonEnabled:hover span.mce_crayon_tinymce,.wp_themeSkin .mceButtonActive span.mce_crayon_tinymce{background-position:-20px 0}#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}.wp_themeSkin span.mce_crayon_tinymce{background:url(../images/crayon_tinymce.png)}
css/minify.sh CHANGED
@@ -4,13 +4,4 @@ cd $BASEDIR
4
 
5
  source ../util/minify.sh
6
 
7
- NEWPATH=../$FANCY_PATH/
8
- FANCY_CSS=$FANCY_PATH/jquery.fancybox.css
9
- FANCY_CSS_REPL=$FANCY_CSS.repl
10
- test=`cat $FANCY_CSS`
11
- URL="url('"
12
- echo "${test//$URL/$URL$NEWPATH}" > $FANCY_CSS_REPL
13
-
14
- minify $INPUT_PATH/admin_style.css $INPUT_PATH/crayon_style.css $FANCY_CSS_REPL $INPUT_PATH/global_style.css $OUTPUT_PATH/crayon.min.css
15
-
16
- rm $FANCY_CSS_REPL
4
 
5
  source ../util/minify.sh
6
 
7
+ minify $COLORBOX_PATH/colorbox.css $INPUT_PATH/admin_style.css $INPUT_PATH/crayon_style.css $INPUT_PATH/global_style.css $OUTPUT_PATH/crayon.min.css
 
 
 
 
 
 
 
 
 
css/src/global_style.css CHANGED
@@ -43,6 +43,13 @@
43
  white-space: nowrap;
44
  }
45
 
 
 
 
 
 
 
 
46
  #crayon-te-bar-content {
47
  border: 1px solid #666;
48
  border-bottom: none;
@@ -151,6 +158,7 @@
151
  }
152
 
153
  #crayon-te-table {
 
154
  padding: 10px;
155
  border-collapse: separate !important;
156
  border-spacing: 2px !important;
43
  white-space: nowrap;
44
  }
45
 
46
+ #crayon-te-bar {
47
+ position: absolute;
48
+ top: 0;
49
+ left: 0;
50
+ width: 100%;
51
+ }
52
+
53
  #crayon-te-bar-content {
54
  border: 1px solid #666;
55
  border-bottom: none;
158
  }
159
 
160
  #crayon-te-table {
161
+ margin-top: 26px;
162
  padding: 10px;
163
  border-collapse: separate !important;
164
  border-spacing: 2px !important;
global.php CHANGED
@@ -83,8 +83,6 @@ define('CRAYON_JS_ADMIN', CRAYON_JS_SRC_DIR . 'crayon_admin.js');
83
  define('CRAYON_JS_UTIL', CRAYON_JS_SRC_DIR . 'util.js');
84
  define('CRAYON_CSSJSON_JS', CRAYON_JS_SRC_DIR . 'cssjson.js');
85
 
86
- define('CRAYON_JS_FANCYBOX', CRAYON_JS_DIR . 'fancybox/jquery.fancybox.init.pack.js');
87
- define('CRAYON_CSS_FANCYBOX', CRAYON_JS_DIR . 'fancybox/jquery.fancybox.css');
88
  define('CRAYON_CSS_JQUERY_COLORPICKER', CRAYON_JS_DIR . 'jquery-colorpicker/jquery.colorpicker.css');
89
  define('CRAYON_JS_JQUERY_COLORPICKER', CRAYON_JS_DIR . 'jquery-colorpicker/jquery.colorpicker.js');
90
  define('CRAYON_JS_TINYCOLOR', CRAYON_JS_DIR . 'tinycolor-min.js');
83
  define('CRAYON_JS_UTIL', CRAYON_JS_SRC_DIR . 'util.js');
84
  define('CRAYON_CSSJSON_JS', CRAYON_JS_SRC_DIR . 'cssjson.js');
85
 
 
 
86
  define('CRAYON_CSS_JQUERY_COLORPICKER', CRAYON_JS_DIR . 'jquery-colorpicker/jquery.colorpicker.css');
87
  define('CRAYON_JS_JQUERY_COLORPICKER', CRAYON_JS_DIR . 'jquery-colorpicker/jquery.colorpicker.js');
88
  define('CRAYON_JS_TINYCOLOR', CRAYON_JS_DIR . 'tinycolor-min.js');
js/fancybox/blank.gif DELETED
Binary file
js/fancybox/fancybox_loading.gif DELETED
Binary file
js/fancybox/fancybox_overlay.png DELETED
Binary file
js/fancybox/fancybox_sprite.png DELETED
Binary file
js/fancybox/jquery.fancybox.css DELETED
@@ -1,246 +0,0 @@
1
- /*! fancyBox v2.1.0 fancyapps.com | fancyapps.com/fancybox/#license */
2
- .fancybox-wrap,
3
- .fancybox-skin,
4
- .fancybox-outer,
5
- .fancybox-inner,
6
- .fancybox-image,
7
- .fancybox-wrap iframe,
8
- .fancybox-wrap object,
9
- .fancybox-nav,
10
- .fancybox-nav span,
11
- .fancybox-tmp
12
- {
13
- padding: 0;
14
- margin: 0;
15
- border: 0;
16
- outline: none;
17
- vertical-align: top;
18
- }
19
-
20
- .fancybox-wrap {
21
- position: absolute;
22
- top: 0;
23
- left: 0;
24
- z-index: 8020;
25
- }
26
-
27
- .fancybox-skin {
28
- position: relative;
29
- background: #f9f9f9;
30
- color: #444;
31
- text-shadow: none;
32
- -webkit-border-radius: 4px;
33
- -moz-border-radius: 4px;
34
- border-radius: 4px;
35
- }
36
-
37
- .fancybox-opened {
38
- z-index: 8030;
39
- }
40
-
41
- .fancybox-opened .fancybox-skin {
42
- -webkit-box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
43
- -moz-box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
44
- box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
45
- }
46
-
47
- .fancybox-outer, .fancybox-inner {
48
- position: relative;
49
- }
50
-
51
- .fancybox-inner {
52
- overflow: hidden;
53
- }
54
-
55
- .fancybox-type-iframe .fancybox-inner {
56
- -webkit-overflow-scrolling: touch;
57
- }
58
-
59
- .fancybox-error {
60
- color: #444;
61
- font: 14px/20px "Helvetica Neue",Helvetica,Arial,sans-serif;
62
- margin: 0;
63
- padding: 15px;
64
- white-space: nowrap;
65
- }
66
-
67
- .fancybox-image, .fancybox-iframe {
68
- display: block;
69
- width: 100%;
70
- height: 100%;
71
- }
72
-
73
- .fancybox-image {
74
- max-width: 100%;
75
- max-height: 100%;
76
- }
77
-
78
- #fancybox-loading, .fancybox-close, .fancybox-prev span, .fancybox-next span {
79
- background-image: url('fancybox_sprite.png');
80
- }
81
-
82
- #fancybox-loading {
83
- position: fixed;
84
- top: 50%;
85
- left: 50%;
86
- margin-top: -22px;
87
- margin-left: -22px;
88
- background-position: 0 -108px;
89
- opacity: 0.8;
90
- cursor: pointer;
91
- z-index: 8060;
92
- }
93
-
94
- #fancybox-loading div {
95
- width: 44px;
96
- height: 44px;
97
- background: url('fancybox_loading.gif') center center no-repeat;
98
- }
99
-
100
- .fancybox-close {
101
- position: absolute;
102
- top: -18px;
103
- right: -18px;
104
- width: 36px;
105
- height: 36px;
106
- cursor: pointer;
107
- z-index: 8040;
108
- }
109
-
110
- .fancybox-nav {
111
- position: absolute;
112
- top: 0;
113
- width: 40%;
114
- height: 100%;
115
- cursor: pointer;
116
- text-decoration: none;
117
- background: transparent url('blank.gif'); /* helps IE */
118
- -webkit-tap-highlight-color: rgba(0,0,0,0);
119
- z-index: 8040;
120
- }
121
-
122
- .fancybox-prev {
123
- left: 0;
124
- }
125
-
126
- .fancybox-next {
127
- right: 0;
128
- }
129
-
130
- .fancybox-nav span {
131
- position: absolute;
132
- top: 50%;
133
- width: 36px;
134
- height: 34px;
135
- margin-top: -18px;
136
- cursor: pointer;
137
- z-index: 8040;
138
- visibility: hidden;
139
- }
140
-
141
- .fancybox-prev span {
142
- left: 10px;
143
- background-position: 0 -36px;
144
- }
145
-
146
- .fancybox-next span {
147
- right: 10px;
148
- background-position: 0 -72px;
149
- }
150
-
151
- .fancybox-nav:hover span {
152
- visibility: visible;
153
- }
154
-
155
- .fancybox-tmp {
156
- position: absolute;
157
- top: -9999px;
158
- left: -9999px;
159
- visibility: hidden;
160
- }
161
-
162
- /* Overlay helper */
163
-
164
- .fancybox-lock {
165
- overflow: hidden;
166
- }
167
-
168
- .fancybox-overlay {
169
- position: absolute;
170
- top: 0;
171
- left: 0;
172
- overflow: hidden;
173
- display: none;
174
- z-index: 8010;
175
- background: url('fancybox_overlay.png') repeat;
176
- }
177
-
178
- .fancybox-overlay-fixed {
179
- position: fixed;
180
- bottom: 0;
181
- right: 0;
182
- }
183
-
184
- .fancybox-lock .fancybox-overlay {
185
- overflow: auto;
186
- overflow-y: scroll;
187
- }
188
-
189
- /* Title helper */
190
-
191
- .fancybox-title {
192
- visibility: hidden;
193
- font: normal 13px/20px "Helvetica Neue",Helvetica,Arial,sans-serif;
194
- position: relative;
195
- text-shadow: none;
196
- z-index: 8050;
197
- }
198
-
199
- .fancybox-opened .fancybox-title {
200
- visibility: visible;
201
- }
202
-
203
- .fancybox-title-float-wrap {
204
- position: absolute;
205
- bottom: 0;
206
- right: 50%;
207
- margin-bottom: -35px;
208
- z-index: 8050;
209
- text-align: center;
210
- }
211
-
212
- .fancybox-title-float-wrap .child {
213
- display: inline-block;
214
- margin-right: -100%;
215
- padding: 2px 20px;
216
- background: transparent; /* Fallback for web browsers that doesn't support RGBa */
217
- background: rgba(0, 0, 0, 0.8);
218
- -webkit-border-radius: 15px;
219
- -moz-border-radius: 15px;
220
- border-radius: 15px;
221
- text-shadow: 0 1px 2px #222;
222
- color: #FFF;
223
- font-weight: bold;
224
- line-height: 24px;
225
- white-space: nowrap;
226
- }
227
-
228
- .fancybox-title-outside-wrap {
229
- position: relative;
230
- margin-top: 10px;
231
- color: #fff;
232
- }
233
-
234
- .fancybox-title-inside-wrap {
235
- padding-top: 10px;
236
- }
237
-
238
- .fancybox-title-over-wrap {
239
- position: absolute;
240
- bottom: 0;
241
- left: 0;
242
- color: #fff;
243
- padding: 10px;
244
- background: #000;
245
- background: rgba(0, 0, 0, .8);
246
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
js/fancybox/jquery.fancybox.init.pack.js DELETED
@@ -1,14 +0,0 @@
1
- /*!
2
- * fancyBox - jQuery Plugin
3
- * version: 2.1.3 (Tue, 23 Oct 2012)
4
- * @requires jQuery v1.6 or later
5
- *
6
- * Examples at http://fancyapps.com/fancybox/
7
- * License: www.fancyapps.com/fancybox/#license
8
- *
9
- * Copyright 2012 Janis Skarnelis - janis@fancyapps.com
10
- *
11
- * Modified by Aram Kocharyan:
12
- * http://aramk.com/crayon/initialising-fancybox-with-custom-objects
13
- */
14
- window.fancyboxInit=function(k,n,i,g){var d=i(k),a=i(n),o=i[g]=function(){o.open.apply(this,arguments)},c=null,e=n.createTouch!==undefined,j=function(p){return p&&p.hasOwnProperty&&p instanceof i},b=function(p){return p&&i.type(p)==="string"},l=function(p){return b(p)&&p.indexOf("%")>0},h=function(p){return(p&&!(p.style.overflow&&p.style.overflow==="hidden")&&((p.clientWidth&&p.scrollWidth>p.clientWidth)||(p.clientHeight&&p.scrollHeight>p.clientHeight)))},m=function(r,q){var p=parseInt(r,10)||0;if(q&&l(r)){p=o.getViewport()[q]/100*p}return Math.ceil(p)},f=function(p,q){return m(p,q)+"px"};i.extend(o,{version:"2.1.3",defaults:{padding:15,margin:20,width:800,height:600,minWidth:100,minHeight:100,maxWidth:9999,maxHeight:9999,autoSize:true,autoHeight:false,autoWidth:false,autoResize:true,autoCenter:!e,fitToView:true,aspectRatio:false,topRatio:0.5,leftRatio:0.5,scrolling:"auto",wrapCSS:"",arrows:true,closeBtn:true,closeClick:false,nextClick:false,mouseWheel:true,autoPlay:false,playSpeed:3000,preload:3,modal:false,loop:true,ajax:{dataType:"html",headers:{"X-fancyBox":true}},iframe:{scrolling:"auto",preload:true},swf:{wmode:"transparent",allowfullscreen:"true",allowscriptaccess:"always"},keys:{next:{13:"left",34:"up",39:"left",40:"up"},prev:{8:"right",33:"down",37:"right",38:"down"},close:[27],play:[32],toggle:[70]},direction:{next:"left",prev:"right"},scrollOutside:true,index:0,type:null,href:null,content:null,title:null,tpl:{wrap:'<div class="fancybox-wrap" tabIndex="-1"><div class="fancybox-skin"><div class="fancybox-outer"><div class="fancybox-inner"></div></div></div></div>',image:'<img class="fancybox-image" src="{href}" alt="" />',iframe:'<iframe id="fancybox-frame{rnd}" name="fancybox-frame{rnd}" class="fancybox-iframe" frameborder="0" vspace="0" hspace="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen'+(i.browser.msie?' allowtransparency="true"':"")+"></iframe>",error:'<p class="fancybox-error">The requested content cannot be loaded.<br/>Please try again later.</p>',closeBtn:'<a title="Close" class="fancybox-item fancybox-close" href="javascript:;"></a>',next:'<a title="Next" class="fancybox-nav fancybox-next" href="javascript:;"><span></span></a>',prev:'<a title="Previous" class="fancybox-nav fancybox-prev" href="javascript:;"><span></span></a>'},openEffect:"fade",openSpeed:250,openEasing:"swing",openOpacity:true,openMethod:"zoomIn",closeEffect:"fade",closeSpeed:250,closeEasing:"swing",closeOpacity:true,closeMethod:"zoomOut",nextEffect:"elastic",nextSpeed:250,nextEasing:"swing",nextMethod:"changeIn",prevEffect:"elastic",prevSpeed:250,prevEasing:"swing",prevMethod:"changeOut",helpers:{overlay:true,title:true},onCancel:i.noop,beforeLoad:i.noop,afterLoad:i.noop,beforeShow:i.noop,afterShow:i.noop,beforeChange:i.noop,beforeClose:i.noop,afterClose:i.noop},group:{},opts:{},previous:null,coming:null,current:null,isActive:false,isOpen:false,isOpened:false,wrap:null,skin:null,outer:null,inner:null,player:{timer:null,isActive:false},ajaxLoad:null,imgPreload:null,transitions:{},helpers:{},open:function(q,p){if(!q){return}if(!i.isPlainObject(p)){p={}}if(false===o.close(true)){return}if(!i.isArray(q)){q=j(q)?i(q).get():[q]}i.each(q,function(v,w){var u={},r,z,x,y,t,A,s;if(i.type(w)==="object"){if(w.nodeType){w=i(w)}if(j(w)){u={href:w.data("fancybox-href")||w.attr("href"),title:w.data("fancybox-title")||w.attr("title"),isDom:true,element:w};if(i.metadata){i.extend(true,u,w.metadata())}}else{u=w}}r=p.href||u.href||(b(w)?w:null);z=p.title!==undefined?p.title:u.title||"";x=p.content||u.content;y=x?"html":(p.type||u.type);if(!y&&u.isDom){y=w.data("fancybox-type");if(!y){t=w.prop("class").match(/fancybox\.(\w+)/);y=t?t[1]:null}}if(b(r)){if(!y){if(o.isImage(r)){y="image"}else{if(o.isSWF(r)){y="swf"}else{if(r.charAt(0)==="#"){y="inline"}else{if(b(w)){y="html";x=w}}}}}if(y==="ajax"){A=r.split(/\s+/,2);r=A.shift();s=A.shift()}}if(!x){if(y==="inline"){if(r){x=i(b(r)?r.replace(/.*(?=#[^\s]+$)/,""):r)}else{if(u.isDom){x=w}}}else{if(y==="html"){x=r}else{if(!y&&!r&&u.isDom){y="inline";x=w}}}}i.extend(u,{href:r,type:y,content:x,title:z,selector:s});q[v]=u});o.opts=i.extend(true,{},o.defaults,p);if(p.keys!==undefined){o.opts.keys=p.keys?i.extend({},o.defaults.keys,p.keys):false}o.group=q;return o._start(o.opts.index)},cancel:function(){var p=o.coming;if(!p||false===o.trigger("onCancel")){return}o.hideLoading();if(o.ajaxLoad){o.ajaxLoad.abort()}o.ajaxLoad=null;if(o.imgPreload){o.imgPreload.onload=o.imgPreload.onerror=null}if(p.wrap){p.wrap.stop(true,true).trigger("onReset").remove()}o.coming=null;if(!o.current){o._afterZoomOut(p)}},close:function(p){o.cancel();if(false===o.trigger("beforeClose")){return}o.unbindEvents();if(!o.isActive){return}if(!o.isOpen||p===true){i(".fancybox-wrap").stop(true).trigger("onReset").remove();o._afterZoomOut()}else{o.isOpen=o.isOpened=false;o.isClosing=true;i(".fancybox-item, .fancybox-nav").remove();o.wrap.stop(true,true).removeClass("fancybox-opened");o.transitions[o.current.closeMethod]()}},play:function(r){var p=function(){clearTimeout(o.player.timer)},t=function(){p();if(o.current&&o.player.isActive){o.player.timer=setTimeout(o.next,o.current.playSpeed)}},q=function(){p();i("body").unbind(".player");o.player.isActive=false;o.trigger("onPlayEnd")},s=function(){if(o.current&&(o.current.loop||o.current.index<o.group.length-1)){o.player.isActive=true;i("body").bind({"afterShow.player onUpdate.player":t,"onCancel.player beforeClose.player":q,"beforeLoad.player":p});t();o.trigger("onPlayStart")}};if(r===true||(!o.player.isActive&&r!==false)){s()}else{q()}},next:function(q){var p=o.current;if(p){if(!b(q)){q=p.direction.next}o.jumpto(p.index+1,q,"next")}},prev:function(q){var p=o.current;if(p){if(!b(q)){q=p.direction.prev}o.jumpto(p.index-1,q,"prev")}},jumpto:function(q,s,p){var r=o.current;if(!r){return}q=m(q);o.direction=s||r.direction[(q>=r.index?"next":"prev")];o.router=p||"jumpto";if(r.loop){if(q<0){q=r.group.length+(q%r.group.length)}q=q%r.group.length}if(r.group[q]!==undefined){o.cancel();o._start(q)}},reposition:function(s,p){var r=o.current,q=r?r.wrap:null,t;if(q){t=o._getPosition(p);if(s&&s.type==="scroll"){delete t.position;q.stop(true,true).animate(t,200)}else{q.css(t);r.pos=i.extend({},r.dim,t)}}},update:function(r){var p=(r&&r.type),q=!p||p==="orientationchange";if(q){clearTimeout(c);c=null}if(!o.isOpen||c){return}c=setTimeout(function(){var s=o.current;if(!s||o.isClosing){return}o.wrap.removeClass("fancybox-tmp");if(q||p==="load"||(p==="resize"&&s.autoResize)){o._setDimension()}if(!(p==="scroll"&&s.canShrink)){o.reposition(r)}o.trigger("onUpdate");c=null},(q&&!e?0:300))},toggle:function(p){if(o.isOpen){o.current.fitToView=i.type(p)==="boolean"?p:!o.current.fitToView;if(e){o.wrap.removeAttr("style").addClass("fancybox-tmp");o.trigger("onUpdate")}o.update()}},hideLoading:function(){a.unbind(".loading");i("#fancybox-loading").remove()},showLoading:function(){var q,p;o.hideLoading();q=i('<div id="fancybox-loading"><div></div></div>').click(o.cancel).appendTo("body");a.bind("keydown.loading",function(r){if((r.which||r.keyCode)===27){r.preventDefault();o.cancel()}});if(!o.defaults.fixed){p=o.getViewport();q.css({position:"absolute",top:(p.h*0.5)+p.y,left:(p.w*0.5)+p.x})}},getViewport:function(){var p=(o.current&&o.current.locked)||false,q={x:d.scrollLeft(),y:d.scrollTop()};if(p){q.w=p[0].clientWidth;q.h=p[0].clientHeight}else{q.w=e&&k.innerWidth?k.innerWidth:d.width();q.h=e&&k.innerHeight?k.innerHeight:d.height()}return q},unbindEvents:function(){if(o.wrap&&j(o.wrap)){o.wrap.unbind(".fb")}a.unbind(".fb");d.unbind(".fb")},bindEvents:function(){var q=o.current,p;if(!q){return}d.bind("orientationchange.fb"+(e?"":" resize.fb")+(q.autoCenter&&!q.locked?" scroll.fb":""),o.update);p=q.keys;if(p){a.bind("keydown.fb",function(t){var r=t.which||t.keyCode,s=t.target||t.srcElement;if(r===27&&o.coming){return false}if(!t.ctrlKey&&!t.altKey&&!t.shiftKey&&!t.metaKey&&!(s&&(s.type||i(s).is("[contenteditable]")))){i.each(p,function(u,v){if(q.group.length>1&&v[r]!==undefined){o[u](v[r]);t.preventDefault();return false}if(i.inArray(r,v)>-1){o[u]();t.preventDefault();return false}})}})}if(i.fn.mousewheel&&q.mouseWheel){o.wrap.bind("mousewheel.fb",function(w,x,s,r){var v=w.target||null,t=i(v),u=false;while(t.length){if(u||t.is(".fancybox-skin")||t.is(".fancybox-wrap")){break}u=h(t[0]);t=i(t).parent()}if(x!==0&&!u){if(o.group.length>1&&!q.canShrink){if(r>0||s>0){o.prev(r>0?"down":"left")}else{if(r<0||s<0){o.next(r<0?"up":"right")}}w.preventDefault()}}})}},trigger:function(q,s){var p,r=s||o.coming||o.current;if(!r){return}if(i.isFunction(r[q])){p=r[q].apply(r,Array.prototype.slice.call(arguments,1))}if(p===false){return false}if(r.helpers){i.each(r.helpers,function(u,t){if(t&&o.helpers[u]&&i.isFunction(o.helpers[u][q])){t=i.extend(true,{},o.helpers[u].defaults,t);o.helpers[u][q](t,r)}})}i.event.trigger(q+".fb")},isImage:function(p){return b(p)&&p.match(/(^data:image\/.*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp)((\?|#).*)?$)/i)},isSWF:function(p){return b(p)&&p.match(/\.(swf)((\?|#).*)?$/i)},_start:function(q){var r={},v,p,s,t,u;q=m(q);v=o.group[q]||null;if(!v){return false}r=i.extend(true,{},o.opts,v);t=r.margin;u=r.padding;if(i.type(t)==="number"){r.margin=[t,t,t,t]}if(i.type(u)==="number"){r.padding=[u,u,u,u]}if(r.modal){i.extend(true,r,{closeBtn:false,closeClick:false,nextClick:false,arrows:false,mouseWheel:false,keys:null,helpers:{overlay:{closeClick:false}}})}if(r.autoSize){r.autoWidth=r.autoHeight=true}if(r.width==="auto"){r.autoWidth=true}if(r.height==="auto"){r.autoHeight=true}r.group=o.group;r.index=q;o.coming=r;if(false===o.trigger("beforeLoad")){o.coming=null;return}s=r.type;p=r.href;if(!s){o.coming=null;if(o.current&&o.router&&o.router!=="jumpto"){o.current.index=q;return o[o.router](o.direction)}return false}o.isActive=true;if(s==="image"||s==="swf"){r.autoHeight=r.autoWidth=false;r.scrolling="visible"}if(s==="image"){r.aspectRatio=true}if(s==="iframe"&&e){r.scrolling="scroll"}r.wrap=i(r.tpl.wrap).addClass("fancybox-"+(e?"mobile":"desktop")+" fancybox-type-"+s+" fancybox-tmp "+r.wrapCSS).appendTo(r.parent||"body");i.extend(r,{skin:i(".fancybox-skin",r.wrap),outer:i(".fancybox-outer",r.wrap),inner:i(".fancybox-inner",r.wrap)});i.each(["Top","Right","Bottom","Left"],function(x,w){r.skin.css("padding"+w,f(r.padding[x]))});o.trigger("onReady");if(s==="inline"||s==="html"){if(!r.content||!r.content.length){return o._error("content")}}else{if(!p){return o._error("href")}}if(s==="image"){o._loadImage()}else{if(s==="ajax"){o._loadAjax()}else{if(s==="iframe"){o._loadIframe()}else{o._afterLoad()}}}},_error:function(p){i.extend(o.coming,{type:"html",autoWidth:true,autoHeight:true,minWidth:0,minHeight:0,scrolling:"no",hasError:p,content:o.coming.tpl.error});o._afterLoad()},_loadImage:function(){var p=o.imgPreload=new Image();p.onload=function(){this.onload=this.onerror=null;o.coming.width=this.width;o.coming.height=this.height;o._afterLoad()};p.onerror=function(){this.onload=this.onerror=null;o._error("image")};p.src=o.coming.href;if(p.complete!==true){o.showLoading()}},_loadAjax:function(){var p=o.coming;o.showLoading();o.ajaxLoad=i.ajax(i.extend({},p.ajax,{url:p.href,error:function(q,r){if(o.coming&&r!=="abort"){o._error("ajax",q)}else{o.hideLoading()}},success:function(q,r){if(r==="success"){p.content=q;o._afterLoad()}}}))},_loadIframe:function(){var p=o.coming,q=i(p.tpl.iframe.replace(/\{rnd\}/g,new Date().getTime())).attr("scrolling",e?"auto":p.iframe.scrolling).attr("src",p.href);i(p.wrap).bind("onReset",function(){try{i(this).find("iframe").hide().attr("src","//about:blank").end().empty()}catch(r){}});if(p.iframe.preload){o.showLoading();q.one("load",function(){i(this).data("ready",1);if(!e){i(this).bind("load.fb",o.update)}i(this).parents(".fancybox-wrap").width("100%").removeClass("fancybox-tmp").show();o._afterLoad()})}p.content=q.appendTo(p.inner);if(!p.iframe.preload){o._afterLoad()}},_preloadImages:function(){var u=o.group,t=o.current,p=u.length,r=t.preload?Math.min(t.preload,p-1):0,s,q;for(q=1;q<=r;q+=1){s=u[(t.index+q)%p];if(s.type==="image"&&s.href){new Image().src=s.href}}},_afterLoad:function(){var q=o.coming,s=o.current,x="fancybox-placeholder",u,v,w,r,p,t;o.hideLoading();if(!q||o.isActive===false){return}if(false===o.trigger("afterLoad",q,s)){q.wrap.stop(true).trigger("onReset").remove();o.coming=null;return}if(s){o.trigger("beforeChange",s);s.wrap.stop(true).removeClass("fancybox-opened").find(".fancybox-item, .fancybox-nav").remove()}o.unbindEvents();u=q;v=q.content;w=q.type;r=q.scrolling;i.extend(o,{wrap:u.wrap,skin:u.skin,outer:u.outer,inner:u.inner,current:u,previous:s});p=u.href;switch(w){case"inline":case"ajax":case"html":if(u.selector){v=i("<div>").html(v).find(u.selector)}else{if(j(v)){if(!v.data(x)){v.data(x,i('<div class="'+x+'"></div>').insertAfter(v).hide())}v=v.show().detach();u.wrap.bind("onReset",function(){if(i(this).find(v).length){v.hide().replaceAll(v.data(x)).data(x,false)}})}}break;case"image":v=u.tpl.image.replace("{href}",p);break;case"swf":v='<object id="fancybox-swf" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="100%" height="100%"><param name="movie" value="'+p+'"></param>';t="";i.each(u.swf,function(y,z){v+='<param name="'+y+'" value="'+z+'"></param>';t+=" "+y+'="'+z+'"'});v+='<embed src="'+p+'" type="application/x-shockwave-flash" width="100%" height="100%"'+t+"></embed></object>";break}if(!(j(v)&&v.parent().is(u.inner))){u.inner.append(v)}o.trigger("beforeShow");u.inner.css("overflow",r==="yes"?"scroll":(r==="no"?"hidden":r));o._setDimension();o.reposition();o.isOpen=false;o.coming=null;o.bindEvents();if(!o.isOpened){i(".fancybox-wrap").not(u.wrap).stop(true).trigger("onReset").remove()}else{if(s.prevMethod){o.transitions[s.prevMethod]()}}o.transitions[o.isOpened?u.nextMethod:u.openMethod]();o._preloadImages()},_setDimension:function(){var S=o.getViewport(),O=0,U=false,W=false,A=o.wrap,M=o.skin,X=o.inner,J=o.current,K=J.width,H=J.height,D=J.minWidth,w=J.minHeight,Q=J.maxWidth,I=J.maxHeight,C=J.scrolling,u=J.scrollOutside?J.scrollbarWidth:0,G=J.margin,v=m(G[1]+G[3]),t=m(G[0]+G[2]),r,q,N,P,F,E,L,y,x,T,s,V,p,z,B;A.add(M).add(X).width("auto").height("auto").removeClass("fancybox-tmp");r=m(M.outerWidth(true)-M.width());q=m(M.outerHeight(true)-M.height());N=v+r;P=t+q;F=l(K)?(S.w-N)*m(K)/100:K;E=l(H)?(S.h-P)*m(H)/100:H;if(J.type==="iframe"){z=J.content;if(J.autoHeight&&z.data("ready")===1){try{if(z[0].contentWindow.document.location){X.width(F).height(9999);B=z.contents().find("body");if(u){B.css("overflow-x","hidden")}E=B.height()}}catch(R){}}}else{if(J.autoWidth||J.autoHeight){X.addClass("fancybox-tmp");if(!J.autoWidth){X.width(F)}if(!J.autoHeight){X.height(E)}if(J.autoWidth){F=X.width()}if(J.autoHeight){E=X.height()}X.removeClass("fancybox-tmp")}}K=m(F);H=m(E);x=F/E;D=m(l(D)?m(D,"w")-N:D);Q=m(l(Q)?m(Q,"w")-N:Q);w=m(l(w)?m(w,"h")-P:w);I=m(l(I)?m(I,"h")-P:I);L=Q;y=I;if(J.fitToView){Q=Math.min(S.w-N,Q);I=Math.min(S.h-P,I)}V=S.w-v;p=S.h-t;if(J.aspectRatio){if(K>Q){K=Q;H=m(K/x)}if(H>I){H=I;K=m(H*x)}if(K<D){K=D;H=m(K/x)}if(H<w){H=w;K=m(H*x)}}else{K=Math.max(D,Math.min(K,Q));if(J.autoHeight&&J.type!=="iframe"){X.width(K);H=X.height()}H=Math.max(w,Math.min(H,I))}if(J.fitToView){X.width(K).height(H);A.width(K+r);T=A.width();s=A.height();if(J.aspectRatio){while((T>V||s>p)&&K>D&&H>w){if(O++>19){break}H=Math.max(w,Math.min(I,H-10));K=m(H*x);if(K<D){K=D;H=m(K/x)}if(K>Q){K=Q;H=m(K/x)}X.width(K).height(H);A.width(K+r);T=A.width();s=A.height()}}else{K=Math.max(D,Math.min(K,K-(T-V)));H=Math.max(w,Math.min(H,H-(s-p)))}}if(u&&C==="auto"&&H<E&&(K+r+u)<V){K+=u}X.width(K).height(H);A.width(K+r);T=A.width();s=A.height();U=(T>V||s>p)&&K>D&&H>w;W=J.aspectRatio?(K<L&&H<y&&K<F&&H<E):((K<L||H<y)&&(K<F||H<E));i.extend(J,{dim:{width:f(T),height:f(s)},origWidth:F,origHeight:E,canShrink:U,canExpand:W,wPadding:r,hPadding:q,wrapSpace:s-M.outerHeight(true),skinSpace:M.height()-H});if(!z&&J.autoHeight&&H>w&&H<I&&!W){X.height("auto")}},_getPosition:function(r){var v=o.current,q=o.getViewport(),t=v.margin,s=o.wrap.width()+t[1]+t[3],p=o.wrap.height()+t[0]+t[2],u={position:"absolute",top:t[0],left:t[3]};if(v.autoCenter&&v.fixed&&!r&&p<=q.h&&s<=q.w){u.position="fixed"}else{if(!v.locked){u.top+=q.y;u.left+=q.x}}u.top=f(Math.max(u.top,u.top+((q.h-p)*v.topRatio)));u.left=f(Math.max(u.left,u.left+((q.w-s)*v.leftRatio)));return u},_afterZoomIn:function(){var p=o.current;if(!p){return}o.isOpen=o.isOpened=true;o.wrap.css("overflow","visible").addClass("fancybox-opened");o.update();if(p.closeClick||(p.nextClick&&o.group.length>1)){o.inner.css("cursor","pointer").bind("click.fb",function(q){if(!i(q.target).is("a")&&!i(q.target).parent().is("a")){q.preventDefault();o[p.closeClick?"close":"next"]()}})}if(p.closeBtn){i(p.tpl.closeBtn).appendTo(o.skin).bind(e?"touchstart.fb":"click.fb",function(q){q.preventDefault();o.close()})}if(p.arrows&&o.group.length>1){if(p.loop||p.index>0){i(p.tpl.prev).appendTo(o.outer).bind("click.fb",o.prev)}if(p.loop||p.index<o.group.length-1){i(p.tpl.next).appendTo(o.outer).bind("click.fb",o.next)}}o.trigger("afterShow");if(!p.loop&&p.index===p.group.length-1){o.play(false)}else{if(o.opts.autoPlay&&!o.player.isActive){o.opts.autoPlay=false;o.play()}}},_afterZoomOut:function(p){p=p||o.current;i(".fancybox-wrap").trigger("onReset").remove();i.extend(o,{group:{},opts:{},router:false,current:null,isActive:false,isOpened:false,isOpen:false,isClosing:false,wrap:null,skin:null,outer:null,inner:null});o.trigger("afterClose",p)}});o.transitions={getOrigPosition:function(){var s=o.current,q=s.element,v=s.orig,u={},p=50,w=50,t=s.hPadding,x=s.wPadding,r=o.getViewport();if(!v&&s.isDom&&q.is(":visible")){v=q.find("img:first");if(!v.length){v=q}}if(j(v)){u=v.offset();if(v.is("img")){p=v.outerWidth();w=v.outerHeight()}}else{u.top=r.y+(r.h-w)*s.topRatio;u.left=r.x+(r.w-p)*s.leftRatio}if(o.wrap.css("position")==="fixed"||s.locked){u.top-=r.y;u.left-=r.x}u={top:f(u.top-t*s.topRatio),left:f(u.left-x*s.leftRatio),width:f(p+x),height:f(w+t)};return u},step:function(q,r){var t,v,w,p=r.prop,s=o.current,u=s.wrapSpace,x=s.skinSpace;if(p==="width"||p==="height"){t=r.end===r.start?1:(q-r.start)/(r.end-r.start);if(o.isClosing){t=1-t}v=p==="width"?s.wPadding:s.hPadding;w=q-v;o.skin[p](m(p==="width"?w:w-(u*t)));o.inner[p](m(p==="width"?w:w-(u*t)-(x*t)))}},zoomIn:function(){var t=o.current,q=t.pos,r=t.openEffect,s=r==="elastic",p=i.extend({opacity:1},q);delete p.position;if(s){q=this.getOrigPosition();if(t.openOpacity){q.opacity=0.1}}else{if(r==="fade"){q.opacity=0.1}}o.wrap.css(q).animate(p,{duration:r==="none"?0:t.openSpeed,easing:t.openEasing,step:s?this.step:null,complete:o._afterZoomIn})},zoomOut:function(){var s=o.current,q=s.closeEffect,r=q==="elastic",p={opacity:0.1};if(r){p=this.getOrigPosition();if(s.closeOpacity){p.opacity=0.1}}o.wrap.animate(p,{duration:q==="none"?0:s.closeSpeed,easing:s.closeEasing,step:r?this.step:null,complete:o._afterZoomOut})},changeIn:function(){var u=o.current,r=u.nextEffect,q=u.pos,p={opacity:1},t=o.direction,v=200,s;q.opacity=0.1;if(r==="elastic"){s=t==="down"||t==="up"?"top":"left";if(t==="down"||t==="right"){q[s]=f(m(q[s])-v);p[s]="+="+v+"px"}else{q[s]=f(m(q[s])+v);p[s]="-="+v+"px"}}if(r==="none"){o._afterZoomIn()}else{o.wrap.css(q).animate(p,{duration:u.nextSpeed,easing:u.nextEasing,complete:function(){setTimeout(o._afterZoomIn,20)}})}},changeOut:function(){var r=o.previous,q=r.prevEffect,p={opacity:0.1},s=o.direction,t=200;if(q==="elastic"){p[s==="down"||s==="up"?"top":"left"]=(s==="up"||s==="left"?"-":"+")+"="+t+"px"}r.wrap.animate(p,{duration:q==="none"?0:r.prevSpeed,easing:r.prevEasing,complete:function(){i(this).trigger("onReset").remove()}})}};o.helpers.overlay={defaults:{closeClick:true,speedOut:200,showEarly:true,css:{},locked:!e,fixed:true},overlay:null,fixed:false,create:function(p){p=i.extend({},this.defaults,p);if(this.overlay){this.close()}this.overlay=i('<div class="fancybox-overlay"></div>').appendTo("body");this.fixed=false;if(p.fixed&&o.defaults.fixed){this.overlay.addClass("fancybox-overlay-fixed");this.fixed=true}},open:function(q){var p=this;q=i.extend({},this.defaults,q);if(this.overlay){this.overlay.unbind(".overlay").width("auto").height("auto")}else{this.create(q)}if(!this.fixed){d.bind("resize.overlay",i.proxy(this.update,this));this.update()}if(q.closeClick){this.overlay.bind("click.overlay",function(r){if(i(r.target).hasClass("fancybox-overlay")){if(o.isActive){o.close()}else{p.close()}}})}this.overlay.css(q.css).show()},close:function(){i(".fancybox-overlay").remove();d.unbind("resize.overlay");this.overlay=null;if(this.margin!==false){i("body").css("margin-right",this.margin);this.margin=false}if(this.el){this.el.removeClass("fancybox-lock")}},update:function(){var q="100%",p;this.overlay.width(q).height("100%");if(i.browser.msie){p=Math.max(n.documentElement.offsetWidth,n.body.offsetWidth);if(a.width()>p){q=a.width()}}else{if(a.width()>d.width()){q=a.width()}}this.overlay.width(q).height(a.height())},onReady:function(p,q){i(".fancybox-overlay").stop(true,true);if(!this.overlay){this.margin=a.height()>d.height()||i("body").css("overflow-y")==="scroll"?i("body").css("margin-right"):false;this.el=n.all&&!n.querySelector?i("html"):i("body");this.create(p)}if(p.locked&&this.fixed){q.locked=this.overlay.append(q.wrap);q.fixed=false}if(p.showEarly===true){this.beforeShow.apply(this,arguments)}},beforeShow:function(p,q){if(q.locked){this.el.addClass("fancybox-lock");if(this.margin!==false){i("body").css("margin-right",m(this.margin)+q.scrollbarWidth)}}this.open(p)},onUpdate:function(){if(!this.fixed){this.update()}},afterClose:function(p){if(this.overlay&&!o.isActive){this.overlay.fadeOut(p.speedOut,i.proxy(this.close,this))}}};o.helpers.title={defaults:{type:"float",position:"bottom"},beforeShow:function(q){var s=o.current,u=s.title,p=q.type,t,r;if(i.isFunction(u)){u=u.call(s.element,s)}if(!b(u)||i.trim(u)===""){return}t=i('<div class="fancybox-title fancybox-title-'+p+'-wrap">'+u+"</div>");switch(p){case"inside":r=o.skin;break;case"outside":r=o.wrap;break;case"over":r=o.inner;break;default:r=o.skin;t.appendTo("body");if(i.browser.msie){t.width(t.width())}t.wrapInner('<span class="child"></span>');o.current.margin[2]+=Math.abs(m(t.css("margin-bottom")));break}t[(q.position==="top"?"prependTo":"appendTo")](r)}};i.fn[g]=function(r){var q,s=i(this),p=this.selector||"",t=function(x){var w=i(this).blur(),u=q,v,y;if(!(x.ctrlKey||x.altKey||x.shiftKey||x.metaKey)&&!w.is(".fancybox-wrap")){v=r.groupAttr||"data-fancybox-group";y=w.attr(v);if(!y){v="rel";y=w.get(0)[v]}if(y&&y!==""&&y!=="nofollow"){w=p.length?i(p):s;w=w.filter("["+v+'="'+y+'"]');u=w.index(this)}r.index=u;if(o.open(w,r)!==false){x.preventDefault()}}};r=r||{};q=r.index||0;if(!p||r.live===false){s.unbind("click.fb-start").bind("click.fb-start",t)}else{a.undelegate(p,"click.fb-start").delegate(p+":not('.fancybox-item, .fancybox-nav')","click.fb-start",t)}this.filter("[data-fancybox-start=1]").trigger("click");return this};a.ready(function(){if(i.scrollbarWidth===undefined){i.scrollbarWidth=function(){var q=i('<div style="width:50px;height:50px;overflow:auto"><div/></div>').appendTo("body"),r=q.children(),p=r.innerWidth()-r.height(99).innerWidth();q.remove();return p}}if(i.support.fixedPosition===undefined){i.support.fixedPosition=(function(){var q=i('<div style="position:fixed;top:20px;"></div>').appendTo("body"),p=(q[0].offsetTop===20||q[0].offsetTop===15);q.remove();return p}())}i.extend(o.defaults,{scrollbarWidth:i.scrollbarWidth(),fixed:i.support.fixedPosition,parent:i("body")})})};
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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.initFancybox=function(){if(fancyboxInit){fancyboxInit(window,document,a,"crayonFancybox")}};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(/&amp;/g,"&").replace(/&lt;/g,"<").replace(/&gt;/g,">")};c.encode_html=function(d){return String(d).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")};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={"&":"&amp;","<":"&lt;",">":"&gt;"};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(jQuery.browser.msie){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(/&amp;/g,"&").replace(/&lt;/g,"<").replace(/&gt;/g,">")};c.encode_html=function(d){return String(d).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")};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={"&":"&amp;","<":"&lt;",">":"&gt;"};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(jQuery.browser.msie){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}};
js/min/crayon.te.min.js CHANGED
@@ -1,15 +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.initFancybox=function(){if(fancyboxInit){fancyboxInit(window,document,a,"crayonFancybox")}};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(/&amp;/g,"&").replace(/&lt;/g,"<").replace(/&gt;/g,">")};c.encode_html=function(d){return String(d).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")};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={"&":"&amp;","<":"&lt;",">":"&gt;"};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(jQuery.browser.msie){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}};
2
  /*!
3
- * fancyBox - jQuery Plugin
4
- * version: 2.1.3 (Tue, 23 Oct 2012)
5
- * @requires jQuery v1.6 or later
6
- *
7
- * Examples at http://fancyapps.com/fancybox/
8
- * License: www.fancyapps.com/fancybox/#license
9
- *
10
- * Copyright 2012 Janis Skarnelis - janis@fancyapps.com
11
- *
12
- * Modified by Aram Kocharyan:
13
- * http://aramk.com/crayon/initialising-fancybox-with-custom-objects
14
- */
15
- window.fancyboxInit=function(t,q,v,x){var A=v(t),D=v(q),p=v[x]=function(){p.open.apply(this,arguments)},B=null,z=q.createTouch!==undefined,u=function(a){return a&&a.hasOwnProperty&&a instanceof v},C=function(a){return a&&v.type(a)==="string"},s=function(a){return C(a)&&a.indexOf("%")>0},w=function(a){return(a&&!(a.style.overflow&&a.style.overflow==="hidden")&&((a.clientWidth&&a.scrollWidth>a.clientWidth)||(a.clientHeight&&a.scrollHeight>a.clientHeight)))},r=function(a,b){var c=parseInt(a,10)||0;if(b&&s(a)){c=p.getViewport()[b]/100*c}return Math.ceil(c)},y=function(b,a){return r(b,a)+"px"};v.extend(p,{version:"2.1.3",defaults:{padding:15,margin:20,width:800,height:600,minWidth:100,minHeight:100,maxWidth:9999,maxHeight:9999,autoSize:true,autoHeight:false,autoWidth:false,autoResize:true,autoCenter:!z,fitToView:true,aspectRatio:false,topRatio:0.5,leftRatio:0.5,scrolling:"auto",wrapCSS:"",arrows:true,closeBtn:true,closeClick:false,nextClick:false,mouseWheel:true,autoPlay:false,playSpeed:3000,preload:3,modal:false,loop:true,ajax:{dataType:"html",headers:{"X-fancyBox":true}},iframe:{scrolling:"auto",preload:true},swf:{wmode:"transparent",allowfullscreen:"true",allowscriptaccess:"always"},keys:{next:{13:"left",34:"up",39:"left",40:"up"},prev:{8:"right",33:"down",37:"right",38:"down"},close:[27],play:[32],toggle:[70]},direction:{next:"left",prev:"right"},scrollOutside:true,index:0,type:null,href:null,content:null,title:null,tpl:{wrap:'<div class="fancybox-wrap" tabIndex="-1"><div class="fancybox-skin"><div class="fancybox-outer"><div class="fancybox-inner"></div></div></div></div>',image:'<img class="fancybox-image" src="{href}" alt="" />',iframe:'<iframe id="fancybox-frame{rnd}" name="fancybox-frame{rnd}" class="fancybox-iframe" frameborder="0" vspace="0" hspace="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen'+(v.browser.msie?' allowtransparency="true"':"")+"></iframe>",error:'<p class="fancybox-error">The requested content cannot be loaded.<br/>Please try again later.</p>',closeBtn:'<a title="Close" class="fancybox-item fancybox-close" href="javascript:;"></a>',next:'<a title="Next" class="fancybox-nav fancybox-next" href="javascript:;"><span></span></a>',prev:'<a title="Previous" class="fancybox-nav fancybox-prev" href="javascript:;"><span></span></a>'},openEffect:"fade",openSpeed:250,openEasing:"swing",openOpacity:true,openMethod:"zoomIn",closeEffect:"fade",closeSpeed:250,closeEasing:"swing",closeOpacity:true,closeMethod:"zoomOut",nextEffect:"elastic",nextSpeed:250,nextEasing:"swing",nextMethod:"changeIn",prevEffect:"elastic",prevSpeed:250,prevEasing:"swing",prevMethod:"changeOut",helpers:{overlay:true,title:true},onCancel:v.noop,beforeLoad:v.noop,afterLoad:v.noop,beforeShow:v.noop,afterShow:v.noop,beforeChange:v.noop,beforeClose:v.noop,afterClose:v.noop},group:{},opts:{},previous:null,coming:null,current:null,isActive:false,isOpen:false,isOpened:false,wrap:null,skin:null,outer:null,inner:null,player:{timer:null,isActive:false},ajaxLoad:null,imgPreload:null,transitions:{},helpers:{},open:function(a,b){if(!a){return}if(!v.isPlainObject(b)){b={}}if(false===p.close(true)){return}if(!v.isArray(a)){a=u(a)?v(a).get():[a]}v.each(a,function(j,h){var k={},c,e,g,f,l,d,m;if(v.type(h)==="object"){if(h.nodeType){h=v(h)}if(u(h)){k={href:h.data("fancybox-href")||h.attr("href"),title:h.data("fancybox-title")||h.attr("title"),isDom:true,element:h};if(v.metadata){v.extend(true,k,h.metadata())}}else{k=h}}c=b.href||k.href||(C(h)?h:null);e=b.title!==undefined?b.title:k.title||"";g=b.content||k.content;f=g?"html":(b.type||k.type);if(!f&&k.isDom){f=h.data("fancybox-type");if(!f){l=h.prop("class").match(/fancybox\.(\w+)/);f=l?l[1]:null}}if(C(c)){if(!f){if(p.isImage(c)){f="image"}else{if(p.isSWF(c)){f="swf"}else{if(c.charAt(0)==="#"){f="inline"}else{if(C(h)){f="html";g=h}}}}}if(f==="ajax"){d=c.split(/\s+/,2);c=d.shift();m=d.shift()}}if(!g){if(f==="inline"){if(c){g=v(C(c)?c.replace(/.*(?=#[^\s]+$)/,""):c)}else{if(k.isDom){g=h}}}else{if(f==="html"){g=c}else{if(!f&&!c&&k.isDom){f="inline";g=h}}}}v.extend(k,{href:c,type:f,content:g,title:e,selector:m});a[j]=k});p.opts=v.extend(true,{},p.defaults,b);if(b.keys!==undefined){p.opts.keys=b.keys?v.extend({},p.defaults.keys,b.keys):false}p.group=a;return p._start(p.opts.index)},cancel:function(){var a=p.coming;if(!a||false===p.trigger("onCancel")){return}p.hideLoading();if(p.ajaxLoad){p.ajaxLoad.abort()}p.ajaxLoad=null;if(p.imgPreload){p.imgPreload.onload=p.imgPreload.onerror=null}if(a.wrap){a.wrap.stop(true,true).trigger("onReset").remove()}p.coming=null;if(!p.current){p._afterZoomOut(a)}},close:function(a){p.cancel();if(false===p.trigger("beforeClose")){return}p.unbindEvents();if(!p.isActive){return}if(!p.isOpen||a===true){v(".fancybox-wrap").stop(true).trigger("onReset").remove();p._afterZoomOut()}else{p.isOpen=p.isOpened=false;p.isClosing=true;v(".fancybox-item, .fancybox-nav").remove();p.wrap.stop(true,true).removeClass("fancybox-opened");p.transitions[p.current.closeMethod]()}},play:function(c){var e=function(){clearTimeout(p.player.timer)},a=function(){e();if(p.current&&p.player.isActive){p.player.timer=setTimeout(p.next,p.current.playSpeed)}},d=function(){e();v("body").unbind(".player");p.player.isActive=false;p.trigger("onPlayEnd")},b=function(){if(p.current&&(p.current.loop||p.current.index<p.group.length-1)){p.player.isActive=true;v("body").bind({"afterShow.player onUpdate.player":a,"onCancel.player beforeClose.player":d,"beforeLoad.player":e});a();p.trigger("onPlayStart")}};if(c===true||(!p.player.isActive&&c!==false)){b()}else{d()}},next:function(a){var b=p.current;if(b){if(!C(a)){a=b.direction.next}p.jumpto(b.index+1,a,"next")}},prev:function(a){var b=p.current;if(b){if(!C(a)){a=b.direction.prev}p.jumpto(b.index-1,a,"prev")}},jumpto:function(c,a,d){var b=p.current;if(!b){return}c=r(c);p.direction=a||b.direction[(c>=b.index?"next":"prev")];p.router=d||"jumpto";if(b.loop){if(c<0){c=b.group.length+(c%b.group.length)}c=c%b.group.length}if(b.group[c]!==undefined){p.cancel();p._start(c)}},reposition:function(b,e){var c=p.current,d=c?c.wrap:null,a;if(d){a=p._getPosition(e);if(b&&b.type==="scroll"){delete a.position;d.stop(true,true).animate(a,200)}else{d.css(a);c.pos=v.extend({},c.dim,a)}}},update:function(a){var c=(a&&a.type),b=!c||c==="orientationchange";if(b){clearTimeout(B);B=null}if(!p.isOpen||B){return}B=setTimeout(function(){var d=p.current;if(!d||p.isClosing){return}p.wrap.removeClass("fancybox-tmp");if(b||c==="load"||(c==="resize"&&d.autoResize)){p._setDimension()}if(!(c==="scroll"&&d.canShrink)){p.reposition(a)}p.trigger("onUpdate");B=null},(b&&!z?0:300))},toggle:function(a){if(p.isOpen){p.current.fitToView=v.type(a)==="boolean"?a:!p.current.fitToView;if(z){p.wrap.removeAttr("style").addClass("fancybox-tmp");p.trigger("onUpdate")}p.update()}},hideLoading:function(){D.unbind(".loading");v("#fancybox-loading").remove()},showLoading:function(){var a,b;p.hideLoading();a=v('<div id="fancybox-loading"><div></div></div>').click(p.cancel).appendTo("body");D.bind("keydown.loading",function(c){if((c.which||c.keyCode)===27){c.preventDefault();p.cancel()}});if(!p.defaults.fixed){b=p.getViewport();a.css({position:"absolute",top:(b.h*0.5)+b.y,left:(b.w*0.5)+b.x})}},getViewport:function(){var b=(p.current&&p.current.locked)||false,a={x:A.scrollLeft(),y:A.scrollTop()};if(b){a.w=b[0].clientWidth;a.h=b[0].clientHeight}else{a.w=z&&t.innerWidth?t.innerWidth:A.width();a.h=z&&t.innerHeight?t.innerHeight:A.height()}return a},unbindEvents:function(){if(p.wrap&&u(p.wrap)){p.wrap.unbind(".fb")}D.unbind(".fb");A.unbind(".fb")},bindEvents:function(){var a=p.current,b;if(!a){return}A.bind("orientationchange.fb"+(z?"":" resize.fb")+(a.autoCenter&&!a.locked?" scroll.fb":""),p.update);b=a.keys;if(b){D.bind("keydown.fb",function(c){var e=c.which||c.keyCode,d=c.target||c.srcElement;if(e===27&&p.coming){return false}if(!c.ctrlKey&&!c.altKey&&!c.shiftKey&&!c.metaKey&&!(d&&(d.type||v(d).is("[contenteditable]")))){v.each(b,function(g,f){if(a.group.length>1&&f[e]!==undefined){p[g](f[e]);c.preventDefault();return false}if(v.inArray(e,f)>-1){p[g]();c.preventDefault();return false}})}})}if(v.fn.mousewheel&&a.mouseWheel){p.wrap.bind("mousewheel.fb",function(d,c,h,j){var e=d.target||null,g=v(e),f=false;while(g.length){if(f||g.is(".fancybox-skin")||g.is(".fancybox-wrap")){break}f=w(g[0]);g=v(g).parent()}if(c!==0&&!f){if(p.group.length>1&&!a.canShrink){if(j>0||h>0){p.prev(j>0?"down":"left")}else{if(j<0||h<0){p.next(j<0?"up":"right")}}d.preventDefault()}}})}},trigger:function(c,a){var d,b=a||p.coming||p.current;if(!b){return}if(v.isFunction(b[c])){d=b[c].apply(b,Array.prototype.slice.call(arguments,1))}if(d===false){return false}if(b.helpers){v.each(b.helpers,function(e,f){if(f&&p.helpers[e]&&v.isFunction(p.helpers[e][c])){f=v.extend(true,{},p.helpers[e].defaults,f);p.helpers[e][c](f,b)}})}v.event.trigger(c+".fb")},isImage:function(a){return C(a)&&a.match(/(^data:image\/.*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp)((\?|#).*)?$)/i)},isSWF:function(a){return C(a)&&a.match(/\.(swf)((\?|#).*)?$/i)},_start:function(f){var e={},a,g,d,c,b;f=r(f);a=p.group[f]||null;if(!a){return false}e=v.extend(true,{},p.opts,a);c=e.margin;b=e.padding;if(v.type(c)==="number"){e.margin=[c,c,c,c]}if(v.type(b)==="number"){e.padding=[b,b,b,b]}if(e.modal){v.extend(true,e,{closeBtn:false,closeClick:false,nextClick:false,arrows:false,mouseWheel:false,keys:null,helpers:{overlay:{closeClick:false}}})}if(e.autoSize){e.autoWidth=e.autoHeight=true}if(e.width==="auto"){e.autoWidth=true}if(e.height==="auto"){e.autoHeight=true}e.group=p.group;e.index=f;p.coming=e;if(false===p.trigger("beforeLoad")){p.coming=null;return}d=e.type;g=e.href;if(!d){p.coming=null;if(p.current&&p.router&&p.router!=="jumpto"){p.current.index=f;return p[p.router](p.direction)}return false}p.isActive=true;if(d==="image"||d==="swf"){e.autoHeight=e.autoWidth=false;e.scrolling="visible"}if(d==="image"){e.aspectRatio=true}if(d==="iframe"&&z){e.scrolling="scroll"}e.wrap=v(e.tpl.wrap).addClass("fancybox-"+(z?"mobile":"desktop")+" fancybox-type-"+d+" fancybox-tmp "+e.wrapCSS).appendTo(e.parent||"body");v.extend(e,{skin:v(".fancybox-skin",e.wrap),outer:v(".fancybox-outer",e.wrap),inner:v(".fancybox-inner",e.wrap)});v.each(["Top","Right","Bottom","Left"],function(h,j){e.skin.css("padding"+j,y(e.padding[h]))});p.trigger("onReady");if(d==="inline"||d==="html"){if(!e.content||!e.content.length){return p._error("content")}}else{if(!g){return p._error("href")}}if(d==="image"){p._loadImage()}else{if(d==="ajax"){p._loadAjax()}else{if(d==="iframe"){p._loadIframe()}else{p._afterLoad()}}}},_error:function(a){v.extend(p.coming,{type:"html",autoWidth:true,autoHeight:true,minWidth:0,minHeight:0,scrolling:"no",hasError:a,content:p.coming.tpl.error});p._afterLoad()},_loadImage:function(){var a=p.imgPreload=new Image();a.onload=function(){this.onload=this.onerror=null;p.coming.width=this.width;p.coming.height=this.height;p._afterLoad()};a.onerror=function(){this.onload=this.onerror=null;p._error("image")};a.src=p.coming.href;if(a.complete!==true){p.showLoading()}},_loadAjax:function(){var a=p.coming;p.showLoading();p.ajaxLoad=v.ajax(v.extend({},a.ajax,{url:a.href,error:function(c,b){if(p.coming&&b!=="abort"){p._error("ajax",c)}else{p.hideLoading()}},success:function(c,b){if(b==="success"){a.content=c;p._afterLoad()}}}))},_loadIframe:function(){var b=p.coming,a=v(b.tpl.iframe.replace(/\{rnd\}/g,new Date().getTime())).attr("scrolling",z?"auto":b.iframe.scrolling).attr("src",b.href);v(b.wrap).bind("onReset",function(){try{v(this).find("iframe").hide().attr("src","//about:blank").end().empty()}catch(c){}});if(b.iframe.preload){p.showLoading();a.one("load",function(){v(this).data("ready",1);if(!z){v(this).bind("load.fb",p.update)}v(this).parents(".fancybox-wrap").width("100%").removeClass("fancybox-tmp").show();p._afterLoad()})}b.content=a.appendTo(b.inner);if(!b.iframe.preload){p._afterLoad()}},_preloadImages:function(){var a=p.group,b=p.current,f=a.length,d=b.preload?Math.min(b.preload,f-1):0,c,e;for(e=1;e<=d;e+=1){c=a[(b.index+e)%f];if(c.type==="image"&&c.href){new Image().src=c.href}}},_afterLoad:function(){var b=p.coming,j=p.current,d="fancybox-placeholder",g,f,e,a,c,h;p.hideLoading();if(!b||p.isActive===false){return}if(false===p.trigger("afterLoad",b,j)){b.wrap.stop(true).trigger("onReset").remove();p.coming=null;return}if(j){p.trigger("beforeChange",j);j.wrap.stop(true).removeClass("fancybox-opened").find(".fancybox-item, .fancybox-nav").remove()}p.unbindEvents();g=b;f=b.content;e=b.type;a=b.scrolling;v.extend(p,{wrap:g.wrap,skin:g.skin,outer:g.outer,inner:g.inner,current:g,previous:j});c=g.href;switch(e){case"inline":case"ajax":case"html":if(g.selector){f=v("<div>").html(f).find(g.selector)}else{if(u(f)){if(!f.data(d)){f.data(d,v('<div class="'+d+'"></div>').insertAfter(f).hide())}f=f.show().detach();g.wrap.bind("onReset",function(){if(v(this).find(f).length){f.hide().replaceAll(f.data(d)).data(d,false)}})}}break;case"image":f=g.tpl.image.replace("{href}",c);break;case"swf":f='<object id="fancybox-swf" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="100%" height="100%"><param name="movie" value="'+c+'"></param>';h="";v.each(g.swf,function(l,k){f+='<param name="'+l+'" value="'+k+'"></param>';h+=" "+l+'="'+k+'"'});f+='<embed src="'+c+'" type="application/x-shockwave-flash" width="100%" height="100%"'+h+"></embed></object>";break}if(!(u(f)&&f.parent().is(g.inner))){g.inner.append(f)}p.trigger("beforeShow");g.inner.css("overflow",a==="yes"?"scroll":(a==="no"?"hidden":a));p._setDimension();p.reposition();p.isOpen=false;p.coming=null;p.bindEvents();if(!p.isOpened){v(".fancybox-wrap").not(g.wrap).stop(true).trigger("onReset").remove()}else{if(j.prevMethod){p.transitions[j.prevMethod]()}}p.transitions[p.isOpened?g.nextMethod:g.openMethod]();p._preloadImages()},_setDimension:function(){var f=p.getViewport(),k=0,d=false,b=false,at=p.wrap,m=p.skin,a=p.inner,aa=p.current,Y=aa.width,ad=aa.height,am=aa.minWidth,ae=aa.minHeight,h=aa.maxWidth,ac=aa.maxHeight,ao=aa.scrolling,ai=aa.scrollOutside?aa.scrollbarWidth:0,ag=aa.margin,af=r(ag[1]+ag[3]),ak=r(ag[0]+ag[2]),an,aq,l,j,ah,aj,n,Z,ab,e,al,c,ar,o,ap;at.add(m).add(a).width("auto").height("auto").removeClass("fancybox-tmp");an=r(m.outerWidth(true)-m.width());aq=r(m.outerHeight(true)-m.height());l=af+an;j=ak+aq;ah=s(Y)?(f.w-l)*r(Y)/100:Y;aj=s(ad)?(f.h-j)*r(ad)/100:ad;if(aa.type==="iframe"){o=aa.content;if(aa.autoHeight&&o.data("ready")===1){try{if(o[0].contentWindow.document.location){a.width(ah).height(9999);ap=o.contents().find("body");if(ai){ap.css("overflow-x","hidden")}aj=ap.height()}}catch(g){}}}else{if(aa.autoWidth||aa.autoHeight){a.addClass("fancybox-tmp");if(!aa.autoWidth){a.width(ah)}if(!aa.autoHeight){a.height(aj)}if(aa.autoWidth){ah=a.width()}if(aa.autoHeight){aj=a.height()}a.removeClass("fancybox-tmp")}}Y=r(ah);ad=r(aj);ab=ah/aj;am=r(s(am)?r(am,"w")-l:am);h=r(s(h)?r(h,"w")-l:h);ae=r(s(ae)?r(ae,"h")-j:ae);ac=r(s(ac)?r(ac,"h")-j:ac);n=h;Z=ac;if(aa.fitToView){h=Math.min(f.w-l,h);ac=Math.min(f.h-j,ac)}c=f.w-af;ar=f.h-ak;if(aa.aspectRatio){if(Y>h){Y=h;ad=r(Y/ab)}if(ad>ac){ad=ac;Y=r(ad*ab)}if(Y<am){Y=am;ad=r(Y/ab)}if(ad<ae){ad=ae;Y=r(ad*ab)}}else{Y=Math.max(am,Math.min(Y,h));if(aa.autoHeight&&aa.type!=="iframe"){a.width(Y);ad=a.height()}ad=Math.max(ae,Math.min(ad,ac))}if(aa.fitToView){a.width(Y).height(ad);at.width(Y+an);e=at.width();al=at.height();if(aa.aspectRatio){while((e>c||al>ar)&&Y>am&&ad>ae){if(k++>19){break}ad=Math.max(ae,Math.min(ac,ad-10));Y=r(ad*ab);if(Y<am){Y=am;ad=r(Y/ab)}if(Y>h){Y=h;ad=r(Y/ab)}a.width(Y).height(ad);at.width(Y+an);e=at.width();al=at.height()}}else{Y=Math.max(am,Math.min(Y,Y-(e-c)));ad=Math.max(ae,Math.min(ad,ad-(al-ar)))}}if(ai&&ao==="auto"&&ad<aj&&(Y+an+ai)<c){Y+=ai}a.width(Y).height(ad);at.width(Y+an);e=at.width();al=at.height();d=(e>c||al>ar)&&Y>am&&ad>ae;b=aa.aspectRatio?(Y<n&&ad<Z&&Y<ah&&ad<aj):((Y<n||ad<Z)&&(Y<ah||ad<aj));v.extend(aa,{dim:{width:y(e),height:y(al)},origWidth:ah,origHeight:aj,canShrink:d,canExpand:b,wPadding:an,hPadding:aq,wrapSpace:al-m.outerHeight(true),skinSpace:m.height()-ad});if(!o&&aa.autoHeight&&ad>ae&&ad<ac&&!b){a.height("auto")}},_getPosition:function(e){var a=p.current,f=p.getViewport(),c=a.margin,d=p.wrap.width()+c[1]+c[3],g=p.wrap.height()+c[0]+c[2],b={position:"absolute",top:c[0],left:c[3]};if(a.autoCenter&&a.fixed&&!e&&g<=f.h&&d<=f.w){b.position="fixed"}else{if(!a.locked){b.top+=f.y;b.left+=f.x}}b.top=y(Math.max(b.top,b.top+((f.h-g)*a.topRatio)));b.left=y(Math.max(b.left,b.left+((f.w-d)*a.leftRatio)));return b},_afterZoomIn:function(){var a=p.current;if(!a){return}p.isOpen=p.isOpened=true;p.wrap.css("overflow","visible").addClass("fancybox-opened");p.update();if(a.closeClick||(a.nextClick&&p.group.length>1)){p.inner.css("cursor","pointer").bind("click.fb",function(b){if(!v(b.target).is("a")&&!v(b.target).parent().is("a")){b.preventDefault();p[a.closeClick?"close":"next"]()}})}if(a.closeBtn){v(a.tpl.closeBtn).appendTo(p.skin).bind(z?"touchstart.fb":"click.fb",function(b){b.preventDefault();p.close()})}if(a.arrows&&p.group.length>1){if(a.loop||a.index>0){v(a.tpl.prev).appendTo(p.outer).bind("click.fb",p.prev)}if(a.loop||a.index<p.group.length-1){v(a.tpl.next).appendTo(p.outer).bind("click.fb",p.next)}}p.trigger("afterShow");if(!a.loop&&a.index===a.group.length-1){p.play(false)}else{if(p.opts.autoPlay&&!p.player.isActive){p.opts.autoPlay=false;p.play()}}},_afterZoomOut:function(a){a=a||p.current;v(".fancybox-wrap").trigger("onReset").remove();v.extend(p,{group:{},opts:{},router:false,current:null,isActive:false,isOpened:false,isOpen:false,isClosing:false,wrap:null,skin:null,outer:null,inner:null});p.trigger("afterClose",a)}});p.transitions={getOrigPosition:function(){var j=p.current,b=j.element,f=j.orig,g={},c=50,e=50,h=j.hPadding,d=j.wPadding,a=p.getViewport();if(!f&&j.isDom&&b.is(":visible")){f=b.find("img:first");if(!f.length){f=b}}if(u(f)){g=f.offset();if(f.is("img")){c=f.outerWidth();e=f.outerHeight()}}else{g.top=a.y+(a.h-e)*j.topRatio;g.left=a.x+(a.w-c)*j.leftRatio}if(p.wrap.css("position")==="fixed"||j.locked){g.top-=a.y;g.left-=a.x}g={top:y(g.top-h*j.topRatio),left:y(g.left-d*j.leftRatio),width:y(c+d),height:y(e+h)};return g},step:function(b,a){var h,f,e,c=a.prop,j=p.current,g=j.wrapSpace,d=j.skinSpace;if(c==="width"||c==="height"){h=a.end===a.start?1:(b-a.start)/(a.end-a.start);if(p.isClosing){h=1-h}f=c==="width"?j.wPadding:j.hPadding;e=b-f;p.skin[c](r(c==="width"?e:e-(g*h)));p.inner[c](r(c==="width"?e:e-(g*h)-(d*h)))}},zoomIn:function(){var a=p.current,d=a.pos,c=a.openEffect,b=c==="elastic",e=v.extend({opacity:1},d);delete e.position;if(b){d=this.getOrigPosition();if(a.openOpacity){d.opacity=0.1}}else{if(c==="fade"){d.opacity=0.1}}p.wrap.css(d).animate(e,{duration:c==="none"?0:a.openSpeed,easing:a.openEasing,step:b?this.step:null,complete:p._afterZoomIn})},zoomOut:function(){var a=p.current,c=a.closeEffect,b=c==="elastic",d={opacity:0.1};if(b){d=this.getOrigPosition();if(a.closeOpacity){d.opacity=0.1}}p.wrap.animate(d,{duration:c==="none"?0:a.closeSpeed,easing:a.closeEasing,step:b?this.step:null,complete:p._afterZoomOut})},changeIn:function(){var b=p.current,e=b.nextEffect,f=b.pos,g={opacity:1},c=p.direction,a=200,d;f.opacity=0.1;if(e==="elastic"){d=c==="down"||c==="up"?"top":"left";if(c==="down"||c==="right"){f[d]=y(r(f[d])-a);g[d]="+="+a+"px"}else{f[d]=y(r(f[d])+a);g[d]="-="+a+"px"}}if(e==="none"){p._afterZoomIn()}else{p.wrap.css(f).animate(g,{duration:b.nextSpeed,easing:b.nextEasing,complete:function(){setTimeout(p._afterZoomIn,20)}})}},changeOut:function(){var c=p.previous,d=c.prevEffect,e={opacity:0.1},b=p.direction,a=200;if(d==="elastic"){e[b==="down"||b==="up"?"top":"left"]=(b==="up"||b==="left"?"-":"+")+"="+a+"px"}c.wrap.animate(e,{duration:d==="none"?0:c.prevSpeed,easing:c.prevEasing,complete:function(){v(this).trigger("onReset").remove()}})}};p.helpers.overlay={defaults:{closeClick:true,speedOut:200,showEarly:true,css:{},locked:!z,fixed:true},overlay:null,fixed:false,create:function(a){a=v.extend({},this.defaults,a);if(this.overlay){this.close()}this.overlay=v('<div class="fancybox-overlay"></div>').appendTo("body");this.fixed=false;if(a.fixed&&p.defaults.fixed){this.overlay.addClass("fancybox-overlay-fixed");this.fixed=true}},open:function(a){var b=this;a=v.extend({},this.defaults,a);if(this.overlay){this.overlay.unbind(".overlay").width("auto").height("auto")}else{this.create(a)}if(!this.fixed){A.bind("resize.overlay",v.proxy(this.update,this));this.update()}if(a.closeClick){this.overlay.bind("click.overlay",function(c){if(v(c.target).hasClass("fancybox-overlay")){if(p.isActive){p.close()}else{b.close()}}})}this.overlay.css(a.css).show()},close:function(){v(".fancybox-overlay").remove();A.unbind("resize.overlay");this.overlay=null;if(this.margin!==false){v("body").css("margin-right",this.margin);this.margin=false}if(this.el){this.el.removeClass("fancybox-lock")}},update:function(){var a="100%",b;this.overlay.width(a).height("100%");if(v.browser.msie){b=Math.max(q.documentElement.offsetWidth,q.body.offsetWidth);if(D.width()>b){a=D.width()}}else{if(D.width()>A.width()){a=D.width()}}this.overlay.width(a).height(D.height())},onReady:function(b,a){v(".fancybox-overlay").stop(true,true);if(!this.overlay){this.margin=D.height()>A.height()||v("body").css("overflow-y")==="scroll"?v("body").css("margin-right"):false;this.el=q.all&&!q.querySelector?v("html"):v("body");this.create(b)}if(b.locked&&this.fixed){a.locked=this.overlay.append(a.wrap);a.fixed=false}if(b.showEarly===true){this.beforeShow.apply(this,arguments)}},beforeShow:function(b,a){if(a.locked){this.el.addClass("fancybox-lock");if(this.margin!==false){v("body").css("margin-right",r(this.margin)+a.scrollbarWidth)}}this.open(b)},onUpdate:function(){if(!this.fixed){this.update()}},afterClose:function(a){if(this.overlay&&!p.isActive){this.overlay.fadeOut(a.speedOut,v.proxy(this.close,this))}}};p.helpers.title={defaults:{type:"float",position:"bottom"},beforeShow:function(e){var c=p.current,a=c.title,f=e.type,b,d;if(v.isFunction(a)){a=a.call(c.element,c)}if(!C(a)||v.trim(a)===""){return}b=v('<div class="fancybox-title fancybox-title-'+f+'-wrap">'+a+"</div>");switch(f){case"inside":d=p.skin;break;case"outside":d=p.wrap;break;case"over":d=p.inner;break;default:d=p.skin;b.appendTo("body");if(v.browser.msie){b.width(b.width())}b.wrapInner('<span class="child"></span>');p.current.margin[2]+=Math.abs(r(b.css("margin-bottom")));break}b[(e.position==="top"?"prependTo":"appendTo")](d)}};v.fn[x]=function(c){var d,b=v(this),e=this.selector||"",a=function(f){var g=v(this).blur(),j=d,h,k;if(!(f.ctrlKey||f.altKey||f.shiftKey||f.metaKey)&&!g.is(".fancybox-wrap")){h=c.groupAttr||"data-fancybox-group";k=g.attr(h);if(!k){h="rel";k=g.get(0)[h]}if(k&&k!==""&&k!=="nofollow"){g=e.length?v(e):b;g=g.filter("["+h+'="'+k+'"]');j=g.index(this)}c.index=j;if(p.open(g,c)!==false){f.preventDefault()}}};c=c||{};d=c.index||0;if(!e||c.live===false){b.unbind("click.fb-start").bind("click.fb-start",a)}else{D.undelegate(e,"click.fb-start").delegate(e+":not('.fancybox-item, .fancybox-nav')","click.fb-start",a)}this.filter("[data-fancybox-start=1]").trigger("click");return this};D.ready(function(){if(v.scrollbarWidth===undefined){v.scrollbarWidth=function(){var b=v('<div style="width:50px;height:50px;overflow:auto"><div/></div>').appendTo("body"),a=b.children(),c=a.innerWidth()-a.height(99).innerWidth();b.remove();return c}}if(v.support.fixedPosition===undefined){v.support.fixedPosition=(function(){var a=v('<div style="position:fixed;top:20px;"></div>').appendTo("body"),b=(a[0].offsetTop===20||a[0].offsetTop===15);a.remove();return b}())}v.extend(p.defaults,{scrollbarWidth:v.scrollbarWidth(),fixed:v.support.fixedPosition,parent:v("body")})})};(function(a){window.CrayonQuickTags=new function(){var b=this;b.init=function(){b.sel='*[id*="crayon_quicktag"],*[class*="crayon_quicktag"]';CrayonTagEditor.bind(b.sel);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"){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);(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).crayonFancybox({href:n.content_css,margin:[40,10,40,10],padding:0,width:690,height:"100%",autoSize:false,title:"",beforeShow:function(){a(this.outer).prepend(a(n.bar_content))},afterShow:function(){a(n.code_css).focus()},beforeClose:function(){a(n.bar).prepend(a(n.bar_content))},closeBtn:false})};k.hide=function(){a.crayonFancybox.close();return false};k.loadDialog=function(){if(!y){y=true}else{return}d.initFancybox();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>&nbsp;</p>"}}else{if(j=="html"){br_after=G=" "}else{br_after="&nbsp;"}}}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(/&amp;/g,"&").replace(/&lt;/g,"<").replace(/&gt;/g,">")};c.encode_html=function(d){return String(d).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")};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={"&":"&amp;","<":"&lt;",">":"&gt;"};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(jQuery.browser.msie){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
+ Colorbox v1.4.27 - 2013-07-16
4
+ jQuery lightbox and modal window plugin
5
+ (c) 2013 Jack Moore - http://www.jacklmoore.com/colorbox
6
+ license: http://www.opensource.org/licenses/mit-license.php
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>&nbsp;</p>"}}else{if(j=="html"){br_after=G=" "}else{br_after="&nbsp;"}}}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);
 
 
 
 
 
 
 
js/minify.sh CHANGED
@@ -6,4 +6,4 @@ source ../util/minify.sh
6
 
7
  common=$"$INPUT_PATH/util.js $INPUT_PATH/jquery.popup.js $INPUT_PATH/crayon.js $INPUT_PATH/cssjson.js"
8
  minify $common $OUTPUT_PATH/crayon.min.js
9
- minify $common $FANCY_PATH/jquery.fancybox.init.pack.js $TE_PATH/crayon_qt.js $TE_PATH/crayon_tag_editor.js $OUTPUT_PATH/crayon.te.min.js
6
 
7
  common=$"$INPUT_PATH/util.js $INPUT_PATH/jquery.popup.js $INPUT_PATH/crayon.js $INPUT_PATH/cssjson.js"
8
  minify $common $OUTPUT_PATH/crayon.min.js
9
+ minify $common $TE_PATH/crayon_qt.js $COLORBOX_PATH/jquery.colorbox-min.js $TE_PATH/crayon_tag_editor.js $OUTPUT_PATH/crayon.te.min.js
js/src/util.js CHANGED
@@ -46,13 +46,6 @@ var jQueryCrayon = jQuery;
46
  return base.setMax(base.setMin(v, min), max);
47
  };
48
 
49
- base.initFancybox = function () {
50
- if (fancyboxInit) {
51
- // Initialise a custom version of Fancybox to avoid conflicting
52
- fancyboxInit(window, document, $, 'crayonFancybox');
53
- }
54
- };
55
-
56
  base.getExt = function (str) {
57
  if (str.indexOf('.') == -1) {
58
  return undefined;
46
  return base.setMax(base.setMin(v, min), max);
47
  };
48
 
 
 
 
 
 
 
 
49
  base.getExt = function (str) {
50
  if (str.indexOf('.') == -1) {
51
  return undefined;
langs/mysql/built.in.func.txt ADDED
@@ -0,0 +1,254 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ IN NATURAL LANGUAGE MODE WITH QUERY EXPANSION
2
+ WAIT_UNTIL_SQL_THREAD_AFTER_GTIDS
3
+ VALIDATE_PASSWORD_STRENGTH
4
+ IN NATURAL LANGUAGE MODE
5
+ WITH QUERY EXPANSION
6
+ UNCOMPRESSED_LENGTH
7
+ CURRENT_TIMESTAMP
8
+ CHARACTER_LENGTH
9
+ IN BOOLEAN MODE
10
+ MASTER_POS_WAIT
11
+ SUBSTRING_INDEX
12
+ IS_IPV4_COMPAT
13
+ IS_IPV4_MAPPED
14
+ LAST_INSERT_ID
15
+ LOCALTIMESTAMP
16
+ UNIX_TIMESTAMP
17
+ CONNECTION_ID
18
+ FROM_UNIXTIME
19
+ GTID_SUBTRACT
20
+ TIMESTAMPDIFF
21
+ UTC_TIMESTAMP
22
+ WEIGHT_STRING
23
+ COERCIBILITY
24
+ CURRENT_DATE
25
+ CURRENT_TIME
26
+ CURRENT_USER
27
+ ExtractValue
28
+ GROUP_CONCAT
29
+ IS_FREE_LOCK
30
+ IS_USED_LOCK
31
+ OCTET_LENGTH
32
+ OLD_PASSWORD
33
+ RELEASE_LOCK
34
+ SESSION_USER
35
+ TIMESTAMPADD
36
+ AES_DECRYPT
37
+ AES_ENCRYPT
38
+ CHAR_LENGTH
39
+ DATE_FORMAT
40
+ DES_DECRYPT
41
+ DES_ENCRYPT
42
+ FIND_IN_SET
43
+ FROM_BASE64
44
+ GTID_SUBSET
45
+ IS NOT NULL
46
+ MICROSECOND
47
+ NOT BETWEEN
48
+ PERIOD_DIFF
49
+ SEC_TO_TIME
50
+ SOUNDS LIKE
51
+ STDDEV_SAMP
52
+ STR_TO_DATE
53
+ SYSTEM_USER
54
+ TIME_FORMAT
55
+ TIME_TO_SEC
56
+ WITH ROLLUP
57
+ BIT_LENGTH
58
+ CONVERT_TZ
59
+ DAYOFMONTH
60
+ EXPORT_SET
61
+ FOUND_ROWS
62
+ GET_FORMAT
63
+ INET6_ATON
64
+ INET6_NTOA
65
+ NAME_CONST
66
+ NOT REGEXP
67
+ PERIOD_ADD
68
+ STDDEV_POP
69
+ TO_SECONDS
70
+ UNCOMPRESS
71
+ UUID_SHORT
72
+ WEEKOFYEAR
73
+ BENCHMARK
74
+ BIT_COUNT
75
+ COLLATION
76
+ CONCAT_WS
77
+ DAYOFWEEK
78
+ DAYOFYEAR
79
+ FROM_DAYS
80
+ INET_ATON
81
+ INET_NTOA
82
+ LOAD_FILE
83
+ LOCALTIME
84
+ MONTHNAME
85
+ ROW_COUNT
86
+ SUBSTRING
87
+ TIMESTAMP
88
+ TO_BASE64
89
+ UpdateXML
90
+ COALESCE
91
+ COMPRESS
92
+ DATABASE
93
+ DATE_ADD
94
+ DATE_SUB
95
+ DATEDIFF
96
+ DISTINCT
97
+ GET_LOCK
98
+ GREATEST
99
+ INTERVAL
100
+ LAST_DAY
101
+ MAKE_SET
102
+ MAKEDATE
103
+ MAKETIME
104
+ NOT LIKE
105
+ NOT LIKE
106
+ PASSWORD
107
+ POSITION
108
+ TIMEDIFF
109
+ TRUNCATE
110
+ UTC_DATE
111
+ UTC_TIME
112
+ VAR_SAMP
113
+ VARIANCE
114
+ YEARWEEK
115
+ ADDDATE
116
+ ADDTIME
117
+ BETWEEN
118
+ BIT_AND
119
+ BIT_XOR
120
+ CEILING
121
+ CHARSET
122
+ CONVERT
123
+ CURDATE
124
+ CURTIME
125
+ DAYNAME
126
+ DEFAULT
127
+ DEGREES
128
+ ENCRYPT
129
+ EXTRACT
130
+ IS NULL
131
+ IS_IPV4
132
+ IS_IPV6
133
+ QUARTER
134
+ RADIANS
135
+ REPLACE
136
+ REVERSE
137
+ SOUNDEX
138
+ SUBDATE
139
+ SUBTIME
140
+ SYSDATE
141
+ TO_DAYS
142
+ VAR_POP
143
+ VERSION
144
+ WEEKDAY
145
+ BINARY
146
+ BIT_OR
147
+ CONCAT
148
+ DECODE
149
+ ENCODE
150
+ FORMAT
151
+ IFNULL
152
+ INSERT
153
+ IS NOT
154
+ ISNULL
155
+ LENGTH
156
+ LOCATE
157
+ MINUTE
158
+ NOT IN
159
+ NULLIF
160
+ REGEXP
161
+ REPEAT
162
+ SCHEMA
163
+ SECOND
164
+ STDDEV
165
+ STRCMP
166
+ STRCMP
167
+ SUBSTR
168
+ VALUES
169
+ ASCII
170
+ ATAN2
171
+ COUNT
172
+ CRC32
173
+ FIELD
174
+ FLOOR
175
+ INSTR
176
+ LCASE
177
+ LEAST
178
+ LOG10
179
+ LOWER
180
+ LTRIM
181
+ MATCH
182
+ MONTH
183
+ POWER
184
+ QUOTE
185
+ RIGHT
186
+ RLIKE
187
+ ROUND
188
+ RTRIM
189
+ SLEEP
190
+ SPACE
191
+ UCASE
192
+ UNHEX
193
+ UPPER
194
+ ACOS
195
+ ASIN
196
+ ATAN
197
+ ATAN
198
+ CASE
199
+ CAST
200
+ CEIL
201
+ CHAR
202
+ CONV
203
+ DATE
204
+ HOUR
205
+ LEFT
206
+ LIKE
207
+ LIKE
208
+ LOG2
209
+ LPAD
210
+ RAND
211
+ RAND
212
+ RPAD
213
+ SHA1
214
+ SHA2
215
+ SIGN
216
+ SQRT
217
+ THEN
218
+ TIME
219
+ TRIM
220
+ USER
221
+ UUID
222
+ WEEK
223
+ WHEN
224
+ YEAR
225
+ ABS
226
+ AND
227
+ AVG
228
+ BIN
229
+ COS
230
+ COT
231
+ DAY
232
+ ELT
233
+ EXP
234
+ HEX
235
+ LOG
236
+ MAX
237
+ MD5
238
+ MID
239
+ MIN
240
+ MOD
241
+ NOW
242
+ OCT
243
+ ORD
244
+ POW
245
+ SHA
246
+ SIN
247
+ STD
248
+ SUM
249
+ TAN
250
+ IF
251
+ IN
252
+ IS
253
+ LN
254
+ PI
langs/mysql/mysql.txt ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ### MySQL LANGUAGE ###
2
+
3
+ # ELEMENT_NAME [optional-css-class] REGULAR_EXPRESSION
4
+
5
+ NAME MySQL
6
+ VERSION 5.7
7
+
8
+ COMMENT (/\*.*?\*/)|(--.*?$)|(#.*?$)
9
+ STRING ((?<!\\)'.*?(?<!\\)')|((?<!\\)".*?(?<!\\)")
10
+
11
+ STATEMENT \b(?alt:statement.txt)\b
12
+ RESERVED \b(?alt:reserved.txt)\b
13
+ TYPE \b(?alt:type.txt)\b
14
+
15
+ BUILT_IN:ENTITY \b(?alt:built.in.func.txt)\b
16
+ IDENTIFIER ((?<!\\)".*?(?<!\\)")
17
+ OPERATOR \b(?alt:operator.txt)\b
18
+
langs/mysql/operator.txt ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # logical
2
+ AND
3
+ OR
4
+ NOT
5
+ # comparison
6
+ <=>
7
+ =
8
+ >=
9
+ >
10
+ <=
11
+ <
12
+ !=
13
+ <>
14
+ # arithmetic
15
+ DIV
16
+ /
17
+ -
18
+ %
19
+ +
20
+ *
21
+ MOD
22
+ # logical
23
+ AND
24
+ NOT
25
+ ||
26
+ XOR
27
+ &&
28
+ !
29
+ OR
30
+ # assignment
31
+ =
32
+ :=
33
+ #bit
34
+ &
35
+ ~
36
+ |
37
+ ^
38
+ <<
39
+ >>
langs/mysql/reserved.txt ADDED
@@ -0,0 +1,214 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ MASTER_SSL_VERIFY_SERVER_CERT
2
+ SQL_CALC_FOUND_ROWS
3
+ MINUTE_MICROSECOND
4
+ NO_WRITE_TO_BINLOG
5
+ SECOND_MICROSECOND
6
+ CURRENT_TIMESTAMP
7
+ HOUR_MICROSECOND
8
+ SQL_SMALL_RESULT
9
+ DAY_MICROSECOND
10
+ IO_BEFORE_GTIDS
11
+ IO_AFTER_GTIDS
12
+ LOCALTIMESTAMP
13
+ SQL_BIG_RESULT
14
+ DETERMINISTIC
15
+ HIGH_PRIORITY
16
+ MINUTE_SECOND
17
+ STRAIGHT_JOIN
18
+ UTC_TIMESTAMP
19
+ CURRENT_DATE
20
+ CURRENT_TIME
21
+ CURRENT_USER
22
+ LOW_PRIORITY
23
+ SQLEXCEPTION
24
+ VARCHARACTER
25
+ DISTINCTROW
26
+ HOUR_MINUTE
27
+ HOUR_SECOND
28
+ INSENSITIVE
29
+ MASTER_BIND
30
+ NONBLOCKING
31
+ ACCESSIBLE
32
+ ASENSITIVE
33
+ CONSTRAINT
34
+ DAY_MINUTE
35
+ DAY_SECOND
36
+ OPTIONALLY
37
+ READ_WRITE
38
+ REFERENCES
39
+ SQLWARNING
40
+ TERMINATED
41
+ YEAR_MONTH
42
+ CHARACTER
43
+ CONDITION
44
+ DATABASES
45
+ LOCALTIME
46
+ MIDDLEINT
47
+ PARTITION
48
+ PRECISION
49
+ PROCEDURE
50
+ SENSITIVE
51
+ SEPARATOR
52
+ VARBINARY
53
+ CONTINUE
54
+ DATABASE
55
+ DAY_HOUR
56
+ DESCRIBE
57
+ DISTINCT
58
+ ENCLOSED
59
+ FULLTEXT
60
+ INTERVAL
61
+ MAXVALUE
62
+ MODIFIES
63
+ OPTIMIZE
64
+ RESIGNAL
65
+ RESTRICT
66
+ SPECIFIC
67
+ SQLSTATE
68
+ STARTING
69
+ TRAILING
70
+ UNSIGNED
71
+ UTC_DATE
72
+ UTC_TIME
73
+ ZEROFILL
74
+ ANALYZE
75
+ BETWEEN
76
+ CASCADE
77
+ COLLATE
78
+ CONVERT
79
+ DECLARE
80
+ DEFAULT
81
+ DELAYED
82
+ ESCAPED
83
+ EXPLAIN
84
+ FOREIGN
85
+ ITERATE
86
+ LEADING
87
+ NATURAL
88
+ NUMERIC
89
+ OUTFILE
90
+ PRIMARY
91
+ RELEASE
92
+ REPLACE
93
+ REQUIRE
94
+ SCHEMAS
95
+ SPATIAL
96
+ TRIGGER
97
+ VARYING
98
+ BEFORE
99
+ CHANGE
100
+ COLUMN
101
+ CREATE
102
+ CURSOR
103
+ DELETE
104
+ ELSEIF
105
+ EXISTS
106
+ FLOAT4
107
+ FLOAT8
108
+ HAVING
109
+ IGNORE
110
+ INFILE
111
+ INSERT
112
+ LINEAR
113
+ OPTION
114
+ REGEXP
115
+ RENAME
116
+ REPEAT
117
+ RETURN
118
+ REVOKE
119
+ SCHEMA
120
+ SELECT
121
+ SIGNAL
122
+ UNIQUE
123
+ UNLOCK
124
+ UPDATE
125
+ VALUES
126
+ ALTER
127
+ CHECK
128
+ CROSS
129
+ FETCH
130
+ FLOAT
131
+ FORCE
132
+ GRANT
133
+ GROUP
134
+ INDEX
135
+ INNER
136
+ INOUT
137
+ LEAVE
138
+ LIMIT
139
+ LINES
140
+ MATCH
141
+ ORDER
142
+ OUTER
143
+ PURGE
144
+ RANGE
145
+ READS
146
+ RIGHT
147
+ RLIKE
148
+ TABLE
149
+ UNION
150
+ USAGE
151
+ USING
152
+ WHERE
153
+ WHILE
154
+ WRITE
155
+ FALSE
156
+ BOTH
157
+ CALL
158
+ CASE
159
+ DESC
160
+ DROP
161
+ DUAL
162
+ EACH
163
+ ELSE
164
+ EXIT
165
+ FROM
166
+ INT1
167
+ INT2
168
+ INT3
169
+ INT4
170
+ INT8
171
+ INTO
172
+ JOIN
173
+ KEYS
174
+ KILL
175
+ LEFT
176
+ LIKE
177
+ LOAD
178
+ LOCK
179
+ LONG
180
+ LOOP
181
+ NULL
182
+ READ
183
+ REAL
184
+ SHOW
185
+ THEN
186
+ UNDO
187
+ WHEN
188
+ WITH
189
+ TRUE
190
+ ADD
191
+ ALL
192
+ AND
193
+ ASC
194
+ DEC
195
+ DIV
196
+ FOR
197
+ GET
198
+ KEY
199
+ MOD
200
+ NOT
201
+ OUT
202
+ SET
203
+ SQL
204
+ SSL
205
+ USE
206
+ XOR
207
+ AS
208
+ BY
209
+ IF
210
+ IN
211
+ IS
212
+ ON
213
+ OR
214
+ TO
langs/mysql/statement.txt ADDED
@@ -0,0 +1,414 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ MASTER_SSL_VERIFY_SERVER_CERT
2
+ CREATE AGGREGATE FUNCTION
3
+ MAX_CONNECTIONS_PER_HOUR
4
+ NATURAL RIGHT OUTER JOIN
5
+ WITH CONSISTENT SNAPSHOT
6
+ MASTER_HEARTBEAT_PERIOD
7
+ NATURAL LEFT OUTER JOIN
8
+ ON DUPLICATE KEY UPDATE
9
+ LOAD INDEX INTO CACHE
10
+ REVOKE ALL PRIVILEGES
11
+ ROLLBACK TO SAVEPOINT
12
+ FOREIGN DATA WRAPPER
13
+ MASTER_CONNECT_RETRY
14
+ MAX_QUERIES_PER_HOUR
15
+ MAX_UPDATES_PER_HOUR
16
+ MAX_USER_CONNECTIONS
17
+ SQL_CALC_FOUND_ROWS
18
+ DEALLOCATE PREPARE
19
+ LOCK IN SHARE MODE
20
+ MASTER_RETRY_COUNT
21
+ MASTER_SSL_CRLPATH
22
+ NATURAL RIGHT JOIN
23
+ NO_WRITE_TO_BINLOG
24
+ ROWS IDENTIFIED BY
25
+ SQL_AFTER_MTS_GAPS
26
+ CHANGER MASTER TO
27
+ IGNORE_SERVER_IDS
28
+ MASTER_SSL_CAPATH
29
+ MASTER_SSL_CIPHER
30
+ MODIFIES SQL DATA
31
+ NATURAL LEFT JOIN
32
+ NOT DETERMINISTIC
33
+ RELEASE SAVEPOINT
34
+ SQL_BUFFER_RESULT
35
+ START TRANSACTION
36
+ STATS_AUTO_RECALC
37
+ WITH GRANT OPTION
38
+ DISABLE ON SLAVE
39
+ PROCEDURE STATUS
40
+ READ UNCOMMITTED
41
+ RIGHT OUTER JOIN
42
+ SET PASSWORD FOR
43
+ SQL_BEFORE_GTIDS
44
+ SQL_SMALL_RESULT
45
+ STATS_PERSISTENT
46
+ UNINSTALL PLUGIN
47
+ CREATE FUNCTION
48
+ DELAY_KEY_WRITE
49
+ FUNCTION STATUS
50
+ IDENTIFIED WITH
51
+ INDEX DIRECTORY
52
+ ISOLATION LEVEL
53
+ KILL CONNECTION
54
+ LEFT OUTER JOIN
55
+ MASTER_LOG_FILE
56
+ MASTER_PASSWORD
57
+ MASTER_POS_WAIT
58
+ MASTER_SSL_CERT
59
+ PASSWORD EXPIRE
60
+ RELAYLOG EVENTS
61
+ REPEATABLE READ
62
+ REVOKE PROXY ON
63
+ SET TRANSACTION
64
+ SQL_AFTER_GTIDS
65
+ SUBPARTITION BY
66
+ AUTO_INCREMENT
67
+ AVG_ROW_LENGTH
68
+ CHECKSUM TABLE
69
+ DATA DIRECTORY
70
+ FOR CONNECTION
71
+ GRANT PROXY ON
72
+ INSTALL PLUGIN
73
+ KEY_BLOCK_SIZE
74
+ MASTER_LOG_POS
75
+ MASTER_SSL_CRL
76
+ MASTER_SSL_KEY
77
+ PROCEDURE CODE
78
+ READ COMMITTED
79
+ READS SQL DATA
80
+ RELAY_LOG_FILE
81
+ SQL_BIG_RESULT
82
+ UNION DISTINCT
83
+ CHARACTER SET
84
+ COLUMN_FORMAT
85
+ DETERMINISTIC
86
+ DROP FUNCTION
87
+ FUNCTION CODE
88
+ HIGH_PRIORITY
89
+ IDENTIFIED BY
90
+ IF NOT EXISTS
91
+ IGNORE LEAVES
92
+ INSERT_METHOD
93
+ INTO DUMPFILE
94
+ MASTER STATUS
95
+ MASTER_SSL_CA
96
+ MATCH PARTIAL
97
+ MINUTE_SECOND
98
+ ON COMPLETION
99
+ RELAY_LOG_POS
100
+ STRAIGHT_JOIN
101
+ SUBPARTITIONS
102
+ TERMINATED BY
103
+ UNLOCK TABLES
104
+ AND NO CHAIN
105
+ CHECK OPTION
106
+ CONTAINS SQL
107
+ CURRENT_USER
108
+ DEFAULT_AUTH
109
+ DROP PREPARE
110
+ FOR EACH ROW
111
+ FOR GROUP BY
112
+ FOR ORDER BY
113
+ GRANT OPTION
114
+ INTO OUTFILE
115
+ LANGUAGE SQL
116
+ LOW PRIORITY
117
+ MASTER_DELAY
118
+ MATCH SIMPLE
119
+ NOT PRESERVE
120
+ OLD_PASSWORD
121
+ PARTITION BY
122
+ RESET MASTER
123
+ SELECT COUNT
124
+ SERIALIZABLE
125
+ SET PASSWORD
126
+ SLAVE STATUS
127
+ SQL SECURITY
128
+ SQL_NO_CACHE
129
+ TABLE STATUS
130
+ BINARY LOGS
131
+ CACHE INDEX
132
+ CHECK TABLE
133
+ CREATE USER
134
+ DISTINCTROW
135
+ ENCLOSED BY
136
+ FOR UPGRADE
137
+ FOREIGN KEY
138
+ HOUR_MINUTE
139
+ HOUR_SECOND
140
+ LOCK TABLES
141
+ MASTER LOGS
142
+ MASTER_BIND
143
+ MASTER_HOST
144
+ MASTER_PORT
145
+ MASTER_USER
146
+ ON SCHEDULE
147
+ OPEN TABLES
148
+ PRIMARY KEY
149
+ PROCESSLIST
150
+ QUERY CACHE
151
+ RENAME USER
152
+ RESET SLAVE
153
+ SLAVE HOSTS
154
+ START SLAVE
155
+ STARTING BY
156
+ TRADITIONAL
157
+ TRANSACTION
158
+ WITH PARSER
159
+ WITH ROLLUP
160
+ ALTER USER
161
+ COMPRESSED
162
+ CONCURRENT
163
+ CONNECTION
164
+ CONSTRAINT
165
+ CROSS JOIN
166
+ DAY_MINUTE
167
+ DAY_SECOND
168
+ END REPEAT
169
+ ESCAPED BY
170
+ FOR UPDATE
171
+ INNER JOIN
172
+ KILL QUERY
173
+ MASTER_SSL
174
+ MATCH FULL
175
+ NO RELEASE
176
+ OPTIONALLY
177
+ OR REPLACE
178
+ PARTITIONS
179
+ PLUGIN_DIR
180
+ PRIVILEGES
181
+ READ WRITE
182
+ REFERENCES
183
+ RIGHT JOIN
184
+ ROW_FORMAT
185
+ SET GLOBAL
186
+ SQL_THREAD
187
+ STOP SLAVE
188
+ YEAR_MONTH
189
+ ALGORITHM
190
+ AND CHAIN
191
+ DATABASES
192
+ DELIMITER
193
+ END WHILE
194
+ IF EXISTS
195
+ IO_THREAD
196
+ LEFT JOIN
197
+ LESS THAN
198
+ LOAD DATA
199
+ ON DELETE
200
+ ON UPDATE
201
+ PACK_KEYS
202
+ PARTITION
203
+ PROCEDURE
204
+ READ ONLY
205
+ REDUNDANT
206
+ SAVEPOINT
207
+ SQL_CACHE
208
+ TEMPORARY
209
+ TEMPTABLE
210
+ UNDEFINED
211
+ UNION ALL
212
+ USE INDEX
213
+ VARIABLES
214
+ CASCADED
215
+ CHECKSUM
216
+ DATABASE
217
+ DAY_HOUR
218
+ DESCRIBE
219
+ DISTINCT
220
+ END CASE
221
+ END LOOP
222
+ EXTENDED
223
+ FOR JOIN
224
+ FULLTEXT
225
+ FUNCTION
226
+ INTERVAL
227
+ LOAD XML
228
+ MAX_ROWS
229
+ MIN_ROWS
230
+ NOT NULL
231
+ OPTIMIZE
232
+ ORDER BY
233
+ PASSWORD
234
+ PRECEDES
235
+ PRESERVE
236
+ ROLLBACK
237
+ TRIGGERS
238
+ TRUNCATE
239
+ UNSIGNED
240
+ WARNINGS
241
+ ZEROFILL
242
+ ANALYZE
243
+ CHANGED
244
+ COLLATE
245
+ COLUMNS
246
+ COMMENT
247
+ COMPACT
248
+ DECIMAL
249
+ DECLARE
250
+ DEFAULT
251
+ DEFINER
252
+ DELAYED
253
+ DISABLE
254
+ DYNAMIC
255
+ ENGINES
256
+ EXECUTE
257
+ EXPLAIN
258
+ FOLLOWS
259
+ HANDLER
260
+ INTEGER
261
+ INVOKER
262
+ ITERATE
263
+ OPTIONS
264
+ PLUGINS
265
+ PREPARE
266
+ QUARTER
267
+ RELEASE
268
+ REPLACE
269
+ REQUIRE
270
+ RETURNS
271
+ SESSION
272
+ SPATIAL
273
+ STORAGE
274
+ SUBJECT
275
+ TRIGGER
276
+ USE KEY
277
+ USE_FRM
278
+ BEFORE
279
+ BINARY
280
+ BINLOG
281
+ CIPHER
282
+ COMMIT
283
+ CREATE
284
+ DELETE
285
+ ELSEIF
286
+ ENABLE
287
+ END IF
288
+ ENGINE
289
+ ERRORS
290
+ EVENTS
291
+ FIELDS
292
+ FORMAT
293
+ GLOBAL
294
+ GRANTS
295
+ HAVING
296
+ IGNORE
297
+ INFILE
298
+ INSERT
299
+ ISSUER
300
+ LINEAR
301
+ MASTER
302
+ MEDIUM
303
+ MERGED
304
+ MINUTE
305
+ NO SQL
306
+ OFFSET
307
+ RENAME
308
+ REPAIR
309
+ REPEAT
310
+ RESUME
311
+ RETURN
312
+ REVOKE
313
+ SCHEMA
314
+ SECOND
315
+ SELECT
316
+ SERVER
317
+ SOCKET
318
+ SONAME
319
+ STARTS
320
+ STATUS
321
+ STRING
322
+ TABLES
323
+ UNIQUE
324
+ UPDATE
325
+ VALUES
326
+ AFTER
327
+ ALTER
328
+ BEGIN
329
+ BTREE
330
+ CLOSE
331
+ EVENT
332
+ EVERY
333
+ FIRST
334
+ FIZED
335
+ FLUSH
336
+ FORCE
337
+ GRANT
338
+ INDEX
339
+ INOUT
340
+ LEAVE
341
+ LIMIT
342
+ LINES
343
+ LOCAL
344
+ MONTH
345
+ OWNER
346
+ PURGE
347
+ QUICK
348
+ RANGE
349
+ RESET
350
+ SLAVE
351
+ TABLE
352
+ UNION
353
+ UNTIL
354
+ USING
355
+ VALUE
356
+ WHERE
357
+ WHILE
358
+ CALL
359
+ CASE
360
+ DESC
361
+ DROP
362
+ ELSE
363
+ ENDS
364
+ FAST
365
+ FROM
366
+ HASH
367
+ HELP
368
+ HOST
369
+ HOUR
370
+ INTO
371
+ JOIN
372
+ JSON
373
+ LAST
374
+ LIKE
375
+ LIST
376
+ LOGS
377
+ LOOP
378
+ NEXT
379
+ NONE
380
+ NULL
381
+ OPEN
382
+ PORT
383
+ PREV
384
+ READ
385
+ REAL
386
+ ROWS
387
+ SHOW
388
+ THEN
389
+ USER
390
+ VIEW
391
+ WEEK
392
+ WHEN
393
+ WITH
394
+ WORK
395
+ X509
396
+ YEAR
397
+ ALL
398
+ ASC
399
+ DAY
400
+ END
401
+ KEY
402
+ OUT
403
+ SET
404
+ SSL
405
+ USE
406
+ AS
407
+ AT
408
+ DO
409
+ IF
410
+ IN
411
+ NO
412
+ OJ
413
+ ON
414
+ TO
langs/mysql/type.txt ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ MEDIUMBLOB
2
+ MEDIUMTEXT
3
+ MEDIUMINT
4
+ TIMESTAMP
5
+ VARBINARY
6
+ DATETIME
7
+ LONGBLOB
8
+ LONGTEXT
9
+ SMALLINT
10
+ TINYBLOB
11
+ TINYTEXT
12
+ BOOLEAN
13
+ DECIMAL
14
+ INTEGER
15
+ NUMERIC
16
+ TINYINT
17
+ VARCHAR
18
+ BIGINT
19
+ BINARY
20
+ DOUBLE
21
+ FLOAT
22
+ BLOB
23
+ BOOL
24
+ CHAR
25
+ DATE
26
+ ENUM
27
+ TEXT
28
+ TIME
29
+ YEAR
30
+ BIT
31
+ INT
32
+ SET
readme.txt CHANGED
@@ -99,6 +99,7 @@ See the <a href="http://aramk.com/projects/crayon-language-file-specification/"
99
  * MIVA Script
100
  * Monkey (thanks to <a href="https://github.com/devolonter" target="_blank">Devolonter</a>)
101
  * MS-DOS (thanks to <a href="http://www.amigalog.com/?p=334" target="_blank">http://www.amigalog.com/?p=334</a>)
 
102
  * Java
103
  * JavaScript
104
  * Objective-C
@@ -250,6 +251,12 @@ Contact me at http://twitter.com/crayonsyntax or crayon.syntax@gmail.com.
250
 
251
  == Changelog ==
252
 
 
 
 
 
 
 
253
  = 2.3.1 =
254
  * ADDED:
255
  * New setting to remove &lt;code&gt; blocks surrounding the code, often not intended to be in the code itself
99
  * MIVA Script
100
  * Monkey (thanks to <a href="https://github.com/devolonter" target="_blank">Devolonter</a>)
101
  * MS-DOS (thanks to <a href="http://www.amigalog.com/?p=334" target="_blank">http://www.amigalog.com/?p=334</a>)
102
+ * MySQL (thanks to <a href="http://assemblysys.com/" target="_blank">AssemblySys.com</a>)
103
  * Java
104
  * JavaScript
105
  * Objective-C
251
 
252
  == Changelog ==
253
 
254
+ = 2.4.0 =
255
+ * ADDED:
256
+ * MySQL language
257
+ * FIXED:
258
+ * Replaced Fancybox with Colorbox to comply with GPLv2
259
+
260
  = 2.3.1 =
261
  * ADDED:
262
  * New setting to remove &lt;code&gt; blocks surrounding the code, often not intended to be in the code itself
trans/crayon-syntax-highlighter-tr_TR.mo CHANGED
Binary file
trans/crayon-syntax-highlighter-tr_TR.po CHANGED
@@ -2,7 +2,7 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: crayon-syntax-highlighter\n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2013-03-26 06:24+0200\n"
6
  "PO-Revision-Date: \n"
7
  "Last-Translator: HakanEr <hakanerwptr@gmail.com>\n"
8
  "Language-Team: hakaner <hakanerwptr@gmail.com>\n"
@@ -17,164 +17,164 @@ msgstr ""
17
  "crayon__;crayon_e;crayon_n\n"
18
  "X-Poedit-Basepath: .\n"
19
  "X-Textdomain-Support: yes\n"
20
- "X-Generator: Poedit 1.5.5\n"
21
  "X-Poedit-SearchPath-0: .\n"
22
  "X-Poedit-SearchPath-1: ..\n"
23
 
24
  # @ crayon-syntax-highlighter
25
- #: ../crayon_formatter.class.php:287
26
  msgid "Toggle Line Numbers"
27
  msgstr "Satır Numaralarına Geç"
28
 
29
  # @ crayon-syntax-highlighter
30
- #: ../crayon_formatter.class.php:291
31
  msgid "Toggle Plain Code"
32
  msgstr "Düz Koda Geç"
33
 
34
  # @ crayon-syntax-highlighter
35
- #: ../crayon_formatter.class.php:295
36
  msgid "Toggle Line Wrap"
37
  msgstr "Satır Sarımına Geç"
38
 
39
  # @ crayon-syntax-highlighter
40
- #: ../crayon_formatter.class.php:299 ../crayon_formatter.class.php:303
41
  msgid "Expand Code"
42
  msgstr "Kodu Genişlet"
43
 
44
  # @ crayon-syntax-highlighter
45
- #: ../crayon_formatter.class.php:307
46
  msgid "Open Code In New Window"
47
  msgstr "Kodu Yeni Pencerede Aç"
48
 
49
  # @ crayon-syntax-highlighter
50
- #: ../crayon_formatter.class.php:334
51
  msgid "Contains Mixed Languages"
52
  msgstr "Karışık Diller içerir"
53
 
54
  # @ crayon-syntax-highlighter
55
- #: ../crayon_settings.class.php:150
56
  msgid "Hourly"
57
  msgstr "Saatlik"
58
 
59
  # @ crayon-syntax-highlighter
60
- #: ../crayon_settings.class.php:150
61
  msgid "Daily"
62
  msgstr "Günlük"
63
 
64
  # @ crayon-syntax-highlighter
65
- #: ../crayon_settings.class.php:151
66
  msgid "Weekly"
67
  msgstr "Haftalık"
68
 
69
  # @ crayon-syntax-highlighter
70
- #: ../crayon_settings.class.php:151
71
  msgid "Monthly"
72
  msgstr "Aylık"
73
 
74
  # @ crayon-syntax-highlighter
75
- #: ../crayon_settings.class.php:152
76
  msgid "Immediately"
77
  msgstr "Hemen"
78
 
79
  # @ crayon-syntax-highlighter
80
- #: ../crayon_settings.class.php:163 ../crayon_settings.class.php:167
81
  msgid "Max"
82
  msgstr "Max"
83
 
84
  # @ crayon-syntax-highlighter
85
- #: ../crayon_settings.class.php:163 ../crayon_settings.class.php:167
86
  msgid "Min"
87
  msgstr "Min"
88
 
89
  # @ crayon-syntax-highlighter
90
- #: ../crayon_settings.class.php:163 ../crayon_settings.class.php:167
91
  msgid "Static"
92
  msgstr "Sabit"
93
 
94
  # @ crayon-syntax-highlighter
95
- #: ../crayon_settings.class.php:165 ../crayon_settings.class.php:169
96
  #: ../crayon_settings_wp.class.php:774 ../crayon_settings_wp.class.php:783
97
  #: ../crayon_settings_wp.class.php:1059 ../crayon_settings_wp.class.php:1061
98
  msgid "Pixels"
99
  msgstr "Piksel"
100
 
101
  # @ crayon-syntax-highlighter
102
- #: ../crayon_settings.class.php:165 ../crayon_settings.class.php:169
103
  msgid "Percent"
104
  msgstr "Yüzde"
105
 
106
  # @ crayon-syntax-highlighter
107
- #: ../crayon_settings.class.php:178
108
  msgid "None"
109
  msgstr "Yok"
110
 
111
  # @ crayon-syntax-highlighter
112
- #: ../crayon_settings.class.php:178
113
  msgid "Left"
114
  msgstr "Sol"
115
 
116
  # @ crayon-syntax-highlighter
117
- #: ../crayon_settings.class.php:178
118
  msgid "Center"
119
  msgstr "Merkez"
120
 
121
  # @ crayon-syntax-highlighter
122
- #: ../crayon_settings.class.php:178
123
  msgid "Right"
124
  msgstr "Sağ"
125
 
126
  # @ crayon-syntax-highlighter
127
- #: ../crayon_settings.class.php:180 ../crayon_settings.class.php:204
128
  msgid "On MouseOver"
129
  msgstr "Fare Üstündeyken"
130
 
131
  # @ crayon-syntax-highlighter
132
- #: ../crayon_settings.class.php:180 ../crayon_settings.class.php:186
133
  msgid "Always"
134
  msgstr "Herzaman"
135
 
136
  # @ crayon-syntax-highlighter
137
- #: ../crayon_settings.class.php:180 ../crayon_settings.class.php:186
138
  msgid "Never"
139
  msgstr "Asla"
140
 
141
  # @ crayon-syntax-highlighter
142
- #: ../crayon_settings.class.php:186
143
  msgid "When Found"
144
  msgstr "Bulunduğunda"
145
 
146
  # @ crayon-syntax-highlighter
147
- #: ../crayon_settings.class.php:204
148
  msgid "On Double Click"
149
  msgstr "Çift Tık ile aç"
150
 
151
  # @ crayon-syntax-highlighter
152
- #: ../crayon_settings.class.php:204
153
  msgid "On Single Click"
154
  msgstr "Tek Tık ile aç"
155
 
156
  # @ crayon-syntax-highlighter
157
- #: ../crayon_settings.class.php:204
158
  msgid "Disable Mouse Events"
159
  msgstr "Fare Etkinliği Devre Dışı"
160
 
161
  # @ crayon-syntax-highlighter
162
- #: ../crayon_settings.class.php:211
163
  msgid "An error has occurred. Please try again later."
164
  msgstr "Bir hata meydana geldi. Daha sonra tekrar deneyin."
165
 
166
  # @ crayon-syntax-highlighter
167
- #: ../crayon_settings.class.php:227
168
  msgid "Inline Tag"
169
  msgstr "Satıriçi Etiket"
170
 
171
- #: ../crayon_settings.class.php:227
172
  msgid "Block Tag"
173
  msgstr "Blok Etiket"
174
 
175
  # @ crayon-syntax-highlighter
176
  #: ../crayon_settings_wp.class.php:53 ../crayon_settings_wp.class.php:210
177
- #: ../crayon_settings_wp.class.php:1255
178
  #: ../util/tag-editor/crayon_tag_editor_wp.class.php:254
179
  msgid "Settings"
180
  msgstr "Ayarlar"
@@ -637,53 +637,58 @@ msgstr "Kısakod içeriğini çevreleyen beyaz alanları kaldır"
637
 
638
  # @ crayon-syntax-highlighter
639
  #: ../crayon_settings_wp.class.php:1095
 
 
 
 
 
640
  msgid "Allow Mixed Language Highlighting with delimiters and tags."
641
  msgstr "Sınırlayıcılar ve etiketler ile Karışık Dil Vurgulamaya izin ver."
642
 
643
  # @ crayon-syntax-highlighter
644
- #: ../crayon_settings_wp.class.php:1097
645
  msgid "Show Mixed Language Icon (+)"
646
  msgstr "Karışık Dil Simgesini Göster (+)"
647
 
648
  # @ crayon-syntax-highlighter
649
- #: ../crayon_settings_wp.class.php:1099
650
  msgid "Tab size in spaces"
651
  msgstr "Boşluk sekme boyutu"
652
 
653
- #: ../crayon_settings_wp.class.php:1101
654
  msgid "Blank lines before code:"
655
  msgstr "Kod öncesi boş satırlar:"
656
 
657
- #: ../crayon_settings_wp.class.php:1103
658
  msgid "Blank lines after code:"
659
  msgstr "Kod sonrası boş satırlar:"
660
 
661
  # @ crayon-syntax-highlighter
662
- #: ../crayon_settings_wp.class.php:1108
663
  msgid "Capture Inline Tags"
664
  msgstr "Satır içi Etiketleri Yakala"
665
 
666
  # @ crayon-syntax-highlighter
667
- #: ../crayon_settings_wp.class.php:1109
668
  msgid "Wrap Inline Tags"
669
  msgstr "Satıriçi Etiketleri Sar"
670
 
671
  # @ crayon-syntax-highlighter
672
- #: ../crayon_settings_wp.class.php:1110
673
  msgid "Capture &lt;code&gt; as"
674
  msgstr "&lt;code&gt; yakalama şekli"
675
 
676
  # @ crayon-syntax-highlighter
677
- #: ../crayon_settings_wp.class.php:1114
678
  msgid "Capture `backquotes` as &lt;code&gt;"
679
  msgstr "&lt;code&gt; olarak `backquotes` yakalayın"
680
 
681
  # @ crayon-syntax-highlighter
682
- #: ../crayon_settings_wp.class.php:1115
683
  msgid "Capture &lt;pre&gt; tags as Crayons"
684
  msgstr "&lt;pre&gt; etiketleri Crayons olarak yakala"
685
 
686
- #: ../crayon_settings_wp.class.php:1117
687
  #, php-format
688
  msgid ""
689
  "Using this markup for Mini Tags and Inline tags is now %sdepreciated%s! Use "
@@ -694,22 +699,22 @@ msgstr ""
694
  "kullanın ve eski etiketleri dönüştürün."
695
 
696
  # @ crayon-syntax-highlighter
697
- #: ../crayon_settings_wp.class.php:1118
698
  msgid "Capture Mini Tags like [php][/php] as Crayons."
699
  msgstr "Crayons olarak [php][/php] gibi küçük etiketleri yakala."
700
 
701
  # @ crayon-syntax-highlighter
702
- #: ../crayon_settings_wp.class.php:1119
703
  msgid "Capture Inline Tags like {php}{/php} inside sentences."
704
  msgstr "Cümle içinde {php}{/php} gibi satıriçi etiketleri yakalayın."
705
 
706
  # @ crayon-syntax-highlighter
707
- #: ../crayon_settings_wp.class.php:1120
708
  msgid "Enable [plain][/plain] tag."
709
  msgstr "[plain][/plain] etiketi etkin."
710
 
711
  # @ crayon-syntax-highlighter
712
- #: ../crayon_settings_wp.class.php:1125
713
  msgid ""
714
  "When loading local files and a relative path is given for the URL, use the "
715
  "absolute path"
@@ -718,24 +723,24 @@ msgstr ""
718
  "yolu kullan"
719
 
720
  # @ crayon-syntax-highlighter
721
- #: ../crayon_settings_wp.class.php:1128
722
  msgid "Followed by your relative URL."
723
  msgstr "Bağlantılı URL tarafından izlendi."
724
 
725
- #: ../crayon_settings_wp.class.php:1135
726
  msgid "Convert Legacy Tags"
727
  msgstr "Eski Etiketleri Dönüştür"
728
 
729
- #: ../crayon_settings_wp.class.php:1138
730
  msgid "No Legacy Tags Found"
731
  msgstr "Eski Etiketler Bulunamadı"
732
 
733
- #: ../crayon_settings_wp.class.php:1142
734
  msgid "Encode"
735
  msgstr "Kodla"
736
 
737
  # @ crayon-syntax-highlighter
738
- #: ../crayon_settings_wp.class.php:1144
739
  #, php-format
740
  msgid ""
741
  "Use %s to separate setting names from values in the &lt;pre&gt; class "
@@ -744,7 +749,7 @@ msgstr ""
744
  "%s kullanarak &lt;pre&gt; sınıf niteliği içinde ayar adlarını değerlerden "
745
  "ayır"
746
 
747
- #: ../crayon_settings_wp.class.php:1147
748
  msgid ""
749
  "Display the Tag Editor in any TinyMCE instances on the frontend (e.g. "
750
  "bbPress)"
@@ -752,150 +757,150 @@ msgstr ""
752
  "Önyüzdeki herhangi bir TinyMCE örneğinde Etiket Düzenleyicisini göster (örn. "
753
  "bbPress)"
754
 
755
- #: ../crayon_settings_wp.class.php:1148
756
  msgid "Display Tag Editor settings on the frontend"
757
  msgstr "Önyüzde Etiket Düzenleyici ayarlarını göster"
758
 
759
  # @ crayon-syntax-highlighter
760
- #: ../crayon_settings_wp.class.php:1152
761
  msgid "Clear the cache used to store remote code requests"
762
  msgstr "Uzak kod isteklerini depolamak için ön belleği temizle"
763
 
764
  # @ crayon-syntax-highlighter
765
- #: ../crayon_settings_wp.class.php:1154
766
  msgid "Clear Now"
767
  msgstr "Şimdi Temizle"
768
 
769
  # @ crayon-syntax-highlighter
770
- #: ../crayon_settings_wp.class.php:1155
771
  msgid "Attempt to load Crayon's CSS and JavaScript only when needed"
772
  msgstr "Sadece ihtiyaç olduğunda Crayon CSS ve JavaScript yüklemeyi dene"
773
 
774
  # @ crayon-syntax-highlighter
775
- #: ../crayon_settings_wp.class.php:1156
776
  msgid "Disable enqueuing for page templates that may contain The Loop."
777
  msgstr "Döngü içeren sayfa şablonları için kuyruklama devre dışı."
778
 
779
  # @ crayon-syntax-highlighter
780
- #: ../crayon_settings_wp.class.php:1157
781
  msgid "Allow Crayons inside comments"
782
  msgstr "Yorum içinde Crayons izini verin"
783
 
784
  # @ crayon-syntax-highlighter
785
- #: ../crayon_settings_wp.class.php:1158
786
  msgid "Remove Crayons from excerpts"
787
  msgstr "Crayon'ı alıntılardan çıkar"
788
 
789
  # @ crayon-syntax-highlighter
790
- #: ../crayon_settings_wp.class.php:1159
791
  msgid "Load Crayons only from the main Wordpress query"
792
  msgstr "Sadece ana Wordpress sorgusundan Crayons yükle"
793
 
794
  # @ crayon-syntax-highlighter
795
- #: ../crayon_settings_wp.class.php:1160
796
  msgid "Disable mouse gestures for touchscreen devices (eg. MouseOver)"
797
  msgstr ""
798
  "Dokunmatik cihazlar için fare hareketlerini devre dışı bırak (örn. Fare "
799
  "Üzerinde)"
800
 
801
  # @ crayon-syntax-highlighter
802
- #: ../crayon_settings_wp.class.php:1161
803
  msgid "Disable animations"
804
  msgstr "Animasyonlar devre dışı"
805
 
806
  # @ crayon-syntax-highlighter
807
- #: ../crayon_settings_wp.class.php:1162
808
  msgid "Disable runtime stats"
809
  msgstr "İşlem istatistikleri devre dışı"
810
 
811
  # @ crayon-syntax-highlighter
812
- #: ../crayon_settings_wp.class.php:1168
813
  msgid "Log errors for individual Crayons"
814
  msgstr "Özgün Crayons hataları günlükle"
815
 
816
  # @ crayon-syntax-highlighter
817
- #: ../crayon_settings_wp.class.php:1169
818
  msgid "Log system-wide errors"
819
  msgstr "Sistem-geneli hataları günlükle"
820
 
821
  # @ crayon-syntax-highlighter
822
- #: ../crayon_settings_wp.class.php:1170
823
  msgid "Display custom message for errors"
824
  msgstr "Hatalar için kişisel mesaj göster"
825
 
826
  # @ crayon-syntax-highlighter
827
- #: ../crayon_settings_wp.class.php:1182
828
  msgid "Show Log"
829
  msgstr "Günlüğü Göster"
830
 
831
  # @ crayon-syntax-highlighter
832
- #: ../crayon_settings_wp.class.php:1182
833
  msgid "Hide Log"
834
  msgstr "Günlüğü Gizle"
835
 
836
  # @ crayon-syntax-highlighter
837
- #: ../crayon_settings_wp.class.php:1184
838
  msgid "Clear Log"
839
  msgstr "Günlüğü Temizle"
840
 
841
  # @ crayon-syntax-highlighter
842
- #: ../crayon_settings_wp.class.php:1185
843
  msgid "Email Admin"
844
  msgstr "Yönetici E-Posta"
845
 
846
  # @ crayon-syntax-highlighter
847
- #: ../crayon_settings_wp.class.php:1187
848
  msgid "Email Developer"
849
  msgstr "Geliştirici E-Posta"
850
 
851
  # @ crayon-syntax-highlighter
852
- #: ../crayon_settings_wp.class.php:1189
853
  msgid "The log is currently empty."
854
  msgstr "Günlük şu anda boş."
855
 
856
  # @ crayon-syntax-highlighter
857
- #: ../crayon_settings_wp.class.php:1191
858
  msgid "The log file exists and is writable."
859
  msgstr "Günlük dosyası var ve yazılabilir."
860
 
861
  # @ crayon-syntax-highlighter
862
- #: ../crayon_settings_wp.class.php:1191
863
  msgid "The log file exists and is not writable."
864
  msgstr "Günlük dosyası var ve yazılabilir değil."
865
 
866
  # @ crayon-syntax-highlighter
867
- #: ../crayon_settings_wp.class.php:1193
868
  msgid "The log file does not exist and is not writable."
869
  msgstr "Günlük dosyası yok ve yazılabilir değil."
870
 
871
  # @ crayon-syntax-highlighter
872
- #: ../crayon_settings_wp.class.php:1203
873
  msgid "Version"
874
  msgstr "Sürüm"
875
 
876
  # @ crayon-syntax-highlighter
877
- #: ../crayon_settings_wp.class.php:1205
878
  msgid "Developer"
879
  msgstr "Geliştirici"
880
 
881
  # @ crayon-syntax-highlighter
882
- #: ../crayon_settings_wp.class.php:1206
883
  msgid "Translators"
884
  msgstr "Çevirmenler"
885
 
886
  # @ crayon-syntax-highlighter
887
- #: ../crayon_settings_wp.class.php:1249
888
  msgid "?"
889
  msgstr "?"
890
 
891
  # @ crayon-syntax-highlighter
892
- #: ../crayon_settings_wp.class.php:1256
893
  #: ../util/theme-editor/theme_editor.php:336
894
  msgid "Theme Editor"
895
  msgstr "Tema Düzenleyici"
896
 
897
  # @ crayon-syntax-highlighter
898
- #: ../crayon_settings_wp.class.php:1257
899
  msgid "Donate"
900
  msgstr "Bağış"
901
 
@@ -1273,7 +1278,12 @@ msgstr "Soluk"
1273
  msgid "HTML"
1274
  msgstr "HTML"
1275
 
1276
- #: ../util/theme-editor/theme_editor.php:540
 
 
 
 
 
1277
  msgid "(Used for Copy/Paste)"
1278
  msgstr "(Kopyala/Yapıştır için kullanılır)"
1279
 
2
  msgstr ""
3
  "Project-Id-Version: crayon-syntax-highlighter\n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2013-07-21 17:34+0200\n"
6
  "PO-Revision-Date: \n"
7
  "Last-Translator: HakanEr <hakanerwptr@gmail.com>\n"
8
  "Language-Team: hakaner <hakanerwptr@gmail.com>\n"
17
  "crayon__;crayon_e;crayon_n\n"
18
  "X-Poedit-Basepath: .\n"
19
  "X-Textdomain-Support: yes\n"
20
+ "X-Generator: Poedit 1.5.7\n"
21
  "X-Poedit-SearchPath-0: .\n"
22
  "X-Poedit-SearchPath-1: ..\n"
23
 
24
  # @ crayon-syntax-highlighter
25
+ #: ../crayon_formatter.class.php:286
26
  msgid "Toggle Line Numbers"
27
  msgstr "Satır Numaralarına Geç"
28
 
29
  # @ crayon-syntax-highlighter
30
+ #: ../crayon_formatter.class.php:290
31
  msgid "Toggle Plain Code"
32
  msgstr "Düz Koda Geç"
33
 
34
  # @ crayon-syntax-highlighter
35
+ #: ../crayon_formatter.class.php:294
36
  msgid "Toggle Line Wrap"
37
  msgstr "Satır Sarımına Geç"
38
 
39
  # @ crayon-syntax-highlighter
40
+ #: ../crayon_formatter.class.php:298 ../crayon_formatter.class.php:302
41
  msgid "Expand Code"
42
  msgstr "Kodu Genişlet"
43
 
44
  # @ crayon-syntax-highlighter
45
+ #: ../crayon_formatter.class.php:306
46
  msgid "Open Code In New Window"
47
  msgstr "Kodu Yeni Pencerede Aç"
48
 
49
  # @ crayon-syntax-highlighter
50
+ #: ../crayon_formatter.class.php:333
51
  msgid "Contains Mixed Languages"
52
  msgstr "Karışık Diller içerir"
53
 
54
  # @ crayon-syntax-highlighter
55
+ #: ../crayon_settings.class.php:151
56
  msgid "Hourly"
57
  msgstr "Saatlik"
58
 
59
  # @ crayon-syntax-highlighter
60
+ #: ../crayon_settings.class.php:151
61
  msgid "Daily"
62
  msgstr "Günlük"
63
 
64
  # @ crayon-syntax-highlighter
65
+ #: ../crayon_settings.class.php:152
66
  msgid "Weekly"
67
  msgstr "Haftalık"
68
 
69
  # @ crayon-syntax-highlighter
70
+ #: ../crayon_settings.class.php:152
71
  msgid "Monthly"
72
  msgstr "Aylık"
73
 
74
  # @ crayon-syntax-highlighter
75
+ #: ../crayon_settings.class.php:153
76
  msgid "Immediately"
77
  msgstr "Hemen"
78
 
79
  # @ crayon-syntax-highlighter
80
+ #: ../crayon_settings.class.php:164 ../crayon_settings.class.php:168
81
  msgid "Max"
82
  msgstr "Max"
83
 
84
  # @ crayon-syntax-highlighter
85
+ #: ../crayon_settings.class.php:164 ../crayon_settings.class.php:168
86
  msgid "Min"
87
  msgstr "Min"
88
 
89
  # @ crayon-syntax-highlighter
90
+ #: ../crayon_settings.class.php:164 ../crayon_settings.class.php:168
91
  msgid "Static"
92
  msgstr "Sabit"
93
 
94
  # @ crayon-syntax-highlighter
95
+ #: ../crayon_settings.class.php:166 ../crayon_settings.class.php:170
96
  #: ../crayon_settings_wp.class.php:774 ../crayon_settings_wp.class.php:783
97
  #: ../crayon_settings_wp.class.php:1059 ../crayon_settings_wp.class.php:1061
98
  msgid "Pixels"
99
  msgstr "Piksel"
100
 
101
  # @ crayon-syntax-highlighter
102
+ #: ../crayon_settings.class.php:166 ../crayon_settings.class.php:170
103
  msgid "Percent"
104
  msgstr "Yüzde"
105
 
106
  # @ crayon-syntax-highlighter
107
+ #: ../crayon_settings.class.php:179
108
  msgid "None"
109
  msgstr "Yok"
110
 
111
  # @ crayon-syntax-highlighter
112
+ #: ../crayon_settings.class.php:179
113
  msgid "Left"
114
  msgstr "Sol"
115
 
116
  # @ crayon-syntax-highlighter
117
+ #: ../crayon_settings.class.php:179
118
  msgid "Center"
119
  msgstr "Merkez"
120
 
121
  # @ crayon-syntax-highlighter
122
+ #: ../crayon_settings.class.php:179
123
  msgid "Right"
124
  msgstr "Sağ"
125
 
126
  # @ crayon-syntax-highlighter
127
+ #: ../crayon_settings.class.php:181 ../crayon_settings.class.php:206
128
  msgid "On MouseOver"
129
  msgstr "Fare Üstündeyken"
130
 
131
  # @ crayon-syntax-highlighter
132
+ #: ../crayon_settings.class.php:181 ../crayon_settings.class.php:187
133
  msgid "Always"
134
  msgstr "Herzaman"
135
 
136
  # @ crayon-syntax-highlighter
137
+ #: ../crayon_settings.class.php:181 ../crayon_settings.class.php:187
138
  msgid "Never"
139
  msgstr "Asla"
140
 
141
  # @ crayon-syntax-highlighter
142
+ #: ../crayon_settings.class.php:187
143
  msgid "When Found"
144
  msgstr "Bulunduğunda"
145
 
146
  # @ crayon-syntax-highlighter
147
+ #: ../crayon_settings.class.php:206
148
  msgid "On Double Click"
149
  msgstr "Çift Tık ile aç"
150
 
151
  # @ crayon-syntax-highlighter
152
+ #: ../crayon_settings.class.php:206
153
  msgid "On Single Click"
154
  msgstr "Tek Tık ile aç"
155
 
156
  # @ crayon-syntax-highlighter
157
+ #: ../crayon_settings.class.php:206
158
  msgid "Disable Mouse Events"
159
  msgstr "Fare Etkinliği Devre Dışı"
160
 
161
  # @ crayon-syntax-highlighter
162
+ #: ../crayon_settings.class.php:213
163
  msgid "An error has occurred. Please try again later."
164
  msgstr "Bir hata meydana geldi. Daha sonra tekrar deneyin."
165
 
166
  # @ crayon-syntax-highlighter
167
+ #: ../crayon_settings.class.php:229
168
  msgid "Inline Tag"
169
  msgstr "Satıriçi Etiket"
170
 
171
+ #: ../crayon_settings.class.php:229
172
  msgid "Block Tag"
173
  msgstr "Blok Etiket"
174
 
175
  # @ crayon-syntax-highlighter
176
  #: ../crayon_settings_wp.class.php:53 ../crayon_settings_wp.class.php:210
177
+ #: ../crayon_settings_wp.class.php:1258
178
  #: ../util/tag-editor/crayon_tag_editor_wp.class.php:254
179
  msgid "Settings"
180
  msgstr "Ayarlar"
637
 
638
  # @ crayon-syntax-highlighter
639
  #: ../crayon_settings_wp.class.php:1095
640
+ msgid "Remove &lt;code&gt; tags surrounding the shortcode content"
641
+ msgstr "Kısakod içeriğini çevreleyen &lt;code&gt; etiketlerini kaldır"
642
+
643
+ # @ crayon-syntax-highlighter
644
+ #: ../crayon_settings_wp.class.php:1096
645
  msgid "Allow Mixed Language Highlighting with delimiters and tags."
646
  msgstr "Sınırlayıcılar ve etiketler ile Karışık Dil Vurgulamaya izin ver."
647
 
648
  # @ crayon-syntax-highlighter
649
+ #: ../crayon_settings_wp.class.php:1098
650
  msgid "Show Mixed Language Icon (+)"
651
  msgstr "Karışık Dil Simgesini Göster (+)"
652
 
653
  # @ crayon-syntax-highlighter
654
+ #: ../crayon_settings_wp.class.php:1100
655
  msgid "Tab size in spaces"
656
  msgstr "Boşluk sekme boyutu"
657
 
658
+ #: ../crayon_settings_wp.class.php:1102
659
  msgid "Blank lines before code:"
660
  msgstr "Kod öncesi boş satırlar:"
661
 
662
+ #: ../crayon_settings_wp.class.php:1104
663
  msgid "Blank lines after code:"
664
  msgstr "Kod sonrası boş satırlar:"
665
 
666
  # @ crayon-syntax-highlighter
667
+ #: ../crayon_settings_wp.class.php:1109
668
  msgid "Capture Inline Tags"
669
  msgstr "Satır içi Etiketleri Yakala"
670
 
671
  # @ crayon-syntax-highlighter
672
+ #: ../crayon_settings_wp.class.php:1110
673
  msgid "Wrap Inline Tags"
674
  msgstr "Satıriçi Etiketleri Sar"
675
 
676
  # @ crayon-syntax-highlighter
677
+ #: ../crayon_settings_wp.class.php:1111
678
  msgid "Capture &lt;code&gt; as"
679
  msgstr "&lt;code&gt; yakalama şekli"
680
 
681
  # @ crayon-syntax-highlighter
682
+ #: ../crayon_settings_wp.class.php:1115
683
  msgid "Capture `backquotes` as &lt;code&gt;"
684
  msgstr "&lt;code&gt; olarak `backquotes` yakalayın"
685
 
686
  # @ crayon-syntax-highlighter
687
+ #: ../crayon_settings_wp.class.php:1116
688
  msgid "Capture &lt;pre&gt; tags as Crayons"
689
  msgstr "&lt;pre&gt; etiketleri Crayons olarak yakala"
690
 
691
+ #: ../crayon_settings_wp.class.php:1118
692
  #, php-format
693
  msgid ""
694
  "Using this markup for Mini Tags and Inline tags is now %sdepreciated%s! Use "
699
  "kullanın ve eski etiketleri dönüştürün."
700
 
701
  # @ crayon-syntax-highlighter
702
+ #: ../crayon_settings_wp.class.php:1119
703
  msgid "Capture Mini Tags like [php][/php] as Crayons."
704
  msgstr "Crayons olarak [php][/php] gibi küçük etiketleri yakala."
705
 
706
  # @ crayon-syntax-highlighter
707
+ #: ../crayon_settings_wp.class.php:1120
708
  msgid "Capture Inline Tags like {php}{/php} inside sentences."
709
  msgstr "Cümle içinde {php}{/php} gibi satıriçi etiketleri yakalayın."
710
 
711
  # @ crayon-syntax-highlighter
712
+ #: ../crayon_settings_wp.class.php:1121
713
  msgid "Enable [plain][/plain] tag."
714
  msgstr "[plain][/plain] etiketi etkin."
715
 
716
  # @ crayon-syntax-highlighter
717
+ #: ../crayon_settings_wp.class.php:1126
718
  msgid ""
719
  "When loading local files and a relative path is given for the URL, use the "
720
  "absolute path"
723
  "yolu kullan"
724
 
725
  # @ crayon-syntax-highlighter
726
+ #: ../crayon_settings_wp.class.php:1129
727
  msgid "Followed by your relative URL."
728
  msgstr "Bağlantılı URL tarafından izlendi."
729
 
730
+ #: ../crayon_settings_wp.class.php:1136
731
  msgid "Convert Legacy Tags"
732
  msgstr "Eski Etiketleri Dönüştür"
733
 
734
+ #: ../crayon_settings_wp.class.php:1139
735
  msgid "No Legacy Tags Found"
736
  msgstr "Eski Etiketler Bulunamadı"
737
 
738
+ #: ../crayon_settings_wp.class.php:1143
739
  msgid "Encode"
740
  msgstr "Kodla"
741
 
742
  # @ crayon-syntax-highlighter
743
+ #: ../crayon_settings_wp.class.php:1145
744
  #, php-format
745
  msgid ""
746
  "Use %s to separate setting names from values in the &lt;pre&gt; class "
749
  "%s kullanarak &lt;pre&gt; sınıf niteliği içinde ayar adlarını değerlerden "
750
  "ayır"
751
 
752
+ #: ../crayon_settings_wp.class.php:1148
753
  msgid ""
754
  "Display the Tag Editor in any TinyMCE instances on the frontend (e.g. "
755
  "bbPress)"
757
  "Önyüzdeki herhangi bir TinyMCE örneğinde Etiket Düzenleyicisini göster (örn. "
758
  "bbPress)"
759
 
760
+ #: ../crayon_settings_wp.class.php:1149
761
  msgid "Display Tag Editor settings on the frontend"
762
  msgstr "Önyüzde Etiket Düzenleyici ayarlarını göster"
763
 
764
  # @ crayon-syntax-highlighter
765
+ #: ../crayon_settings_wp.class.php:1153
766
  msgid "Clear the cache used to store remote code requests"
767
  msgstr "Uzak kod isteklerini depolamak için ön belleği temizle"
768
 
769
  # @ crayon-syntax-highlighter
770
+ #: ../crayon_settings_wp.class.php:1155
771
  msgid "Clear Now"
772
  msgstr "Şimdi Temizle"
773
 
774
  # @ crayon-syntax-highlighter
775
+ #: ../crayon_settings_wp.class.php:1156
776
  msgid "Attempt to load Crayon's CSS and JavaScript only when needed"
777
  msgstr "Sadece ihtiyaç olduğunda Crayon CSS ve JavaScript yüklemeyi dene"
778
 
779
  # @ crayon-syntax-highlighter
780
+ #: ../crayon_settings_wp.class.php:1157
781
  msgid "Disable enqueuing for page templates that may contain The Loop."
782
  msgstr "Döngü içeren sayfa şablonları için kuyruklama devre dışı."
783
 
784
  # @ crayon-syntax-highlighter
785
+ #: ../crayon_settings_wp.class.php:1158
786
  msgid "Allow Crayons inside comments"
787
  msgstr "Yorum içinde Crayons izini verin"
788
 
789
  # @ crayon-syntax-highlighter
790
+ #: ../crayon_settings_wp.class.php:1159
791
  msgid "Remove Crayons from excerpts"
792
  msgstr "Crayon'ı alıntılardan çıkar"
793
 
794
  # @ crayon-syntax-highlighter
795
+ #: ../crayon_settings_wp.class.php:1160
796
  msgid "Load Crayons only from the main Wordpress query"
797
  msgstr "Sadece ana Wordpress sorgusundan Crayons yükle"
798
 
799
  # @ crayon-syntax-highlighter
800
+ #: ../crayon_settings_wp.class.php:1161
801
  msgid "Disable mouse gestures for touchscreen devices (eg. MouseOver)"
802
  msgstr ""
803
  "Dokunmatik cihazlar için fare hareketlerini devre dışı bırak (örn. Fare "
804
  "Üzerinde)"
805
 
806
  # @ crayon-syntax-highlighter
807
+ #: ../crayon_settings_wp.class.php:1162
808
  msgid "Disable animations"
809
  msgstr "Animasyonlar devre dışı"
810
 
811
  # @ crayon-syntax-highlighter
812
+ #: ../crayon_settings_wp.class.php:1163
813
  msgid "Disable runtime stats"
814
  msgstr "İşlem istatistikleri devre dışı"
815
 
816
  # @ crayon-syntax-highlighter
817
+ #: ../crayon_settings_wp.class.php:1169
818
  msgid "Log errors for individual Crayons"
819
  msgstr "Özgün Crayons hataları günlükle"
820
 
821
  # @ crayon-syntax-highlighter
822
+ #: ../crayon_settings_wp.class.php:1170
823
  msgid "Log system-wide errors"
824
  msgstr "Sistem-geneli hataları günlükle"
825
 
826
  # @ crayon-syntax-highlighter
827
+ #: ../crayon_settings_wp.class.php:1171
828
  msgid "Display custom message for errors"
829
  msgstr "Hatalar için kişisel mesaj göster"
830
 
831
  # @ crayon-syntax-highlighter
832
+ #: ../crayon_settings_wp.class.php:1183
833
  msgid "Show Log"
834
  msgstr "Günlüğü Göster"
835
 
836
  # @ crayon-syntax-highlighter
837
+ #: ../crayon_settings_wp.class.php:1183
838
  msgid "Hide Log"
839
  msgstr "Günlüğü Gizle"
840
 
841
  # @ crayon-syntax-highlighter
842
+ #: ../crayon_settings_wp.class.php:1185
843
  msgid "Clear Log"
844
  msgstr "Günlüğü Temizle"
845
 
846
  # @ crayon-syntax-highlighter
847
+ #: ../crayon_settings_wp.class.php:1186
848
  msgid "Email Admin"
849
  msgstr "Yönetici E-Posta"
850
 
851
  # @ crayon-syntax-highlighter
852
+ #: ../crayon_settings_wp.class.php:1188
853
  msgid "Email Developer"
854
  msgstr "Geliştirici E-Posta"
855
 
856
  # @ crayon-syntax-highlighter
857
+ #: ../crayon_settings_wp.class.php:1190
858
  msgid "The log is currently empty."
859
  msgstr "Günlük şu anda boş."
860
 
861
  # @ crayon-syntax-highlighter
862
+ #: ../crayon_settings_wp.class.php:1192
863
  msgid "The log file exists and is writable."
864
  msgstr "Günlük dosyası var ve yazılabilir."
865
 
866
  # @ crayon-syntax-highlighter
867
+ #: ../crayon_settings_wp.class.php:1192
868
  msgid "The log file exists and is not writable."
869
  msgstr "Günlük dosyası var ve yazılabilir değil."
870
 
871
  # @ crayon-syntax-highlighter
872
+ #: ../crayon_settings_wp.class.php:1194
873
  msgid "The log file does not exist and is not writable."
874
  msgstr "Günlük dosyası yok ve yazılabilir değil."
875
 
876
  # @ crayon-syntax-highlighter
877
+ #: ../crayon_settings_wp.class.php:1204
878
  msgid "Version"
879
  msgstr "Sürüm"
880
 
881
  # @ crayon-syntax-highlighter
882
+ #: ../crayon_settings_wp.class.php:1206
883
  msgid "Developer"
884
  msgstr "Geliştirici"
885
 
886
  # @ crayon-syntax-highlighter
887
+ #: ../crayon_settings_wp.class.php:1207
888
  msgid "Translators"
889
  msgstr "Çevirmenler"
890
 
891
  # @ crayon-syntax-highlighter
892
+ #: ../crayon_settings_wp.class.php:1252
893
  msgid "?"
894
  msgstr "?"
895
 
896
  # @ crayon-syntax-highlighter
897
+ #: ../crayon_settings_wp.class.php:1259
898
  #: ../util/theme-editor/theme_editor.php:336
899
  msgid "Theme Editor"
900
  msgstr "Tema Düzenleyici"
901
 
902
  # @ crayon-syntax-highlighter
903
+ #: ../crayon_settings_wp.class.php:1260
904
  msgid "Donate"
905
  msgstr "Bağış"
906
 
1278
  msgid "HTML"
1279
  msgstr "HTML"
1280
 
1281
+ # @ crayon-syntax-highlighter
1282
+ #: ../util/theme-editor/theme_editor.php:408
1283
+ msgid "Unhighlighted"
1284
+ msgstr "Vurgusu kaldırıldı"
1285
+
1286
+ #: ../util/theme-editor/theme_editor.php:542
1287
  msgid "(Used for Copy/Paste)"
1288
  msgstr "(Kopyala/Yapıştır için kullanılır)"
1289
 
util/minify.sh CHANGED
@@ -6,8 +6,8 @@ MINIFIER='/Users/Aram/Development/Tools/yuicompressor-2.4.7.jar'
6
  INPUT_PATH='src'
7
  OUTPUT_PATH='min'
8
  TE_PATH='../util/tag-editor'
 
9
  JS_PATH='../js'
10
- FANCY_PATH=$JS_PATH/fancybox
11
 
12
  function minify {
13
  inputs=${@:0:$#}
6
  INPUT_PATH='src'
7
  OUTPUT_PATH='min'
8
  TE_PATH='../util/tag-editor'
9
+ COLORBOX_PATH='../util/tag-editor/colorbox'
10
  JS_PATH='../js'
 
11
 
12
  function minify {
13
  inputs=${@:0:$#}
util/sample/mysql.txt ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
1
+ CREATE TABLE shop (
2
+ article INT(4) UNSIGNED ZEROFILL DEFAULT '0000' NOT NULL,
3
+ dealer CHAR(20) DEFAULT '' NOT NULL,
4
+ price DOUBLE(16,2) DEFAULT '0.00' NOT NULL,
5
+ PRIMARY KEY(article, dealer));
6
+ INSERT INTO shop VALUES
7
+ (1,'A',3.45),(1,'B',3.99),(2,'A',10.99),(3,'B',1.45),
8
+ (3,'C',1.69),(3,'D',1.25),(4,'D',19.95);
util/tag-editor/colorbox/colorbox.css ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ Colorbox Core Style:
3
+ The following CSS is consistent between example themes and should not be altered.
4
+ */
5
+ #colorbox, #cboxOverlay, #cboxWrapper{position:absolute; top:0; left:0; z-index:9999; overflow:hidden;}
6
+ #cboxOverlay{position:fixed; width:100%; height:100%;}
7
+ #cboxMiddleLeft, #cboxBottomLeft{clear:left;}
8
+ #cboxContent{position:relative;}
9
+ #cboxLoadedContent{overflow:auto; -webkit-overflow-scrolling: touch;}
10
+ #cboxTitle{margin:0;}
11
+ #cboxLoadingOverlay, #cboxLoadingGraphic{position:absolute; top:0; left:0; width:100%; height:100%;}
12
+ #cboxPrevious, #cboxNext, #cboxClose, #cboxSlideshow{cursor:pointer;}
13
+ .cboxPhoto{float:left; margin:auto; border:0; display:block; max-width:none; -ms-interpolation-mode:bicubic;}
14
+ .cboxIframe{width:100%; height:100%; display:block; border:0;}
15
+ #colorbox, #cboxContent, #cboxLoadedContent{box-sizing:content-box; -moz-box-sizing:content-box; -webkit-box-sizing:content-box;}
16
+
17
+ /*
18
+ User Style:
19
+ Change the following styles to modify the appearance of Colorbox. They are
20
+ ordered & tabbed in a way that represents the nesting of the generated HTML.
21
+ */
22
+ #cboxOverlay{background:#000;}
23
+ #colorbox{outline:0;}
24
+ #cboxContent{margin-top:20px;background:#000;}
25
+ .cboxIframe{background:#fff;}
26
+ #cboxError{padding:50px; border:1px solid #ccc;}
27
+ #cboxLoadedContent{border:5px solid #000; background:#fff;}
28
+ #cboxTitle{position:absolute; top:-20px; left:0; color:#ccc;}
29
+ #cboxCurrent{position:absolute; top:-20px; right:0px; color:#ccc;}
30
+
31
+ /* these elements are buttons, and may need to have additional styles reset to avoid unwanted base styles */
32
+ #cboxPrevious, #cboxNext, #cboxSlideshow, #cboxClose {border:0; padding:0; margin:0; overflow:visible; width:auto; background:none; }
33
+
34
+ /* avoid outlines on :active (mouseclick), but preserve outlines on :focus (tabbed navigating) */
35
+ #cboxPrevious:active, #cboxNext:active, #cboxSlideshow:active, #cboxClose:active {outline:0;}
36
+
37
+ #cboxSlideshow{position:absolute; top:-20px; right:90px; color:#fff;}
38
+
39
+ .crayon-colorbox #cboxContent{ margin-top: 0 }
40
+ .crayon-colorbox #cboxLoadedContent{ border: 0 }
util/tag-editor/colorbox/jquery.colorbox-min.js ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
1
+ /*!
2
+ Colorbox v1.4.27 - 2013-07-16
3
+ jQuery lightbox and modal window plugin
4
+ (c) 2013 Jack Moore - http://www.jacklmoore.com/colorbox
5
+ license: http://www.opensource.org/licenses/mit-license.php
6
+ */
7
+ (function(t,e,i){function o(i,o,n){var r=e.createElement(i);return o&&(r.id=te+o),n&&(r.style.cssText=n),t(r)}function n(){return i.innerHeight?i.innerHeight:t(i).height()}function r(t){var e=E.length,i=(j+t)%e;return 0>i?e+i:i}function l(t,e){return Math.round((/%/.test(t)?("x"===e?H.width():n())/100:1)*parseInt(t,10))}function h(t,e){return t.photo||t.photoRegex.test(e)}function s(t,e){return t.retinaUrl&&i.devicePixelRatio>1?e.replace(t.photoRegex,t.retinaSuffix):e}function a(t){"contains"in v[0]&&!v[0].contains(t.target)&&(t.stopPropagation(),v.focus())}function d(){var e,i=t.data(A,Z);null==i?(O=t.extend({},Y),console&&console.log&&console.log("Error: cboxElement missing settings object")):O=t.extend({},i);for(e in O)t.isFunction(O[e])&&"on"!==e.slice(0,2)&&(O[e]=O[e].call(A));O.rel=O.rel||A.rel||t(A).data("rel")||"nofollow",O.href=O.href||t(A).attr("href"),O.title=O.title||A.title,"string"==typeof O.href&&(O.href=t.trim(O.href))}function c(i,o){t(e).trigger(i),se.trigger(i),t.isFunction(o)&&o.call(A)}function u(){var t,e,i,o,n,r=te+"Slideshow_",l="click."+te;O.slideshow&&E[1]?(e=function(){clearTimeout(t)},i=function(){(O.loop||E[j+1])&&(t=setTimeout(J.next,O.slideshowSpeed))},o=function(){R.html(O.slideshowStop).unbind(l).one(l,n),se.bind(ne,i).bind(oe,e).bind(re,n),v.removeClass(r+"off").addClass(r+"on")},n=function(){e(),se.unbind(ne,i).unbind(oe,e).unbind(re,n),R.html(O.slideshowStart).unbind(l).one(l,function(){J.next(),o()}),v.removeClass(r+"on").addClass(r+"off")},O.slideshowAuto?o():n()):v.removeClass(r+"off "+r+"on")}function p(i){G||(A=i,d(),E=t(A),j=0,"nofollow"!==O.rel&&(E=t("."+ee).filter(function(){var e,i=t.data(this,Z);return i&&(e=t(this).data("rel")||i.rel||this.rel),e===O.rel}),j=E.index(A),-1===j&&(E=E.add(A),j=E.length-1)),g.css({opacity:parseFloat(O.opacity),cursor:O.overlayClose?"pointer":"auto",visibility:"visible"}).show(),V&&v.add(g).removeClass(V),O.className&&v.add(g).addClass(O.className),V=O.className,O.closeButton?P.html(O.close).appendTo(x):P.appendTo("<div/>"),$||($=q=!0,v.css({visibility:"hidden",display:"block"}),W=o(ae,"LoadedContent","width:0; height:0; overflow:hidden"),x.css({width:"",height:""}).append(W),_=b.height()+k.height()+x.outerHeight(!0)-x.height(),D=T.width()+C.width()+x.outerWidth(!0)-x.width(),N=W.outerHeight(!0),z=W.outerWidth(!0),O.w=l(O.initialWidth,"x"),O.h=l(O.initialHeight,"y"),J.position(),u(),c(ie,O.onOpen),B.add(S).hide(),v.focus(),O.trapFocus&&e.addEventListener&&(e.addEventListener("focus",a,!0),se.one(le,function(){e.removeEventListener("focus",a,!0)})),O.returnFocus&&se.one(le,function(){t(A).focus()})),w())}function f(){!v&&e.body&&(X=!1,H=t(i),v=o(ae).attr({id:Z,"class":t.support.opacity===!1?te+"IE":"",role:"dialog",tabindex:"-1"}).hide(),g=o(ae,"Overlay").hide(),L=t([o(ae,"LoadingOverlay")[0],o(ae,"LoadingGraphic")[0]]),y=o(ae,"Wrapper"),x=o(ae,"Content").append(S=o(ae,"Title"),M=o(ae,"Current"),K=t('<button type="button"/>').attr({id:te+"Previous"}),I=t('<button type="button"/>').attr({id:te+"Next"}),R=o("button","Slideshow"),L),P=t('<button type="button"/>').attr({id:te+"Close"}),y.append(o(ae).append(o(ae,"TopLeft"),b=o(ae,"TopCenter"),o(ae,"TopRight")),o(ae,!1,"clear:left").append(T=o(ae,"MiddleLeft"),x,C=o(ae,"MiddleRight")),o(ae,!1,"clear:left").append(o(ae,"BottomLeft"),k=o(ae,"BottomCenter"),o(ae,"BottomRight"))).find("div div").css({"float":"left"}),F=o(ae,!1,"position:absolute; width:9999px; visibility:hidden; display:none"),B=I.add(K).add(M).add(R),t(e.body).append(g,v.append(y,F)))}function m(){function i(t){t.which>1||t.shiftKey||t.altKey||t.metaKey||t.ctrlKey||(t.preventDefault(),p(this))}return v?(X||(X=!0,I.click(function(){J.next()}),K.click(function(){J.prev()}),P.click(function(){J.close()}),g.click(function(){O.overlayClose&&J.close()}),t(e).bind("keydown."+te,function(t){var e=t.keyCode;$&&O.escKey&&27===e&&(t.preventDefault(),J.close()),$&&O.arrowKey&&E[1]&&!t.altKey&&(37===e?(t.preventDefault(),K.click()):39===e&&(t.preventDefault(),I.click()))}),t.isFunction(t.fn.on)?t(e).on("click."+te,"."+ee,i):t("."+ee).live("click."+te,i)),!0):!1}function w(){var n,r,a,u=J.prep,p=++de;q=!0,U=!1,A=E[j],d(),c(he),c(oe,O.onLoad),O.h=O.height?l(O.height,"y")-N-_:O.innerHeight&&l(O.innerHeight,"y"),O.w=O.width?l(O.width,"x")-z-D:O.innerWidth&&l(O.innerWidth,"x"),O.mw=O.w,O.mh=O.h,O.maxWidth&&(O.mw=l(O.maxWidth,"x")-z-D,O.mw=O.w&&O.w<O.mw?O.w:O.mw),O.maxHeight&&(O.mh=l(O.maxHeight,"y")-N-_,O.mh=O.h&&O.h<O.mh?O.h:O.mh),n=O.href,Q=setTimeout(function(){L.show()},100),O.inline?(a=o(ae).hide().insertBefore(t(n)[0]),se.one(he,function(){a.replaceWith(W.children())}),u(t(n))):O.iframe?u(" "):O.html?u(O.html):h(O,n)?(n=s(O,n),U=e.createElement("img"),t(U).addClass(te+"Photo").bind("error",function(){O.title=!1,u(o(ae,"Error").html(O.imgError))}).one("load",function(){var e;p===de&&(U.alt=t(A).attr("alt")||t(A).attr("data-alt")||"",O.retinaImage&&i.devicePixelRatio>1&&(U.height=U.height/i.devicePixelRatio,U.width=U.width/i.devicePixelRatio),O.scalePhotos&&(r=function(){U.height-=U.height*e,U.width-=U.width*e},O.mw&&U.width>O.mw&&(e=(U.width-O.mw)/U.width,r()),O.mh&&U.height>O.mh&&(e=(U.height-O.mh)/U.height,r())),O.h&&(U.style.marginTop=Math.max(O.mh-U.height,0)/2+"px"),E[1]&&(O.loop||E[j+1])&&(U.style.cursor="pointer",U.onclick=function(){J.next()}),U.style.width=U.width+"px",U.style.height=U.height+"px",setTimeout(function(){u(U)},1))}),setTimeout(function(){U.src=n},1)):n&&F.load(n,O.data,function(e,i){p===de&&u("error"===i?o(ae,"Error").html(O.xhrError):t(this).contents())})}var g,v,y,x,b,T,C,k,E,H,W,F,L,S,M,R,I,K,P,B,O,_,D,N,z,A,j,U,$,q,G,Q,J,V,X,Y={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:.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},Z="colorbox",te="cbox",ee=te+"Element",ie=te+"_open",oe=te+"_load",ne=te+"_complete",re=te+"_cleanup",le=te+"_closed",he=te+"_purge",se=t("<a/>"),ae="div",de=0,ce={};t.colorbox||(t(f),J=t.fn[Z]=t[Z]=function(e,i){var o=this;if(e=e||{},f(),m()){if(t.isFunction(o))o=t("<a/>"),e.open=!0;else if(!o[0])return o;i&&(e.onComplete=i),o.each(function(){t.data(this,Z,t.extend({},t.data(this,Z)||Y,e))}).addClass(ee),(t.isFunction(e.open)&&e.open.call(o)||e.open)&&p(o[0])}return o},J.position=function(e,i){function o(){b[0].style.width=k[0].style.width=x[0].style.width=parseInt(v[0].style.width,10)-D+"px",x[0].style.height=T[0].style.height=C[0].style.height=parseInt(v[0].style.height,10)-_+"px"}var r,h,s,a=0,d=0,c=v.offset();if(H.unbind("resize."+te),v.css({top:-9e4,left:-9e4}),h=H.scrollTop(),s=H.scrollLeft(),O.fixed?(c.top-=h,c.left-=s,v.css({position:"fixed"})):(a=h,d=s,v.css({position:"absolute"})),d+=O.right!==!1?Math.max(H.width()-O.w-z-D-l(O.right,"x"),0):O.left!==!1?l(O.left,"x"):Math.round(Math.max(H.width()-O.w-z-D,0)/2),a+=O.bottom!==!1?Math.max(n()-O.h-N-_-l(O.bottom,"y"),0):O.top!==!1?l(O.top,"y"):Math.round(Math.max(n()-O.h-N-_,0)/2),v.css({top:c.top,left:c.left,visibility:"visible"}),y[0].style.width=y[0].style.height="9999px",r={width:O.w+z+D,height:O.h+N+_,top:a,left:d},e){var u=0;t.each(r,function(t){return r[t]!==ce[t]?(u=e,void 0):void 0}),e=u}ce=r,e||v.css(r),v.dequeue().animate(r,{duration:e||0,complete:function(){o(),q=!1,y[0].style.width=O.w+z+D+"px",y[0].style.height=O.h+N+_+"px",O.reposition&&setTimeout(function(){H.bind("resize."+te,J.position)},1),i&&i()},step:o})},J.resize=function(t){var e;$&&(t=t||{},t.width&&(O.w=l(t.width,"x")-z-D),t.innerWidth&&(O.w=l(t.innerWidth,"x")),W.css({width:O.w}),t.height&&(O.h=l(t.height,"y")-N-_),t.innerHeight&&(O.h=l(t.innerHeight,"y")),t.innerHeight||t.height||(e=W.scrollTop(),W.css({height:"auto"}),O.h=W.height()),W.css({height:O.h}),e&&W.scrollTop(e),J.position("none"===O.transition?0:O.speed))},J.prep=function(i){function n(){return O.w=O.w||W.width(),O.w=O.mw&&O.mw<O.w?O.mw:O.w,O.w}function l(){return O.h=O.h||W.height(),O.h=O.mh&&O.mh<O.h?O.mh:O.h,O.h}if($){var a,d="none"===O.transition?0:O.speed;W.empty().remove(),W=o(ae,"LoadedContent").append(i),W.hide().appendTo(F.show()).css({width:n(),overflow:O.scrolling?"auto":"hidden"}).css({height:l()}).prependTo(x),F.hide(),t(U).css({"float":"none"}),a=function(){function i(){t.support.opacity===!1&&v[0].style.removeAttribute("filter")}var n,l,a=E.length,u="frameBorder",p="allowTransparency";$&&(l=function(){clearTimeout(Q),L.hide(),c(ne,O.onComplete)},S.html(O.title).add(W).show(),a>1?("string"==typeof O.current&&M.html(O.current.replace("{current}",j+1).replace("{total}",a)).show(),I[O.loop||a-1>j?"show":"hide"]().html(O.next),K[O.loop||j?"show":"hide"]().html(O.previous),O.slideshow&&R.show(),O.preloading&&t.each([r(-1),r(1)],function(){var i,o,n=E[this],r=t.data(n,Z);r&&r.href?(i=r.href,t.isFunction(i)&&(i=i.call(n))):i=t(n).attr("href"),i&&h(r,i)&&(i=s(r,i),o=e.createElement("img"),o.src=i)})):B.hide(),O.iframe?(n=o("iframe")[0],u in n&&(n[u]=0),p in n&&(n[p]="true"),O.scrolling||(n.scrolling="no"),t(n).attr({src:O.href,name:(new Date).getTime(),"class":te+"Iframe",allowFullScreen:!0,webkitAllowFullScreen:!0,mozallowfullscreen:!0}).one("load",l).appendTo(W),se.one(he,function(){n.src="//about:blank"}),O.fastIframe&&t(n).trigger("load")):l(),"fade"===O.transition?v.fadeTo(d,1,i):i())},"fade"===O.transition?v.fadeTo(d,0,function(){J.position(0,a)}):J.position(d,a)}},J.next=function(){!q&&E[1]&&(O.loop||E[j+1])&&(j=r(1),p(E[j]))},J.prev=function(){!q&&E[1]&&(O.loop||j)&&(j=r(-1),p(E[j]))},J.close=function(){$&&!G&&(G=!0,$=!1,c(re,O.onCleanup),H.unbind("."+te),g.fadeTo(O.fadeOut||0,0),v.stop().fadeTo(O.fadeOut||0,0,function(){v.add(g).css({opacity:1,cursor:"auto"}).hide(),c(he),W.empty().remove(),setTimeout(function(){G=!1,c(le,O.onClosed)},1)}))},J.remove=function(){v&&(v.stop(),t.colorbox.close(),v.stop().remove(),g.remove(),G=!1,v=null,t("."+ee).removeData(Z).removeClass(ee),t(e).unbind("click."+te))},J.element=function(){return t(A)},J.settings=Y)})(jQuery,document,window);
util/tag-editor/crayon_qt.js CHANGED
@@ -6,7 +6,6 @@
6
 
7
  base.init = function() {
8
  base.sel = '*[id*="crayon_quicktag"],*[class*="crayon_quicktag"]';
9
- CrayonTagEditor.bind(base.sel);
10
  QTags.addButton( 'crayon_quicktag', 'crayon', function() {
11
  CrayonTagEditor.showDialog({
12
  insert: function(shortcode) {
@@ -22,10 +21,11 @@
22
  var find_qt_crayon = setInterval(function() {
23
  qt_crayon = $(base.sel).first();
24
  if (typeof qt_crayon != 'undefined') {
 
25
  clearInterval(find_qt_crayon);
26
  }
27
  }, 100);
28
- }
29
 
30
  base.getSelectedText = function() {
31
  if (QTags.instances.length == 0) {
6
 
7
  base.init = function() {
8
  base.sel = '*[id*="crayon_quicktag"],*[class*="crayon_quicktag"]';
 
9
  QTags.addButton( 'crayon_quicktag', 'crayon', function() {
10
  CrayonTagEditor.showDialog({
11
  insert: function(shortcode) {
21
  var find_qt_crayon = setInterval(function() {
22
  qt_crayon = $(base.sel).first();
23
  if (typeof qt_crayon != 'undefined') {
24
+ CrayonTagEditor.bind(base.sel);
25
  clearInterval(find_qt_crayon);
26
  }
27
  }, 100);
28
+ };
29
 
30
  base.getSelectedText = function() {
31
  if (QTags.instances.length == 0) {
util/tag-editor/crayon_tag_editor.js CHANGED
@@ -1,612 +1,609 @@
1
- (function($) {
2
-
3
- window.CrayonTagEditor = new function() {
4
- var base = this;
5
-
6
- var isInit = false;
7
- var loaded = false;
8
- var editing = false;
9
- var insertCallback, editCallback, showCallback, hideCallback, selectCallback;
10
- // Used for encoding, decoding
11
- var inputHTML, outputHTML, editor_name, ajax_class_timer;
12
- var ajax_class_timer_count = 0;
13
-
14
- var code_refresh, url_refresh;
15
-
16
- // Current $ obj of pre node
17
- var currCrayon = null;
18
- // Classes from pre node, excl. settings
19
- var currClasses = '';
20
- // Whether to make span or pre
21
- var is_inline = false;
22
-
23
- // Generated in WP and contains the settings
24
- var s, gs, util;
25
-
26
- // CSS
27
- var dialog, code, clear, submit, cancel;
28
-
29
- base.init = function() {
30
- s = CrayonTagEditorSettings;
31
- gs = CrayonSyntaxSettings;
32
- util = CrayonUtil;
33
- };
34
-
35
- base.bind = function(button) {
36
- if (!isInit) {
37
- isInit = true;
38
- base.init();
39
- }
40
-
41
- base.loadDialog();
42
- $(button).crayonFancybox({
43
- href : s.content_css,
44
- margin : [40,10,40,10],
45
- padding : 0,
46
- width : 690,
47
- height : '100%',
48
- autoSize : false,
49
- title : '',
50
- beforeShow : function () {
51
- $(this.outer).prepend($(s.bar_content));
52
- },
53
- afterShow : function () {
54
- $(s.code_css).focus();
55
- },
56
- beforeClose : function () {
57
- $(s.bar).prepend($(s.bar_content));
58
- },
59
- closeBtn : false
60
- });
61
- };
62
-
63
- base.hide = function() {
64
- $.crayonFancybox.close();
65
- return false;
66
- };
67
-
68
- // XXX Loads dialog contents
69
- base.loadDialog = function() {
70
- // Loaded once url is given
71
- if (!loaded) {
72
- loaded = true;
73
- } else {
74
- return;
75
- }
76
-
77
- util.initFancybox();
78
-
79
- // Load the editor content
80
- CrayonUtil.getAJAX({action : 'crayon-tag-editor', is_admin : gs.is_admin}, function(data) {
81
- dialog = $('<div id="'+s.css+'"></div>');
82
- dialog.appendTo('body').hide();
83
- dialog.html(data);
84
-
85
- base.setOrigValues();
86
-
87
- submit = dialog.find(s.submit_css);
88
  cancel = dialog.find(s.cancel_css);
89
-
90
- code = $(s.code_css);
91
- clear = $('#crayon-te-clear');
92
- code_refresh = function () {
93
- var clear_visible = clear.is(":visible");
94
- if (code.val().length > 0 && !clear_visible) {
95
- clear.show();
96
- code.removeClass(gs.selected);
97
- } else if (code.val().length <= 0) {
98
- clear.hide();
99
- }
100
- };
101
-
102
- code.keyup(code_refresh);
103
- code.change(code_refresh);
104
- clear.click(function() {
105
- code.val('');
106
- code.removeClass(gs.selected);
107
- code.focus();
108
- });
109
-
110
- var url = $(s.url_css);
111
- var url_info = $(s.url_info_css);
112
- var exts = CrayonTagEditorSettings.extensions;
113
- url_refresh = function () {
114
- if (url.val().length > 0 && !url_info.is(":visible")) {
115
- url_info.show();
116
- url.removeClass(gs.selected);
117
- } else if (url.val().length <= 0) {
118
- url_info.hide();
119
- }
120
-
121
- // Check for extensions and select language automatically
122
- var ext = CrayonUtil.getExt(url.val());
123
- if (ext) {
124
- var lang = exts[ext];
125
- // Otherwise use the extention as the lang
126
- var lang_id = lang ? lang : ext;
127
- var final_lang = CrayonTagEditorSettings.fallback_lang;
128
- $(s.lang_css + ' option').each(function() {
129
- if ($(this).val() == lang_id) {
130
- final_lang = lang_id;
131
- }
132
- });
133
- $(s.lang_css).val(final_lang);
134
- }
135
- };
136
- url.keyup(url_refresh);
137
- url.change(url_refresh);
138
-
139
- var setting_change = function() {
140
- var setting = $(this);
141
- var orig_value = $(this).attr(gs.orig_value);
142
- if (typeof orig_value == 'undefined') {
143
- orig_value = '';
144
- }
145
- // Depends on type
146
- var value = base.settingValue(setting);
147
- CrayonUtil.log(setting.attr('id') + ' value: ' + value);
148
- var highlight = null;
149
- if (setting.is('input[type=checkbox]')) {
150
- highlight = setting.next('span');
151
- }
152
-
153
- CrayonUtil.log(' >>> ' + setting.attr('id') + ' is ' + orig_value + ' = ' + value);
154
- if (orig_value == value) {
155
- // No change
156
- setting.removeClass(gs.changed);
157
- if (highlight) {
158
- highlight.removeClass(gs.changed);
159
- }
160
- } else {
161
- // Changed
162
- setting.addClass(gs.changed);
163
- if (highlight) {
164
- highlight.addClass(gs.changed);
165
- }
166
- }
167
- // Save standardized value for later
168
- base.settingValue(setting, value);
169
- };
170
- $('.'+gs.setting+'[id]:not(.'+gs.special+')').each(function() {
171
- $(this).change(setting_change);
172
- $(this).keyup(setting_change);
173
- });
174
- });
175
- };
176
-
177
- // XXX Displays the dialog.
178
- base.showDialog = function(args) {
179
  args = $.extend({
180
- insert: null,
181
- edit: null,
182
- show: null,
183
- hide: base.hide,
184
- select: null,
185
- editor_str: null,
186
- ed: null,
187
- node: null,
188
- input: null,
189
- output: null
190
  }, args);
191
 
192
- // Need to reset all settings back to original, clear yellow highlighting
193
- base.resetSettings();
194
- // Save these for when we add a Crayon
195
- insertCallback = args.insert;
196
- editCallback = args.edit;
197
- showCallback = args.show;
198
- hideCallback = args.hide;
199
  selectCallback = args.select;
200
- inputHTML = args.input;
201
- outputHTML = args.output;
202
- editor_name = args.editor_str;
203
- var currNode = args.node;
204
- var currNode = args.node;
205
- is_inline = false;
206
-
207
- // Unbind submit
208
- submit.unbind();
209
- submit.click(function(e) {
210
- base.submitButton();
211
  e.preventDefault();
212
- });
213
- base.setSubmitText(s.submit_add);
214
 
215
  cancel.unbind();
216
  cancel.click(function (e) {
217
  base.hide();
218
  e.preventDefault();
219
  });
220
-
221
- if (base.isCrayon(currNode)) {
222
- currCrayon = $(currNode);
223
- if (currCrayon.length != 0) {
224
- // Read back settings for editing
225
- currClasses = currCrayon.attr('class');
226
- var re = new RegExp('\\b([A-Za-z-]+)'+s.attr_sep+'(\\S+)', 'gim');
227
- var matches = re.execAll(currClasses);
228
- // Retain all other classes, remove settings
229
- currClasses = $.trim(currClasses.replace(re, ''));
230
- var atts = {};
231
- for (var i in matches) {
232
- var id = matches[i][1];
233
- var value = matches[i][2];
234
- atts[id] = value;
235
- }
236
-
237
- // Title
238
- var title = currCrayon.attr('title');
239
- if (title) {
240
- atts['title'] = title;
241
- }
242
-
243
- // URL
244
- var url = currCrayon.attr('data-url');
245
- if (url) {
246
- atts['url'] = url;
247
- }
248
-
249
- // Inverted settings
250
- if (typeof atts['highlight'] != 'undefined') {
251
- atts['highlight'] = '0' ? '1' : '0';
252
- }
253
-
254
- // Inline
255
- is_inline = currCrayon.hasClass(s.inline_css);
256
- atts['inline'] = is_inline ? '1' : '0';
257
-
258
- // Ensure language goes to fallback if invalid
259
- var avail_langs = [];
260
- $(s.lang_css + ' option').each(function(){
261
- var value = $(this).val();
262
- if (value) {
263
- avail_langs.push(value);
264
- }
265
- });
266
- if ($.inArray(atts['lang'], avail_langs) == -1) {
267
- atts['lang'] = s.fallback_lang;
268
- }
269
-
270
- // Validate the attributes
271
- atts = base.validate(atts);
272
-
273
- // Load in attributes, add prefix
274
- for (var att in atts) {
275
- var setting = $('#' + gs.prefix + att + '.' + gs.setting);
276
- var value = atts[att];
277
- base.settingValue(setting, value);
278
- // Update highlights
279
- setting.change();
280
- // If global setting changes and we access settings, it should declare loaded settings as changed even if they equal the global value, just so they aren't lost on save
281
- if (!setting.hasClass(gs.special)) {
282
- setting.addClass(gs.changed);
283
- if (setting.is('input[type=checkbox]')) {
284
- highlight = setting.next('span');
285
- highlight.addClass(gs.changed);
286
- }
287
- }
288
- CrayonUtil.log('loaded: ' + att + ':' + value);
289
- }
290
-
291
- editing = true;
292
- base.setSubmitText(s.submit_edit);
293
-
294
- // Code
295
- var content = currCrayon.html();
296
- if (inputHTML == 'encode') {
297
- content = CrayonUtil.encode_html(content);
298
- } else if (inputHTML == 'decode') {
299
- content = CrayonUtil.decode_html(content);
300
- }
301
- code.val(content);
302
-
303
- } else {
304
- CrayonUtil.log('cannot load currNode of type pre');
305
- }
306
- } else {
307
- if (selectCallback) {
308
- // Add selected content as code
309
- code.val(selectCallback);
310
- }
311
- // We are creating a new Crayon, not editing
312
- editing = false;
313
- base.setSubmitText(s.submit_add);
314
- currCrayon = null;
315
- currClasses = '';
316
- }
317
-
318
- // Inline
319
- var inline = $('#' + s.inline_css);
320
- inline.change(function() {
321
- is_inline = $(this).is(':checked');
322
- var inline_hide = $('.' + s.inline_hide_css);
323
- var inline_single = $('.' + s.inline_hide_only_css);
324
- var disabled = [s.mark_css, s.range_css, s.title_css, s.url_css];
325
-
326
- for (var i in disabled) {
327
- var obj = $(disabled[i]);
328
- obj.attr('disabled', is_inline);
329
- }
330
-
331
- if (is_inline) {
332
- inline_hide.hide();
333
- inline_single.hide();
334
- inline_hide.closest('tr').hide();
335
- for (var i in disabled) {
336
- var obj = $(disabled[i]);
337
- obj.addClass('crayon-disabled');
338
- }
339
- } else {
340
- inline_hide.show();
341
- inline_single.show();
342
- inline_hide.closest('tr').show();
343
- for (var i in disabled) {
344
- var obj = $(disabled[i]);
345
- obj.removeClass('crayon-disabled');
346
- }
347
- }
348
- });
349
- inline.change();
350
-
351
- // Show the dialog
352
- var dialog_title = editing ? s.dialog_title_edit : s.dialog_title_add;
353
- $(s.dialog_title_css).html(dialog_title);
354
- if (showCallback) {
355
- showCallback();
356
- }
357
-
358
- code.focus();
359
- code_refresh();
360
- url_refresh();
361
- if (ajax_class_timer) {
362
- clearInterval(ajax_class_timer);
363
- ajax_class_timer_count = 0;
364
- }
365
-
366
- var ajax_window = $('#TB_window');
367
- ajax_window.hide();
368
- var fallback = function () {
369
- ajax_window.show();
370
- // Prevent draw artifacts
371
- var oldScroll = $(window).scrollTop();
372
- $(window).scrollTop(oldScroll+10);
373
- $(window).scrollTop(oldScroll-10);
374
- };
375
-
376
- ajax_class_timer = setInterval(function () {
377
- if ( typeof ajax_window != 'undefined' && !ajax_window.hasClass('crayon-te-ajax') ) {
378
- ajax_window.addClass('crayon-te-ajax');
379
- clearInterval(ajax_class_timer);
380
- fallback();
381
- }
382
- if (ajax_class_timer_count >= 100) {
383
- // In case it never loads, terminate
384
- clearInterval(ajax_class_timer);
385
- fallback();
386
- }
387
- ajax_class_timer_count++;
388
- }, 40);
389
- };
390
-
391
- // XXX Add Crayon to editor
392
- base.addCrayon = function() {
393
- var url = $(s.url_css);
394
- if (url.val().length == 0 && code.val().length == 0) {
395
- code.addClass(gs.selected);
396
- code.focus();
397
- return false;
398
- }
399
- code.removeClass(gs.selected);
400
-
401
- // Add inline for matching with CSS
402
- var inline = $('#' + s.inline_css);
403
- is_inline = inline.length != 0 && inline.is(':checked');
404
-
405
- // Spacing only for <pre>
406
- var br_before = br_after = '';
407
- if (!editing) {
408
- // Don't add spaces if editing
409
- if (!is_inline) {
410
- if (editor_name == 'html') {
411
- br_after = br_before = ' \n';
412
- } else {
413
- br_after = '<p>&nbsp;</p>';
414
- }
415
- } else {
416
- // Add a space after
417
- if (editor_name == 'html') {
418
- br_after = br_before = ' ';
419
- } else {
420
- br_after = '&nbsp;';
421
- }
422
- }
423
- }
424
-
425
- var tag = (is_inline ? 'span' : 'pre');
426
- var shortcode = br_before + '<' + tag + ' ';
427
-
428
- var atts = {};
429
- shortcode += 'class="';
430
-
431
- var inline_re = new RegExp('\\b' + s.inline_css + '\\b', 'gim');
432
- if (is_inline) {
433
- // If don't have inline class, add it
434
- if (inline_re.exec(currClasses) == null) {
435
- currClasses += ' ' + s.inline_css + ' ';
436
- }
437
- } else {
438
- // Remove inline css if it exists
439
- currClasses = currClasses.replace(inline_re,'');
440
- }
441
-
442
- // Grab settings as attributes
443
- $('.'+gs.changed+'[id],.'+gs.changed+'['+s.data_value+']').each(function() {
444
- var id = $(this).attr('id');
445
- var value = $(this).attr(s.data_value);
446
- // Remove prefix
447
- id = util.removePrefixFromID(id);
448
- atts[id] = value;
449
- });
450
-
451
- // Settings
452
- atts['lang'] = $(s.lang_css).val();
453
- var mark = $(s.mark_css).val();
454
- if (mark.length != 0 && !is_inline) {
455
- atts['mark'] = mark;
456
- }
457
- var range = $(s.range_css).val();
458
- if (range.length != 0 && !is_inline) {
459
- atts['range'] = range;
460
- }
461
-
462
- // XXX Code highlighting, checked means 0!
463
- if ($(s.hl_css).is(':checked')) {
464
- atts['highlight'] = '0';
465
- }
466
-
467
- // XXX Very important when working with editor
468
- atts['decode'] = 'true';
469
-
470
- // Validate the attributes
471
- atts = base.validate(atts);
472
-
473
- for (var id in atts) {
474
- // Remove prefix, if exists
475
- var value = atts[id];
476
- CrayonUtil.log('add '+id+':'+value);
477
- shortcode += id + s.attr_sep + value + ' ';
478
- }
479
-
480
- // Add classes
481
- shortcode += currClasses;
482
- // Don't forget to close quote for class
483
- shortcode += '" ';
484
-
485
- if (!is_inline) {
486
- // Title
487
- var title = $(s.title_css).val();
488
- if (title.length != 0) {
489
- shortcode += 'title="' + title + '" ';
490
- }
491
- // URL
492
- var url = $(s.url_css).val();
493
- if (url.length != 0) {
494
- shortcode += 'data-url="' + url + '" ';
495
- }
496
- }
497
-
498
- var content = $(s.code_css).val();
499
- if (outputHTML == 'encode') {
500
- content = CrayonUtil.encode_html(content);
501
- } else if (outputHTML == 'decode') {
502
- content = CrayonUtil.decode_html(content);
503
- }
504
- content = typeof content != 'undefined' ? content : '';
505
- shortcode += '>' + content + '</' + tag + '>' + br_after;
506
-
507
- if (editing && editCallback) {
508
- // Edit the current selected node
509
- editCallback(shortcode);
510
- } else if (insertCallback) {
511
- // Insert the tag and hide dialog
512
- insertCallback(shortcode);
513
- }
514
-
515
- return true;
516
- };
517
-
518
- base.submitButton = function() {
519
- CrayonUtil.log('submit');
520
- if (base.addCrayon() != false) {
521
- base.hideDialog();
522
- }
523
- };
524
-
525
- base.hideDialog = function() {
526
- CrayonUtil.log('hide');
527
- if (hideCallback) {
528
- hideCallback();
529
- }
530
- };
531
-
532
- // XXX Auxiliary methods
533
-
534
- base.setOrigValues = function() {
535
- $('.'+gs.setting+'[id]').each(function() {
536
- var setting = $(this);
537
- setting.attr(gs.orig_value, base.settingValue(setting));
538
- });
539
- };
540
-
541
- base.resetSettings = function() {
542
- CrayonUtil.log('reset');
543
- $('.'+gs.setting).each(function() {
544
- var setting = $(this);
545
- base.settingValue(setting, setting.attr(gs.orig_value));
546
- // Update highlights
547
- setting.change();
548
- });
549
- code.val('');
550
- };
551
-
552
- base.settingValue = function(setting, value) {
553
- if (typeof value == 'undefined') {
554
- // getter
555
- value = '';
556
- if (setting.is('input[type=checkbox]')) {
557
- // Boolean is stored as string
558
- value = setting.is(':checked') ? 'true' : 'false';
559
- } else {
560
- value = setting.val();
561
- }
562
- return value;
563
- } else {
564
- // setter
565
- if (setting.is('input[type=checkbox]')) {
566
- if (typeof value == 'string') {
567
- if (value == 'true' || value == '1') {
568
- value = true;
569
- } else if (value == 'false' || value == '0') {
570
- value = false;
571
- }
572
- }
573
- setting.prop('checked', value);
574
- } else {
575
- setting.val(value);
576
- }
577
- setting.attr(s.data_value, value);
578
- }
579
- };
580
-
581
- base.validate = function(atts) {
582
- var fields = ['range', 'mark'];
583
- for (var i in fields) {
584
- var field = fields[i];
585
- if (typeof atts[field] != 'undefined') {
586
- atts[field] = atts[field].replace(/\s/g, '');
587
- }
588
- }
589
- return atts;
590
- };
591
-
592
- base.isCrayon = function(node) {
593
- return node != null &&
594
- (node.nodeName == 'PRE' || (node.nodeName == 'SPAN' && $(node).hasClass(s.inline_css)));
595
- };
596
-
597
- base.elemValue = function(obj) {
598
- var value = null;
599
- if (obj.is('input[type=checkbox]')) {
600
- value = obj.is(':checked');
601
- } else {
602
- value = obj.val();
603
- }
604
- return value;
605
- };
606
-
607
- base.setSubmitText = function(text) {
608
- submit.html(text);
609
- };
610
-
611
- };
612
  })(jQueryCrayon);
1
+ (function ($) {
2
+
3
+ window.CrayonTagEditor = new function () {
4
+ var base = this;
5
+
6
+ var isInit = false;
7
+ var loaded = false;
8
+ var editing = false;
9
+ var insertCallback, editCallback, showCallback, hideCallback, selectCallback;
10
+ // Used for encoding, decoding
11
+ var inputHTML, outputHTML, editor_name, ajax_class_timer;
12
+ var ajax_class_timer_count = 0;
13
+
14
+ var code_refresh, url_refresh;
15
+
16
+ // Current $ obj of pre node
17
+ var currCrayon = null;
18
+ // Classes from pre node, excl. settings
19
+ var currClasses = '';
20
+ // Whether to make span or pre
21
+ var is_inline = false;
22
+
23
+ // Generated in WP and contains the settings
24
+ var s, gs, util;
25
+
26
+ // CSS
27
+ var dialog, code, clear, submit, cancel;
28
+
29
+ base.init = function () {
30
+ s = CrayonTagEditorSettings;
31
+ gs = CrayonSyntaxSettings;
32
+ util = CrayonUtil;
33
+ };
34
+
35
+ base.bind = function (button) {
36
+ if (!isInit) {
37
+ isInit = true;
38
+ base.init();
39
+ }
40
+
41
+ base.loadDialog();
42
+ $(button).colorbox({
43
+ inline:true,
44
+ href:s.content_css,
45
+ width:690,
46
+ height:'90%',
47
+ closeButton:false,
48
+ fixed:true,
49
+ transition: 'none',
50
+ className:'crayon-colorbox',
51
+ onOpen:function () {
52
+ $(this.outer).prepend($(s.bar_content));
53
+ },
54
+ onComplete:function () {
55
+ $(s.code_css).focus();
56
+ },
57
+ onCleanup:function () {
58
+ $(s.bar).prepend($(s.bar_content));
59
+ }
60
+ });
61
+ };
62
+
63
+ base.hide = function () {
64
+ $.colorbox.close();
65
+ return false;
66
+ };
67
+
68
+ // XXX Loads dialog contents
69
+ base.loadDialog = function () {
70
+ // Loaded once url is given
71
+ if (!loaded) {
72
+ loaded = true;
73
+ } else {
74
+ return;
75
+ }
76
+ // Load the editor content
77
+ CrayonUtil.getAJAX({action:'crayon-tag-editor', is_admin:gs.is_admin}, function (data) {
78
+ dialog = $('<div id="' + s.css + '"></div>');
79
+ dialog.appendTo('body').hide();
80
+ dialog.html(data);
81
+
82
+ base.setOrigValues();
83
+
84
+ submit = dialog.find(s.submit_css);
 
 
 
85
  cancel = dialog.find(s.cancel_css);
86
+
87
+ code = $(s.code_css);
88
+ clear = $('#crayon-te-clear');
89
+ code_refresh = function () {
90
+ var clear_visible = clear.is(":visible");
91
+ if (code.val().length > 0 && !clear_visible) {
92
+ clear.show();
93
+ code.removeClass(gs.selected);
94
+ } else if (code.val().length <= 0) {
95
+ clear.hide();
96
+ }
97
+ };
98
+
99
+ code.keyup(code_refresh);
100
+ code.change(code_refresh);
101
+ clear.click(function () {
102
+ code.val('');
103
+ code.removeClass(gs.selected);
104
+ code.focus();
105
+ });
106
+
107
+ var url = $(s.url_css);
108
+ var url_info = $(s.url_info_css);
109
+ var exts = CrayonTagEditorSettings.extensions;
110
+ url_refresh = function () {
111
+ if (url.val().length > 0 && !url_info.is(":visible")) {
112
+ url_info.show();
113
+ url.removeClass(gs.selected);
114
+ } else if (url.val().length <= 0) {
115
+ url_info.hide();
116
+ }
117
+
118
+ // Check for extensions and select language automatically
119
+ var ext = CrayonUtil.getExt(url.val());
120
+ if (ext) {
121
+ var lang = exts[ext];
122
+ // Otherwise use the extention as the lang
123
+ var lang_id = lang ? lang : ext;
124
+ var final_lang = CrayonTagEditorSettings.fallback_lang;
125
+ $(s.lang_css + ' option').each(function () {
126
+ if ($(this).val() == lang_id) {
127
+ final_lang = lang_id;
128
+ }
129
+ });
130
+ $(s.lang_css).val(final_lang);
131
+ }
132
+ };
133
+ url.keyup(url_refresh);
134
+ url.change(url_refresh);
135
+
136
+ var setting_change = function () {
137
+ var setting = $(this);
138
+ var orig_value = $(this).attr(gs.orig_value);
139
+ if (typeof orig_value == 'undefined') {
140
+ orig_value = '';
141
+ }
142
+ // Depends on type
143
+ var value = base.settingValue(setting);
144
+ CrayonUtil.log(setting.attr('id') + ' value: ' + value);
145
+ var highlight = null;
146
+ if (setting.is('input[type=checkbox]')) {
147
+ highlight = setting.next('span');
148
+ }
149
+
150
+ CrayonUtil.log(' >>> ' + setting.attr('id') + ' is ' + orig_value + ' = ' + value);
151
+ if (orig_value == value) {
152
+ // No change
153
+ setting.removeClass(gs.changed);
154
+ if (highlight) {
155
+ highlight.removeClass(gs.changed);
156
+ }
157
+ } else {
158
+ // Changed
159
+ setting.addClass(gs.changed);
160
+ if (highlight) {
161
+ highlight.addClass(gs.changed);
162
+ }
163
+ }
164
+ // Save standardized value for later
165
+ base.settingValue(setting, value);
166
+ };
167
+ $('.' + gs.setting + '[id]:not(.' + gs.special + ')').each(function () {
168
+ $(this).change(setting_change);
169
+ $(this).keyup(setting_change);
170
+ });
171
+ });
172
+ };
173
+
174
+ // XXX Displays the dialog.
175
+ base.showDialog = function (args) {
176
  args = $.extend({
177
+ insert:null,
178
+ edit:null,
179
+ show:null,
180
+ hide:base.hide,
181
+ select:null,
182
+ editor_str:null,
183
+ ed:null,
184
+ node:null,
185
+ input:null,
186
+ output:null
187
  }, args);
188
 
189
+ // Need to reset all settings back to original, clear yellow highlighting
190
+ base.resetSettings();
191
+ // Save these for when we add a Crayon
192
+ insertCallback = args.insert;
193
+ editCallback = args.edit;
194
+ showCallback = args.show;
195
+ hideCallback = args.hide;
196
  selectCallback = args.select;
197
+ inputHTML = args.input;
198
+ outputHTML = args.output;
199
+ editor_name = args.editor_str;
200
+ var currNode = args.node;
201
+ var currNode = args.node;
202
+ is_inline = false;
203
+
204
+ // Unbind submit
205
+ submit.unbind();
206
+ submit.click(function (e) {
207
+ base.submitButton();
208
  e.preventDefault();
209
+ });
210
+ base.setSubmitText(s.submit_add);
211
 
212
  cancel.unbind();
213
  cancel.click(function (e) {
214
  base.hide();
215
  e.preventDefault();
216
  });
217
+
218
+ if (base.isCrayon(currNode)) {
219
+ currCrayon = $(currNode);
220
+ if (currCrayon.length != 0) {
221
+ // Read back settings for editing
222
+ currClasses = currCrayon.attr('class');
223
+ var re = new RegExp('\\b([A-Za-z-]+)' + s.attr_sep + '(\\S+)', 'gim');
224
+ var matches = re.execAll(currClasses);
225
+ // Retain all other classes, remove settings
226
+ currClasses = $.trim(currClasses.replace(re, ''));
227
+ var atts = {};
228
+ for (var i in matches) {
229
+ var id = matches[i][1];
230
+ var value = matches[i][2];
231
+ atts[id] = value;
232
+ }
233
+
234
+ // Title
235
+ var title = currCrayon.attr('title');
236
+ if (title) {
237
+ atts['title'] = title;
238
+ }
239
+
240
+ // URL
241
+ var url = currCrayon.attr('data-url');
242
+ if (url) {
243
+ atts['url'] = url;
244
+ }
245
+
246
+ // Inverted settings
247
+ if (typeof atts['highlight'] != 'undefined') {
248
+ atts['highlight'] = '0' ? '1' : '0';
249
+ }
250
+
251
+ // Inline
252
+ is_inline = currCrayon.hasClass(s.inline_css);
253
+ atts['inline'] = is_inline ? '1' : '0';
254
+
255
+ // Ensure language goes to fallback if invalid
256
+ var avail_langs = [];
257
+ $(s.lang_css + ' option').each(function () {
258
+ var value = $(this).val();
259
+ if (value) {
260
+ avail_langs.push(value);
261
+ }
262
+ });
263
+ if ($.inArray(atts['lang'], avail_langs) == -1) {
264
+ atts['lang'] = s.fallback_lang;
265
+ }
266
+
267
+ // Validate the attributes
268
+ atts = base.validate(atts);
269
+
270
+ // Load in attributes, add prefix
271
+ for (var att in atts) {
272
+ var setting = $('#' + gs.prefix + att + '.' + gs.setting);
273
+ var value = atts[att];
274
+ base.settingValue(setting, value);
275
+ // Update highlights
276
+ setting.change();
277
+ // If global setting changes and we access settings, it should declare loaded settings as changed even if they equal the global value, just so they aren't lost on save
278
+ if (!setting.hasClass(gs.special)) {
279
+ setting.addClass(gs.changed);
280
+ if (setting.is('input[type=checkbox]')) {
281
+ highlight = setting.next('span');
282
+ highlight.addClass(gs.changed);
283
+ }
284
+ }
285
+ CrayonUtil.log('loaded: ' + att + ':' + value);
286
+ }
287
+
288
+ editing = true;
289
+ base.setSubmitText(s.submit_edit);
290
+
291
+ // Code
292
+ var content = currCrayon.html();
293
+ if (inputHTML == 'encode') {
294
+ content = CrayonUtil.encode_html(content);
295
+ } else if (inputHTML == 'decode') {
296
+ content = CrayonUtil.decode_html(content);
297
+ }
298
+ code.val(content);
299
+
300
+ } else {
301
+ CrayonUtil.log('cannot load currNode of type pre');
302
+ }
303
+ } else {
304
+ if (selectCallback) {
305
+ // Add selected content as code
306
+ code.val(selectCallback);
307
+ }
308
+ // We are creating a new Crayon, not editing
309
+ editing = false;
310
+ base.setSubmitText(s.submit_add);
311
+ currCrayon = null;
312
+ currClasses = '';
313
+ }
314
+
315
+ // Inline
316
+ var inline = $('#' + s.inline_css);
317
+ inline.change(function () {
318
+ is_inline = $(this).is(':checked');
319
+ var inline_hide = $('.' + s.inline_hide_css);
320
+ var inline_single = $('.' + s.inline_hide_only_css);
321
+ var disabled = [s.mark_css, s.range_css, s.title_css, s.url_css];
322
+
323
+ for (var i in disabled) {
324
+ var obj = $(disabled[i]);
325
+ obj.attr('disabled', is_inline);
326
+ }
327
+
328
+ if (is_inline) {
329
+ inline_hide.hide();
330
+ inline_single.hide();
331
+ inline_hide.closest('tr').hide();
332
+ for (var i in disabled) {
333
+ var obj = $(disabled[i]);
334
+ obj.addClass('crayon-disabled');
335
+ }
336
+ } else {
337
+ inline_hide.show();
338
+ inline_single.show();
339
+ inline_hide.closest('tr').show();
340
+ for (var i in disabled) {
341
+ var obj = $(disabled[i]);
342
+ obj.removeClass('crayon-disabled');
343
+ }
344
+ }
345
+ });
346
+ inline.change();
347
+
348
+ // Show the dialog
349
+ var dialog_title = editing ? s.dialog_title_edit : s.dialog_title_add;
350
+ $(s.dialog_title_css).html(dialog_title);
351
+ if (showCallback) {
352
+ showCallback();
353
+ }
354
+
355
+ code.focus();
356
+ code_refresh();
357
+ url_refresh();
358
+ if (ajax_class_timer) {
359
+ clearInterval(ajax_class_timer);
360
+ ajax_class_timer_count = 0;
361
+ }
362
+
363
+ var ajax_window = $('#TB_window');
364
+ ajax_window.hide();
365
+ var fallback = function () {
366
+ ajax_window.show();
367
+ // Prevent draw artifacts
368
+ var oldScroll = $(window).scrollTop();
369
+ $(window).scrollTop(oldScroll + 10);
370
+ $(window).scrollTop(oldScroll - 10);
371
+ };
372
+
373
+ ajax_class_timer = setInterval(function () {
374
+ if (typeof ajax_window != 'undefined' && !ajax_window.hasClass('crayon-te-ajax')) {
375
+ ajax_window.addClass('crayon-te-ajax');
376
+ clearInterval(ajax_class_timer);
377
+ fallback();
378
+ }
379
+ if (ajax_class_timer_count >= 100) {
380
+ // In case it never loads, terminate
381
+ clearInterval(ajax_class_timer);
382
+ fallback();
383
+ }
384
+ ajax_class_timer_count++;
385
+ }, 40);
386
+ };
387
+
388
+ // XXX Add Crayon to editor
389
+ base.addCrayon = function () {
390
+ var url = $(s.url_css);
391
+ if (url.val().length == 0 && code.val().length == 0) {
392
+ code.addClass(gs.selected);
393
+ code.focus();
394
+ return false;
395
+ }
396
+ code.removeClass(gs.selected);
397
+
398
+ // Add inline for matching with CSS
399
+ var inline = $('#' + s.inline_css);
400
+ is_inline = inline.length != 0 && inline.is(':checked');
401
+
402
+ // Spacing only for <pre>
403
+ var br_before = br_after = '';
404
+ if (!editing) {
405
+ // Don't add spaces if editing
406
+ if (!is_inline) {
407
+ if (editor_name == 'html') {
408
+ br_after = br_before = ' \n';
409
+ } else {
410
+ br_after = '<p>&nbsp;</p>';
411
+ }
412
+ } else {
413
+ // Add a space after
414
+ if (editor_name == 'html') {
415
+ br_after = br_before = ' ';
416
+ } else {
417
+ br_after = '&nbsp;';
418
+ }
419
+ }
420
+ }
421
+
422
+ var tag = (is_inline ? 'span' : 'pre');
423
+ var shortcode = br_before + '<' + tag + ' ';
424
+
425
+ var atts = {};
426
+ shortcode += 'class="';
427
+
428
+ var inline_re = new RegExp('\\b' + s.inline_css + '\\b', 'gim');
429
+ if (is_inline) {
430
+ // If don't have inline class, add it
431
+ if (inline_re.exec(currClasses) == null) {
432
+ currClasses += ' ' + s.inline_css + ' ';
433
+ }
434
+ } else {
435
+ // Remove inline css if it exists
436
+ currClasses = currClasses.replace(inline_re, '');
437
+ }
438
+
439
+ // Grab settings as attributes
440
+ $('.' + gs.changed + '[id],.' + gs.changed + '[' + s.data_value + ']').each(function () {
441
+ var id = $(this).attr('id');
442
+ var value = $(this).attr(s.data_value);
443
+ // Remove prefix
444
+ id = util.removePrefixFromID(id);
445
+ atts[id] = value;
446
+ });
447
+
448
+ // Settings
449
+ atts['lang'] = $(s.lang_css).val();
450
+ var mark = $(s.mark_css).val();
451
+ if (mark.length != 0 && !is_inline) {
452
+ atts['mark'] = mark;
453
+ }
454
+ var range = $(s.range_css).val();
455
+ if (range.length != 0 && !is_inline) {
456
+ atts['range'] = range;
457
+ }
458
+
459
+ // XXX Code highlighting, checked means 0!
460
+ if ($(s.hl_css).is(':checked')) {
461
+ atts['highlight'] = '0';
462
+ }
463
+
464
+ // XXX Very important when working with editor
465
+ atts['decode'] = 'true';
466
+
467
+ // Validate the attributes
468
+ atts = base.validate(atts);
469
+
470
+ for (var id in atts) {
471
+ // Remove prefix, if exists
472
+ var value = atts[id];
473
+ CrayonUtil.log('add ' + id + ':' + value);
474
+ shortcode += id + s.attr_sep + value + ' ';
475
+ }
476
+
477
+ // Add classes
478
+ shortcode += currClasses;
479
+ // Don't forget to close quote for class
480
+ shortcode += '" ';
481
+
482
+ if (!is_inline) {
483
+ // Title
484
+ var title = $(s.title_css).val();
485
+ if (title.length != 0) {
486
+ shortcode += 'title="' + title + '" ';
487
+ }
488
+ // URL
489
+ var url = $(s.url_css).val();
490
+ if (url.length != 0) {
491
+ shortcode += 'data-url="' + url + '" ';
492
+ }
493
+ }
494
+
495
+ var content = $(s.code_css).val();
496
+ if (outputHTML == 'encode') {
497
+ content = CrayonUtil.encode_html(content);
498
+ } else if (outputHTML == 'decode') {
499
+ content = CrayonUtil.decode_html(content);
500
+ }
501
+ content = typeof content != 'undefined' ? content : '';
502
+ shortcode += '>' + content + '</' + tag + '>' + br_after;
503
+
504
+ if (editing && editCallback) {
505
+ // Edit the current selected node
506
+ editCallback(shortcode);
507
+ } else if (insertCallback) {
508
+ // Insert the tag and hide dialog
509
+ insertCallback(shortcode);
510
+ }
511
+
512
+ return true;
513
+ };
514
+
515
+ base.submitButton = function () {
516
+ CrayonUtil.log('submit');
517
+ if (base.addCrayon() != false) {
518
+ base.hideDialog();
519
+ }
520
+ };
521
+
522
+ base.hideDialog = function () {
523
+ CrayonUtil.log('hide');
524
+ if (hideCallback) {
525
+ hideCallback();
526
+ }
527
+ };
528
+
529
+ // XXX Auxiliary methods
530
+
531
+ base.setOrigValues = function () {
532
+ $('.' + gs.setting + '[id]').each(function () {
533
+ var setting = $(this);
534
+ setting.attr(gs.orig_value, base.settingValue(setting));
535
+ });
536
+ };
537
+
538
+ base.resetSettings = function () {
539
+ CrayonUtil.log('reset');
540
+ $('.' + gs.setting).each(function () {
541
+ var setting = $(this);
542
+ base.settingValue(setting, setting.attr(gs.orig_value));
543
+ // Update highlights
544
+ setting.change();
545
+ });
546
+ code.val('');
547
+ };
548
+
549
+ base.settingValue = function (setting, value) {
550
+ if (typeof value == 'undefined') {
551
+ // getter
552
+ value = '';
553
+ if (setting.is('input[type=checkbox]')) {
554
+ // Boolean is stored as string
555
+ value = setting.is(':checked') ? 'true' : 'false';
556
+ } else {
557
+ value = setting.val();
558
+ }
559
+ return value;
560
+ } else {
561
+ // setter
562
+ if (setting.is('input[type=checkbox]')) {
563
+ if (typeof value == 'string') {
564
+ if (value == 'true' || value == '1') {
565
+ value = true;
566
+ } else if (value == 'false' || value == '0') {
567
+ value = false;
568
+ }
569
+ }
570
+ setting.prop('checked', value);
571
+ } else {
572
+ setting.val(value);
573
+ }
574
+ setting.attr(s.data_value, value);
575
+ }
576
+ };
577
+
578
+ base.validate = function (atts) {
579
+ var fields = ['range', 'mark'];
580
+ for (var i in fields) {
581
+ var field = fields[i];
582
+ if (typeof atts[field] != 'undefined') {
583
+ atts[field] = atts[field].replace(/\s/g, '');
584
+ }
585
+ }
586
+ return atts;
587
+ };
588
+
589
+ base.isCrayon = function (node) {
590
+ return node != null &&
591
+ (node.nodeName == 'PRE' || (node.nodeName == 'SPAN' && $(node).hasClass(s.inline_css)));
592
+ };
593
+
594
+ base.elemValue = function (obj) {
595
+ var value = null;
596
+ if (obj.is('input[type=checkbox]')) {
597
+ value = obj.is(':checked');
598
+ } else {
599
+ value = obj.val();
600
+ }
601
+ return value;
602
+ };
603
+
604
+ base.setSubmitText = function (text) {
605
+ submit.html(text);
606
+ };
607
+
608
+ };
609
  })(jQueryCrayon);
util/tag-editor/crayon_tag_editor_wp.class.php CHANGED
@@ -81,9 +81,7 @@ class CrayonTagEditorWP {
81
  CrayonSettingsWP::init_js_settings();
82
  wp_localize_script('crayon_js_min', 'CrayonTagEditorSettings', self::$settings);
83
  } else {
84
- wp_enqueue_style('crayon_fancybox', plugins_url(CRAYON_CSS_FANCYBOX, $path), array(), $CRAYON_VERSION);
85
- wp_enqueue_script('crayon_fancybox', plugins_url(CRAYON_JS_FANCYBOX, $path), array('jquery'), $CRAYON_VERSION);
86
- wp_enqueue_script('crayon_te_js', plugins_url(CRAYON_TAG_EDITOR_JS, __FILE__), array('crayon_fancybox', 'crayon_util_js'), $CRAYON_VERSION);
87
  wp_enqueue_script('crayon_qt_js', plugins_url(CRAYON_QUICKTAGS_JS, __FILE__), array('quicktags', 'crayon_te_js'), $CRAYON_VERSION, TRUE);
88
  wp_localize_script('crayon_te_js', 'CrayonTagEditorSettings', self::$settings);
89
  CrayonSettingsWP::other_scripts();
81
  CrayonSettingsWP::init_js_settings();
82
  wp_localize_script('crayon_js_min', 'CrayonTagEditorSettings', self::$settings);
83
  } else {
84
+ wp_enqueue_script('crayon_te_js', plugins_url(CRAYON_TAG_EDITOR_JS, __FILE__), array('crayon_util_js'), $CRAYON_VERSION);
 
 
85
  wp_enqueue_script('crayon_qt_js', plugins_url(CRAYON_QUICKTAGS_JS, __FILE__), array('quicktags', 'crayon_te_js'), $CRAYON_VERSION, TRUE);
86
  wp_localize_script('crayon_te_js', 'CrayonTagEditorSettings', self::$settings);
87
  CrayonSettingsWP::other_scripts();
util/tag-editor/crayon_tinymce.js CHANGED
@@ -125,8 +125,8 @@
125
  // No pre selected
126
  base.setHighlight(false);
127
  }
128
- var tooltip = currPre ? s.dialog_title_edit : s.dialog_title_add;
129
- $(s.tinymce_button).attr('title', tooltip);
130
  }
131
  });
132
 
125
  // No pre selected
126
  base.setHighlight(false);
127
  }
128
+ // var tooltip = currPre ? s.dialog_title_edit : s.dialog_title_add;
129
+ // $(s.tinymce_button).attr('title', tooltip);
130
  }
131
  });
132