Initial import from local backup (Documents-Playground/pakerpale)
This commit is contained in:
1920
assets/js/bootstrap-datepicker.js
vendored
Normal file
1920
assets/js/bootstrap-datepicker.js
vendored
Normal file
File diff suppressed because it is too large
Load Diff
13
assets/js/bootstrap-datepicker.kr.js
vendored
Normal file
13
assets/js/bootstrap-datepicker.kr.js
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
/**
|
||||
* Korean translation for bootstrap-datepicker
|
||||
* Gu Youn <http://github.com/guyoun>
|
||||
*/
|
||||
;(function($){
|
||||
$.fn.datepicker.dates['kr'] = {
|
||||
days: ["일요일", "월요일", "화요일", "수요일", "목요일", "금요일", "토요일", "일요일"],
|
||||
daysShort: ["일", "월", "화", "수", "목", "금", "토", "일"],
|
||||
daysMin: ["일", "월", "화", "수", "목", "금", "토", "일"],
|
||||
months: ["1월", "2월", "3월", "4월", "5월", "6월", "7월", "8월", "9월", "10월", "11월", "12월"],
|
||||
monthsShort: ["1월", "2월", "3월", "4월", "5월", "6월", "7월", "8월", "9월", "10월", "11월", "12월"]
|
||||
};
|
||||
}(jQuery));
|
||||
7
assets/js/bootstrap.min.js
vendored
Normal file
7
assets/js/bootstrap.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
25
assets/js/bxslider/bower.json
Normal file
25
assets/js/bxslider/bower.json
Normal file
@@ -0,0 +1,25 @@
|
||||
{
|
||||
"name": "bxslider-4",
|
||||
"version": "4.1.2",
|
||||
"homepage": "http://bxslider.com",
|
||||
"license": "MIT",
|
||||
"main": [
|
||||
"jquery.bxslider.js",
|
||||
"jquery.bxslider.css",
|
||||
"images/bx_loader.gif",
|
||||
"images/controls.png"
|
||||
],
|
||||
"keywords": [
|
||||
"bxslider",
|
||||
"javascript",
|
||||
"jquery",
|
||||
"library"
|
||||
],
|
||||
"ignore": [
|
||||
"**/.*",
|
||||
"*.md"
|
||||
],
|
||||
"dependencies": {
|
||||
"jquery": ">=1.6"
|
||||
}
|
||||
}
|
||||
BIN
assets/js/bxslider/images/bx_loader.gif
Normal file
BIN
assets/js/bxslider/images/bx_loader.gif
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 8.4 KiB |
BIN
assets/js/bxslider/images/controls.png
Normal file
BIN
assets/js/bxslider/images/controls.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.7 KiB |
204
assets/js/bxslider/jquery.bxslider.css
Normal file
204
assets/js/bxslider/jquery.bxslider.css
Normal file
@@ -0,0 +1,204 @@
|
||||
/**
|
||||
* BxSlider v4.1.2 - Fully loaded, responsive content slider
|
||||
* http://bxslider.com
|
||||
*
|
||||
* Written by: Steven Wanderski, 2014
|
||||
* http://stevenwanderski.com
|
||||
* (while drinking Belgian ales and listening to jazz)
|
||||
*
|
||||
* CEO and founder of bxCreative, LTD
|
||||
* http://bxcreative.com
|
||||
*/
|
||||
|
||||
|
||||
/** RESET AND LAYOUT
|
||||
===================================*/
|
||||
|
||||
.bx-wrapper {
|
||||
position: relative;
|
||||
margin: 0 auto 60px;
|
||||
padding: 0;
|
||||
*zoom: 1;
|
||||
}
|
||||
|
||||
.bx-wrapper img {
|
||||
max-width: 100%;
|
||||
display: block;
|
||||
}
|
||||
|
||||
/** THEME
|
||||
===================================*/
|
||||
|
||||
.bx-wrapper .bx-viewport {
|
||||
-moz-box-shadow: 0 0 5px #ccc;
|
||||
-webkit-box-shadow: 0 0 5px #ccc;
|
||||
box-shadow: 0 0 5px #ccc;
|
||||
border: 5px solid #fff;
|
||||
left: -5px;
|
||||
background: #fff;
|
||||
|
||||
/*fix other elements on the page moving (on Chrome)*/
|
||||
-webkit-transform: translatez(0);
|
||||
-moz-transform: translatez(0);
|
||||
-ms-transform: translatez(0);
|
||||
-o-transform: translatez(0);
|
||||
transform: translatez(0);
|
||||
}
|
||||
|
||||
.bx-wrapper .bx-pager,
|
||||
.bx-wrapper .bx-controls-auto {
|
||||
position: absolute;
|
||||
bottom: -30px;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
/* LOADER */
|
||||
|
||||
.bx-wrapper .bx-loading {
|
||||
min-height: 50px;
|
||||
background: url(images/bx_loader.gif) center center no-repeat #fff;
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
z-index: 2000;
|
||||
}
|
||||
|
||||
/* PAGER */
|
||||
|
||||
.bx-wrapper .bx-pager {
|
||||
text-align: center;
|
||||
font-size: .85em;
|
||||
font-family: Arial;
|
||||
font-weight: bold;
|
||||
color: #666;
|
||||
padding-top: 20px;
|
||||
}
|
||||
|
||||
.bx-wrapper .bx-pager .bx-pager-item,
|
||||
.bx-wrapper .bx-controls-auto .bx-controls-auto-item {
|
||||
display: inline-block;
|
||||
*zoom: 1;
|
||||
*display: inline;
|
||||
}
|
||||
|
||||
.bx-wrapper .bx-pager.bx-default-pager a {
|
||||
background: #666;
|
||||
text-indent: -9999px;
|
||||
display: block;
|
||||
width: 10px;
|
||||
height: 10px;
|
||||
margin: 0 5px;
|
||||
outline: 0;
|
||||
-moz-border-radius: 5px;
|
||||
-webkit-border-radius: 5px;
|
||||
border-radius: 5px;
|
||||
}
|
||||
|
||||
.bx-wrapper .bx-pager.bx-default-pager a:hover,
|
||||
.bx-wrapper .bx-pager.bx-default-pager a.active {
|
||||
background: #000;
|
||||
}
|
||||
|
||||
/* DIRECTION CONTROLS (NEXT / PREV) */
|
||||
|
||||
.bx-wrapper .bx-prev {
|
||||
left: 10px;
|
||||
background: url(images/controls.png) no-repeat 0 -32px;
|
||||
}
|
||||
|
||||
.bx-wrapper .bx-next {
|
||||
right: 10px;
|
||||
background: url(images/controls.png) no-repeat -43px -32px;
|
||||
}
|
||||
|
||||
.bx-wrapper .bx-prev:hover {
|
||||
background-position: 0 0;
|
||||
}
|
||||
|
||||
.bx-wrapper .bx-next:hover {
|
||||
background-position: -43px 0;
|
||||
}
|
||||
|
||||
.bx-wrapper .bx-controls-direction a {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
margin-top: -16px;
|
||||
outline: 0;
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
text-indent: -9999px;
|
||||
z-index: 9999;
|
||||
}
|
||||
|
||||
.bx-wrapper .bx-controls-direction a.disabled {
|
||||
display: none;
|
||||
}
|
||||
|
||||
/* AUTO CONTROLS (START / STOP) */
|
||||
|
||||
.bx-wrapper .bx-controls-auto {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.bx-wrapper .bx-controls-auto .bx-start {
|
||||
display: block;
|
||||
text-indent: -9999px;
|
||||
width: 10px;
|
||||
height: 11px;
|
||||
outline: 0;
|
||||
background: url(images/controls.png) -86px -11px no-repeat;
|
||||
margin: 0 3px;
|
||||
}
|
||||
|
||||
.bx-wrapper .bx-controls-auto .bx-start:hover,
|
||||
.bx-wrapper .bx-controls-auto .bx-start.active {
|
||||
background-position: -86px 0;
|
||||
}
|
||||
|
||||
.bx-wrapper .bx-controls-auto .bx-stop {
|
||||
display: block;
|
||||
text-indent: -9999px;
|
||||
width: 9px;
|
||||
height: 11px;
|
||||
outline: 0;
|
||||
background: url(images/controls.png) -86px -44px no-repeat;
|
||||
margin: 0 3px;
|
||||
}
|
||||
|
||||
.bx-wrapper .bx-controls-auto .bx-stop:hover,
|
||||
.bx-wrapper .bx-controls-auto .bx-stop.active {
|
||||
background-position: -86px -33px;
|
||||
}
|
||||
|
||||
/* PAGER WITH AUTO-CONTROLS HYBRID LAYOUT */
|
||||
|
||||
.bx-wrapper .bx-controls.bx-has-controls-auto.bx-has-pager .bx-pager {
|
||||
text-align: left;
|
||||
width: 80%;
|
||||
}
|
||||
|
||||
.bx-wrapper .bx-controls.bx-has-controls-auto.bx-has-pager .bx-controls-auto {
|
||||
right: 0;
|
||||
width: 35px;
|
||||
}
|
||||
|
||||
/* IMAGE CAPTIONS */
|
||||
|
||||
.bx-wrapper .bx-caption {
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
background: #666\9;
|
||||
background: rgba(80, 80, 80, 0.75);
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.bx-wrapper .bx-caption span {
|
||||
color: #fff;
|
||||
font-family: Arial;
|
||||
display: block;
|
||||
font-size: .85em;
|
||||
padding: 10px;
|
||||
}
|
||||
1343
assets/js/bxslider/jquery.bxslider.js
Normal file
1343
assets/js/bxslider/jquery.bxslider.js
Normal file
File diff suppressed because it is too large
Load Diff
10
assets/js/bxslider/jquery.bxslider.min.js
vendored
Normal file
10
assets/js/bxslider/jquery.bxslider.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
205
assets/js/bxslider/plugins/jquery.easing.1.3.js
Normal file
205
assets/js/bxslider/plugins/jquery.easing.1.3.js
Normal file
@@ -0,0 +1,205 @@
|
||||
/*
|
||||
* jQuery Easing v1.3 - http://gsgd.co.uk/sandbox/jquery/easing/
|
||||
*
|
||||
* Uses the built in easing capabilities added In jQuery 1.1
|
||||
* to offer multiple easing options
|
||||
*
|
||||
* TERMS OF USE - jQuery Easing
|
||||
*
|
||||
* Open source under the BSD License.
|
||||
*
|
||||
* Copyright © 2008 George McGinley Smith
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without modification,
|
||||
* are permitted provided that the following conditions are met:
|
||||
*
|
||||
* Redistributions of source code must retain the above copyright notice, this list of
|
||||
* conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright notice, this list
|
||||
* of conditions and the following disclaimer in the documentation and/or other materials
|
||||
* provided with the distribution.
|
||||
*
|
||||
* Neither the name of the author nor the names of contributors may be used to endorse
|
||||
* or promote products derived from this software without specific prior written permission.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
|
||||
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
||||
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
|
||||
* COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
||||
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
|
||||
* GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
||||
* AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
||||
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
|
||||
* OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
*/
|
||||
|
||||
// t: current time, b: begInnIng value, c: change In value, d: duration
|
||||
jQuery.easing['jswing'] = jQuery.easing['swing'];
|
||||
|
||||
jQuery.extend( jQuery.easing,
|
||||
{
|
||||
def: 'easeOutQuad',
|
||||
swing: function (x, t, b, c, d) {
|
||||
//alert(jQuery.easing.default);
|
||||
return jQuery.easing[jQuery.easing.def](x, t, b, c, d);
|
||||
},
|
||||
easeInQuad: function (x, t, b, c, d) {
|
||||
return c*(t/=d)*t + b;
|
||||
},
|
||||
easeOutQuad: function (x, t, b, c, d) {
|
||||
return -c *(t/=d)*(t-2) + b;
|
||||
},
|
||||
easeInOutQuad: function (x, t, b, c, d) {
|
||||
if ((t/=d/2) < 1) return c/2*t*t + b;
|
||||
return -c/2 * ((--t)*(t-2) - 1) + b;
|
||||
},
|
||||
easeInCubic: function (x, t, b, c, d) {
|
||||
return c*(t/=d)*t*t + b;
|
||||
},
|
||||
easeOutCubic: function (x, t, b, c, d) {
|
||||
return c*((t=t/d-1)*t*t + 1) + b;
|
||||
},
|
||||
easeInOutCubic: function (x, t, b, c, d) {
|
||||
if ((t/=d/2) < 1) return c/2*t*t*t + b;
|
||||
return c/2*((t-=2)*t*t + 2) + b;
|
||||
},
|
||||
easeInQuart: function (x, t, b, c, d) {
|
||||
return c*(t/=d)*t*t*t + b;
|
||||
},
|
||||
easeOutQuart: function (x, t, b, c, d) {
|
||||
return -c * ((t=t/d-1)*t*t*t - 1) + b;
|
||||
},
|
||||
easeInOutQuart: function (x, t, b, c, d) {
|
||||
if ((t/=d/2) < 1) return c/2*t*t*t*t + b;
|
||||
return -c/2 * ((t-=2)*t*t*t - 2) + b;
|
||||
},
|
||||
easeInQuint: function (x, t, b, c, d) {
|
||||
return c*(t/=d)*t*t*t*t + b;
|
||||
},
|
||||
easeOutQuint: function (x, t, b, c, d) {
|
||||
return c*((t=t/d-1)*t*t*t*t + 1) + b;
|
||||
},
|
||||
easeInOutQuint: function (x, t, b, c, d) {
|
||||
if ((t/=d/2) < 1) return c/2*t*t*t*t*t + b;
|
||||
return c/2*((t-=2)*t*t*t*t + 2) + b;
|
||||
},
|
||||
easeInSine: function (x, t, b, c, d) {
|
||||
return -c * Math.cos(t/d * (Math.PI/2)) + c + b;
|
||||
},
|
||||
easeOutSine: function (x, t, b, c, d) {
|
||||
return c * Math.sin(t/d * (Math.PI/2)) + b;
|
||||
},
|
||||
easeInOutSine: function (x, t, b, c, d) {
|
||||
return -c/2 * (Math.cos(Math.PI*t/d) - 1) + b;
|
||||
},
|
||||
easeInExpo: function (x, t, b, c, d) {
|
||||
return (t==0) ? b : c * Math.pow(2, 10 * (t/d - 1)) + b;
|
||||
},
|
||||
easeOutExpo: function (x, t, b, c, d) {
|
||||
return (t==d) ? b+c : c * (-Math.pow(2, -10 * t/d) + 1) + b;
|
||||
},
|
||||
easeInOutExpo: function (x, t, b, c, d) {
|
||||
if (t==0) return b;
|
||||
if (t==d) return b+c;
|
||||
if ((t/=d/2) < 1) return c/2 * Math.pow(2, 10 * (t - 1)) + b;
|
||||
return c/2 * (-Math.pow(2, -10 * --t) + 2) + b;
|
||||
},
|
||||
easeInCirc: function (x, t, b, c, d) {
|
||||
return -c * (Math.sqrt(1 - (t/=d)*t) - 1) + b;
|
||||
},
|
||||
easeOutCirc: function (x, t, b, c, d) {
|
||||
return c * Math.sqrt(1 - (t=t/d-1)*t) + b;
|
||||
},
|
||||
easeInOutCirc: function (x, t, b, c, d) {
|
||||
if ((t/=d/2) < 1) return -c/2 * (Math.sqrt(1 - t*t) - 1) + b;
|
||||
return c/2 * (Math.sqrt(1 - (t-=2)*t) + 1) + b;
|
||||
},
|
||||
easeInElastic: function (x, t, b, c, d) {
|
||||
var s=1.70158;var p=0;var a=c;
|
||||
if (t==0) return b; if ((t/=d)==1) return b+c; if (!p) p=d*.3;
|
||||
if (a < Math.abs(c)) { a=c; var s=p/4; }
|
||||
else var s = p/(2*Math.PI) * Math.asin (c/a);
|
||||
return -(a*Math.pow(2,10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )) + b;
|
||||
},
|
||||
easeOutElastic: function (x, t, b, c, d) {
|
||||
var s=1.70158;var p=0;var a=c;
|
||||
if (t==0) return b; if ((t/=d)==1) return b+c; if (!p) p=d*.3;
|
||||
if (a < Math.abs(c)) { a=c; var s=p/4; }
|
||||
else var s = p/(2*Math.PI) * Math.asin (c/a);
|
||||
return a*Math.pow(2,-10*t) * Math.sin( (t*d-s)*(2*Math.PI)/p ) + c + b;
|
||||
},
|
||||
easeInOutElastic: function (x, t, b, c, d) {
|
||||
var s=1.70158;var p=0;var a=c;
|
||||
if (t==0) return b; if ((t/=d/2)==2) return b+c; if (!p) p=d*(.3*1.5);
|
||||
if (a < Math.abs(c)) { a=c; var s=p/4; }
|
||||
else var s = p/(2*Math.PI) * Math.asin (c/a);
|
||||
if (t < 1) return -.5*(a*Math.pow(2,10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )) + b;
|
||||
return a*Math.pow(2,-10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )*.5 + c + b;
|
||||
},
|
||||
easeInBack: function (x, t, b, c, d, s) {
|
||||
if (s == undefined) s = 1.70158;
|
||||
return c*(t/=d)*t*((s+1)*t - s) + b;
|
||||
},
|
||||
easeOutBack: function (x, t, b, c, d, s) {
|
||||
if (s == undefined) s = 1.70158;
|
||||
return c*((t=t/d-1)*t*((s+1)*t + s) + 1) + b;
|
||||
},
|
||||
easeInOutBack: function (x, t, b, c, d, s) {
|
||||
if (s == undefined) s = 1.70158;
|
||||
if ((t/=d/2) < 1) return c/2*(t*t*(((s*=(1.525))+1)*t - s)) + b;
|
||||
return c/2*((t-=2)*t*(((s*=(1.525))+1)*t + s) + 2) + b;
|
||||
},
|
||||
easeInBounce: function (x, t, b, c, d) {
|
||||
return c - jQuery.easing.easeOutBounce (x, d-t, 0, c, d) + b;
|
||||
},
|
||||
easeOutBounce: function (x, t, b, c, d) {
|
||||
if ((t/=d) < (1/2.75)) {
|
||||
return c*(7.5625*t*t) + b;
|
||||
} else if (t < (2/2.75)) {
|
||||
return c*(7.5625*(t-=(1.5/2.75))*t + .75) + b;
|
||||
} else if (t < (2.5/2.75)) {
|
||||
return c*(7.5625*(t-=(2.25/2.75))*t + .9375) + b;
|
||||
} else {
|
||||
return c*(7.5625*(t-=(2.625/2.75))*t + .984375) + b;
|
||||
}
|
||||
},
|
||||
easeInOutBounce: function (x, t, b, c, d) {
|
||||
if (t < d/2) return jQuery.easing.easeInBounce (x, t*2, 0, c, d) * .5 + b;
|
||||
return jQuery.easing.easeOutBounce (x, t*2-d, 0, c, d) * .5 + c*.5 + b;
|
||||
}
|
||||
});
|
||||
|
||||
/*
|
||||
*
|
||||
* TERMS OF USE - EASING EQUATIONS
|
||||
*
|
||||
* Open source under the BSD License.
|
||||
*
|
||||
* Copyright © 2001 Robert Penner
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without modification,
|
||||
* are permitted provided that the following conditions are met:
|
||||
*
|
||||
* Redistributions of source code must retain the above copyright notice, this list of
|
||||
* conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright notice, this list
|
||||
* of conditions and the following disclaimer in the documentation and/or other materials
|
||||
* provided with the distribution.
|
||||
*
|
||||
* Neither the name of the author nor the names of contributors may be used to endorse
|
||||
* or promote products derived from this software without specific prior written permission.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
|
||||
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
||||
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
|
||||
* COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
||||
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
|
||||
* GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
||||
* AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
||||
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
|
||||
* OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
*/
|
||||
80
assets/js/bxslider/plugins/jquery.fitvids.js
Normal file
80
assets/js/bxslider/plugins/jquery.fitvids.js
Normal file
@@ -0,0 +1,80 @@
|
||||
/*global jQuery */
|
||||
/*jshint multistr:true browser:true */
|
||||
/*!
|
||||
* FitVids 1.0
|
||||
*
|
||||
* Copyright 2011, Chris Coyier - http://css-tricks.com + Dave Rupert - http://daverupert.com
|
||||
* Credit to Thierry Koblentz - http://www.alistapart.com/articles/creating-intrinsic-ratios-for-video/
|
||||
* Released under the WTFPL license - http://sam.zoy.org/wtfpl/
|
||||
*
|
||||
* Date: Thu Sept 01 18:00:00 2011 -0500
|
||||
*/
|
||||
|
||||
(function( $ ){
|
||||
|
||||
"use strict";
|
||||
|
||||
$.fn.fitVids = function( options ) {
|
||||
var settings = {
|
||||
customSelector: null
|
||||
};
|
||||
|
||||
var div = document.createElement('div'),
|
||||
ref = document.getElementsByTagName('base')[0] || document.getElementsByTagName('script')[0];
|
||||
|
||||
div.className = 'fit-vids-style';
|
||||
div.innerHTML = '­<style> \
|
||||
.fluid-width-video-wrapper { \
|
||||
width: 100%; \
|
||||
position: relative; \
|
||||
padding: 0; \
|
||||
} \
|
||||
\
|
||||
.fluid-width-video-wrapper iframe, \
|
||||
.fluid-width-video-wrapper object, \
|
||||
.fluid-width-video-wrapper embed { \
|
||||
position: absolute; \
|
||||
top: 0; \
|
||||
left: 0; \
|
||||
width: 100%; \
|
||||
height: 100%; \
|
||||
} \
|
||||
</style>';
|
||||
|
||||
ref.parentNode.insertBefore(div,ref);
|
||||
|
||||
if ( options ) {
|
||||
$.extend( settings, options );
|
||||
}
|
||||
|
||||
return this.each(function(){
|
||||
var selectors = [
|
||||
"iframe[src*='player.vimeo.com']",
|
||||
"iframe[src*='www.youtube.com']",
|
||||
"iframe[src*='www.kickstarter.com']",
|
||||
"object",
|
||||
"embed"
|
||||
];
|
||||
|
||||
if (settings.customSelector) {
|
||||
selectors.push(settings.customSelector);
|
||||
}
|
||||
|
||||
var $allVideos = $(this).find(selectors.join(','));
|
||||
|
||||
$allVideos.each(function(){
|
||||
var $this = $(this);
|
||||
if (this.tagName.toLowerCase() === 'embed' && $this.parent('object').length || $this.parent('.fluid-width-video-wrapper').length) { return; }
|
||||
var height = ( this.tagName.toLowerCase() === 'object' || ($this.attr('height') && !isNaN(parseInt($this.attr('height'), 10))) ) ? parseInt($this.attr('height'), 10) : $this.height(),
|
||||
width = !isNaN(parseInt($this.attr('width'), 10)) ? parseInt($this.attr('width'), 10) : $this.width(),
|
||||
aspectRatio = height / width;
|
||||
if(!$this.attr('id')){
|
||||
var videoID = 'fitvid' + Math.floor(Math.random()*999999);
|
||||
$this.attr('id', videoID);
|
||||
}
|
||||
$this.wrap('<div class="fluid-width-video-wrapper"></div>').parent('.fluid-width-video-wrapper').css('padding-top', (aspectRatio * 100)+"%");
|
||||
$this.removeAttr('height').removeAttr('width');
|
||||
});
|
||||
});
|
||||
};
|
||||
})( jQuery );
|
||||
578
assets/js/bxslider/readme.md
Normal file
578
assets/js/bxslider/readme.md
Normal file
@@ -0,0 +1,578 @@
|
||||
#bxSlider 4.1.2
|
||||
##The fully-loaded, responsive jQuery content slider
|
||||
|
||||
###Why should I use this slider?
|
||||
* Fully responsive - will adapt to any device
|
||||
* Horizontal, vertical, and fade modes
|
||||
* Slides can contain images, video, or HTML content
|
||||
* Full callback API and public methods
|
||||
* Small file size, fully themed, simple to implement
|
||||
* Browser support: Firefox, Chrome, Safari, iOS, Android, IE7+
|
||||
* Tons of configuration options
|
||||
|
||||
For complete documentation, tons of examples, and a good time, visit:
|
||||
|
||||
[http://bxslider.com](http://bxslider.com)
|
||||
|
||||
Written by: Steven Wanderski - [http://stevenwanderski.com](http://stevenwanderski.com)
|
||||
|
||||
###License
|
||||
Released under the MIT license - http://opensource.org/licenses/MIT
|
||||
|
||||
Let's get on with it!
|
||||
|
||||
##Installation
|
||||
|
||||
###Step 1: Link required files
|
||||
|
||||
First and most important, the jQuery library needs to be included (no need to download - link directly from Google). Next, download the package from this site and link the bxSlider CSS file (for the theme) and the bxSlider Javascript file.
|
||||
|
||||
```html
|
||||
<!-- jQuery library (served from Google) -->
|
||||
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script>
|
||||
<!-- bxSlider Javascript file -->
|
||||
<script src="/js/jquery.bxslider.min.js"></script>
|
||||
<!-- bxSlider CSS file -->
|
||||
<link href="/lib/jquery.bxslider.css" rel="stylesheet" />
|
||||
```
|
||||
|
||||
###Step 2: Create HTML markup
|
||||
|
||||
Create a `<ul class="bxslider">` element, with a `<li>` for each slide. Slides can contain images, video, or any other HTML content!
|
||||
|
||||
```html
|
||||
<ul class="bxslider">
|
||||
<li><img src="/images/pic1.jpg" /></li>
|
||||
<li><img src="/images/pic2.jpg" /></li>
|
||||
<li><img src="/images/pic3.jpg" /></li>
|
||||
<li><img src="/images/pic4.jpg" /></li>
|
||||
</ul>
|
||||
```
|
||||
|
||||
###Step 3: Call the bxSlider
|
||||
|
||||
Call .bxslider() on `<ul class="bxslider">`. Note that the call must be made inside of a $(document).ready() call, or the plugin will not work!
|
||||
|
||||
```javascript
|
||||
$(document).ready(function(){
|
||||
$('.bxslider').bxSlider();
|
||||
});
|
||||
```
|
||||
|
||||
##Configuration options
|
||||
|
||||
###General
|
||||
|
||||
**mode**
|
||||
Type of transition between slides
|
||||
```
|
||||
default: 'horizontal'
|
||||
options: 'horizontal', 'vertical', 'fade'
|
||||
```
|
||||
|
||||
**speed**
|
||||
Slide transition duration (in ms)
|
||||
```
|
||||
default: 500
|
||||
options: integer
|
||||
```
|
||||
|
||||
**slideMargin**
|
||||
Margin between each slide
|
||||
```
|
||||
default: 0
|
||||
options: integer
|
||||
```
|
||||
|
||||
**startSlide**
|
||||
Starting slide index (zero-based)
|
||||
```
|
||||
default: 0
|
||||
options: integer
|
||||
```
|
||||
|
||||
**randomStart**
|
||||
Start slider on a random slide
|
||||
```
|
||||
default: false
|
||||
options: boolean (true / false)
|
||||
```
|
||||
|
||||
**slideSelector**
|
||||
Element to use as slides (ex. <code>'div.slide'</code>).<br />Note: by default, bxSlider will use all immediate children of the slider element
|
||||
```
|
||||
default: ''
|
||||
options: jQuery selector
|
||||
```
|
||||
|
||||
**infiniteLoop**
|
||||
If <code>true</code>, clicking "Next" while on the last slide will transition to the first slide and vice-versa
|
||||
```
|
||||
default: true
|
||||
options: boolean (true / false)
|
||||
```
|
||||
|
||||
**hideControlOnEnd**
|
||||
If <code>true</code>, "Prev" and "Next" controls will receive a class <code>disabled</code> when slide is the first or the last<br/>Note: Only used when <code>infiniteLoop: false</code>
|
||||
```
|
||||
default: false
|
||||
options: boolean (true / false)
|
||||
```
|
||||
|
||||
**easing**
|
||||
The type of "easing" to use during transitions. If using CSS transitions, include a value for the <code>transition-timing-function</code> property. If not using CSS transitions, you may include <code>plugins/jquery.easing.1.3.js</code> for many options.<br />See <a href="http://gsgd.co.uk/sandbox/jquery/easing/" target="_blank">http://gsgd.co.uk/sandbox/jquery/easing/</a> for more info.
|
||||
```
|
||||
default: null
|
||||
options: if using CSS: 'linear', 'ease', 'ease-in', 'ease-out', 'ease-in-out', 'cubic-bezier(n,n,n,n)'. If not using CSS: 'swing', 'linear' (see the above file for more options)
|
||||
```
|
||||
|
||||
**captions**
|
||||
Include image captions. Captions are derived from the image's <code>title</code> attribute
|
||||
```
|
||||
default: false
|
||||
options: boolean (true / false)
|
||||
```
|
||||
|
||||
**ticker**
|
||||
Use slider in ticker mode (similar to a news ticker)
|
||||
```
|
||||
default: false
|
||||
options: boolean (true / false)
|
||||
```
|
||||
|
||||
**tickerHover**
|
||||
Ticker will pause when mouse hovers over slider. Note: this functionality does NOT work if using CSS transitions!
|
||||
```
|
||||
default: false
|
||||
options: boolean (true / false)
|
||||
```
|
||||
|
||||
**adaptiveHeight**
|
||||
Dynamically adjust slider height based on each slide's height
|
||||
```
|
||||
default: false
|
||||
options: boolean (true / false)
|
||||
```
|
||||
|
||||
**adaptiveHeightSpeed**
|
||||
Slide height transition duration (in ms). Note: only used if <code>adaptiveHeight: true</code>
|
||||
```
|
||||
default: 500
|
||||
options: integer
|
||||
```
|
||||
|
||||
**video**
|
||||
If any slides contain video, set this to <code>true</code>. Also, include <code>plugins/jquery.fitvids.js</code><br />See <a href="http://fitvidsjs.com/" target="_blank">http://fitvidsjs.com/</a> for more info
|
||||
```
|
||||
default: false
|
||||
options: boolean (true / false)
|
||||
```
|
||||
|
||||
**responsive**
|
||||
Enable or disable auto resize of the slider. Useful if you need to use fixed width sliders.
|
||||
```
|
||||
default: true
|
||||
options: boolean (true /false)
|
||||
```
|
||||
|
||||
**useCSS**
|
||||
If true, CSS transitions will be used for horizontal and vertical slide animations (this uses native hardware acceleration). If false, jQuery animate() will be used.
|
||||
```
|
||||
default: true
|
||||
options: boolean (true / false)
|
||||
```
|
||||
|
||||
**preloadImages**
|
||||
If 'all', preloads all images before starting the slider. If 'visible', preloads only images in the initially visible slides before starting the slider (tip: use 'visible' if all slides are identical dimensions)
|
||||
```
|
||||
default: 'visible'
|
||||
options: 'all', 'visible'
|
||||
```
|
||||
|
||||
**touchEnabled**
|
||||
If <code>true</code>, slider will allow touch swipe transitions
|
||||
```
|
||||
default: true
|
||||
options: boolean (true / false)
|
||||
```
|
||||
|
||||
**swipeThreshold**
|
||||
Amount of pixels a touch swipe needs to exceed in order to execute a slide transition. Note: only used if <code>touchEnabled: true</code>
|
||||
```
|
||||
default: 50
|
||||
options: integer
|
||||
```
|
||||
|
||||
**oneToOneTouch**
|
||||
If <code>true</code>, non-fade slides follow the finger as it swipes
|
||||
```
|
||||
default: true
|
||||
options: boolean (true / false)
|
||||
```
|
||||
|
||||
**preventDefaultSwipeX**
|
||||
If <code>true</code>, touch screen will not move along the x-axis as the finger swipes
|
||||
```
|
||||
default: true
|
||||
options: boolean (true / false)
|
||||
```
|
||||
|
||||
**preventDefaultSwipeY**
|
||||
If <code>true</code>, touch screen will not move along the y-axis as the finger swipes
|
||||
```
|
||||
default: false
|
||||
options: boolean (true / false)
|
||||
```
|
||||
|
||||
**wrapperClass**
|
||||
Class to wrap the slider in. Change to prevent from using default bxSlider styles.
|
||||
```
|
||||
default: 'bx-wrapper'
|
||||
options: string
|
||||
```
|
||||
|
||||
###Pager
|
||||
|
||||
**pager**
|
||||
If <code>true</code>, a pager will be added
|
||||
```
|
||||
default: true
|
||||
options: boolean (true / false)
|
||||
```
|
||||
|
||||
**pagerType**
|
||||
If <code>'full'</code>, a pager link will be generated for each slide. If <code>'short'</code>, a x / y pager will be used (ex. 1 / 5)
|
||||
```
|
||||
default: 'full'
|
||||
options: 'full', 'short'
|
||||
```
|
||||
|
||||
**pagerShortSeparator**
|
||||
If <code>pagerType: 'short'</code>, pager will use this value as the separating character
|
||||
```
|
||||
default: ' / '
|
||||
options: string
|
||||
```
|
||||
|
||||
**pagerSelector**
|
||||
Element used to populate the populate the pager. By default, the pager is appended to the bx-viewport
|
||||
```
|
||||
default: ''
|
||||
options: jQuery selector
|
||||
```
|
||||
|
||||
**pagerCustom**
|
||||
Parent element to be used as the pager. Parent element must contain a <code><a data-slide-index="x"></code> element for each slide. See example <a href="/examples/thumbnail-method-1">here</a>. Not for use with dynamic carousels.
|
||||
```
|
||||
default: null
|
||||
options: jQuery selector
|
||||
```
|
||||
|
||||
**buildPager**
|
||||
If supplied, function is called on every slide element, and the returned value is used as the pager item markup.<br />See <a href="http://bxslider.com/examples">examples</a> for detailed implementation
|
||||
```
|
||||
default: null
|
||||
options: function(slideIndex)
|
||||
```
|
||||
|
||||
###Controls
|
||||
|
||||
**controls**
|
||||
If <code>true</code>, "Next" / "Prev" controls will be added
|
||||
```
|
||||
default: true
|
||||
options: boolean (true / false)
|
||||
```
|
||||
|
||||
**nextText**
|
||||
Text to be used for the "Next" control
|
||||
```
|
||||
default: 'Next'
|
||||
options: string
|
||||
```
|
||||
|
||||
**prevText**
|
||||
Text to be used for the "Prev" control
|
||||
```
|
||||
default: 'Prev'
|
||||
options: string
|
||||
```
|
||||
|
||||
**nextSelector**
|
||||
Element used to populate the "Next" control
|
||||
```
|
||||
default: null
|
||||
options: jQuery selector
|
||||
```
|
||||
|
||||
**prevSelector**
|
||||
Element used to populate the "Prev" control
|
||||
```
|
||||
default: null
|
||||
options: jQuery selector
|
||||
```
|
||||
|
||||
**autoControls**
|
||||
If <code>true</code>, "Start" / "Stop" controls will be added
|
||||
```
|
||||
default: false
|
||||
options: boolean (true / false)
|
||||
```
|
||||
|
||||
**startText**
|
||||
Text to be used for the "Start" control
|
||||
```
|
||||
default: 'Start'
|
||||
options: string
|
||||
```
|
||||
|
||||
**stopText**
|
||||
Text to be used for the "Stop" control
|
||||
```
|
||||
default: 'Stop'
|
||||
options: string
|
||||
```
|
||||
|
||||
**autoControlsCombine**
|
||||
When slideshow is playing only "Stop" control is displayed and vice-versa
|
||||
```
|
||||
default: false
|
||||
options: boolean (true / false)
|
||||
```
|
||||
|
||||
**autoControlsSelector**
|
||||
Element used to populate the auto controls
|
||||
```
|
||||
default: null
|
||||
options: jQuery selector
|
||||
```
|
||||
|
||||
###Auto
|
||||
|
||||
**auto**
|
||||
Slides will automatically transition
|
||||
```
|
||||
default: false
|
||||
options: boolean (true / false)
|
||||
```
|
||||
|
||||
**pause**
|
||||
The amount of time (in ms) between each auto transition
|
||||
```
|
||||
default: 4000
|
||||
options: integer
|
||||
```
|
||||
|
||||
**autoStart**
|
||||
Auto show starts playing on load. If <code>false</code>, slideshow will start when the "Start" control is clicked
|
||||
```
|
||||
default: true
|
||||
options: boolean (true / false)
|
||||
```
|
||||
|
||||
**autoDirection**
|
||||
The direction of auto show slide transitions
|
||||
```
|
||||
default: 'next'
|
||||
options: 'next', 'prev'
|
||||
```
|
||||
|
||||
**autoHover**
|
||||
Auto show will pause when mouse hovers over slider
|
||||
```
|
||||
default: false
|
||||
options: boolean (true / false)
|
||||
```
|
||||
|
||||
**autoDelay**
|
||||
Time (in ms) auto show should wait before starting
|
||||
```
|
||||
default: 0
|
||||
options: integer
|
||||
```
|
||||
|
||||
###Carousel
|
||||
|
||||
**minSlides**
|
||||
The minimum number of slides to be shown. Slides will be sized down if carousel becomes smaller than the original size.
|
||||
```
|
||||
default: 1
|
||||
options: integer
|
||||
```
|
||||
|
||||
**maxSlides**
|
||||
The maximum number of slides to be shown. Slides will be sized up if carousel becomes larger than the original size.
|
||||
```
|
||||
default: 1
|
||||
options: integer
|
||||
```
|
||||
|
||||
**moveSlides**
|
||||
The number of slides to move on transition. This value must be <code>>= minSlides</code>, and <code><= maxSlides</code>. If zero (default), the number of fully-visible slides will be used.
|
||||
```
|
||||
default: 0
|
||||
options: integer
|
||||
```
|
||||
|
||||
**slideWidth**
|
||||
The width of each slide. This setting is required for all horizontal carousels!
|
||||
```
|
||||
default: 0
|
||||
options: integer
|
||||
```
|
||||
|
||||
###Callbacks
|
||||
|
||||
**onSliderLoad**
|
||||
Executes immediately after the slider is fully loaded
|
||||
```
|
||||
default: function(){}
|
||||
options: function(currentIndex){ // your code here }
|
||||
arguments:
|
||||
currentIndex: element index of the current slide
|
||||
```
|
||||
|
||||
**onSliderResize**
|
||||
Executes immediately after the slider is resized
|
||||
```
|
||||
default: function(){}
|
||||
options: function(currentIndex){ // your code here }
|
||||
arguments:
|
||||
currentIndex: element index of the current slide
|
||||
```
|
||||
|
||||
**onSlideBefore**
|
||||
Executes immediately before each slide transition.
|
||||
```
|
||||
default: function(){}
|
||||
options: function($slideElement, oldIndex, newIndex){ // your code here }
|
||||
arguments:
|
||||
$slideElement: jQuery element of the destination element
|
||||
oldIndex: element index of the previous slide (before the transition)
|
||||
newIndex: element index of the destination slide (after the transition)
|
||||
```
|
||||
|
||||
**onSlideAfter**
|
||||
Executes immediately after each slide transition. Function argument is the current slide element (when transition completes).
|
||||
```
|
||||
default: function(){}
|
||||
options: function($slideElement, oldIndex, newIndex){ // your code here }
|
||||
arguments:
|
||||
$slideElement: jQuery element of the destination element
|
||||
oldIndex: element index of the previous slide (before the transition)
|
||||
newIndex: element index of the destination slide (after the transition)
|
||||
```
|
||||
|
||||
**onSlideNext**
|
||||
Executes immediately before each "Next" slide transition. Function argument is the target (next) slide element.
|
||||
```
|
||||
default: function(){}
|
||||
options: function($slideElement, oldIndex, newIndex){ // your code here }
|
||||
arguments:
|
||||
$slideElement: jQuery element of the destination element
|
||||
oldIndex: element index of the previous slide (before the transition)
|
||||
newIndex: element index of the destination slide (after the transition)
|
||||
```
|
||||
|
||||
**onSlidePrev**
|
||||
Executes immediately before each "Prev" slide transition. Function argument is the target (prev) slide element.
|
||||
```
|
||||
default: function(){}
|
||||
options: function($slideElement, oldIndex, newIndex){ // your code here }
|
||||
arguments:
|
||||
$slideElement: jQuery element of the destination element
|
||||
oldIndex: element index of the previous slide (before the transition)
|
||||
newIndex: element index of the destination slide (after the transition)
|
||||
```
|
||||
|
||||
###Public methods
|
||||
|
||||
**goToSlide**
|
||||
Performs a slide transition to the supplied slide index (zero-based)
|
||||
```
|
||||
example:
|
||||
slider = $('.bxslider').bxSlider();
|
||||
slider.goToSlide(3);
|
||||
```
|
||||
|
||||
**goToNextSlide**
|
||||
Performs a "Next" slide transition
|
||||
```
|
||||
example:
|
||||
slider = $('.bxslider').bxSlider();
|
||||
slider.goToNextSlide();
|
||||
```
|
||||
|
||||
**goToPrevSlide**
|
||||
Performs a "Prev" slide transition
|
||||
```
|
||||
example:
|
||||
slider = $('.bxslider').bxSlider();
|
||||
slider.goToPrevSlide();
|
||||
```
|
||||
|
||||
**startAuto**
|
||||
Starts the auto show. Provide an argument <code>false</code> to prevent the auto controls from being updated.
|
||||
```
|
||||
example:
|
||||
slider = $('.bxslider').bxSlider();
|
||||
slider.startAuto();
|
||||
```
|
||||
|
||||
**stopAuto**
|
||||
Stops the auto show. Provide an argument <code>false</code> to prevent the auto controls from being updated.
|
||||
```
|
||||
example:
|
||||
slider = $('.bxslider').bxSlider();
|
||||
slider.stopAuto();
|
||||
```
|
||||
|
||||
**getCurrentSlide**
|
||||
Returns the current active slide
|
||||
```
|
||||
example:
|
||||
slider = $('.bxslider').bxSlider();
|
||||
var current = slider.getCurrentSlide();
|
||||
```
|
||||
|
||||
**getSlideCount**
|
||||
Returns the total number of slides in the slider
|
||||
```
|
||||
example:
|
||||
slider = $('.bxslider').bxSlider();
|
||||
var slideQty = slider.getSlideCount();
|
||||
```
|
||||
|
||||
**reloadSlider**
|
||||
Reload the slider. Useful when adding slides on the fly. Accepts an optional settings object. <a href="/examples/reload-slider-settings">See here for an example.</a>
|
||||
```
|
||||
example:
|
||||
slider = $('.bxslider').bxSlider();
|
||||
slider.reloadSlider();
|
||||
```
|
||||
|
||||
**destroySlider**
|
||||
Destroy the slider. This reverts all slider elements back to their original state (before calling the slider).
|
||||
```
|
||||
example:
|
||||
slider = $('.bxslider').bxSlider();
|
||||
slider.destroySlider();
|
||||
```
|
||||
|
||||
## Changelog
|
||||
|
||||
### Version 4.1.2
|
||||
* Added `bower.json` configuration file. Manage bxSlider as a dependency using [bower](http://bower.io/).
|
||||
|
||||
### Version 4.1.1
|
||||
* Removed imagesLoaded library and added iframe preloading support
|
||||
* Added responsive option - setting to false will prevent $(window).resize binding
|
||||
|
||||
### Version 4.1
|
||||
* Carousel mode (minSlides / maxSlides) was re-written to be more intuitive.
|
||||
* SlideWidth now acts as it should (slides respect the width value).
|
||||
* SlideWidth now properly parsed: accepts string ("600px") or integer (600).
|
||||
* Slider now only needs to load visible slides (by default) in order to initialize which results in much faster loading. A "preloadImages" setting allows for configuration.
|
||||
|
||||
|
||||
Long live Zep.
|
||||
30
assets/js/captcha.js
Normal file
30
assets/js/captcha.js
Normal file
@@ -0,0 +1,30 @@
|
||||
if (typeof(CAPTCHA_JS) === 'undefined') {
|
||||
|
||||
if (typeof cb_url === 'undefined') {
|
||||
alert('올바르지 않은 접근입니다.');
|
||||
}
|
||||
|
||||
var CAPTCHA_JS = true;
|
||||
var captcha_word = '';
|
||||
|
||||
$(function() {
|
||||
$(document).on('click', '#captcha', function() {
|
||||
$.ajax({
|
||||
url : cb_url + '/captcha/show',
|
||||
type : 'get',
|
||||
dataType : 'json',
|
||||
success : function(data) {
|
||||
$('#captcha').attr('src', cb_url + '/uploads/captcha/' + data.filename);
|
||||
captcha_word= data.word;
|
||||
}
|
||||
});
|
||||
});
|
||||
$('#captcha').trigger('click');
|
||||
|
||||
if (typeof $.validator !== 'undefined') {
|
||||
$.validator.addMethod('captchaKey', function(value, element) {
|
||||
return this.optional(element) || value.toLowerCase() === captcha_word.toLowerCase();
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
26
assets/js/colorpicker/CHANGELOG.html
Normal file
26
assets/js/colorpicker/CHANGELOG.html
Normal file
@@ -0,0 +1,26 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html>
|
||||
<head><title>Farbtastic: Changelog</title></head>
|
||||
<body>
|
||||
<h1 class="title">Farbtastic: Changelog</h1>
|
||||
|
||||
<h2>1.2 - 2007/01/08</h2>
|
||||
<ul>
|
||||
<li>Fixed bug with linking multiple fields with the same value.</li>
|
||||
</ul>
|
||||
<h2>1.1 - 2006/10/27</h2>
|
||||
<ul>
|
||||
<li>Work around for the transparent PNGs in Internet Explorer.</li>
|
||||
<li>Better mouse handling code to accomodate CSS-based layouts better.</li>
|
||||
</ul>
|
||||
<h2>1.0 - 2006/07/14</h2>
|
||||
<ul>
|
||||
<li>Initial release.</li>
|
||||
</ul>
|
||||
|
||||
<p>More info on <a href="http://www.acko.net/dev/farbtastic">Acko.net</a>.</p>
|
||||
<p>Created by <a href="http://www.acko.net/">Steven Wittens</a>.</p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
341
assets/js/colorpicker/LICENSE.txt
Normal file
341
assets/js/colorpicker/LICENSE.txt
Normal file
@@ -0,0 +1,341 @@
|
||||
|
||||
GNU GENERAL PUBLIC LICENSE
|
||||
Version 2, June 1991
|
||||
|
||||
Copyright (C) 1989, 1991 Free Software Foundation, Inc.
|
||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
Everyone is permitted to copy and distribute verbatim copies
|
||||
of this license document, but changing it is not allowed.
|
||||
|
||||
Preamble
|
||||
|
||||
The licenses for most software are designed to take away your
|
||||
freedom to share and change it. By contrast, the GNU General Public
|
||||
License is intended to guarantee your freedom to share and change free
|
||||
software--to make sure the software is free for all its users. This
|
||||
General Public License applies to most of the Free Software
|
||||
Foundation's software and to any other program whose authors commit to
|
||||
using it. (Some other Free Software Foundation software is covered by
|
||||
the GNU Lesser General Public License instead.) You can apply it to
|
||||
your programs, too.
|
||||
|
||||
When we speak of free software, we are referring to freedom, not
|
||||
price. Our General Public Licenses are designed to make sure that you
|
||||
have the freedom to distribute copies of free software (and charge for
|
||||
this service if you wish), that you receive source code or can get it
|
||||
if you want it, that you can change the software or use pieces of it
|
||||
in new free programs; and that you know you can do these things.
|
||||
|
||||
To protect your rights, we need to make restrictions that forbid
|
||||
anyone to deny you these rights or to ask you to surrender the rights.
|
||||
These restrictions translate to certain responsibilities for you if you
|
||||
distribute copies of the software, or if you modify it.
|
||||
|
||||
For example, if you distribute copies of such a program, whether
|
||||
gratis or for a fee, you must give the recipients all the rights that
|
||||
you have. You must make sure that they, too, receive or can get the
|
||||
source code. And you must show them these terms so they know their
|
||||
rights.
|
||||
|
||||
We protect your rights with two steps: (1) copyright the software, and
|
||||
(2) offer you this license which gives you legal permission to copy,
|
||||
distribute and/or modify the software.
|
||||
|
||||
Also, for each author's protection and ours, we want to make certain
|
||||
that everyone understands that there is no warranty for this free
|
||||
software. If the software is modified by someone else and passed on, we
|
||||
want its recipients to know that what they have is not the original, so
|
||||
that any problems introduced by others will not reflect on the original
|
||||
authors' reputations.
|
||||
|
||||
Finally, any free program is threatened constantly by software
|
||||
patents. We wish to avoid the danger that redistributors of a free
|
||||
program will individually obtain patent licenses, in effect making the
|
||||
program proprietary. To prevent this, we have made it clear that any
|
||||
patent must be licensed for everyone's free use or not licensed at all.
|
||||
|
||||
The precise terms and conditions for copying, distribution and
|
||||
modification follow.
|
||||
|
||||
GNU GENERAL PUBLIC LICENSE
|
||||
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
||||
|
||||
0. This License applies to any program or other work which contains
|
||||
a notice placed by the copyright holder saying it may be distributed
|
||||
under the terms of this General Public License. The "Program", below,
|
||||
refers to any such program or work, and a "work based on the Program"
|
||||
means either the Program or any derivative work under copyright law:
|
||||
that is to say, a work containing the Program or a portion of it,
|
||||
either verbatim or with modifications and/or translated into another
|
||||
language. (Hereinafter, translation is included without limitation in
|
||||
the term "modification".) Each licensee is addressed as "you".
|
||||
|
||||
Activities other than copying, distribution and modification are not
|
||||
covered by this License; they are outside its scope. The act of
|
||||
running the Program is not restricted, and the output from the Program
|
||||
is covered only if its contents constitute a work based on the
|
||||
Program (independent of having been made by running the Program).
|
||||
Whether that is true depends on what the Program does.
|
||||
|
||||
1. You may copy and distribute verbatim copies of the Program's
|
||||
source code as you receive it, in any medium, provided that you
|
||||
conspicuously and appropriately publish on each copy an appropriate
|
||||
copyright notice and disclaimer of warranty; keep intact all the
|
||||
notices that refer to this License and to the absence of any warranty;
|
||||
and give any other recipients of the Program a copy of this License
|
||||
along with the Program.
|
||||
|
||||
You may charge a fee for the physical act of transferring a copy, and
|
||||
you may at your option offer warranty protection in exchange for a fee.
|
||||
|
||||
2. You may modify your copy or copies of the Program or any portion
|
||||
of it, thus forming a work based on the Program, and copy and
|
||||
distribute such modifications or work under the terms of Section 1
|
||||
above, provided that you also meet all of these conditions:
|
||||
|
||||
a) You must cause the modified files to carry prominent notices
|
||||
stating that you changed the files and the date of any change.
|
||||
|
||||
b) You must cause any work that you distribute or publish, that in
|
||||
whole or in part contains or is derived from the Program or any
|
||||
part thereof, to be licensed as a whole at no charge to all third
|
||||
parties under the terms of this License.
|
||||
|
||||
c) If the modified program normally reads commands interactively
|
||||
when run, you must cause it, when started running for such
|
||||
interactive use in the most ordinary way, to print or display an
|
||||
announcement including an appropriate copyright notice and a
|
||||
notice that there is no warranty (or else, saying that you provide
|
||||
a warranty) and that users may redistribute the program under
|
||||
these conditions, and telling the user how to view a copy of this
|
||||
License. (Exception: if the Program itself is interactive but
|
||||
does not normally print such an announcement, your work based on
|
||||
the Program is not required to print an announcement.)
|
||||
|
||||
These requirements apply to the modified work as a whole. If
|
||||
identifiable sections of that work are not derived from the Program,
|
||||
and can be reasonably considered independent and separate works in
|
||||
themselves, then this License, and its terms, do not apply to those
|
||||
sections when you distribute them as separate works. But when you
|
||||
distribute the same sections as part of a whole which is a work based
|
||||
on the Program, the distribution of the whole must be on the terms of
|
||||
this License, whose permissions for other licensees extend to the
|
||||
entire whole, and thus to each and every part regardless of who wrote it.
|
||||
|
||||
Thus, it is not the intent of this section to claim rights or contest
|
||||
your rights to work written entirely by you; rather, the intent is to
|
||||
exercise the right to control the distribution of derivative or
|
||||
collective works based on the Program.
|
||||
|
||||
In addition, mere aggregation of another work not based on the Program
|
||||
with the Program (or with a work based on the Program) on a volume of
|
||||
a storage or distribution medium does not bring the other work under
|
||||
the scope of this License.
|
||||
|
||||
3. You may copy and distribute the Program (or a work based on it,
|
||||
under Section 2) in object code or executable form under the terms of
|
||||
Sections 1 and 2 above provided that you also do one of the following:
|
||||
|
||||
a) Accompany it with the complete corresponding machine-readable
|
||||
source code, which must be distributed under the terms of Sections
|
||||
1 and 2 above on a medium customarily used for software interchange; or,
|
||||
|
||||
b) Accompany it with a written offer, valid for at least three
|
||||
years, to give any third party, for a charge no more than your
|
||||
cost of physically performing source distribution, a complete
|
||||
machine-readable copy of the corresponding source code, to be
|
||||
distributed under the terms of Sections 1 and 2 above on a medium
|
||||
customarily used for software interchange; or,
|
||||
|
||||
c) Accompany it with the information you received as to the offer
|
||||
to distribute corresponding source code. (This alternative is
|
||||
allowed only for noncommercial distribution and only if you
|
||||
received the program in object code or executable form with such
|
||||
an offer, in accord with Subsection b above.)
|
||||
|
||||
The source code for a work means the preferred form of the work for
|
||||
making modifications to it. For an executable work, complete source
|
||||
code means all the source code for all modules it contains, plus any
|
||||
associated interface definition files, plus the scripts used to
|
||||
control compilation and installation of the executable. However, as a
|
||||
special exception, the source code distributed need not include
|
||||
anything that is normally distributed (in either source or binary
|
||||
form) with the major components (compiler, kernel, and so on) of the
|
||||
operating system on which the executable runs, unless that component
|
||||
itself accompanies the executable.
|
||||
|
||||
If distribution of executable or object code is made by offering
|
||||
access to copy from a designated place, then offering equivalent
|
||||
access to copy the source code from the same place counts as
|
||||
distribution of the source code, even though third parties are not
|
||||
compelled to copy the source along with the object code.
|
||||
|
||||
4. You may not copy, modify, sublicense, or distribute the Program
|
||||
except as expressly provided under this License. Any attempt
|
||||
otherwise to copy, modify, sublicense or distribute the Program is
|
||||
void, and will automatically terminate your rights under this License.
|
||||
However, parties who have received copies, or rights, from you under
|
||||
this License will not have their licenses terminated so long as such
|
||||
parties remain in full compliance.
|
||||
|
||||
5. You are not required to accept this License, since you have not
|
||||
signed it. However, nothing else grants you permission to modify or
|
||||
distribute the Program or its derivative works. These actions are
|
||||
prohibited by law if you do not accept this License. Therefore, by
|
||||
modifying or distributing the Program (or any work based on the
|
||||
Program), you indicate your acceptance of this License to do so, and
|
||||
all its terms and conditions for copying, distributing or modifying
|
||||
the Program or works based on it.
|
||||
|
||||
6. Each time you redistribute the Program (or any work based on the
|
||||
Program), the recipient automatically receives a license from the
|
||||
original licensor to copy, distribute or modify the Program subject to
|
||||
these terms and conditions. You may not impose any further
|
||||
restrictions on the recipients' exercise of the rights granted herein.
|
||||
You are not responsible for enforcing compliance by third parties to
|
||||
this License.
|
||||
|
||||
7. If, as a consequence of a court judgment or allegation of patent
|
||||
infringement or for any other reason (not limited to patent issues),
|
||||
conditions are imposed on you (whether by court order, agreement or
|
||||
otherwise) that contradict the conditions of this License, they do not
|
||||
excuse you from the conditions of this License. If you cannot
|
||||
distribute so as to satisfy simultaneously your obligations under this
|
||||
License and any other pertinent obligations, then as a consequence you
|
||||
may not distribute the Program at all. For example, if a patent
|
||||
license would not permit royalty-free redistribution of the Program by
|
||||
all those who receive copies directly or indirectly through you, then
|
||||
the only way you could satisfy both it and this License would be to
|
||||
refrain entirely from distribution of the Program.
|
||||
|
||||
If any portion of this section is held invalid or unenforceable under
|
||||
any particular circumstance, the balance of the section is intended to
|
||||
apply and the section as a whole is intended to apply in other
|
||||
circumstances.
|
||||
|
||||
It is not the purpose of this section to induce you to infringe any
|
||||
patents or other property right claims or to contest validity of any
|
||||
such claims; this section has the sole purpose of protecting the
|
||||
integrity of the free software distribution system, which is
|
||||
implemented by public license practices. Many people have made
|
||||
generous contributions to the wide range of software distributed
|
||||
through that system in reliance on consistent application of that
|
||||
system; it is up to the author/donor to decide if he or she is willing
|
||||
to distribute software through any other system and a licensee cannot
|
||||
impose that choice.
|
||||
|
||||
This section is intended to make thoroughly clear what is believed to
|
||||
be a consequence of the rest of this License.
|
||||
|
||||
8. If the distribution and/or use of the Program is restricted in
|
||||
certain countries either by patents or by copyrighted interfaces, the
|
||||
original copyright holder who places the Program under this License
|
||||
may add an explicit geographical distribution limitation excluding
|
||||
those countries, so that distribution is permitted only in or among
|
||||
countries not thus excluded. In such case, this License incorporates
|
||||
the limitation as if written in the body of this License.
|
||||
|
||||
9. The Free Software Foundation may publish revised and/or new versions
|
||||
of the General Public License from time to time. Such new versions will
|
||||
be similar in spirit to the present version, but may differ in detail to
|
||||
address new problems or concerns.
|
||||
|
||||
Each version is given a distinguishing version number. If the Program
|
||||
specifies a version number of this License which applies to it and "any
|
||||
later version", you have the option of following the terms and conditions
|
||||
either of that version or of any later version published by the Free
|
||||
Software Foundation. If the Program does not specify a version number of
|
||||
this License, you may choose any version ever published by the Free Software
|
||||
Foundation.
|
||||
|
||||
10. If you wish to incorporate parts of the Program into other free
|
||||
programs whose distribution conditions are different, write to the author
|
||||
to ask for permission. For software which is copyrighted by the Free
|
||||
Software Foundation, write to the Free Software Foundation; we sometimes
|
||||
make exceptions for this. Our decision will be guided by the two goals
|
||||
of preserving the free status of all derivatives of our free software and
|
||||
of promoting the sharing and reuse of software generally.
|
||||
|
||||
NO WARRANTY
|
||||
|
||||
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
|
||||
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
|
||||
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
|
||||
PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
|
||||
OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
||||
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
|
||||
TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
|
||||
PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
|
||||
REPAIR OR CORRECTION.
|
||||
|
||||
12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
||||
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
|
||||
REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
|
||||
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
|
||||
OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
|
||||
TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
|
||||
YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
|
||||
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
|
||||
POSSIBILITY OF SUCH DAMAGES.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
How to Apply These Terms to Your New Programs
|
||||
|
||||
If you develop a new program, and you want it to be of the greatest
|
||||
possible use to the public, the best way to achieve this is to make it
|
||||
free software which everyone can redistribute and change under these terms.
|
||||
|
||||
To do so, attach the following notices to the program. It is safest
|
||||
to attach them to the start of each source file to most effectively
|
||||
convey the exclusion of warranty; and each file should have at least
|
||||
the "copyright" line and a pointer to where the full notice is found.
|
||||
|
||||
<one line to give the program's name and a brief idea of what it does.>
|
||||
Copyright (C) <year> <name of author>
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program; if not, write to the Free Software
|
||||
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
|
||||
|
||||
Also add information on how to contact you by electronic and paper mail.
|
||||
|
||||
If the program is interactive, make it output a short notice like this
|
||||
when it starts in an interactive mode:
|
||||
|
||||
Gnomovision version 69, Copyright (C) year name of author
|
||||
Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
||||
This is free software, and you are welcome to redistribute it
|
||||
under certain conditions; type `show c' for details.
|
||||
|
||||
The hypothetical commands `show w' and `show c' should show the appropriate
|
||||
parts of the General Public License. Of course, the commands you use may
|
||||
be called something other than `show w' and `show c'; they could even be
|
||||
mouse-clicks or menu items--whatever suits your program.
|
||||
|
||||
You should also get your employer (if you work as a programmer) or your
|
||||
school, if any, to sign a "copyright disclaimer" for the program, if
|
||||
necessary. Here is a sample; alter the names:
|
||||
|
||||
Yoyodyne, Inc., hereby disclaims all copyright interest in the program
|
||||
`Gnomovision' (which makes passes at compilers) written by James Hacker.
|
||||
|
||||
<signature of Ty Coon>, 1 April 1989
|
||||
Ty Coon, President of Vice
|
||||
|
||||
This General Public License does not permit incorporating your program into
|
||||
proprietary programs. If your program is a subroutine library, you may
|
||||
consider it more useful to permit linking proprietary applications with the
|
||||
library. If this is what you want to do, use the GNU Lesser General
|
||||
Public License instead of this License.
|
||||
71
assets/js/colorpicker/README.html
Normal file
71
assets/js/colorpicker/README.html
Normal file
@@ -0,0 +1,71 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html>
|
||||
<head><title>Farbtastic: jQuery color picker plug-in</title></head>
|
||||
<body>
|
||||
<h1 class="title">Farbtastic: jQuery color picker plug-in</h1>
|
||||
<div class="content"><p>Farbtastic is a <a href="http://www.jquery.com/">jQuery</a> plug-in that can add one or more color picker widgets into a page. Each widget is then linked to an existing element (e.g. a text field) and will update the element's value when a color is selected.</p>
|
||||
|
||||
<p>Farbtastic uses layered transparent PNGs to render a saturation/luminance gradient inside of a hue circle. No Flash or pixel-sized divs are used.</p>
|
||||
|
||||
<p>Farbtastic was written by <a href="http://www.acko.net/dev/farbtastic">Steven Wittens</a> and is licensed under the GPL.</p>
|
||||
|
||||
<h2>Basic Usage</h2>
|
||||
<ol>
|
||||
<li>Include farbtastic.js and farbtastic.css in your HTML:<br />
|
||||
<div class="codeblock"><code><script type="text/javascript" src="farbtastic.js"></script><br /><link rel="stylesheet" href="farbtastic.css" type="text/css" /></code></div>
|
||||
</li>
|
||||
<li>Add a placeholder div and a text field to your HTML, and give each an ID:<br />
|
||||
<div class="codeblock"><code><form><input type="text" id="color" name="color" value="#123456" /></form><br /><div id="colorpicker"></div></code></div>
|
||||
</li>
|
||||
<li>Add a ready() handler to the document which initializes the color picker and link it to the text field with the following syntax:<br />
|
||||
<div class="codeblock"><code><script type="text/javascript"><br /> $(document).ready(function() {<br /> $('#colorpicker').farbtastic('#color');<br /> });<br /></script></code></div>
|
||||
</li>
|
||||
</ol>
|
||||
<p>See demo1.html and demo2.html for an example (jquery.js is not included!).</p>
|
||||
<h2>Styling</h2>
|
||||
<p>The color picker is a block-level element and is 195x195 pixels large. You can control the position by styling your placeholder (e.g. floating it).</p>
|
||||
<p>Note that the black/white gradients inside wheel.png and mask.png were generated programmatically and cannot be recreated easily in an image editing program.</p>
|
||||
<h2>Advanced Usage</h2>
|
||||
<h3>jQuery Method</h3>
|
||||
<dl>
|
||||
<dt>$(...).farbtastic()<br />
|
||||
$(...).farbtastic(callback)</dt>
|
||||
<dd>This creates color pickers in the selected objects. <code>callback</code> is optional and can be a:</p>
|
||||
<ul>
|
||||
<li><em>DOM Node</em>, <em>jQuery object</em> or <em>jQuery selector</em>: the color picker will be linked to the selected element(s) by syncing the value (for form elements) and color (all elements).</li>
|
||||
<li><em>Function</em>: this function will be called whenever the user chooses a different color.</dd>
|
||||
</dl>
|
||||
<h3>Object</h3>
|
||||
<dl>
|
||||
<dt>$.farbtastic(placeholder)<br />
|
||||
$.farbtastic(placeholder, callback)<br />
|
||||
</dt>
|
||||
<dd>Invoking <code>$.farbtastic(placeholder)</code> is the same as using <code>$(placeholder).farbtastic()</code> except that the Farbtastic object is returned instead of the jQuery object. This allows you to use the Farbtastic methods and properties below.</p>
|
||||
<p>Note that there is only one Farbtastic object per placeholder. If you call <code>$.farbtastic(placeholder)</code> twice <em>with the same placeholder</em>, you will get the same object back each time.</p>
|
||||
<p>The optional <code>callback</code> argument behaves exactly as for the jQuery method.<br />
|
||||
</dd>
|
||||
</dl>
|
||||
</dd>
|
||||
</dl>
|
||||
<h3>Methods</h3>
|
||||
<dl>
|
||||
<dt>.linkTo(callback)</dt>
|
||||
<dd>Allows you to set a new callback. Any existing callbacks are removed. See above for the meaning of <code>callback</code>.</dd>
|
||||
<dt>.setColor(string)</dt>
|
||||
<dd>Sets the picker color to the given color in hex representation.</dd>
|
||||
<dt>.setColor([h, s, l])</dt>
|
||||
<dd>Sets the picker color to the given color in normalized HSL (0..1 scale).</dd>
|
||||
</dl>
|
||||
<h3>Properties</h3>
|
||||
<dl>
|
||||
<dt>.linked</dt>
|
||||
<dd>The elements (jQuery object) or callback function this picker is linked to.</dd>
|
||||
<dt>.color</dt>
|
||||
<dd>Current color in hex representation.</dd>
|
||||
<dt>.hsl</dt>
|
||||
<dd>Current color in normalized HSL.</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
28
assets/js/colorpicker/demo1.html
Normal file
28
assets/js/colorpicker/demo1.html
Normal file
@@ -0,0 +1,28 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<title>Farbtastic</title>
|
||||
<script type="text/javascript" src="jquery.js"></script>
|
||||
<script type="text/javascript" src="farbtastic.js"></script>
|
||||
<link rel="stylesheet" href="farbtastic.css" type="text/css" />
|
||||
<script type="text/javascript" charset="utf-8">
|
||||
$(document).ready(function() {
|
||||
$('#demo').hide();
|
||||
$('#picker').farbtastic('#color');
|
||||
});
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<h1>jQuery Color Picker: Farbtastic</h1>
|
||||
|
||||
<div id="demo" style="color: red; font-size: 1.4em">jQuery.js is not present. You must install jQuery in this folder for the demo to work.</div>
|
||||
|
||||
<form action="" style="width: 400px;">
|
||||
<div class="form-item"><label for="color">Color:</label><input type="text" id="color" name="color" value="#123456" /></div><div id="picker"></div>
|
||||
</form>
|
||||
|
||||
<p>More info on <a href="http://www.acko.net/dev/farbtastic">Acko.net</a>.</p>
|
||||
<p>Created by <a href="http://www.acko.net/">Steven Wittens</a>.</p>
|
||||
</body>
|
||||
</html>
|
||||
57
assets/js/colorpicker/demo2.html
Normal file
57
assets/js/colorpicker/demo2.html
Normal file
@@ -0,0 +1,57 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<title>Farbtastic</title>
|
||||
<script type="text/javascript" src="jquery.js"></script>
|
||||
<script type="text/javascript" src="farbtastic.js"></script>
|
||||
<link rel="stylesheet" href="farbtastic.css" type="text/css" />
|
||||
<style type="text/css" media="screen">
|
||||
.colorwell {
|
||||
border: 2px solid #fff;
|
||||
width: 6em;
|
||||
text-align: center;
|
||||
cursor: pointer;
|
||||
}
|
||||
body .colorwell-selected {
|
||||
border: 2px solid #000;
|
||||
font-weight: bold;
|
||||
}
|
||||
</style>
|
||||
|
||||
<script type="text/javascript" charset="utf-8">
|
||||
$(document).ready(function() {
|
||||
$('#demo').hide();
|
||||
var f = $.farbtastic('#picker');
|
||||
var p = $('#picker').css('opacity', 0.25);
|
||||
var selected;
|
||||
$('.colorwell')
|
||||
.each(function () { f.linkTo(this); $(this).css('opacity', 0.75); })
|
||||
.focus(function() {
|
||||
if (selected) {
|
||||
$(selected).css('opacity', 0.75).removeClass('colorwell-selected');
|
||||
}
|
||||
f.linkTo(this);
|
||||
p.css('opacity', 1);
|
||||
$(selected = this).css('opacity', 1).addClass('colorwell-selected');
|
||||
});
|
||||
});
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<h1>jQuery Color Picker: Farbtastic</h1>
|
||||
|
||||
<div id="demo" style="color: red; font-size: 1.4em">jQuery.js is not present. You must install jQuery in this folder for the demo to work.</div>
|
||||
|
||||
<form action="" style="width: 500px;">
|
||||
<div id="picker" style="float: right;"></div>
|
||||
<div class="form-item"><label for="color1">Color 1:</label><input type="text" id="color1" name="color1" class="colorwell" value="#123456" /></div>
|
||||
<div class="form-item"><label for="color2">Color 2:</label><input type="text" id="color2" name="color2" class="colorwell" value="#123456" /></div>
|
||||
<div class="form-item"><label for="color3">Color 3:</label><input type="text" id="color3" name="color3" class="colorwell" value="#123456" /></div>
|
||||
|
||||
</form>
|
||||
|
||||
<p>More info on <a href="http://www.acko.net/dev/farbtastic">Acko.net</a>.</p>
|
||||
<p>Created by <a href="http://www.acko.net/">Steven Wittens</a>.</p>
|
||||
</body>
|
||||
</html>
|
||||
51
assets/js/colorpicker/farbtastic.css
Normal file
51
assets/js/colorpicker/farbtastic.css
Normal file
@@ -0,0 +1,51 @@
|
||||
/**
|
||||
* Farbtastic Color Picker 1.2
|
||||
* © 2008 Steven Wittens
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
.farbtastic {
|
||||
position: relative;
|
||||
}
|
||||
.farbtastic * {
|
||||
position: absolute;
|
||||
cursor: crosshair;
|
||||
}
|
||||
.farbtastic, .farbtastic .wheel {
|
||||
width: 195px;
|
||||
height: 195px;
|
||||
}
|
||||
.farbtastic .color, .farbtastic .overlay {
|
||||
top: 47px;
|
||||
left: 47px;
|
||||
width: 101px;
|
||||
height: 101px;
|
||||
}
|
||||
.farbtastic .wheel {
|
||||
background: url(wheel.png) no-repeat;
|
||||
width: 195px;
|
||||
height: 195px;
|
||||
}
|
||||
.farbtastic .overlay {
|
||||
background: url(mask.png) no-repeat;
|
||||
}
|
||||
.farbtastic .marker {
|
||||
width: 17px;
|
||||
height: 17px;
|
||||
margin: -8px 0 0 -8px;
|
||||
overflow: hidden;
|
||||
background: url(marker.png) no-repeat;
|
||||
}
|
||||
|
||||
345
assets/js/colorpicker/farbtastic.js
Normal file
345
assets/js/colorpicker/farbtastic.js
Normal file
@@ -0,0 +1,345 @@
|
||||
/**
|
||||
* Farbtastic Color Picker 1.2
|
||||
* © 2008 Steven Wittens
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
jQuery.fn.farbtastic = function (callback) {
|
||||
$.farbtastic(this, callback);
|
||||
return this;
|
||||
};
|
||||
|
||||
jQuery.farbtastic = function (container, callback) {
|
||||
var container = $(container).get(0);
|
||||
return container.farbtastic || (container.farbtastic = new jQuery._farbtastic(container, callback));
|
||||
}
|
||||
|
||||
jQuery._farbtastic = function (container, callback) {
|
||||
// Store farbtastic object
|
||||
var fb = this;
|
||||
|
||||
// Insert markup
|
||||
$(container).html('<div class="farbtastic"><div class="color"></div><div class="wheel"></div><div class="overlay"></div><div class="h-marker marker"></div><div class="sl-marker marker"></div></div>');
|
||||
var e = $('.farbtastic', container);
|
||||
fb.wheel = $('.wheel', container).get(0);
|
||||
// Dimensions
|
||||
fb.radius = 84;
|
||||
fb.square = 100;
|
||||
fb.width = 194;
|
||||
|
||||
// Fix background PNGs in IE6
|
||||
if (navigator.appVersion.match(/MSIE [0-6]\./)) {
|
||||
$('*', e).each(function () {
|
||||
if (this.currentStyle.backgroundImage != 'none') {
|
||||
var image = this.currentStyle.backgroundImage;
|
||||
image = this.currentStyle.backgroundImage.substring(5, image.length - 2);
|
||||
$(this).css({
|
||||
'backgroundImage': 'none',
|
||||
'filter': "progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true, sizingMethod=crop, src='" + image + "')"
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Link to the given element(s) or callback.
|
||||
*/
|
||||
fb.linkTo = function (callback) {
|
||||
// Unbind previous nodes
|
||||
if (typeof fb.callback == 'object') {
|
||||
$(fb.callback).unbind('keyup', fb.updateValue);
|
||||
}
|
||||
|
||||
// Reset color
|
||||
fb.color = null;
|
||||
|
||||
// Bind callback or elements
|
||||
if (typeof callback == 'function') {
|
||||
fb.callback = callback;
|
||||
}
|
||||
else if (typeof callback == 'object' || typeof callback == 'string') {
|
||||
fb.callback = $(callback);
|
||||
fb.callback.bind('keyup', fb.updateValue);
|
||||
if (fb.callback.get(0).value) {
|
||||
fb.setColor(fb.callback.get(0).value);
|
||||
}
|
||||
}
|
||||
return this;
|
||||
}
|
||||
fb.updateValue = function (event) {
|
||||
if (this.value && this.value != fb.color) {
|
||||
fb.setColor(this.value);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Change color with HTML syntax #123456
|
||||
*/
|
||||
fb.setColor = function (color) {
|
||||
var unpack = fb.unpack(color);
|
||||
if (fb.color != color && unpack) {
|
||||
fb.color = color;
|
||||
fb.rgb = unpack;
|
||||
fb.hsl = fb.RGBToHSL(fb.rgb);
|
||||
fb.updateDisplay();
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Change color with HSL triplet [0..1, 0..1, 0..1]
|
||||
*/
|
||||
fb.setHSL = function (hsl) {
|
||||
fb.hsl = hsl;
|
||||
fb.rgb = fb.HSLToRGB(hsl);
|
||||
fb.color = fb.pack(fb.rgb);
|
||||
fb.updateDisplay();
|
||||
return this;
|
||||
}
|
||||
|
||||
/////////////////////////////////////////////////////
|
||||
|
||||
/**
|
||||
* Retrieve the coordinates of the given event relative to the center
|
||||
* of the widget.
|
||||
*/
|
||||
fb.widgetCoords = function (event) {
|
||||
var x, y;
|
||||
var el = event.target || event.srcElement;
|
||||
var reference = fb.wheel;
|
||||
|
||||
if (typeof event.offsetX != 'undefined') {
|
||||
// Use offset coordinates and find common offsetParent
|
||||
var pos = { x: event.offsetX, y: event.offsetY };
|
||||
|
||||
// Send the coordinates upwards through the offsetParent chain.
|
||||
var e = el;
|
||||
while (e) {
|
||||
e.mouseX = pos.x;
|
||||
e.mouseY = pos.y;
|
||||
pos.x += e.offsetLeft;
|
||||
pos.y += e.offsetTop;
|
||||
e = e.offsetParent;
|
||||
}
|
||||
|
||||
// Look for the coordinates starting from the wheel widget.
|
||||
var e = reference;
|
||||
var offset = { x: 0, y: 0 }
|
||||
while (e) {
|
||||
if (typeof e.mouseX != 'undefined') {
|
||||
x = e.mouseX - offset.x;
|
||||
y = e.mouseY - offset.y;
|
||||
break;
|
||||
}
|
||||
offset.x += e.offsetLeft;
|
||||
offset.y += e.offsetTop;
|
||||
e = e.offsetParent;
|
||||
}
|
||||
|
||||
// Reset stored coordinates
|
||||
e = el;
|
||||
while (e) {
|
||||
e.mouseX = undefined;
|
||||
e.mouseY = undefined;
|
||||
e = e.offsetParent;
|
||||
}
|
||||
}
|
||||
else {
|
||||
// Use absolute coordinates
|
||||
var pos = fb.absolutePosition(reference);
|
||||
x = (event.pageX || 0*(event.clientX + $('html').get(0).scrollLeft)) - pos.x;
|
||||
y = (event.pageY || 0*(event.clientY + $('html').get(0).scrollTop)) - pos.y;
|
||||
}
|
||||
// Subtract distance to middle
|
||||
return { x: x - fb.width / 2, y: y - fb.width / 2 };
|
||||
}
|
||||
|
||||
/**
|
||||
* Mousedown handler
|
||||
*/
|
||||
fb.mousedown = function (event) {
|
||||
// Capture mouse
|
||||
if (!document.dragging) {
|
||||
$(document).bind('mousemove', fb.mousemove).bind('mouseup', fb.mouseup);
|
||||
document.dragging = true;
|
||||
}
|
||||
|
||||
// Check which area is being dragged
|
||||
var pos = fb.widgetCoords(event);
|
||||
fb.circleDrag = Math.max(Math.abs(pos.x), Math.abs(pos.y)) * 2 > fb.square;
|
||||
|
||||
// Process
|
||||
fb.mousemove(event);
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Mousemove handler
|
||||
*/
|
||||
fb.mousemove = function (event) {
|
||||
// Get coordinates relative to color picker center
|
||||
var pos = fb.widgetCoords(event);
|
||||
|
||||
// Set new HSL parameters
|
||||
if (fb.circleDrag) {
|
||||
var hue = Math.atan2(pos.x, -pos.y) / 6.28;
|
||||
if (hue < 0) hue += 1;
|
||||
fb.setHSL([hue, fb.hsl[1], fb.hsl[2]]);
|
||||
}
|
||||
else {
|
||||
var sat = Math.max(0, Math.min(1, -(pos.x / fb.square) + .5));
|
||||
var lum = Math.max(0, Math.min(1, -(pos.y / fb.square) + .5));
|
||||
fb.setHSL([fb.hsl[0], sat, lum]);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Mouseup handler
|
||||
*/
|
||||
fb.mouseup = function () {
|
||||
// Uncapture mouse
|
||||
$(document).unbind('mousemove', fb.mousemove);
|
||||
$(document).unbind('mouseup', fb.mouseup);
|
||||
document.dragging = false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Update the markers and styles
|
||||
*/
|
||||
fb.updateDisplay = function () {
|
||||
// Markers
|
||||
var angle = fb.hsl[0] * 6.28;
|
||||
$('.h-marker', e).css({
|
||||
left: Math.round(Math.sin(angle) * fb.radius + fb.width / 2) + 'px',
|
||||
top: Math.round(-Math.cos(angle) * fb.radius + fb.width / 2) + 'px'
|
||||
});
|
||||
|
||||
$('.sl-marker', e).css({
|
||||
left: Math.round(fb.square * (.5 - fb.hsl[1]) + fb.width / 2) + 'px',
|
||||
top: Math.round(fb.square * (.5 - fb.hsl[2]) + fb.width / 2) + 'px'
|
||||
});
|
||||
|
||||
// Saturation/Luminance gradient
|
||||
$('.color', e).css('backgroundColor', fb.pack(fb.HSLToRGB([fb.hsl[0], 1, 0.5])));
|
||||
|
||||
// Linked elements or callback
|
||||
if (typeof fb.callback == 'object') {
|
||||
// Set background/foreground color
|
||||
$(fb.callback).css({
|
||||
backgroundColor: fb.color,
|
||||
color: fb.hsl[2] > 0.5 ? '#000' : '#fff'
|
||||
});
|
||||
|
||||
// Change linked value
|
||||
$(fb.callback).each(function() {
|
||||
if (this.value && this.value != fb.color) {
|
||||
this.value = fb.color;
|
||||
}
|
||||
});
|
||||
}
|
||||
else if (typeof fb.callback == 'function') {
|
||||
fb.callback.call(fb, fb.color);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Get absolute position of element
|
||||
*/
|
||||
fb.absolutePosition = function (el) {
|
||||
var r = { x: el.offsetLeft, y: el.offsetTop };
|
||||
// Resolve relative to offsetParent
|
||||
if (el.offsetParent) {
|
||||
var tmp = fb.absolutePosition(el.offsetParent);
|
||||
r.x += tmp.x;
|
||||
r.y += tmp.y;
|
||||
}
|
||||
return r;
|
||||
};
|
||||
|
||||
/* Various color utility functions */
|
||||
fb.pack = function (rgb) {
|
||||
var r = Math.round(rgb[0] * 255);
|
||||
var g = Math.round(rgb[1] * 255);
|
||||
var b = Math.round(rgb[2] * 255);
|
||||
return '#' + (r < 16 ? '0' : '') + r.toString(16) +
|
||||
(g < 16 ? '0' : '') + g.toString(16) +
|
||||
(b < 16 ? '0' : '') + b.toString(16);
|
||||
}
|
||||
|
||||
fb.unpack = function (color) {
|
||||
if (color.length == 7) {
|
||||
return [parseInt('0x' + color.substring(1, 3)) / 255,
|
||||
parseInt('0x' + color.substring(3, 5)) / 255,
|
||||
parseInt('0x' + color.substring(5, 7)) / 255];
|
||||
}
|
||||
else if (color.length == 4) {
|
||||
return [parseInt('0x' + color.substring(1, 2)) / 15,
|
||||
parseInt('0x' + color.substring(2, 3)) / 15,
|
||||
parseInt('0x' + color.substring(3, 4)) / 15];
|
||||
}
|
||||
}
|
||||
|
||||
fb.HSLToRGB = function (hsl) {
|
||||
var m1, m2, r, g, b;
|
||||
var h = hsl[0], s = hsl[1], l = hsl[2];
|
||||
m2 = (l <= 0.5) ? l * (s + 1) : l + s - l*s;
|
||||
m1 = l * 2 - m2;
|
||||
return [this.hueToRGB(m1, m2, h+0.33333),
|
||||
this.hueToRGB(m1, m2, h),
|
||||
this.hueToRGB(m1, m2, h-0.33333)];
|
||||
}
|
||||
|
||||
fb.hueToRGB = function (m1, m2, h) {
|
||||
h = (h < 0) ? h + 1 : ((h > 1) ? h - 1 : h);
|
||||
if (h * 6 < 1) return m1 + (m2 - m1) * h * 6;
|
||||
if (h * 2 < 1) return m2;
|
||||
if (h * 3 < 2) return m1 + (m2 - m1) * (0.66666 - h) * 6;
|
||||
return m1;
|
||||
}
|
||||
|
||||
fb.RGBToHSL = function (rgb) {
|
||||
var min, max, delta, h, s, l;
|
||||
var r = rgb[0], g = rgb[1], b = rgb[2];
|
||||
min = Math.min(r, Math.min(g, b));
|
||||
max = Math.max(r, Math.max(g, b));
|
||||
delta = max - min;
|
||||
l = (min + max) / 2;
|
||||
s = 0;
|
||||
if (l > 0 && l < 1) {
|
||||
s = delta / (l < 0.5 ? (2 * l) : (2 - 2 * l));
|
||||
}
|
||||
h = 0;
|
||||
if (delta > 0) {
|
||||
if (max == r && max != g) h += (g - b) / delta;
|
||||
if (max == g && max != b) h += (2 + (b - r) / delta);
|
||||
if (max == b && max != r) h += (4 + (r - g) / delta);
|
||||
h /= 6;
|
||||
}
|
||||
return [h, s, l];
|
||||
}
|
||||
|
||||
// Install mousedown handler (the others are set on the document on-demand)
|
||||
$('*', e).mousedown(fb.mousedown);
|
||||
|
||||
// Init color
|
||||
fb.setColor('#000000');
|
||||
|
||||
// Set linked elements/callback
|
||||
if (callback) {
|
||||
fb.linkTo(callback);
|
||||
}
|
||||
}
|
||||
BIN
assets/js/colorpicker/marker.png
Normal file
BIN
assets/js/colorpicker/marker.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 652 B |
BIN
assets/js/colorpicker/mask.png
Normal file
BIN
assets/js/colorpicker/mask.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.0 KiB |
BIN
assets/js/colorpicker/wheel.png
Normal file
BIN
assets/js/colorpicker/wheel.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 12 KiB |
221
assets/js/comment.js
Normal file
221
assets/js/comment.js
Normal file
@@ -0,0 +1,221 @@
|
||||
if (typeof(COMMENT_JS) === 'undefined') {
|
||||
|
||||
var COMMENT_JS = true;
|
||||
var is_submit_comment = false;
|
||||
|
||||
function view_comment(id, post_id, page, opt, message) {
|
||||
if (opt) {
|
||||
$('html, body').animate({
|
||||
scrollTop: $('#' + id).offset().top - 100
|
||||
}, 0);
|
||||
}
|
||||
|
||||
var comment_url = cb_url + '/comment_list/lists/' + post_id + '?page=' + page;
|
||||
var hash = window.location.hash;
|
||||
|
||||
$('#' + id).load(comment_url, function() {
|
||||
if (message) {
|
||||
$('.alert-comment-list-message-content').html(message);
|
||||
$('.alert-comment-list-message').addClass('alert-success').removeClass('alert-warning').show(0).delay(2500).hide(0);
|
||||
}
|
||||
if (hash) {
|
||||
var st = $(hash).offset().top;
|
||||
$('html, body').animate({ scrollTop: st }, 200); //200ms duration
|
||||
}
|
||||
if (typeof(SyntaxHighlighter) !== 'undefined') {
|
||||
SyntaxHighlighter.highlight();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function view_comment_password(cmt_id, post_id) {
|
||||
var comment_url = cb_url + '/comment_list/password/' + cmt_id + '/' + post_id;
|
||||
document.location.href=comment_url;
|
||||
}
|
||||
|
||||
function add_comment(f, post_id) {
|
||||
|
||||
if (is_submit_comment === true) {
|
||||
return false;
|
||||
}
|
||||
|
||||
is_submit_comment = true;
|
||||
|
||||
if ($('#char_count')) {
|
||||
if (char_min > 0 || char_max > 0) {
|
||||
var cnt = parseInt(check_byte('cmt_content', 'char_count'));
|
||||
if (char_min > 0 && char_min > cnt) {
|
||||
alert('내용은 ' + char_min + '글자 이상 쓰셔야 합니다.');
|
||||
f.cmt_content.focus();
|
||||
is_submit_comment = false;
|
||||
return false;
|
||||
} else if (char_max > 0 && char_max < cnt) {
|
||||
alert('내용은 ' + char_max + '글자 이하로 쓰셔야 합니다.');
|
||||
f.cmt_content.focus();
|
||||
is_submit_comment = false;
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$('#fcomment').validate();
|
||||
if ($('#fcomment').valid()) // check if form is valid
|
||||
{
|
||||
// do some stuff
|
||||
}
|
||||
else
|
||||
{
|
||||
is_submit_comment = false;
|
||||
return false;
|
||||
// just show validation errors, dont post
|
||||
}
|
||||
|
||||
var content = '';
|
||||
$.ajax({
|
||||
url: cb_url + '/postact/filter_spam_keyword',
|
||||
type: 'post',
|
||||
data: {
|
||||
title: '',
|
||||
content: f.cmt_content.value,
|
||||
csrf_test_name: cb_csrf_hash
|
||||
},
|
||||
dataType: 'json',
|
||||
async: false,
|
||||
cache: false,
|
||||
success: function(data) {
|
||||
content = data.content;
|
||||
}
|
||||
});
|
||||
if (content) {
|
||||
alert('내용에 금지단어(\'' + content + '\')가 포함되어있습니다');
|
||||
f.cmt_content.focus();
|
||||
is_submit_comment = false;
|
||||
return false;
|
||||
}
|
||||
|
||||
$.ajax({
|
||||
url : cb_url + '/comment_write/update',
|
||||
type : 'POST',
|
||||
cache : false,
|
||||
data : $('#fcomment').serialize(),
|
||||
dataType : 'json',
|
||||
success : function(data) {
|
||||
is_submit_comment = false;
|
||||
if (data.error) {
|
||||
$('.alert-comment-message-content').html(data.error);
|
||||
$('.alert-comment-message').addClass('alert-warning').removeClass('alert-success').show(0).delay(2500).hide(0);
|
||||
return false;
|
||||
} else if (data.success) {
|
||||
$('.alert-comment-message-content').html(data.success);
|
||||
$('.alert-comment-message').addClass('alert-success').removeClass('alert-warning').show(0).delay(2500).hide(0);
|
||||
view_comment('viewcomment', post_id, '', '')
|
||||
if ($('#char_count')) {
|
||||
if (char_min > 0 || char_max > 0) {
|
||||
check_byte('cmt_content', 'char_count');
|
||||
}
|
||||
}
|
||||
init_comment_box();
|
||||
}
|
||||
},
|
||||
error : function(data) {
|
||||
is_submit_comment = false;
|
||||
alert('오류가 발생하였습니다.');
|
||||
return false;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function delete_comment(cmt_id, post_id, page) {
|
||||
if (confirm("정말 삭제 하시겠습니까?\n\n삭제하신 후에는 복구가 불가능합니다.")) {
|
||||
$.ajax({
|
||||
url : cb_url + '/postact/delete_comment',
|
||||
type : 'POST',
|
||||
cache : false,
|
||||
data : {cmt_id:cmt_id, csrf_test_name: cb_csrf_hash},
|
||||
dataType : 'json',
|
||||
success : function(data) {
|
||||
if (data.error) {
|
||||
$('.alert-comment-list-message-content').html(data.error);
|
||||
$('.alert-comment-list-message').addClass('alert-warning').removeClass('alert-success').show();
|
||||
return false;
|
||||
} else if (data.password) {
|
||||
$('.alert-comment-list-message-content').html(data.password);
|
||||
$('.alert-comment-list-message').addClass('alert-warning').removeClass('alert-success').show();
|
||||
view_comment_password(post_id, cmt_id);
|
||||
return false;
|
||||
} else if (data.success) {
|
||||
view_comment('viewcomment', post_id, '', '', data.success);
|
||||
init_comment_box();
|
||||
}
|
||||
},
|
||||
error : function(data) {
|
||||
alert('오류가 발생하였습니다.');
|
||||
return false;
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
function comment_page(post_id, page) {
|
||||
view_comment('viewcomment', post_id, page, '');
|
||||
comment_cur_page = page;
|
||||
}
|
||||
|
||||
function init_comment_box() {
|
||||
$('#cmt_nickname').val('');
|
||||
$('#cmt_password').val('');
|
||||
$('#cmt_content').val('');
|
||||
$('#captcha').trigger('click');
|
||||
$('#captcha_key').val('');
|
||||
$('#cmt_btn_submit').prop('disabled', false);
|
||||
check_byte('cmt_content', 'char_count');
|
||||
comment_box('', 'c');
|
||||
}
|
||||
|
||||
var save_before = '';
|
||||
var save_html = document.getElementById('comment_write_box').innerHTML;
|
||||
function comment_box(cmt_id, work) {
|
||||
var el_id;
|
||||
// 댓글 아이디가 넘어오면 답변, 수정
|
||||
if (cmt_id) {
|
||||
if (work === 'c') {
|
||||
el_id = 'reply_' + cmt_id;
|
||||
} else {
|
||||
el_id = 'edit_' + cmt_id;
|
||||
}
|
||||
} else {
|
||||
el_id = 'comment_write_box';
|
||||
}
|
||||
|
||||
if (save_before !== el_id) {
|
||||
if (save_before) {
|
||||
$('#' + save_before).css('display', 'none');
|
||||
$('#' + save_before).html('');
|
||||
}
|
||||
|
||||
$('#' + el_id).css('display', '');
|
||||
$('#' + el_id).html(save_html);
|
||||
// 댓글 수정
|
||||
if (work === 'cu') {
|
||||
$('#cmt_content').val($('#save_comment_' + cmt_id).val());
|
||||
if (typeof char_count !== 'undefined') {
|
||||
check_byte('cmt_content', 'char_count');
|
||||
}
|
||||
if ($('#secret_comment_' + cmt_id).val() === '1') {
|
||||
$('#cmt_secret').prop('checked', true);
|
||||
} else {
|
||||
$('#cmt_secret').prop('checked', false);
|
||||
}
|
||||
}
|
||||
|
||||
$('#cmt_id').val(cmt_id);
|
||||
$('#mode').val(work);
|
||||
|
||||
if (save_before) {
|
||||
$('#captcha').trigger('click');
|
||||
}
|
||||
save_before = el_id;
|
||||
}
|
||||
}
|
||||
comment_box('', 'c');
|
||||
}
|
||||
936
assets/js/common.js
Normal file
936
assets/js/common.js
Normal file
@@ -0,0 +1,936 @@
|
||||
if (typeof(COMMON_JS) === 'undefined') {
|
||||
|
||||
var COMMON_JS = true;
|
||||
|
||||
$(document).on('click', '.btn-history-back', function() {
|
||||
history.back();
|
||||
});
|
||||
|
||||
$(document).on('click', '.alertclose' , function() {
|
||||
$(this).closest('.alert').hide();
|
||||
});
|
||||
|
||||
$(document).ready(function(){
|
||||
window.setTimeout(function() {
|
||||
$('.alert-auto-close').hide();
|
||||
}, 2500);
|
||||
});
|
||||
|
||||
$(document).on('click', '#chkall', function() {
|
||||
var chk = document.getElementsByName('chk[]');
|
||||
for (i = 0; i < chk.length; i++)
|
||||
chk[i].checked = this.checked;
|
||||
});
|
||||
|
||||
$(document).ready(function() {
|
||||
$('.datepicker').datepicker({
|
||||
format: 'yyyy-mm-dd',
|
||||
language: 'kr',
|
||||
autoclose: true,
|
||||
todayHighlight: true
|
||||
});
|
||||
});
|
||||
|
||||
function trim(s) {
|
||||
var t = '';
|
||||
var from_pos = to_pos = 0;
|
||||
|
||||
for (i = 0; i < s.length; i++) {
|
||||
if (s.charAt(i) === ' ') {
|
||||
continue;
|
||||
} else {
|
||||
from_pos = i;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
for (i = s.length; i >= 0; i--) {
|
||||
if (s.charAt(i-1) === ' ') {
|
||||
continue;
|
||||
} else {
|
||||
to_pos = i;
|
||||
break;
|
||||
}
|
||||
}
|
||||
t = s.substring(from_pos, to_pos);
|
||||
return t;
|
||||
}
|
||||
|
||||
function select_submit(f, acttype, actpage) {
|
||||
var str = '';
|
||||
|
||||
if ($("input[name='chk[]']:checked", f).length < 1) {
|
||||
alert('자료를 하나 이상 선택하세요.');
|
||||
return;
|
||||
}
|
||||
if (acttype === 'delete' && ! confirm('선택한 자료를 정말 삭제 하시겠습니까?')) return;
|
||||
if (acttype === 'recover' && ! confirm('선택한 자료를 정말 복원 하시겠습니까?')) return;
|
||||
if (acttype === 'trash' && ! confirm('선택한 자료를 정말 휴지통으로 이동하시겠습니까?')) return;
|
||||
|
||||
f.action = actpage;
|
||||
f.submit();
|
||||
}
|
||||
|
||||
function deletecheck(){
|
||||
if (confirm('정말 삭제하시겠습니까? 삭제하신 후에는 복구가 불가능합니다')) {
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
$(document).on('click', '.btn-list-update', function() {
|
||||
select_submit(document.flist, 'update', $(this).attr('data-list-update-url'));
|
||||
});
|
||||
|
||||
$(document).on('click', '.btn-list-delete', function() {
|
||||
select_submit(document.flist, 'delete', $(this).attr('data-list-delete-url'));
|
||||
});
|
||||
|
||||
$(document).on('click', '.btn-list-trash', function() {
|
||||
select_submit(document.flist, 'trash', $(this).attr('data-list-trash-url'));
|
||||
});
|
||||
|
||||
$(document).on('click', '.btn-list-recover', function() {
|
||||
select_submit(document.flist, 'recover', $(this).attr('data-list-recover-url'));
|
||||
});
|
||||
|
||||
$(document).on('click', '.btn-one-delete', function() {
|
||||
if (confirm("한번 삭제한 자료는 복구할 방법이 없습니다.\n\n정말 삭제하시겠습니까?")) {
|
||||
document.location.href= $(this).attr('data-one-delete-url');
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
});
|
||||
|
||||
$(document).on('click', '.btn-list-truncate', function() {
|
||||
if (confirm("휴지통 전체를 비웁니다.\n\n비운 자료는 절대 복구가 불가능합니다. \n\n그래도 진행하시겠습니까?")) {
|
||||
document.location.href= $(this).attr('data-list-truncate-url');
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
});
|
||||
|
||||
$(document).on('click', '.btn-one-recover', function() {
|
||||
if (confirm('선택한 자료를 정말 복원하시겠습니까?')) {
|
||||
document.location.href= $(this).attr('data-one-recover-url');
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
});
|
||||
|
||||
$(document).on('click', '.btn-one-trash', function() {
|
||||
if (confirm('선택한 자료를 정말 휴지통으로 이동하시겠습니까?')) {
|
||||
document.location.href= $(this).attr('data-one-trash-url');
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
});
|
||||
|
||||
$(document).on('click', '.list-chkbox, #chkall', function() {
|
||||
var $checkedCheckboxes = $('.list-chkbox:checked');
|
||||
var $checkboxes = $('.list-chkbox');
|
||||
if ($checkedCheckboxes.length) {
|
||||
$('.btn-list-update , .btn-list-selected').removeClass('disabled');
|
||||
} else {
|
||||
$('.btn-list-update , .btn-list-selected').addClass('disabled');
|
||||
}
|
||||
});
|
||||
|
||||
$(document).on('click', '.view_full_image', function() {
|
||||
window.open( cb_url + '/helptool/viewimage?imgurl=' + encodeURIComponent($(this).attr('data-origin-image-url')),
|
||||
'large_image', 'location=yes,links=no,toolbar=no,top=10,left=10,width=10,height=10,resizable=yes,scrollbars=no,status=no');
|
||||
return false;
|
||||
});
|
||||
|
||||
function post_like(post_id, like_type, classname) {
|
||||
|
||||
var href;
|
||||
|
||||
if ( post_id == '') {
|
||||
return false;
|
||||
}
|
||||
|
||||
href = cb_url + '/postact/post_like/' + post_id + '/' + like_type;
|
||||
|
||||
$.ajax({
|
||||
url : href,
|
||||
type : 'get',
|
||||
dataType : 'json',
|
||||
success : function(data) {
|
||||
if (data.error) {
|
||||
alert(data.error);
|
||||
return false;
|
||||
} else if (data.success) {
|
||||
//alert(data.success);
|
||||
$('.' + classname).text(number_format(String(data.count)));
|
||||
$('#btn-' + classname).effect('highlight', {color : '#f37f60'}, 300);
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function comment_like(cmt_id, like_type, classname) {
|
||||
|
||||
var href;
|
||||
|
||||
if ( cmt_id == '') {
|
||||
return false;
|
||||
}
|
||||
|
||||
href = cb_url + '/postact/comment_like/' + cmt_id + '/' + like_type;
|
||||
|
||||
$.ajax({
|
||||
url : href,
|
||||
type : 'get',
|
||||
dataType : 'json',
|
||||
success : function(data) {
|
||||
if (data.error) {
|
||||
alert(data.error);
|
||||
return false;
|
||||
} else if (data.success) {
|
||||
//alert(data.success);
|
||||
$('.' + classname).text(number_format(String(data.count)));
|
||||
$('#btn-' + classname).effect('highlight', {color : '#f37f60'}, 500);
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function post_scrap(post_id, classname) {
|
||||
|
||||
var href;
|
||||
|
||||
if ( post_id == '') {
|
||||
return false;
|
||||
}
|
||||
|
||||
href = cb_url + '/postact/post_scrap/' + post_id;
|
||||
var $that = $(this);
|
||||
$.ajax({
|
||||
url : href,
|
||||
type : 'get',
|
||||
dataType : 'json',
|
||||
success : function(data) {
|
||||
if (data.error) {
|
||||
alert(data.error);
|
||||
return false;
|
||||
} else if (data.success) {
|
||||
//alert(data.success);
|
||||
$('.' + classname).text('+' + number_format(String(data.count)));
|
||||
$('#btn-scrap').effect('highlight', { color: '#af75b2' }, 3000);
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function post_blame(post_id, classname) {
|
||||
|
||||
var href;
|
||||
|
||||
if ( post_id == '') {
|
||||
return false;
|
||||
}
|
||||
|
||||
if ( ! confirm("이 글을 신고하시겠습니까?\n\n한번 신고하신 후에는 취소가 불가능합니다")) { return false; }
|
||||
|
||||
href = cb_url + '/postact/post_blame/' + post_id;
|
||||
var $that = $(this);
|
||||
$.ajax({
|
||||
url : href,
|
||||
type : 'get',
|
||||
dataType : 'json',
|
||||
success : function(data) {
|
||||
if (data.error) {
|
||||
alert(data.error);
|
||||
return false;
|
||||
} else if (data.success) {
|
||||
//alert(data.success);
|
||||
$('.' + classname).text('+' + number_format(String(data.count)));
|
||||
$('#btn-blame').effect('highlight', { color: '#af75b2' }, 3000);
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function comment_blame(cmt_id, classname) {
|
||||
|
||||
var href;
|
||||
|
||||
if ( cmt_id == '') {
|
||||
return false;
|
||||
}
|
||||
|
||||
if ( ! confirm("이 댓글을 신고하시겠습니까?\n\n한번 신고하신 후에는 취소가 불가능합니다")) { return false; }
|
||||
|
||||
href = cb_url + '/postact/comment_blame/' + cmt_id;
|
||||
var $that = $(this);
|
||||
$.ajax({
|
||||
url : href,
|
||||
type : 'get',
|
||||
dataType : 'json',
|
||||
success : function(data) {
|
||||
if (data.error) {
|
||||
alert(data.error);
|
||||
return false;
|
||||
} else if (data.success) {
|
||||
//alert(data.success);
|
||||
$('.' + classname).text('+' + number_format(String(data.count)));
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function post_action(action_type, action_id, flag, msg) {
|
||||
var href;
|
||||
if ( action_type == '') {
|
||||
return false;
|
||||
}
|
||||
if ( action_id == '') {
|
||||
return false;
|
||||
}
|
||||
if ( msg) {
|
||||
if ( ! confirm(msg)) { return false; }
|
||||
}
|
||||
href = cb_url + '/postact/' + action_type + '/' + action_id + '/' + flag;
|
||||
var $that = $(this);
|
||||
$.ajax({
|
||||
url : href,
|
||||
type : 'post',
|
||||
data : {
|
||||
csrf_test_name: cb_csrf_hash
|
||||
},
|
||||
dataType : 'json',
|
||||
success : function(data) {
|
||||
if (data.error) {
|
||||
alert(data.error);
|
||||
return false;
|
||||
} else if (data.success) {
|
||||
alert(data.success);
|
||||
if (data.url) {
|
||||
document.location.href=data.url;
|
||||
} else {
|
||||
document.location.reload();
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function post_multi_action(action_type, flag, msg) {
|
||||
var href;
|
||||
if ( action_type == '') {
|
||||
return false;
|
||||
}
|
||||
if ( msg) {
|
||||
if ( ! confirm(msg)) { return false; }
|
||||
}
|
||||
href = cb_url + '/postact/' + action_type + '/' + flag;
|
||||
var $that = $(this);
|
||||
$.ajax({
|
||||
url : href,
|
||||
type : 'post',
|
||||
data : $('#fboardlist').serialize() + '&csrf_test_name=' + cb_csrf_hash,
|
||||
dataType : 'json',
|
||||
success : function(data) {
|
||||
if (data.error) {
|
||||
alert(data.error);
|
||||
return false;
|
||||
} else if (data.success) {
|
||||
alert(data.success);
|
||||
if (data.url) {
|
||||
document.location.href=data.url;
|
||||
} else {
|
||||
document.location.reload();
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function makeSerializable(elem) {
|
||||
return $(elem).prop('elements', $('*', elem).andSelf().get());
|
||||
}
|
||||
|
||||
function comment_multi_action(id, post_id, action_type, flag, msg) {
|
||||
var href;
|
||||
if ( action_type == '') {
|
||||
return false;
|
||||
}
|
||||
if ( msg) {
|
||||
if ( ! confirm(msg)) { return false; }
|
||||
}
|
||||
|
||||
var sdata = makeSerializable('#viewcomment').serialize();
|
||||
|
||||
href = cb_url + '/postact/' + action_type + '/' + flag;
|
||||
var $that = $(this);
|
||||
$.ajax({
|
||||
url : href,
|
||||
type : 'post',
|
||||
data : sdata + '&csrf_test_name=' + cb_csrf_hash,
|
||||
dataType : 'json',
|
||||
success : function(data) {
|
||||
if (data.error) {
|
||||
alert(data.error);
|
||||
return false;
|
||||
} else if (data.success) {
|
||||
alert(data.success);
|
||||
if (data.url) {
|
||||
document.location.href=data.url;
|
||||
} else {
|
||||
view_comment(id, post_id, '1');
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function add_follow(userid, classname) {
|
||||
|
||||
var href;
|
||||
|
||||
if ( userid == '') {
|
||||
return false;
|
||||
}
|
||||
|
||||
href = cb_url + '/profile/add_follow/' + userid;
|
||||
var $that = $(this);
|
||||
$.ajax({
|
||||
url : href,
|
||||
type : 'get',
|
||||
dataType : 'json',
|
||||
success : function(data) {
|
||||
if (data.error) {
|
||||
alert(data.error);
|
||||
return false;
|
||||
} else if (data.success) {
|
||||
alert(data.success);
|
||||
if (classname)
|
||||
$('.' + classname).text(number_format(String(data.target_count)));
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function delete_follow(userid, classname) {
|
||||
|
||||
var href;
|
||||
|
||||
if ( userid == '') {
|
||||
return false;
|
||||
}
|
||||
|
||||
href = cb_url + '/profile/delete_follow/' + userid;
|
||||
var $that = $(this);
|
||||
$.ajax({
|
||||
url : href,
|
||||
type : 'get',
|
||||
dataType : 'json',
|
||||
success : function(data) {
|
||||
if (data.error) {
|
||||
alert(data.error);
|
||||
return false;
|
||||
} else if (data.success) {
|
||||
alert(data.success);
|
||||
if (classname)
|
||||
$('.' + classname).text(number_format(String(data.target_count)));
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
$(document).on('mouseenter', '.admin-manage-post', function () {
|
||||
$manage_button = $(this);
|
||||
$('.admin-manage-post-layer').css('top', $manage_button.position().top);
|
||||
$('.admin-manage-post-layer').css('left', $manage_button.position().left - ($('.admin-manage-post-layer').width()-$manage_button.width()));
|
||||
$('.admin-manage-post-layer').css('display', 'block');
|
||||
$(document).on('mouseenter', '.admin-manage-post-layer .item', function () {
|
||||
$(this).css('background-color', '#DEDEDE');
|
||||
});
|
||||
$(document).on('mouseleave', '.admin-manage-post-layer .item', function () {
|
||||
$(this).css('background-color', '#FFFFFF');
|
||||
});
|
||||
});
|
||||
$(document).on('mouseenter', '.admin-manage-list', function () {
|
||||
$manage_button_list = $(this);
|
||||
$('.admin-manage-layer-list').css('top', $manage_button_list.position().top);
|
||||
$('.admin-manage-layer-list').css('left', $manage_button_list.position().left - ($('.admin-manage-layer-list').width()-$manage_button_list.width()));
|
||||
$('.admin-manage-layer-list').css('display', 'block');
|
||||
$(document).on('mouseenter', '.admin-manage-layer-list .item', function () {
|
||||
$(this).css('background-color', '#DEDEDE');
|
||||
});
|
||||
$(document).on('mouseleave', '.admin-manage-layer-list .item', function () {
|
||||
$(this).css('background-color', '#FFFFFF');
|
||||
});
|
||||
});
|
||||
$(document).on('mouseenter', '.admin-manage-comment', function () {
|
||||
$manage_button_comment = $(this);
|
||||
$('.admin-manage-layer-comment').css('top', $manage_button_comment.position().top);
|
||||
$('.admin-manage-layer-comment').css('left', $manage_button_comment.position().left - ($('.admin-manage-layer-comment').width()-$manage_button_comment.width()));
|
||||
$('.admin-manage-layer-comment').css('display', 'block');
|
||||
$(document).on('mouseenter', '.admin-manage-layer-comment .item', function () {
|
||||
$(this).css('background-color', '#DEDEDE');
|
||||
});
|
||||
$(document).on('mouseleave', '.admin-manage-layer-comment .item', function () {
|
||||
$(this).css('background-color', '#FFFFFF');
|
||||
});
|
||||
});
|
||||
$(document).on('mouseleave', '.btn-admin-manage-layer', function () {
|
||||
$(this).css('display', 'none');
|
||||
});
|
||||
|
||||
// 쿠키 입력
|
||||
function set_cookie(name, value, expirehours, domain) {
|
||||
var today = new Date();
|
||||
today.setTime(today.getTime() + (60*60*1000*expirehours));
|
||||
document.cookie = cookie_prefix + name + '=' + escape( value) + '; path=/; expires=' + today.toGMTString() + ';';
|
||||
if (domain) {
|
||||
document.cookie += 'domain=' + domain + ';';
|
||||
}
|
||||
}
|
||||
|
||||
// 쿠키 얻음
|
||||
function get_cookie(cookie_name) {
|
||||
var find_sw = false;
|
||||
var start, end;
|
||||
var i = 0;
|
||||
|
||||
name = cookie_prefix + cookie_name
|
||||
|
||||
for (i = 0; i <= document.cookie.length; i++) {
|
||||
start = i;
|
||||
end = start + name.length;
|
||||
|
||||
if (document.cookie.substring(start, end) == name) {
|
||||
find_sw = true
|
||||
break
|
||||
}
|
||||
}
|
||||
|
||||
if (find_sw === true) {
|
||||
start = end + 1;
|
||||
end = document.cookie.indexOf(';', start);
|
||||
|
||||
if (end < start) {
|
||||
end = document.cookie.length;
|
||||
}
|
||||
|
||||
return document.cookie.substring(start, end);
|
||||
}
|
||||
return '';
|
||||
}
|
||||
|
||||
// 쿠키 지움
|
||||
function delete_cookie(name) {
|
||||
var today = new Date();
|
||||
|
||||
today.setTime(today.getTime() - 1);
|
||||
var value = get_cookie(name);
|
||||
if (value) {
|
||||
document.cookie = cookie_prefix + name + '=' + value + '; path=/; expires=' + today.toGMTString();
|
||||
}
|
||||
}
|
||||
|
||||
// 숫자에 , 를 출력
|
||||
function number_format(data) {
|
||||
|
||||
var tmp = '';
|
||||
var number = '';
|
||||
var cutlen = 3;
|
||||
var comma = ',';
|
||||
var i;
|
||||
|
||||
var sign = data.match(/^[\+\-]/);
|
||||
if (sign) {
|
||||
data = data.replace(/^[\+\-]/, '');
|
||||
}
|
||||
|
||||
len = data.length;
|
||||
mod = (len % cutlen);
|
||||
k = cutlen - mod;
|
||||
for (i = 0; i < data.length; i++) {
|
||||
number = number + data.charAt(i);
|
||||
|
||||
if (i < data.length - 1) {
|
||||
k++;
|
||||
if ((k % cutlen) === 0) {
|
||||
number = number + comma;
|
||||
k = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (sign !== null) {
|
||||
number = sign+number;
|
||||
}
|
||||
|
||||
return number;
|
||||
}
|
||||
|
||||
// 글자수 검사
|
||||
function check_byte(content, target) {
|
||||
var cont = $('#' + content).val();
|
||||
|
||||
// 숫자를 출력
|
||||
$('#' + target).text(cont.length);
|
||||
|
||||
return cont.length;
|
||||
}
|
||||
|
||||
function resize_textarea(id,mode) {
|
||||
if (mode === 'down') {
|
||||
$('#' + id).height($('#' + id).height() + 50);
|
||||
} else if (mode === 'up') {
|
||||
$('#' + id).height($('#' + id).height() - 50);
|
||||
} else {
|
||||
$('#' + id).height(mode);
|
||||
}
|
||||
}
|
||||
|
||||
function note_write(userid) {
|
||||
window.open(cb_url + '/note/write/' + userid , 'win_note', 'left=100,top=100,width=730,height=500,scrollbars=1');
|
||||
return false;
|
||||
}
|
||||
|
||||
function note_list(note_id) {
|
||||
if (note_id) {
|
||||
note_url = cb_url + '/note/view/recv/' + note_id;
|
||||
} else {
|
||||
note_url = cb_url + '/note/lists/recv';
|
||||
}
|
||||
window.open(note_url , 'win_note', 'left=100,top=100,width=730,height=500,scrollbars=1');
|
||||
return false;
|
||||
}
|
||||
|
||||
function open_profile(userid) {
|
||||
window.open(cb_url + '/profile/' + userid , 'win_profile', 'left=100,top=100,width=720,height=500,scrollbars=1');
|
||||
return false;
|
||||
}
|
||||
function email_write(userid) {
|
||||
window.open(cb_url + '/formmail/write/' + userid , 'win_note', 'left=100,top=100,width=720,height=500,scrollbars=1');
|
||||
return false;
|
||||
}
|
||||
function post_print(post_id) {
|
||||
window.open(cb_url + '/print/' + post_id , 'win_print', 'left=100,top=100,width=900,height=600,scrollbars=1');
|
||||
return false;
|
||||
}
|
||||
function post_history( post_id) {
|
||||
window.open(cb_url + '/helptool/post_history/' + post_id , 'win_post_history', 'left=100,top=100,width=620,height=500,scrollbars=1');
|
||||
return false;
|
||||
}
|
||||
function download_log( post_id) {
|
||||
window.open(cb_url + '/helptool/download_log/' + post_id , 'win_download_log', 'left=100,top=100,width=620,height=500,scrollbars=1');
|
||||
return false;
|
||||
}
|
||||
function link_click_log( post_id) {
|
||||
window.open(cb_url + '/helptool/link_click_log/' + post_id , 'win_link_click_log', 'left=100,top=100,width=620,height=500,scrollbars=1');
|
||||
return false;
|
||||
}
|
||||
function post_copy(type, post_id) {
|
||||
window.open(cb_url + '/helptool/post_copy/' + type + '/' + post_id, 'win_post_copy', 'left=100,top=100,width=620,height=500,scrollbars=1');
|
||||
return false;
|
||||
}
|
||||
function post_change_category(post_id) {
|
||||
window.open(cb_url + '/helptool/post_change_category/' + post_id, 'win_post_change_category', 'left=100,top=100,width=620,height=500,scrollbars=1');
|
||||
return false;
|
||||
}
|
||||
function post_multi_copy(ptype) {
|
||||
var f = document.fboardlist;
|
||||
var sub_win = window.open('', 'move', 'left=100, top=100, width=620, height=500, scrollbars=1');
|
||||
|
||||
f.target = 'move';
|
||||
f.method = 'post';
|
||||
f.action = cb_url + '/helptool/post_copy/' + ptype;
|
||||
f.submit();
|
||||
}
|
||||
function post_multi_change_category() {
|
||||
var f = document.fboardlist;
|
||||
var sub_win = window.open('', 'change_category', 'left=100, top=100, width=620, height=500, scrollbars=1');
|
||||
|
||||
f.target = 'change_category';
|
||||
f.method = 'post';
|
||||
f.action = cb_url + '/helptool/post_change_category';
|
||||
f.submit();
|
||||
}
|
||||
function open_google_map() {
|
||||
window.open(cb_url + '/helptool/googlemap_search' , 'win_map', 'left=100,top=100,width=720,height=500,scrollbars=1');
|
||||
return false;
|
||||
}
|
||||
|
||||
function all_boardlist_checked(flag) {
|
||||
var f = document.fboardlist;
|
||||
for (var i = 0; i < f.length; i++) {
|
||||
if (f.elements[i].name === 'chk_post_id[]') {
|
||||
f.elements[i].checked = flag;
|
||||
}
|
||||
}
|
||||
}
|
||||
function all_commentlist_checked(flag) {
|
||||
checkboxes = document.getElementsByName('chk_comment_id[]');
|
||||
for (var i = 0; i < checkboxes.length; i++) {
|
||||
checkboxes[i].checked = flag;
|
||||
}
|
||||
}
|
||||
|
||||
function auto_tempsave(brd_key) {
|
||||
var post_title = $('#post_title').val();
|
||||
if (typeof(oEditors) !== 'undefined') {
|
||||
oEditors.getById['post_content'].exec('UPDATE_CONTENTS_FIELD', []);
|
||||
}
|
||||
var post_content = $('#post_content').val();
|
||||
|
||||
$.ajax({
|
||||
url : cb_url + '/postact/tempsave',
|
||||
data : {
|
||||
brd_key : brd_key,
|
||||
post_title : encodeURIComponent(post_title),
|
||||
post_content : encodeURIComponent(post_content),
|
||||
csrf_test_name : cb_csrf_hash
|
||||
},
|
||||
type : 'post',
|
||||
dataType : 'json',
|
||||
success : function(data) {
|
||||
if (data.error) {
|
||||
alert(data.error);
|
||||
return false;
|
||||
} else if (data.success) {
|
||||
//alert(data.success);
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function get_tempsave(brd_key) {
|
||||
if (confirm("임시 저장한 내용이 있습니다.\n\n불러오시겠습니까?")) {
|
||||
|
||||
$.ajax({
|
||||
url : cb_url + '/postact/get_tempsave',
|
||||
data : {
|
||||
brd_key : brd_key,
|
||||
csrf_test_name : cb_csrf_hash
|
||||
},
|
||||
type : 'post',
|
||||
dataType : 'json',
|
||||
success : function(data) {
|
||||
if (data.error) {
|
||||
alert(data.error);
|
||||
return false;
|
||||
} else if (data.success) {
|
||||
//alert(data.success);
|
||||
$('#post_title').val(data.tmp_title);
|
||||
$('#post_content').val(data.tmp_content);
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
function ajax_notification_load() {
|
||||
$.ajax({
|
||||
url : cb_url + '/notification/ajax_list',
|
||||
type : 'post',
|
||||
data : {
|
||||
csrf_test_name: cb_csrf_hash
|
||||
},
|
||||
success : function(data) {
|
||||
$('.notifications-menu').html(data);
|
||||
$('.notification_num').html($('#notification_count').text());
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
$(document).on('click', '.notifications', function() {
|
||||
var display = $('.notifications-menu').css('display');
|
||||
if (display === 'none') {
|
||||
$('.notifications-menu').show();
|
||||
ajax_notification_load();
|
||||
} else {
|
||||
$('.notifications-menu').hide();
|
||||
}
|
||||
});
|
||||
$(document).on('click', '.notification_read.note', function() {
|
||||
$.ajax({
|
||||
url : cb_url + '/notification/readajax/' + $(this).attr('data-not-id'),
|
||||
type : 'get',
|
||||
dataType : 'json',
|
||||
success : function(data) {
|
||||
if (data.error) {
|
||||
alert(data.error);
|
||||
return false;
|
||||
} else if (data.success) {
|
||||
//alert(data.success);
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
$(document).on('click', '.noti-all-read', function() {
|
||||
$.ajax({
|
||||
url : cb_url + '/notification/readallajax/',
|
||||
type : 'get',
|
||||
dataType : 'json',
|
||||
success : function(data) {
|
||||
if (data.error) {
|
||||
alert(data.error);
|
||||
return false;
|
||||
} else if (data.success) {
|
||||
//alert(data.success);
|
||||
ajax_notification_load();
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
$(document).on('click', '.url-qrcode', function () {
|
||||
var toggled = $(this).attr('data-toggled');
|
||||
if (toggled == 'on'){
|
||||
$("#qrcode-content").hide('fast');
|
||||
$('.url-qrcode').attr('data-toggled','off');
|
||||
} else {
|
||||
$("body").append("<div id='qrcode-content'></div>");
|
||||
var url = $(this).attr("data-qrcode-url");
|
||||
var x = $(this).offset().top;
|
||||
var y = $(this).offset().left;
|
||||
|
||||
$("#qrcode-content").hide();
|
||||
$("#qrcode-content").css("top", x + 20).css("left", y);
|
||||
$("#qrcode-content").html("<div class='qrcode_code'><img src='https://chart.googleapis.com/chart?cht=qr&chld=H|2&chs=100&chl="+url+"'></div><div class='qrcode_info'>모바일로 QR코드를 스캔하면 해당 링크에 바로 접속할 수 있습니다.</div>").show("fast");
|
||||
$('.url-qrcode').attr('data-toggled','off');
|
||||
$(this).attr('data-toggled','on');
|
||||
}
|
||||
});
|
||||
|
||||
/**
|
||||
* 우편번호 창
|
||||
**/
|
||||
var win_zip = function(frm_name, frm_zipcode, frm_address1, frm_address2, frm_address3, frm_address4) {
|
||||
if (typeof daum === 'undefined') {
|
||||
alert('다음 juso.js 파일이 로드되지 않았습니다.');
|
||||
return false;
|
||||
}
|
||||
|
||||
var zip_case = 1; //0이면 레이어, 1이면 페이지에 끼워 넣기, 2이면 새창
|
||||
|
||||
var complete_fn = function(data){
|
||||
// 팝업에서 검색결과 항목을 클릭했을때 실행할 코드를 작성하는 부분.
|
||||
|
||||
// 각 주소의 노출 규칙에 따라 주소를 조합한다.
|
||||
// 내려오는 변수가 값이 없는 경우엔 공백('')값을 가지므로, 이를 참고하여 분기 한다.
|
||||
var fullAddr = ''; // 최종 주소 변수
|
||||
var extraAddr = ''; // 조합형 주소 변수
|
||||
|
||||
// 사용자가 선택한 주소 타입에 따라 해당 주소 값을 가져온다.
|
||||
if (data.userSelectedType === 'R') { // 사용자가 도로명 주소를 선택했을 경우
|
||||
fullAddr = data.roadAddress;
|
||||
|
||||
} else { // 사용자가 지번 주소를 선택했을 경우(J)
|
||||
fullAddr = data.jibunAddress;
|
||||
}
|
||||
|
||||
// 사용자가 선택한 주소가 도로명 타입일때 조합한다.
|
||||
if (data.userSelectedType === 'R'){
|
||||
//법정동명이 있을 경우 추가한다.
|
||||
if (data.bname !== ''){
|
||||
extraAddr += data.bname;
|
||||
}
|
||||
// 건물명이 있을 경우 추가한다.
|
||||
if (data.buildingName !== ''){
|
||||
extraAddr += (extraAddr !== '' ? ', ' + data.buildingName : data.buildingName);
|
||||
}
|
||||
// 조합형주소의 유무에 따라 양쪽에 괄호를 추가하여 최종 주소를 만든다.
|
||||
extraAddr = (extraAddr !== '' ? ' (' + extraAddr + ')' : '');
|
||||
}
|
||||
|
||||
// 우편번호와 주소 정보를 해당 필드에 넣고, 커서를 상세주소 필드로 이동한다.
|
||||
var of = document[frm_name];
|
||||
|
||||
of[frm_zipcode].value = data.zonecode;
|
||||
|
||||
of[frm_address1].value = fullAddr;
|
||||
of[frm_address3].value = extraAddr;
|
||||
|
||||
if (of[frm_address4] !== undefined){
|
||||
of[frm_address4].value = data.userSelectedType;
|
||||
}
|
||||
|
||||
of[frm_address2].focus();
|
||||
};
|
||||
|
||||
switch(zip_case) {
|
||||
case 1 : //iframe을 이용하여 페이지에 끼워 넣기
|
||||
var daum_pape_id = 'daum_juso_page' + frm_zipcode,
|
||||
element_wrap = document.getElementById(daum_pape_id),
|
||||
currentScroll = Math.max(document.body.scrollTop, document.documentElement.scrollTop);
|
||||
if (element_wrap === null) {
|
||||
element_wrap = document.createElement('div');
|
||||
element_wrap.setAttribute('id', daum_pape_id);
|
||||
element_wrap.style.cssText = 'display:none;border:1px solid;left:0;width:100%;height:300px;margin:5px 0;position:relative;-webkit-overflow-scrolling:touch;';
|
||||
element_wrap.innerHTML = '<img src="//i1.daumcdn.net/localimg/localimages/07/postcode/320/close.png" id="btnFoldWrap" style="cursor:pointer;position:absolute;right:0px;top:-21px;z-index:1" class="close_daum_juso" alt="접기 버튼">';
|
||||
jQuery('form[name="' + frm_name + '"]').find('input[name="' + frm_address1 + '"]').before(element_wrap);
|
||||
jQuery('#' + daum_pape_id).off('click', '.close_daum_juso').on('click', '.close_daum_juso', function(e){
|
||||
e.preventDefault();
|
||||
jQuery(this).parent().hide();
|
||||
});
|
||||
}
|
||||
|
||||
new daum.Postcode({
|
||||
oncomplete: function(data) {
|
||||
complete_fn(data);
|
||||
// iframe을 넣은 element를 안보이게 한다.
|
||||
element_wrap.style.display = 'none';
|
||||
// 우편번호 찾기 화면이 보이기 이전으로 scroll 위치를 되돌린다.
|
||||
document.body.scrollTop = currentScroll;
|
||||
},
|
||||
// 우편번호 찾기 화면 크기가 조정되었을때 실행할 코드를 작성하는 부분.
|
||||
// iframe을 넣은 element의 높이값을 조정한다.
|
||||
onresize : function(size) {
|
||||
element_wrap.style.height = size.height + 'px';
|
||||
},
|
||||
width : '100%',
|
||||
height : '100%'
|
||||
}).embed(element_wrap);
|
||||
|
||||
// iframe을 넣은 element를 보이게 한다.
|
||||
element_wrap.style.display = 'block';
|
||||
break;
|
||||
case 2 : //새창으로 띄우기
|
||||
new daum.Postcode({
|
||||
oncomplete: function(data) {
|
||||
complete_fn(data);
|
||||
}
|
||||
}).open();
|
||||
break;
|
||||
default : //iframe을 이용하여 레이어 띄우기
|
||||
var rayer_id = 'daum_juso_rayer' + frm_zipcode,
|
||||
element_layer = document.getElementById(rayer_id);
|
||||
if (element_layer === null) {
|
||||
element_layer = document.createElement('div');
|
||||
element_layer.setAttribute('id', rayer_id);
|
||||
element_layer.style.cssText = 'display:none;border:5px solid;position:fixed;width:300px;height:460px;left:50%;margin-left:-155px;top:50%;margin-top:-235px;overflow:hidden;-webkit-overflow-scrolling:touch;z-index:10000';
|
||||
element_layer.innerHTML = '<img src="//i1.daumcdn.net/localimg/localimages/07/postcode/320/close.png" id="btnCloseLayer" style="cursor:pointer;position:absolute;right:-3px;top:-3px;z-index:1" class="close_daum_juso" alt="닫기 버튼">';
|
||||
document.body.appendChild(element_layer);
|
||||
jQuery('#' + rayer_id).off('click', '.close_daum_juso').on('click', '.close_daum_juso', function(e){
|
||||
e.preventDefault();
|
||||
jQuery(this).parent().hide();
|
||||
});
|
||||
}
|
||||
|
||||
new daum.Postcode({
|
||||
oncomplete: function(data) {
|
||||
complete_fn(data);
|
||||
// iframe을 넣은 element를 안보이게 한다.
|
||||
element_layer.style.display = 'none';
|
||||
},
|
||||
width : '100%',
|
||||
height : '100%'
|
||||
}).embed(element_layer);
|
||||
|
||||
// iframe을 넣은 element를 보이게 한다.
|
||||
element_layer.style.display = 'block';
|
||||
}
|
||||
}
|
||||
}
|
||||
4
assets/js/html5shiv.min.js
vendored
Normal file
4
assets/js/html5shiv.min.js
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
/**
|
||||
* @preserve HTML5 Shiv 3.7.3 | @afarkas @jdalton @jon_neal @rem | MIT/GPL2 Licensed
|
||||
*/
|
||||
!function(a,b){function c(a,b){var c=a.createElement("p"),d=a.getElementsByTagName("head")[0]||a.documentElement;return c.innerHTML="x<style>"+b+"</style>",d.insertBefore(c.lastChild,d.firstChild)}function d(){var a=t.elements;return"string"==typeof a?a.split(" "):a}function e(a,b){var c=t.elements;"string"!=typeof c&&(c=c.join(" ")),"string"!=typeof a&&(a=a.join(" ")),t.elements=c+" "+a,j(b)}function f(a){var b=s[a[q]];return b||(b={},r++,a[q]=r,s[r]=b),b}function g(a,c,d){if(c||(c=b),l)return c.createElement(a);d||(d=f(c));var e;return e=d.cache[a]?d.cache[a].cloneNode():p.test(a)?(d.cache[a]=d.createElem(a)).cloneNode():d.createElem(a),!e.canHaveChildren||o.test(a)||e.tagUrn?e:d.frag.appendChild(e)}function h(a,c){if(a||(a=b),l)return a.createDocumentFragment();c=c||f(a);for(var e=c.frag.cloneNode(),g=0,h=d(),i=h.length;i>g;g++)e.createElement(h[g]);return e}function i(a,b){b.cache||(b.cache={},b.createElem=a.createElement,b.createFrag=a.createDocumentFragment,b.frag=b.createFrag()),a.createElement=function(c){return t.shivMethods?g(c,a,b):b.createElem(c)},a.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+d().join().replace(/[\w\-:]+/g,function(a){return b.createElem(a),b.frag.createElement(a),'c("'+a+'")'})+");return n}")(t,b.frag)}function j(a){a||(a=b);var d=f(a);return!t.shivCSS||k||d.hasCSS||(d.hasCSS=!!c(a,"article,aside,dialog,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}mark{background:#FF0;color:#000}template{display:none}")),l||i(a,d),a}var k,l,m="3.7.3",n=a.html5||{},o=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,p=/^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i,q="_html5shiv",r=0,s={};!function(){try{var a=b.createElement("a");a.innerHTML="<xyz></xyz>",k="hidden"in a,l=1==a.childNodes.length||function(){b.createElement("a");var a=b.createDocumentFragment();return"undefined"==typeof a.cloneNode||"undefined"==typeof a.createDocumentFragment||"undefined"==typeof a.createElement}()}catch(c){k=!0,l=!0}}();var t={elements:n.elements||"abbr article aside audio bdi canvas data datalist details dialog figcaption figure footer header hgroup main mark meter nav output picture progress section summary template time video",version:m,shivCSS:n.shivCSS!==!1,supportsUnknownElements:l,shivMethods:n.shivMethods!==!1,type:"default",shivDocument:j,createElement:g,createDocumentFragment:h,addElements:e};a.html5=t,j(b),"object"==typeof module&&module.exports&&(module.exports=t)}("undefined"!=typeof window?window:this,document);
|
||||
4
assets/js/iscroll.min.js
vendored
Normal file
4
assets/js/iscroll.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
9
assets/js/jquery.ba-outside-events.min.js
vendored
Normal file
9
assets/js/jquery.ba-outside-events.min.js
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
/*
|
||||
* jQuery outside events - v1.1 - 3/16/2010
|
||||
* http://benalman.com/projects/jquery-outside-events-plugin/
|
||||
*
|
||||
* Copyright (c) 2010 "Cowboy" Ben Alman
|
||||
* Dual licensed under the MIT and GPL licenses.
|
||||
* http://benalman.com/about/license/
|
||||
*/
|
||||
(function($,c,b){$.map("click dblclick mousemove mousedown mouseup mouseover mouseout change select submit keydown keypress keyup".split(" "),function(d){a(d)});a("focusin","focus"+b);a("focusout","blur"+b);$.addOutsideEvent=a;function a(g,e){e=e||g+b;var d=$(),h=g+"."+e+"-special-event";$.event.special[e]={setup:function(){d=d.add(this);if(d.length===1){$(c).bind(h,f)}},teardown:function(){d=d.not(this);if(d.length===0){$(c).unbind(h)}},add:function(i){var j=i.handler;i.handler=function(l,k){l.target=k;j.apply(this,arguments)}}};function f(i){$(d).each(function(){var j=$(this);if(this!==i.target&&!j.has(i.target).length){j.triggerHandler(e,[i.target])}})}}})(jQuery,document,"outside");
|
||||
107
assets/js/jquery.highlight.js
Normal file
107
assets/js/jquery.highlight.js
Normal file
@@ -0,0 +1,107 @@
|
||||
/*
|
||||
* jQuery Highlight plugin
|
||||
*
|
||||
* Based on highlight v3 by Johann Burkard
|
||||
* http://johannburkard.de/blog/programming/javascript/highlight-javascript-text-higlighting-jquery-plugin.html
|
||||
*
|
||||
* Code a little bit refactored and cleaned (in my humble opinion).
|
||||
* Most important changes:
|
||||
* - has an option to highlight only entire words (wordsOnly - false by default),
|
||||
* - has an option to be case sensitive (caseSensitive - false by default)
|
||||
* - highlight element tag and class names can be specified in options
|
||||
*
|
||||
* Usage:
|
||||
* // wrap every occurrance of text 'lorem' in content
|
||||
* // with <span class='highlight'> (default options)
|
||||
* $('#content').highlight('lorem');
|
||||
*
|
||||
* // search for and highlight more terms at once
|
||||
* // so you can save some time on traversing DOM
|
||||
* $('#content').highlight(['lorem', 'ipsum']);
|
||||
* $('#content').highlight('lorem ipsum');
|
||||
*
|
||||
* // search only for entire word 'lorem'
|
||||
* $('#content').highlight('lorem', { wordsOnly: true });
|
||||
*
|
||||
* // don't ignore case during search of term 'lorem'
|
||||
* $('#content').highlight('lorem', { caseSensitive: true });
|
||||
*
|
||||
* // wrap every occurrance of term 'ipsum' in content
|
||||
* // with <em class='important'>
|
||||
* $('#content').highlight('ipsum', { element: 'em', className: 'important' });
|
||||
*
|
||||
* // remove default highlight
|
||||
* $('#content').unhighlight();
|
||||
*
|
||||
* // remove custom highlight
|
||||
* $('#content').unhighlight({ element: 'em', className: 'important' });
|
||||
*
|
||||
*
|
||||
* Copyright (c) 2009 Bartek Szopka
|
||||
*
|
||||
* Licensed under MIT license.
|
||||
*
|
||||
*/
|
||||
|
||||
jQuery.extend({
|
||||
highlight: function (node, re, nodeName, className) {
|
||||
if (node.nodeType === 3) {
|
||||
var match = node.data.match(re);
|
||||
if (match) {
|
||||
var highlight = document.createElement(nodeName || 'span');
|
||||
highlight.className = className || 'highlight';
|
||||
var wordNode = node.splitText(match.index);
|
||||
wordNode.splitText(match[0].length);
|
||||
var wordClone = wordNode.cloneNode(true);
|
||||
highlight.appendChild(wordClone);
|
||||
wordNode.parentNode.replaceChild(highlight, wordNode);
|
||||
return 1; //skip added node in parent
|
||||
}
|
||||
} else if ((node.nodeType === 1 && node.childNodes) && // only element nodes that have children
|
||||
!/(script|style)/i.test(node.tagName) && // ignore script and style nodes
|
||||
!(node.tagName === nodeName.toUpperCase() && node.className === className)) { // skip if already highlighted
|
||||
for (var i = 0; i < node.childNodes.length; i++) {
|
||||
i += jQuery.highlight(node.childNodes[i], re, nodeName, className);
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
});
|
||||
|
||||
jQuery.fn.unhighlight = function (options) {
|
||||
var settings = { className: 'highlight', element: 'span' };
|
||||
jQuery.extend(settings, options);
|
||||
|
||||
return this.find(settings.element + "." + settings.className).each(function () {
|
||||
var parent = this.parentNode;
|
||||
parent.replaceChild(this.firstChild, this);
|
||||
parent.normalize();
|
||||
}).end();
|
||||
};
|
||||
|
||||
jQuery.fn.highlight = function (words, options) {
|
||||
var settings = { className: 'highlight', element: 'span', caseSensitive: false, wordsOnly: false };
|
||||
jQuery.extend(settings, options);
|
||||
|
||||
if (words.constructor === String) {
|
||||
words = [words];
|
||||
}
|
||||
words = jQuery.grep(words, function(word, i){
|
||||
return word != '';
|
||||
});
|
||||
words = jQuery.map(words, function(word, i) {
|
||||
return word.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&");
|
||||
});
|
||||
if (words.length == 0) { return this; };
|
||||
|
||||
var flag = settings.caseSensitive ? "" : "i";
|
||||
var pattern = "(" + words.join("|") + ")";
|
||||
if (settings.wordsOnly) {
|
||||
pattern = "\\b" + pattern + "\\b";
|
||||
}
|
||||
var re = new RegExp(pattern, flag);
|
||||
|
||||
return this.each(function () {
|
||||
jQuery.highlight(this, re, settings.element, settings.className);
|
||||
});
|
||||
};
|
||||
115
assets/js/jquery.hoverIntent.js
Normal file
115
assets/js/jquery.hoverIntent.js
Normal file
@@ -0,0 +1,115 @@
|
||||
/*!
|
||||
* hoverIntent v1.8.0 // 2014.06.29 // jQuery v1.9.1+
|
||||
* http://cherne.net/brian/resources/jquery.hoverIntent.html
|
||||
*
|
||||
* You may use hoverIntent under the terms of the MIT license. Basically that
|
||||
* means you are free to use hoverIntent as long as this header is left intact.
|
||||
* Copyright 2007, 2014 Brian Cherne
|
||||
*/
|
||||
|
||||
/* hoverIntent is similar to jQuery's built-in "hover" method except that
|
||||
* instead of firing the handlerIn function immediately, hoverIntent checks
|
||||
* to see if the user's mouse has slowed down (beneath the sensitivity
|
||||
* threshold) before firing the event. The handlerOut function is only
|
||||
* called after a matching handlerIn.
|
||||
*
|
||||
* // basic usage ... just like .hover()
|
||||
* .hoverIntent( handlerIn, handlerOut )
|
||||
* .hoverIntent( handlerInOut )
|
||||
*
|
||||
* // basic usage ... with event delegation!
|
||||
* .hoverIntent( handlerIn, handlerOut, selector )
|
||||
* .hoverIntent( handlerInOut, selector )
|
||||
*
|
||||
* // using a basic configuration object
|
||||
* .hoverIntent( config )
|
||||
*
|
||||
* @param handlerIn function OR configuration object
|
||||
* @param handlerOut function OR selector for delegation OR undefined
|
||||
* @param selector selector OR undefined
|
||||
* @author Brian Cherne <brian(at)cherne(dot)net>
|
||||
*/
|
||||
(function($) {
|
||||
$.fn.hoverIntent = function(handlerIn,handlerOut,selector) {
|
||||
|
||||
// default configuration values
|
||||
var cfg = {
|
||||
interval: 100,
|
||||
sensitivity: 6,
|
||||
timeout: 0
|
||||
};
|
||||
|
||||
if ( typeof handlerIn === "object" ) {
|
||||
cfg = $.extend(cfg, handlerIn );
|
||||
} else if ($.isFunction(handlerOut)) {
|
||||
cfg = $.extend(cfg, { over: handlerIn, out: handlerOut, selector: selector } );
|
||||
} else {
|
||||
cfg = $.extend(cfg, { over: handlerIn, out: handlerIn, selector: handlerOut } );
|
||||
}
|
||||
|
||||
// instantiate variables
|
||||
// cX, cY = current X and Y position of mouse, updated by mousemove event
|
||||
// pX, pY = previous X and Y position of mouse, set by mouseover and polling interval
|
||||
var cX, cY, pX, pY;
|
||||
|
||||
// A private function for getting mouse position
|
||||
var track = function(ev) {
|
||||
cX = ev.pageX;
|
||||
cY = ev.pageY;
|
||||
};
|
||||
|
||||
// A private function for comparing current and previous mouse position
|
||||
var compare = function(ev,ob) {
|
||||
ob.hoverIntent_t = clearTimeout(ob.hoverIntent_t);
|
||||
// compare mouse positions to see if they've crossed the threshold
|
||||
if ( Math.sqrt( (pX-cX)*(pX-cX) + (pY-cY)*(pY-cY) ) < cfg.sensitivity ) {
|
||||
$(ob).off("mousemove.hoverIntent",track);
|
||||
// set hoverIntent state to true (so mouseOut can be called)
|
||||
ob.hoverIntent_s = true;
|
||||
return cfg.over.apply(ob,[ev]);
|
||||
} else {
|
||||
// set previous coordinates for next time
|
||||
pX = cX; pY = cY;
|
||||
// use self-calling timeout, guarantees intervals are spaced out properly (avoids JavaScript timer bugs)
|
||||
ob.hoverIntent_t = setTimeout( function(){compare(ev, ob);} , cfg.interval );
|
||||
}
|
||||
};
|
||||
|
||||
// A private function for delaying the mouseOut function
|
||||
var delay = function(ev,ob) {
|
||||
ob.hoverIntent_t = clearTimeout(ob.hoverIntent_t);
|
||||
ob.hoverIntent_s = false;
|
||||
return cfg.out.apply(ob,[ev]);
|
||||
};
|
||||
|
||||
// A private function for handling mouse 'hovering'
|
||||
var handleHover = function(e) {
|
||||
// copy objects to be passed into t (required for event object to be passed in IE)
|
||||
var ev = $.extend({},e);
|
||||
var ob = this;
|
||||
|
||||
// cancel hoverIntent timer if it exists
|
||||
if (ob.hoverIntent_t) { ob.hoverIntent_t = clearTimeout(ob.hoverIntent_t); }
|
||||
|
||||
// if e.type === "mouseenter"
|
||||
if (e.type === "mouseenter") {
|
||||
// set "previous" X and Y position based on initial entry point
|
||||
pX = ev.pageX; pY = ev.pageY;
|
||||
// update "current" X and Y position based on mousemove
|
||||
$(ob).on("mousemove.hoverIntent",track);
|
||||
// start polling interval (self-calling timeout) to compare mouse coordinates over time
|
||||
if (!ob.hoverIntent_s) { ob.hoverIntent_t = setTimeout( function(){compare(ev,ob);} , cfg.interval );}
|
||||
|
||||
// else e.type == "mouseleave"
|
||||
} else {
|
||||
// unbind expensive mousemove event
|
||||
$(ob).off("mousemove.hoverIntent",track);
|
||||
// if hoverIntent state is true, then call the mouseOut function after the specified delay
|
||||
if (ob.hoverIntent_s) { ob.hoverIntent_t = setTimeout( function(){delay(ev,ob);} , cfg.timeout );}
|
||||
}
|
||||
};
|
||||
|
||||
// listen for mouseenter and mouseleave
|
||||
return this.on({'mouseenter.hoverIntent':handleHover,'mouseleave.hoverIntent':handleHover}, cfg.selector);
|
||||
};
|
||||
})(jQuery);
|
||||
22
assets/js/jquery.iframe.auto.js
Normal file
22
assets/js/jquery.iframe.auto.js
Normal file
@@ -0,0 +1,22 @@
|
||||
(function(){if(!window.V){var V=window.V={};V.domReady=function(fn){var ie=
|
||||
/*@cc_on!@*/
|
||||
false;if(window.addEventListener){document.addEventListener("DOMContentLoaded",fn,false)}else{if(ie){document.attachEvent("onreadystatechange",function(){if(document.readyState=="complete"){fn()}})}}};V.cloneObject=function(obj){if(obj&&typeof(obj)=="object"){var newObj={};for(var p in obj){newObj[p]=obj[p]}return newObj}}}})();
|
||||
|
||||
V.Link={
|
||||
contentHeight:0,
|
||||
init:function(){
|
||||
V.Link.setFrameHeight();
|
||||
var a=jQuery.proxy(this.matchFrameHeight,this);
|
||||
jQuery(window).on("load",a).on("resize",a)
|
||||
},
|
||||
matchFrameHeight:function(){
|
||||
window.clearInterval(this.intervalNum);this.intervalNum=window.setInterval(jQuery.proxy(this.setFrameHeight,this),200)},
|
||||
setFrameHeight:function(){
|
||||
var a=this.getDocumentHeight();
|
||||
if(a!=this.contentHeight){this.contentHeight=a;jQuery("#contentFrame").height(a)}
|
||||
else{this.contentHeight=0;window.clearInterval(this.intervalNum)}
|
||||
},
|
||||
getDocumentHeight:function(){
|
||||
var a=jQuery(window).height()-jQuery(".headerbar").height()-1;
|
||||
return a}
|
||||
};V.Link.init();
|
||||
93
assets/js/jquery.paging.js
Normal file
93
assets/js/jquery.paging.js
Normal file
@@ -0,0 +1,93 @@
|
||||
/**************************************************************************************
|
||||
* jQuery Paging 0.1.7
|
||||
* by composite (ukjinplant@msn.com)
|
||||
* http://composite.tistory.com
|
||||
* This project licensed under a MIT License.
|
||||
**************************************************************************************/;
|
||||
(function($){
|
||||
//default properties.
|
||||
var a=/a/i,defs={
|
||||
liitem:'li', item:'a',next:'[>{5}]',prev:'[{4}<]',format:'[{0}]',
|
||||
itemClass:'',appendhtml:'',sideClass:'paging-side',prevClass:'paging-side',
|
||||
itemCurrent:'active',length:10,max:1,current:1,append:false
|
||||
,href:'#{0}',event:true,first:'[1<<]',last:'[>>{6}]'
|
||||
},InStr=function(strSearch, charSearchFor) {
|
||||
return strSearch.indexOf(charSearchFor);
|
||||
},format=function(str){
|
||||
var arg=arguments;
|
||||
return str.replace(/\{(\d+)\}/g,function(m,d){
|
||||
if(+d<0) return m;
|
||||
else return arg[+d+1]||"";
|
||||
});
|
||||
},item,make=function(op,page,cls,str){
|
||||
var is_current = false;
|
||||
if( InStr( cls , op.itemCurrent) > -1 ){
|
||||
item=document.createElement("strong");
|
||||
is_current = true;
|
||||
} else {
|
||||
item=document.createElement(op.item);
|
||||
}
|
||||
item.className=cls;
|
||||
item.innerHTML=format(str,page,op.length,op.start,op.end,op.start-1,op.end+1,op.max);
|
||||
if(a.test(op.item)) item.href=format(op.href,page);
|
||||
if(op.event){
|
||||
$(item).bind('click',function(e){
|
||||
var fired=true;
|
||||
if($.isFunction(op.onclick)) fired=op.onclick.call(item,e,page,op);
|
||||
if(fired==undefined||fired)
|
||||
op.origin.paging($.extend({},op,{current:page}));
|
||||
return fired;
|
||||
});
|
||||
/*
|
||||
$liitem= $(document.createElement(op.liitem));
|
||||
$liitem.addClass(cls);
|
||||
$liitem.append($(item));
|
||||
*/
|
||||
if(op.appendhtml){
|
||||
$(item).append(op.appendhtml);
|
||||
}
|
||||
$(item).appendTo(op.origin);
|
||||
if( is_current ){
|
||||
//$(item).prepend('<span class="sound_only">열린</span>');
|
||||
} else {
|
||||
(op.origin).append('\n');
|
||||
}
|
||||
//bind event for each elements.
|
||||
var ev='on';
|
||||
switch(str){
|
||||
case op.prev:ev+='prev';break;
|
||||
case op.next:ev+='next';break;
|
||||
case op.first:ev+='first';break;
|
||||
case op.last:ev+='last';break;
|
||||
default:ev+='item';break;
|
||||
}
|
||||
if($.isFunction(op[ev])) op[ev].call(item,page,op);
|
||||
}
|
||||
return item;
|
||||
};
|
||||
|
||||
$.fn.paging=function(op){
|
||||
op=$.extend({origin:this},defs,op||{});this.html('');
|
||||
if(op.max<1) op.max=1; if(op.current<1) op.current=1;
|
||||
op.start=Math.floor((op.current-1)/op.length)*op.length+1;
|
||||
op.end=op.start-1+op.length;
|
||||
if(op.end>op.max) op.end=op.max;
|
||||
if(!op.append) this.empty();
|
||||
//prev button
|
||||
if(op.current>op.length){
|
||||
//if(op.first!==false) make(op,1,op.sideClass,op.first);
|
||||
make(op,op.start-1,op.prevClass,op.prev);
|
||||
}
|
||||
//pages button
|
||||
for(var i=op.start;i<=op.end;i++){
|
||||
make(op,i,op.itemClass+(i==op.current?' '+op.itemCurrent:''),op.format);
|
||||
}
|
||||
//next button
|
||||
if(op.current<=Math.floor(op.max/op.length)*op.length){
|
||||
if(op.max > op.length && op.max > op.end ){ make(op,op.end+1,op.sideClass,op.next); }
|
||||
//if(op.last!==false) make(op,op.max,op.sideClass,op.last);
|
||||
}
|
||||
|
||||
//last button
|
||||
};
|
||||
})(jQuery);
|
||||
124
assets/js/jquery.validate.extension.js
Normal file
124
assets/js/jquery.validate.extension.js
Normal file
@@ -0,0 +1,124 @@
|
||||
|
||||
(function ($) {
|
||||
$.extend($.validator.messages, {
|
||||
required : '필수 항목입니다.',
|
||||
remote : '항목을 수정하세요.',
|
||||
email : '유효하지 않은 E-Mail 주소입니다.',
|
||||
url : 'URL 형식이 올바르지 않습니다. http://~',
|
||||
date : '옳바른 날짜를 입력하세요.',
|
||||
dateISO : '옳바른 날짜(ISO)를 입력하세요.',
|
||||
number : '숫자가 아닙니다.',
|
||||
digits : '숫자만 입력하세요.',
|
||||
creditcard : '신용카드 번호가 올바르지 않습니다.',
|
||||
equalTo : '같은 값을 다시 입력하세요.',
|
||||
accept : '옳바른 확장자가 아닙니다.',
|
||||
maxlength : $.validator.format('{0}자를 넘을 수 없습니다.'),
|
||||
minlength : $.validator.format('최소 {0}자 이상 입력하세요.'),
|
||||
rangelength : $.validator.format('문자 길이를 {0} 에서 {1} 사이로 입력하세요.'),
|
||||
range : $.validator.format('{0} 에서 {1} 값을 입력하세요.'),
|
||||
max : $.validator.format('{0} 이하의 값을 입력하세요.'),
|
||||
min : $.validator.format('{0} 이상의 값을 입력하세요.')
|
||||
});
|
||||
|
||||
if(typeof($.fn.modal) != 'undefined') {
|
||||
$.validator.setDefaults({ // Bootstrap Required.
|
||||
ignore: [], // hidden
|
||||
showErrors: function(errorMap, errorList) {
|
||||
$.each(this.successList, function(index, value) {
|
||||
var field = $(value);
|
||||
if (field.is(':hidden'))
|
||||
field = field.parent();
|
||||
|
||||
field.tooltip('destroy');
|
||||
});
|
||||
|
||||
$.each(errorList, function(index, value) {
|
||||
var field = $(value.element);
|
||||
if (field.is(':hidden'))
|
||||
field = field.parent();
|
||||
|
||||
field.tooltip('destroy').tooltip({
|
||||
placement: 'bottom',
|
||||
title: value.message,
|
||||
trigger: 'manual'
|
||||
}).tooltip('show');
|
||||
});
|
||||
}
|
||||
});
|
||||
} else {
|
||||
$.validator.setDefaults({ // Bootstrap Required.
|
||||
ignore: [] // hidden
|
||||
});
|
||||
}
|
||||
}(jQuery));
|
||||
|
||||
|
||||
|
||||
|
||||
$(function() {
|
||||
function validHangul(fld) {
|
||||
var pattern = /([^가-힣\x20])/i;
|
||||
if (!pattern.test(fld)) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
function validSmarteditor(column, value, stype) {
|
||||
|
||||
var editor_data = oEditors.getById[column].getIR();
|
||||
oEditors.getById[column].exec('UPDATE_CONTENTS_FIELD', []);
|
||||
if(jQuery.inArray(document.getElementById(column).value.toLowerCase().replace(/^\s*|\s*$/g, ''), [' ','<p> </p>','<p><br></p>','<div><br></div>','<p></p>','<br>','']) != -1) {
|
||||
document.getElementById(column).value='';
|
||||
}
|
||||
if(stype == 'required') {
|
||||
if (!editor_data || jQuery.inArray(editor_data.toLowerCase(), [' ','<p> </p>','<p><br></p>','<p></p>','<br>']) != -1) {
|
||||
oEditors.getById[column].exec('FOCUS');
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
function validCkeditor(column, value, stype) {
|
||||
|
||||
var editor_data = eval("CKEDITOR.instances." + column + ".getData();");
|
||||
|
||||
if(stype == 'required') {
|
||||
if (! editor_data) {
|
||||
eval("CKEDITOR.instances." + column + ".focus();");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
$.validator.addMethod('hangul', function(value, element) {
|
||||
return this.optional(element) || validHangul(value);
|
||||
}, '한글이 아닙니다. (자음, 모음만 있는 한글은 처리하지 않습니다.)');
|
||||
|
||||
$.validator.addMethod('alphanumunder', function(value, element) {
|
||||
return this.optional(element) || /(^[a-zA-Z0-9\_]+$)/.test(value);
|
||||
}, '영문, 숫자, _ 가 아닙니다.');
|
||||
|
||||
$.validator.addMethod('alpha_dash', function(value, element) {
|
||||
return this.optional(element) || /(^[a-zA-Z0-9\_\-]+$)/.test(value);
|
||||
}, '영문, 숫자, _ , - 가 아닙니다.');
|
||||
|
||||
$.validator.addMethod('valid_smarteditor', function(value, element) {
|
||||
return validSmarteditor($(element).attr('name'), value, 'valid');
|
||||
}, '내용을 입력해주세요');
|
||||
|
||||
$.validator.addMethod('required_smarteditor', function(value, element) {
|
||||
return validSmarteditor($(element).attr('name'), value, 'required');
|
||||
}, '내용을 입력해주세요');
|
||||
|
||||
$.validator.addMethod('valid_ckeditor', function(value, element) {
|
||||
return validCkeditor($(element).attr('name'), value, 'valid');
|
||||
}, '내용을 입력해주세요');
|
||||
|
||||
$.validator.addMethod('required_ckeditor', function(value, element) {
|
||||
return validCkeditor($(element).attr('name'), value, 'required');
|
||||
}, '내용을 입력해주세요');
|
||||
|
||||
});
|
||||
4
assets/js/jquery.validate.min.js
vendored
Normal file
4
assets/js/jquery.validate.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
145
assets/js/js.cookie.js
Normal file
145
assets/js/js.cookie.js
Normal file
@@ -0,0 +1,145 @@
|
||||
/*!
|
||||
* JavaScript Cookie v2.1.0
|
||||
* https://github.com/js-cookie/js-cookie
|
||||
*
|
||||
* Copyright 2006, 2015 Klaus Hartl & Fagner Brack
|
||||
* Released under the MIT license
|
||||
*/
|
||||
(function (factory) {
|
||||
if (typeof define === 'function' && define.amd) {
|
||||
define(factory);
|
||||
} else if (typeof exports === 'object') {
|
||||
module.exports = factory();
|
||||
} else {
|
||||
var _OldCookies = window.Cookies;
|
||||
var api = window.Cookies = factory();
|
||||
api.noConflict = function () {
|
||||
window.Cookies = _OldCookies;
|
||||
return api;
|
||||
};
|
||||
}
|
||||
}(function () {
|
||||
function extend () {
|
||||
var i = 0;
|
||||
var result = {};
|
||||
for (; i < arguments.length; i++) {
|
||||
var attributes = arguments[ i ];
|
||||
for (var key in attributes) {
|
||||
result[key] = attributes[key];
|
||||
}
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
function init (converter) {
|
||||
function api (key, value, attributes) {
|
||||
var result;
|
||||
|
||||
// Write
|
||||
|
||||
if (arguments.length > 1) {
|
||||
attributes = extend({
|
||||
path: '/'
|
||||
}, api.defaults, attributes);
|
||||
|
||||
if (typeof attributes.expires === 'number') {
|
||||
var expires = new Date();
|
||||
expires.setMilliseconds(expires.getMilliseconds() + attributes.expires * 864e+5);
|
||||
attributes.expires = expires;
|
||||
}
|
||||
|
||||
try {
|
||||
result = JSON.stringify(value);
|
||||
if (/^[\{\[]/.test(result)) {
|
||||
value = result;
|
||||
}
|
||||
} catch (e) {}
|
||||
|
||||
if (!converter.write) {
|
||||
value = encodeURIComponent(String(value))
|
||||
.replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g, decodeURIComponent);
|
||||
} else {
|
||||
value = converter.write(value, key);
|
||||
}
|
||||
|
||||
key = encodeURIComponent(String(key));
|
||||
key = key.replace(/%(23|24|26|2B|5E|60|7C)/g, decodeURIComponent);
|
||||
key = key.replace(/[\(\)]/g, escape);
|
||||
|
||||
return (document.cookie = [
|
||||
key, '=', value,
|
||||
attributes.expires && '; expires=' + attributes.expires.toUTCString(), // use expires attribute, max-age is not supported by IE
|
||||
attributes.path && '; path=' + attributes.path,
|
||||
attributes.domain && '; domain=' + attributes.domain,
|
||||
attributes.secure ? '; secure' : ''
|
||||
].join(''));
|
||||
}
|
||||
|
||||
// Read
|
||||
|
||||
if (!key) {
|
||||
result = {};
|
||||
}
|
||||
|
||||
// To prevent the for loop in the first place assign an empty array
|
||||
// in case there are no cookies at all. Also prevents odd result when
|
||||
// calling "get()"
|
||||
var cookies = document.cookie ? document.cookie.split('; ') : [];
|
||||
var rdecode = /(%[0-9A-Z]{2})+/g;
|
||||
var i = 0;
|
||||
|
||||
for (; i < cookies.length; i++) {
|
||||
var parts = cookies[i].split('=');
|
||||
var name = parts[0].replace(rdecode, decodeURIComponent);
|
||||
var cookie = parts.slice(1).join('=');
|
||||
|
||||
if (cookie.charAt(0) === '"') {
|
||||
cookie = cookie.slice(1, -1);
|
||||
}
|
||||
|
||||
try {
|
||||
cookie = converter.read ?
|
||||
converter.read(cookie, name) : converter(cookie, name) ||
|
||||
cookie.replace(rdecode, decodeURIComponent);
|
||||
|
||||
if (this.json) {
|
||||
try {
|
||||
cookie = JSON.parse(cookie);
|
||||
} catch (e) {}
|
||||
}
|
||||
|
||||
if (key === name) {
|
||||
result = cookie;
|
||||
break;
|
||||
}
|
||||
|
||||
if (!key) {
|
||||
result[name] = cookie;
|
||||
}
|
||||
} catch (e) {}
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
api.get = api.set = api;
|
||||
api.getJSON = function () {
|
||||
return api.apply({
|
||||
json: true
|
||||
}, [].slice.call(arguments));
|
||||
};
|
||||
api.defaults = {};
|
||||
|
||||
api.remove = function (key, attributes) {
|
||||
api(key, '', extend(attributes, {
|
||||
expires: -1
|
||||
}));
|
||||
};
|
||||
|
||||
api.withConverter = init;
|
||||
|
||||
return api;
|
||||
}
|
||||
|
||||
return init(function () {});
|
||||
}));
|
||||
95
assets/js/kakao.link.js
Normal file
95
assets/js/kakao.link.js
Normal file
@@ -0,0 +1,95 @@
|
||||
/*
|
||||
Copyright 2012 KAKAO
|
||||
*/
|
||||
|
||||
(function (window, undefined) {
|
||||
var kakao = {};
|
||||
window.kakao = window.kakao || kakao;
|
||||
|
||||
var uagent = navigator.userAgent.toLocaleLowerCase();
|
||||
if (uagent.search('android') > -1) {
|
||||
kakao.os = 'android';
|
||||
if (uagent.search('chrome') > -1) {
|
||||
kakao.browser = 'android+chrome';
|
||||
}
|
||||
} else if (uagent.search('iphone') > -1 || uagent.search('ipod') > -1 || uagent.search('ipad') > -1) {
|
||||
kakao.os = 'ios';
|
||||
}
|
||||
|
||||
var app = {
|
||||
talk: {
|
||||
base_url: 'kakaolink://sendurl?',
|
||||
apiver: '2.0.1',
|
||||
store: {
|
||||
android: 'market://details?id=com.kakao.talk',
|
||||
ios: 'http://itunes.apple.com/app/id362057947'
|
||||
},
|
||||
package: 'com.kakao.talk'
|
||||
},
|
||||
story: {
|
||||
base_url: 'storylink://posting?',
|
||||
apiver: '1.0',
|
||||
store: {
|
||||
android: 'market://details?id=com.kakao.story',
|
||||
ios: 'http://itunes.apple.com/app/id486244601'
|
||||
},
|
||||
package: 'com.kakao.story'
|
||||
}
|
||||
};
|
||||
|
||||
kakao.link = function (name) {
|
||||
var link_app = app[name];
|
||||
if ( ! link_app) return { send: function () {
|
||||
throw 'No App exists';
|
||||
}};
|
||||
return {
|
||||
send: function (params) {
|
||||
var _app = this.app;
|
||||
params['apiver'] = _app.apiver;
|
||||
var full_url = _app.base_url + serialized(params);
|
||||
|
||||
var install_block = (function (os) {
|
||||
return function () {
|
||||
window.location = _app.store[os];
|
||||
};
|
||||
})(this.os);
|
||||
|
||||
if (this.os === 'ios') {
|
||||
var timer = setTimeout(install_block, 2 * 1000);
|
||||
window.addEventListener('pagehide', clearTimer(timer));
|
||||
window.location = full_url;
|
||||
} else if (this.os === 'android') {
|
||||
if (this.browser === 'android+chrome') {
|
||||
window.location = 'intent:' + full_url + '#Intent;package=' + _app.package + ';end;';
|
||||
} else {
|
||||
var iframe = document.createElement('iframe');
|
||||
iframe.style.visibility = 'hidden';
|
||||
iframe.src = full_url;
|
||||
iframe.onload = install_block;
|
||||
document.body.appendChild(iframe);
|
||||
}
|
||||
}
|
||||
},
|
||||
app: link_app,
|
||||
os: kakao.os,
|
||||
browser: kakao.browser
|
||||
};
|
||||
|
||||
function serialized(params) {
|
||||
var stripped = [];
|
||||
for (var k in params) {
|
||||
if (params.hasOwnProperty(k)) {
|
||||
stripped.push(k + '=' + encodeURIComponent(params[k]));
|
||||
}
|
||||
}
|
||||
return stripped.join('&');
|
||||
}
|
||||
|
||||
function clearTimer(timer) {
|
||||
return function () {
|
||||
clearTimeout(timer);
|
||||
window.removeEventListener('pagehide', arguments.callee);
|
||||
};
|
||||
}
|
||||
};
|
||||
}(window));
|
||||
92
assets/js/member_register.js
Normal file
92
assets/js/member_register.js
Normal file
@@ -0,0 +1,92 @@
|
||||
|
||||
$.validator.addMethod('is_userid_available', function(value, element) {
|
||||
var response = '';
|
||||
$.ajax({
|
||||
type: 'post',
|
||||
url: cb_url + '/register/ajax_userid_check',
|
||||
data : {
|
||||
csrf_test_name: cb_csrf_hash,
|
||||
userid : value
|
||||
},
|
||||
async: false,
|
||||
dataType : 'json',
|
||||
success : function(data) {
|
||||
if (data.result === 'available'){
|
||||
response = true;
|
||||
} else {
|
||||
response = false;
|
||||
}
|
||||
}
|
||||
});
|
||||
return response;
|
||||
}, '이 아이디는 사용하실 수 없습니다');
|
||||
|
||||
|
||||
$.validator.addMethod('is_email_available', function(value, element) {
|
||||
var response = '';
|
||||
$.ajax({
|
||||
type: 'post',
|
||||
url: cb_url + '/register/ajax_email_check',
|
||||
data : {
|
||||
csrf_test_name: cb_csrf_hash,
|
||||
email : value
|
||||
},
|
||||
async: false,
|
||||
dataType : 'json',
|
||||
success : function(data) {
|
||||
if (data.result === 'available'){
|
||||
response = true;
|
||||
} else {
|
||||
response = false;
|
||||
}
|
||||
}
|
||||
});
|
||||
return response;
|
||||
}, '이 이메일은 사용하실 수 없습니다');
|
||||
|
||||
|
||||
$.validator.addMethod('is_password_available', function(value, element) {
|
||||
var response = '';
|
||||
$.ajax({
|
||||
type: 'post',
|
||||
url: cb_url + '/register/ajax_password_check',
|
||||
data : {
|
||||
csrf_test_name: cb_csrf_hash,
|
||||
password : value
|
||||
},
|
||||
async: false,
|
||||
dataType : 'json',
|
||||
success : function(data) {
|
||||
if (data.result === 'available'){
|
||||
response = true;
|
||||
} else {
|
||||
response = false;
|
||||
}
|
||||
}
|
||||
});
|
||||
return response;
|
||||
}, '이 패스워드는 사용하실 수 없습니다');
|
||||
|
||||
|
||||
$.validator.addMethod('is_nickname_available', function(value, element) {
|
||||
var response = '';
|
||||
$.ajax({
|
||||
type: 'post',
|
||||
url: cb_url + '/register/ajax_nickname_check',
|
||||
data : {
|
||||
csrf_test_name: cb_csrf_hash,
|
||||
nickname : value
|
||||
},
|
||||
async: false,
|
||||
dataType : 'json',
|
||||
success : function(data) {
|
||||
if (data.result === 'available'){
|
||||
response = true;
|
||||
} else {
|
||||
response = false;
|
||||
}
|
||||
}
|
||||
});
|
||||
return response;
|
||||
}, '이 닉네임은 사용하실 수 없습니다');
|
||||
|
||||
99
assets/js/mobile.sidemenu.js
Normal file
99
assets/js/mobile.sidemenu.js
Normal file
@@ -0,0 +1,99 @@
|
||||
jQuery(function($) {
|
||||
var $btn_side = $('#btn_side'),
|
||||
$side_menu = $('#side_menu'),
|
||||
$side_wr = $('#side_menu .side_wr'),
|
||||
side_obj = { my : {} },
|
||||
is_trans_sup = supportsTransitions();
|
||||
|
||||
$side_wr.css({'right':'-250px'}); //초기화
|
||||
|
||||
side_obj.destory = function(){
|
||||
if ( ! is_trans_sup ) return;
|
||||
side_obj.my.destroy();
|
||||
}
|
||||
side_obj.refresh = function(){
|
||||
if ( ! is_trans_sup ) return;
|
||||
side_obj.my.refresh();
|
||||
}
|
||||
|
||||
function iscroll_loaded() {
|
||||
if ( is_trans_sup ){
|
||||
$side_wr.removeClass('add_side_wr');
|
||||
side_obj.my = new IScroll('#isroll_wrap', { bounceTime : 400, mouseWheel: true, click: true, hScroll:false });
|
||||
}
|
||||
}
|
||||
|
||||
$('#isroll_wrap').on('touchmove', function(e){
|
||||
e.preventDefault();
|
||||
});
|
||||
|
||||
function supportsTransitions() {
|
||||
var b = document.body || document.documentElement,
|
||||
s = b.style,
|
||||
p = 'transition';
|
||||
|
||||
if (typeof s[p] === 'string') { return true; }
|
||||
|
||||
// Tests for vendor specific prop
|
||||
var v = ['Moz', 'webkit', 'Webkit', 'Khtml', 'O', 'ms'];
|
||||
p = p.charAt(0).toUpperCase() + p.substr(1);
|
||||
|
||||
for (var i = 0; i < v.length; i++) {
|
||||
if (typeof s[v[i] + p] === 'string') { return true; }
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
$btn_side.on('click', function() {
|
||||
if ( ! $(this).data('toggle_enable')) {
|
||||
$(this).data('toggle_enable', true);
|
||||
$side_menu.show();
|
||||
$side_wr.animate({'right': '0px'}, 200, function(){
|
||||
height_update($(this));
|
||||
iscroll_loaded();
|
||||
});
|
||||
} else {
|
||||
remove_side_data();
|
||||
}
|
||||
});
|
||||
|
||||
function height_update(target){
|
||||
var side_wr_height = target.height();
|
||||
$('body').css({'min-height': side_wr_height + 'px'});
|
||||
}
|
||||
|
||||
function remove_side_data(){
|
||||
$btn_side.data('toggle_enable', false);
|
||||
$side_wr.animate({'right': '-250px'}, 160, function(){
|
||||
$side_menu.hide();
|
||||
$('body').css({'min-height':''});
|
||||
side_obj.my.destroy();
|
||||
});
|
||||
}
|
||||
|
||||
$('#side_menu .side_wr').on('clickoutside', function(e){
|
||||
if ( ! $(e.target).closest('#btn_side').length && $btn_side.data('toggle_enable')){
|
||||
remove_side_data();
|
||||
}
|
||||
});
|
||||
|
||||
var clickEventType= 'ontouchend' in document ? 'touchend' : 'click';
|
||||
|
||||
if( clickEventType == 'touchend'){
|
||||
$(document).on(clickEventType, function(e){
|
||||
if ( $side_wr.has(e.target).length === 0 && $btn_side.data('toggle_enable')){
|
||||
remove_side_data();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
$(document).on(clickEventType, '.subopen', function(){
|
||||
$submenu = $('.drop-downorder-' + $(this).attr('data-menu-order'));
|
||||
$submenu.toggle(function(){
|
||||
height_update($side_wr);
|
||||
side_obj.my.refresh();
|
||||
});
|
||||
});
|
||||
|
||||
});
|
||||
72
assets/js/recaptcha.js
Normal file
72
assets/js/recaptcha.js
Normal file
@@ -0,0 +1,72 @@
|
||||
if (typeof(RECAPTCHA_JS) === 'undefined') {
|
||||
|
||||
if (typeof cb_url === 'undefined') {
|
||||
alert('올바르지 않은 접근입니다.');
|
||||
}
|
||||
|
||||
var RECAPTCHA_JS = true;
|
||||
|
||||
jQuery(function($) {
|
||||
$(document).on('click', '#captcha', function() {
|
||||
$.ajax({
|
||||
url : cb_url + '/captcha/recaptcha',
|
||||
type : 'get',
|
||||
cache: false,
|
||||
async: false,
|
||||
success : function(data) {
|
||||
$('#recaptcha').html(data);
|
||||
}
|
||||
});
|
||||
});
|
||||
$('#captcha').trigger('click');
|
||||
|
||||
/*
|
||||
if (typeof $.validator !== 'undefined') {
|
||||
$.validator.addMethod('recaptchaKey', function(value, element) {
|
||||
if ($('#g-recaptcha-response').val() === '') {
|
||||
alert('자동등록방지코드에 체크해주세요');
|
||||
return false;
|
||||
} else {
|
||||
return true;
|
||||
}
|
||||
});
|
||||
}
|
||||
*/
|
||||
|
||||
if (typeof $.validator !== 'undefined') {
|
||||
$.validator.addMethod('recaptchaKey', function(value, element) {
|
||||
if ($('#g-recaptcha-response').val() === '') {
|
||||
|
||||
if( $(".g-recaptcha").attr("data-size") === "invisible" ){
|
||||
grecaptcha.execute();
|
||||
} else {
|
||||
alert('자동등록방지코드에 체크해주세요');
|
||||
}
|
||||
|
||||
return false;
|
||||
} else {
|
||||
return true;
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
function recaptcha_validate(token) {
|
||||
|
||||
var $form = jQuery("#g-recaptcha-response").closest("form");
|
||||
form_id = $form.attr("id");
|
||||
|
||||
if( $form.length ){
|
||||
|
||||
switch(form_id) {
|
||||
case "fcomment":
|
||||
jQuery("#cmt_btn_submit").trigger("click");
|
||||
break;
|
||||
default:
|
||||
$form.submit();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
6
assets/js/respond.min.js
vendored
Normal file
6
assets/js/respond.min.js
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
/*! Respond.js v1.4.2: min/max-width media query polyfill
|
||||
* Copyright 2014 Scott Jehl
|
||||
* Licensed under MIT
|
||||
* http://j.mp/respondjs */
|
||||
|
||||
!function(a){"use strict";a.matchMedia=a.matchMedia||function(a){var b,c=a.documentElement,d=c.firstElementChild||c.firstChild,e=a.createElement("body"),f=a.createElement("div");return f.id="mq-test-1",f.style.cssText="position:absolute;top:-100em",e.style.background="none",e.appendChild(f),function(a){return f.innerHTML='­<style media="'+a+'"> #mq-test-1 { width: 42px; }</style>',c.insertBefore(e,d),b=42===f.offsetWidth,c.removeChild(e),{matches:b,media:a}}}(a.document)}(this),function(a){"use strict";function b(){v(!0)}var c={};a.respond=c,c.update=function(){};var d=[],e=function(){var b=!1;try{b=new a.XMLHttpRequest}catch(c){b=new a.ActiveXObject("Microsoft.XMLHTTP")}return function(){return b}}(),f=function(a,b){var c=e();c&&(c.open("GET",a,!0),c.onreadystatechange=function(){4!==c.readyState||200!==c.status&&304!==c.status||b(c.responseText)},4!==c.readyState&&c.send(null))},g=function(a){return a.replace(c.regex.minmaxwh,"").match(c.regex.other)};if(c.ajax=f,c.queue=d,c.unsupportedmq=g,c.regex={media:/@media[^\{]+\{([^\{\}]*\{[^\}\{]*\})+/gi,keyframes:/@(?:\-(?:o|moz|webkit)\-)?keyframes[^\{]+\{(?:[^\{\}]*\{[^\}\{]*\})+[^\}]*\}/gi,comments:/\/\*[^*]*\*+([^/][^*]*\*+)*\//gi,urls:/(url\()['"]?([^\/\)'"][^:\)'"]+)['"]?(\))/g,findStyles:/@media *([^\{]+)\{([\S\s]+?)$/,only:/(only\s+)?([a-zA-Z]+)\s?/,minw:/\(\s*min\-width\s*:\s*(\s*[0-9\.]+)(px|em)\s*\)/,maxw:/\(\s*max\-width\s*:\s*(\s*[0-9\.]+)(px|em)\s*\)/,minmaxwh:/\(\s*m(in|ax)\-(height|width)\s*:\s*(\s*[0-9\.]+)(px|em)\s*\)/gi,other:/\([^\)]*\)/g},c.mediaQueriesSupported=a.matchMedia&&null!==a.matchMedia("only all")&&a.matchMedia("only all").matches,!c.mediaQueriesSupported){var h,i,j,k=a.document,l=k.documentElement,m=[],n=[],o=[],p={},q=30,r=k.getElementsByTagName("head")[0]||l,s=k.getElementsByTagName("base")[0],t=r.getElementsByTagName("link"),u=function(){var a,b=k.createElement("div"),c=k.body,d=l.style.fontSize,e=c&&c.style.fontSize,f=!1;return b.style.cssText="position:absolute;font-size:1em;width:1em",c||(c=f=k.createElement("body"),c.style.background="none"),l.style.fontSize="100%",c.style.fontSize="100%",c.appendChild(b),f&&l.insertBefore(c,l.firstChild),a=b.offsetWidth,f?l.removeChild(c):c.removeChild(b),l.style.fontSize=d,e&&(c.style.fontSize=e),a=j=parseFloat(a)},v=function(b){var c="clientWidth",d=l[c],e="CSS1Compat"===k.compatMode&&d||k.body[c]||d,f={},g=t[t.length-1],p=(new Date).getTime();if(b&&h&&q>p-h)return a.clearTimeout(i),i=a.setTimeout(v,q),void 0;h=p;for(var s in m)if(m.hasOwnProperty(s)){var w=m[s],x=w.minw,y=w.maxw,z=null===x,A=null===y,B="em";x&&(x=parseFloat(x)*(x.indexOf(B)>-1?j||u():1)),y&&(y=parseFloat(y)*(y.indexOf(B)>-1?j||u():1)),w.hasquery&&(z&&A||!(z||e>=x)||!(A||y>=e))||(f[w.media]||(f[w.media]=[]),f[w.media].push(n[w.rules]))}for(var C in o)o.hasOwnProperty(C)&&o[C]&&o[C].parentNode===r&&r.removeChild(o[C]);o.length=0;for(var D in f)if(f.hasOwnProperty(D)){var E=k.createElement("style"),F=f[D].join("\n");E.type="text/css",E.media=D,r.insertBefore(E,g.nextSibling),E.styleSheet?E.styleSheet.cssText=F:E.appendChild(k.createTextNode(F)),o.push(E)}},w=function(a,b,d){var e=a.replace(c.regex.comments,"").replace(c.regex.keyframes,"").match(c.regex.media),f=e&&e.length||0;b=b.substring(0,b.lastIndexOf("/"));var h=function(a){return a.replace(c.regex.urls,"$1"+b+"$2$3")},i=!f&&d;b.length&&(b+="/"),i&&(f=1);for(var j=0;f>j;j++){var k,l,o,p;i?(k=d,n.push(h(a))):(k=e[j].match(c.regex.findStyles)&&RegExp.$1,n.push(RegExp.$2&&h(RegExp.$2))),o=k.split(","),p=o.length;for(var q=0;p>q;q++)l=o[q],g(l)||m.push({media:l.split("(")[0].match(c.regex.only)&&RegExp.$2||"all",rules:n.length-1,hasquery:l.indexOf("(")>-1,minw:l.match(c.regex.minw)&&parseFloat(RegExp.$1)+(RegExp.$2||""),maxw:l.match(c.regex.maxw)&&parseFloat(RegExp.$1)+(RegExp.$2||"")})}v()},x=function(){if(d.length){var b=d.shift();f(b.href,function(c){w(c,b.href,b.media),p[b.href]=!0,a.setTimeout(function(){x()},0)})}},y=function(){for(var b=0;b<t.length;b++){var c=t[b],e=c.href,f=c.media,g=c.rel&&"stylesheet"===c.rel.toLowerCase();e&&g&&!p[e]&&(c.styleSheet&&c.styleSheet.rawCssText?(w(c.styleSheet.rawCssText,e,f),p[e]=!0):(!/^([a-zA-Z:]*\/\/)/.test(e)&&!s||e.replace(RegExp.$1,"").split("/")[0]===a.location.host)&&("//"===e.substring(0,2)&&(e=a.location.protocol+e),d.push({href:e,media:f})))}x()};y(),c.update=y,c.getEmValue=u,a.addEventListener?a.addEventListener("resize",b,!1):a.attachEvent&&a.attachEvent("onresize",b)}}(this);
|
||||
307
assets/js/sideview.js
Normal file
307
assets/js/sideview.js
Normal file
@@ -0,0 +1,307 @@
|
||||
if (typeof(SIDEVIEW_JS) === 'undefined') // 한번만 실행
|
||||
{
|
||||
if (typeof is_member === 'undefined') {
|
||||
alert('is_member 변수가 선언되지 않았습니다.');
|
||||
}
|
||||
|
||||
var SIDEVIEW_JS = true;
|
||||
|
||||
// 아래의 소스코드는 daum.net 카페의 자바스크립트를 참고하였습니다.
|
||||
// 회원이름 클릭시 회원정보등을 보여주는 레이어
|
||||
function insertHead(name, text, evt) {
|
||||
var idx = this.heads.length;
|
||||
var row = new SideViewRow(-idx, name, text, evt);
|
||||
this.heads[idx] = row;
|
||||
return row;
|
||||
}
|
||||
|
||||
function insertTail(name, evt) {
|
||||
var idx = this.tails.length;
|
||||
var row = new SideViewRow(idx, name, evt);
|
||||
this.tails[idx] = row;
|
||||
return row;
|
||||
}
|
||||
|
||||
function SideViewRow(idx, name, onclickEvent) {
|
||||
this.idx = idx;
|
||||
this.name = name;
|
||||
this.onclickEvent = onclickEvent;
|
||||
this.renderRow = renderRow;
|
||||
|
||||
this.isVisible = true;
|
||||
this.isDim = false;
|
||||
}
|
||||
|
||||
function renderRow() {
|
||||
if ( ! this.isVisible)
|
||||
return '';
|
||||
|
||||
var str = '<tr><td id="sideViewRow_' + this.name + '">' + this.onclickEvent + '</td></tr>';
|
||||
return str;
|
||||
}
|
||||
|
||||
function getSideView(curObj, userid) {
|
||||
clickAreaCheck = true;
|
||||
$.ajax({
|
||||
url : cb_url + '/profile/sideview/' + userid,
|
||||
type : 'get',
|
||||
dataType : 'json',
|
||||
success : function(data) {
|
||||
if (data.error) {
|
||||
alert(data.error);
|
||||
return false;
|
||||
} else if (data.success) {
|
||||
showSideView(curObj, userid, data.name, data.homepage, data.note, data.email, data.profile, data.following, data.memid);
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function showSideView(curObj, userid, name, homepage, note, email, profile, following, memid) {
|
||||
var sideView = new SideView('nameContextMenu', curObj, userid, name, homepage, note, email, profile, following, memid);
|
||||
sideView.showLayer();
|
||||
}
|
||||
|
||||
function SideView(targetObj, curObj, userid, name, homepage, note, email, profile, following, memid) {
|
||||
this.targetObj = targetObj;
|
||||
this.curObj = curObj;
|
||||
this.userid = userid;
|
||||
name = name.replace(/…/g,"");
|
||||
this.name = name;
|
||||
this.homepage = homepage;
|
||||
this.note = note;
|
||||
this.email = email;
|
||||
this.profile = profile;
|
||||
this.following = following;
|
||||
this.showLayer = showLayer;
|
||||
this.makeNameContextMenus = makeNameContextMenus;
|
||||
this.heads = new Array();
|
||||
this.insertHead = insertHead;
|
||||
this.tails = new Array();
|
||||
this.insertTail = insertTail;
|
||||
this.getRow = getRow;
|
||||
this.hideRow = hideRow;
|
||||
this.dimRow = dimRow;
|
||||
|
||||
// 회원이라면 // (비회원의 경우 검색 없음)
|
||||
if (is_member) {
|
||||
if (userid) {
|
||||
// 쪽지보내기
|
||||
if (note == '1')
|
||||
this.insertTail('note', '<a href="javascript:;" onclick="note_write(\'' + userid + '\'); return false;">쪽지보내기</a>');
|
||||
else if (note == '3')
|
||||
this.insertTail('note', '<a href="javascript:;" onclick="alert(\'회원님이 쪽지수신설정을 해제하셨습니다.. 먼저 회원님의 쪽지수신여부를 체크하신 후에 이용해주세요\'); return false;">쪽지보내기</a>');
|
||||
else if (note == '2')
|
||||
this.insertTail('note', '<a href="javascript:;" onclick="alert(\'상대방이 쪽지수신을 원하지 않으십니다\'); return false;">쪽지보내기</a>');
|
||||
// 친구등록
|
||||
if (following == '1')
|
||||
this.insertTail('follow', '<a href="javascript:;" onclick="delete_follow(\'' + userid + '\'); return false;">친구해제</a>');
|
||||
else
|
||||
this.insertTail('follow', '<a href="javascript:;" onclick="add_follow(\'' + userid + '\'); return false;">친구등록</a>');
|
||||
// 메일보내기
|
||||
if (email == '1')
|
||||
this.insertTail('email', '<a href="javascript:;" onclick="email_write(\'' + userid + '\'); return false;">메일보내기</a>');
|
||||
else if (email == '3')
|
||||
this.insertTail('email', '<a href="javascript:;" onclick="alert(\'회원님이 이메일수신설정을 해제하셨습니다.. 먼저 회원님의 이메일수신여부를 체크하신 후에 이용해주세요\'); return false;">메일보내기</a>');
|
||||
else if (email == '2')
|
||||
this.insertTail('email', '<a href="javascript:;" onclick="alert(\'상대방이 이메일수신을 원하지 않으십니다\'); return false;">메일보내기</a>');
|
||||
// 홈페이지
|
||||
if (homepage == '1')
|
||||
this.insertTail('homepage', '<a href="' + homepage + '" target="_blank">홈페이지</a>');
|
||||
// 자기소개
|
||||
if (profile == '1')
|
||||
this.insertTail('profile', '<a href="javascript:;" onclick="open_profile(\'' + userid + '\'); return false;">프로필</a>');
|
||||
else if (profile == '3')
|
||||
this.insertTail('profile', '<a href="javascript:;" onclick="alert(\'회원님이 프로필을 공개하지 않으셨습니다. 먼저 회원님의 프로필을 공개하신 후 이용해주세요\'); return false;">프로필</a>');
|
||||
else if (profile == '2')
|
||||
this.insertTail('profile', '<a href="javascript:;" onclick="alert(\'상대방이 프로필을 공개하지 않으셨습니다\'); return false;">프로필</a>');
|
||||
}
|
||||
}
|
||||
|
||||
// 게시판테이블 아이디가 넘어왔을 경우
|
||||
if (cb_board) {
|
||||
if (userid) // 회원일 경우 아이디로 검색
|
||||
this.insertTail('userid', '<a href="' + cb_board_url + '/?sfield=post_userid&skeyword=' + userid + '">아이디로 검색</a>');
|
||||
else // 비회원일 경우 이름으로 검색
|
||||
this.insertTail('name', '<a href="' + cb_board_url + '/?sfield=post_nickname&skeyword=' + name + '">이름으로 검색</a>');
|
||||
}
|
||||
|
||||
// 최고관리자일 경우
|
||||
if (is_admin == 'super') {
|
||||
// 회원정보변경
|
||||
if (userid)
|
||||
this.insertTail('modify', '<a href="' + cb_admin_url + '/member/members/write/' + memid + '" target="_blank">회원정보변경</a>');
|
||||
// 포인트내역
|
||||
if (userid)
|
||||
this.insertTail('point', '<a href="' + cb_admin_url + '/member/points?sfield=point.mem_id&skeyword=' + memid + '" target="_blank">포인트내역</a>');
|
||||
if (userid)
|
||||
this.insertTail('new', '<a href="' + cb_admin_url + '/board/post?sfield=mem_id&skeyword=' + memid + '" target="_blank">전체게시물</a>');
|
||||
if (userid)
|
||||
this.insertTail('new', '<a href="' + cb_admin_url + '/board/comment?sfield=post.mem_id&skeyword=' + memid + '" target="_blank">전체댓글</a>');
|
||||
}
|
||||
}
|
||||
|
||||
function showLayer() {
|
||||
var oSideViewLayer = document.getElementById(this.targetObj);
|
||||
var oBody = document.body;
|
||||
|
||||
if (oSideViewLayer === null) {
|
||||
oSideViewLayer = document.createElement('DIV');
|
||||
oSideViewLayer.id = this.targetObj;
|
||||
oSideViewLayer.style.position = 'absolute';
|
||||
oBody.appendChild(oSideViewLayer);
|
||||
}
|
||||
oSideViewLayer.innerHTML = this.makeNameContextMenus();
|
||||
|
||||
if (getAbsoluteTop(this.curObj) + this.curObj.offsetHeight + oSideViewLayer.scrollHeight + 5 > oBody.scrollHeight)
|
||||
oSideViewLayer.style.top = (getAbsoluteTop(this.curObj) - oSideViewLayer.scrollHeight) + 'px';
|
||||
else
|
||||
oSideViewLayer.style.top = (getAbsoluteTop(this.curObj) + this.curObj.offsetHeight) + 'px';
|
||||
|
||||
oSideViewLayer.style.left = (getAbsoluteLeft(this.curObj) - this.curObj.offsetWidth + 14) + 'px';
|
||||
|
||||
divDisplay(this.targetObj, 'block');
|
||||
|
||||
selectBoxHidden(this.targetObj);
|
||||
}
|
||||
|
||||
function getAbsoluteTop(oNode) {
|
||||
var oCurrentNode=oNode;
|
||||
var iTop = 0;
|
||||
while(oCurrentNode.tagName != 'BODY') {
|
||||
iTop+=oCurrentNode.offsetTop - oCurrentNode.scrollTop;
|
||||
oCurrentNode=oCurrentNode.offsetParent;
|
||||
}
|
||||
return iTop;
|
||||
}
|
||||
|
||||
function getAbsoluteLeft(oNode) {
|
||||
var oCurrentNode=oNode;
|
||||
var iLeft = 0;
|
||||
iLeft+=oCurrentNode.offsetWidth;
|
||||
while(oCurrentNode.tagName != 'BODY') {
|
||||
iLeft+=oCurrentNode.offsetLeft;
|
||||
oCurrentNode=oCurrentNode.offsetParent;
|
||||
}
|
||||
return iLeft;
|
||||
}
|
||||
|
||||
function makeNameContextMenus() {
|
||||
var str = '<table class="mbLayer">';
|
||||
|
||||
var i = 0;
|
||||
for (i=this.heads.length - 1; i >= 0; i--)
|
||||
str += this.heads[i].renderRow();
|
||||
|
||||
var j = 0;
|
||||
for (j = 0; j < this.tails.length; j++)
|
||||
str += this.tails[j].renderRow();
|
||||
|
||||
str += '</table>';
|
||||
return str;
|
||||
}
|
||||
|
||||
function getRow(name) {
|
||||
var i = 0;
|
||||
var row = null;
|
||||
for (i = 0; i<this.heads.length; ++i) {
|
||||
row = this.heads[i];
|
||||
if (row.name == name) return row;
|
||||
}
|
||||
|
||||
for (i = 0; i<this.tails.length; ++i) {
|
||||
row = this.tails[i];
|
||||
if (row.name == name) return row;
|
||||
}
|
||||
return row;
|
||||
}
|
||||
|
||||
function hideRow(name) {
|
||||
var row = this.getRow(name);
|
||||
if (row !== null)
|
||||
row.isVisible = false;
|
||||
}
|
||||
|
||||
function dimRow(name) {
|
||||
var row = this.getRow(name);
|
||||
if (row !== null)
|
||||
row.isDim = true;
|
||||
}
|
||||
// Internet Explorer에서 셀렉트박스와 레이어가 겹칠시 레이어가 셀렉트 박스 뒤로 숨는 현상을 해결하는 함수
|
||||
// 레이어가 셀렉트 박스를 침범하면 셀렉트 박스를 hidden 시킴
|
||||
// <div id=LayerID style="display:none; position:absolute;" onpropertychange="selectBoxHidden('LayerID')">
|
||||
function selectBoxHidden(layer_id) {
|
||||
//var ly = eval(layer_id);
|
||||
var ly = document.getElementById(layer_id);
|
||||
|
||||
// 레이어 좌표
|
||||
var ly_left = ly.offsetLeft;
|
||||
var ly_top = ly.offsetTop;
|
||||
var ly_right = ly.offsetLeft + ly.offsetWidth;
|
||||
var ly_bottom = ly.offsetTop + ly.offsetHeight;
|
||||
|
||||
// 셀렉트박스의 좌표
|
||||
var el;
|
||||
|
||||
for (i = 0; i < document.forms.length; i++) {
|
||||
for (k = 0; k < document.forms[i].length; k++) {
|
||||
el = document.forms[i].elements[k];
|
||||
if (el.type == 'select-one') {
|
||||
var el_left = el_top = 0;
|
||||
var obj = el;
|
||||
if (obj.offsetParent) {
|
||||
while (obj.offsetParent) {
|
||||
el_left += obj.offsetLeft;
|
||||
el_top += obj.offsetTop;
|
||||
obj = obj.offsetParent;
|
||||
}
|
||||
}
|
||||
el_left += el.clientLeft;
|
||||
el_top += el.clientTop;
|
||||
el_right = el_left + el.clientWidth;
|
||||
el_bottom = el_top + el.clientHeight;
|
||||
|
||||
// 좌표를 따져 레이어가 셀렉트 박스를 침범했으면 셀렉트 박스를 hidden 시킴
|
||||
if ( (el_left >= ly_left && el_top >= ly_top && el_left <= ly_right && el_top <= ly_bottom) ||
|
||||
(el_right >= ly_left && el_right <= ly_right && el_top >= ly_top && el_top <= ly_bottom) ||
|
||||
(el_left >= ly_left && el_bottom >= ly_top && el_right <= ly_right && el_bottom <= ly_bottom) ||
|
||||
(el_left >= ly_left && el_left <= ly_right && el_bottom >= ly_top && el_bottom <= ly_bottom) ||
|
||||
(el_top <= ly_bottom && el_left <= ly_left && el_right >= ly_right)
|
||||
)
|
||||
el.style.visibility = 'hidden';
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// 감추어진 셀렉트 박스를 모두 보이게 함
|
||||
function selectBoxVisible() {
|
||||
for (i = 0; i<document.forms.length; i++) {
|
||||
for (k = 0; k<document.forms[i].length; k++) {
|
||||
el = document.forms[i].elements[k];
|
||||
if (el.type == 'select-one' && el.style.visibility == 'hidden')
|
||||
el.style.visibility = 'visible';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function divDisplay(id, act) {
|
||||
selectBoxVisible();
|
||||
|
||||
document.getElementById(id).style.display = act;
|
||||
}
|
||||
|
||||
function hideSideView() {
|
||||
if (document.getElementById('nameContextMenu'))
|
||||
divDisplay ('nameContextMenu', 'none');
|
||||
}
|
||||
|
||||
var clickAreaCheck = false;
|
||||
document.onclick = function() {
|
||||
if ( ! clickAreaCheck) {
|
||||
hideSideView();
|
||||
} else {
|
||||
clickAreaCheck = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
104
assets/js/sns.js
Normal file
104
assets/js/sns.js
Normal file
@@ -0,0 +1,104 @@
|
||||
//http://dev.epiloum.net/916
|
||||
|
||||
function sendSns(sns, url, txt) {
|
||||
var o;
|
||||
var _url = encodeURIComponent(url);
|
||||
var _txt = encodeURIComponent(txt);
|
||||
var _br = encodeURIComponent('\r\n');
|
||||
|
||||
switch(sns) {
|
||||
case 'facebook':
|
||||
o = {
|
||||
method:'popup',
|
||||
url:'http://www.facebook.com/sharer/sharer.php?u=' + _url
|
||||
};
|
||||
break;
|
||||
|
||||
case 'twitter':
|
||||
o = {
|
||||
method:'popup',
|
||||
url:'http://twitter.com/intent/tweet?text=' + _txt + '&url=' + _url
|
||||
};
|
||||
break;
|
||||
|
||||
case 'me2day':
|
||||
o = {
|
||||
method:'popup',
|
||||
url:'http://me2day.net/posts/new?new_post[body]=' + _txt + _br + _url + '&new_post[tags]=epiloum'
|
||||
};
|
||||
break;
|
||||
|
||||
case 'kakaostory':
|
||||
o = {
|
||||
method:'popup',
|
||||
url:'https://story.kakao.com/share?url=' + _url
|
||||
};
|
||||
break;
|
||||
|
||||
case 'band':
|
||||
o = {
|
||||
method:'popup',
|
||||
url:'http://www.band.us/plugin/share?body=' + _txt + _br + _url
|
||||
};
|
||||
break;
|
||||
|
||||
default:
|
||||
alert('지원하지 않는 SNS입니다.');
|
||||
return false;
|
||||
}
|
||||
|
||||
switch(o.method) {
|
||||
case 'popup':
|
||||
window.open(o.url,'snspopup','width=500, height=400, menubar=no, status=no, toolbar=no');
|
||||
break;
|
||||
|
||||
case 'web2app':
|
||||
if (navigator.userAgent.match(/android/i))
|
||||
{
|
||||
// Android
|
||||
setTimeout(function(){ location.href = 'intent://' + o.param + '#Intent;' + o.g_proto + ';end'}, 100);
|
||||
}
|
||||
else if (navigator.userAgent.match(/(iphone)|(ipod)|(ipad)/i))
|
||||
{
|
||||
// Apple
|
||||
setTimeout(function(){ location.href = o.a_store; }, 200);
|
||||
setTimeout(function(){ location.href = o.a_proto + o.param }, 100);
|
||||
}
|
||||
else
|
||||
{
|
||||
alert('이 기능은 모바일에서만 사용할 수 있습니다.');
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
function kakaolink_send(text, url, img, img_w, img_h) {
|
||||
|
||||
if ( ! img) img = '';
|
||||
if ( ! img_w) img_w = 300;
|
||||
if ( ! img_h) img_h = 200;
|
||||
|
||||
// 카카오톡 링크 버튼을 생성합니다. 처음 한번만 호출하면 됩니다.
|
||||
if (img) {
|
||||
Kakao.Link.sendTalkLink({
|
||||
label: String(text),
|
||||
image: {
|
||||
src: img,
|
||||
width: img_w,
|
||||
height: img_h
|
||||
},
|
||||
webButton: {
|
||||
text: String('자세히 보기'), //카톡 링크시 타이틀
|
||||
url : url // 앱 설정의 웹 플랫폼에 등록한 도메인의 URL이어야 합니다.
|
||||
}
|
||||
});
|
||||
} else {
|
||||
Kakao.Link.sendTalkLink({
|
||||
label: String(text),
|
||||
webButton: {
|
||||
text: String('자세히 보기'), //카톡 링크시 타이틀
|
||||
url : url // 앱 설정의 웹 플랫폼에 등록한 도메인의 URL이어야 합니다.
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
48
assets/js/social_login.js
Normal file
48
assets/js/social_login.js
Normal file
@@ -0,0 +1,48 @@
|
||||
if (typeof(SOCIAL_LOGIN_JS) === 'undefined') {
|
||||
|
||||
var SOCIAL_LOGIN_JS = true;
|
||||
|
||||
function social_connect_off(social_type) {
|
||||
|
||||
if (social_type !== 'facebook' && social_type !== 'twitter' && social_type !== 'google' && social_type !== 'naver' && social_type !== 'kakao') {
|
||||
return false;
|
||||
}
|
||||
|
||||
if ( ! confirm('정말로 연동을 해제하시겠습니까?')) {
|
||||
return false;
|
||||
}
|
||||
$.ajax({
|
||||
url : cb_url + '/social/social_connect_off/' + social_type,
|
||||
type : 'post',
|
||||
data : {
|
||||
is_submit : '1',
|
||||
csrf_test_name : cb_csrf_hash
|
||||
},
|
||||
dataType : 'json',
|
||||
success : function(data) {
|
||||
if (data.error) {
|
||||
alert(data.error);
|
||||
return false;
|
||||
} else if (data.success) {
|
||||
$('.social-' + social_type + '-on').css('display', 'none');
|
||||
$('.social-' + social_type + '-off').css('display', 'inline-block');
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function social_connect_on(social_type) {
|
||||
|
||||
if (social_type !== 'facebook' && social_type !== 'twitter' && social_type !== 'google' && social_type !== 'naver' && social_type !== 'kakao') {
|
||||
return false;
|
||||
}
|
||||
window.open(cb_url + '/social/' + social_type + '_login', social_type + '-on', 'width=600,height=600');
|
||||
}
|
||||
|
||||
|
||||
function social_connect_on_done(social_type) {
|
||||
$('.social-' + social_type + '-on').css('display', 'inline-block');
|
||||
$('.social-' + social_type + '-off').css('display', 'none');
|
||||
alert('연동되었습니다');
|
||||
}
|
||||
}
|
||||
165
assets/js/syntaxhighlighter/LGPL-LICENSE
Normal file
165
assets/js/syntaxhighlighter/LGPL-LICENSE
Normal file
@@ -0,0 +1,165 @@
|
||||
GNU LESSER GENERAL PUBLIC LICENSE
|
||||
Version 3, 29 June 2007
|
||||
|
||||
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
|
||||
Everyone is permitted to copy and distribute verbatim copies
|
||||
of this license document, but changing it is not allowed.
|
||||
|
||||
|
||||
This version of the GNU Lesser General Public License incorporates
|
||||
the terms and conditions of version 3 of the GNU General Public
|
||||
License, supplemented by the additional permissions listed below.
|
||||
|
||||
0. Additional Definitions.
|
||||
|
||||
As used herein, "this License" refers to version 3 of the GNU Lesser
|
||||
General Public License, and the "GNU GPL" refers to version 3 of the GNU
|
||||
General Public License.
|
||||
|
||||
"The Library" refers to a covered work governed by this License,
|
||||
other than an Application or a Combined Work as defined below.
|
||||
|
||||
An "Application" is any work that makes use of an interface provided
|
||||
by the Library, but which is not otherwise based on the Library.
|
||||
Defining a subclass of a class defined by the Library is deemed a mode
|
||||
of using an interface provided by the Library.
|
||||
|
||||
A "Combined Work" is a work produced by combining or linking an
|
||||
Application with the Library. The particular version of the Library
|
||||
with which the Combined Work was made is also called the "Linked
|
||||
Version".
|
||||
|
||||
The "Minimal Corresponding Source" for a Combined Work means the
|
||||
Corresponding Source for the Combined Work, excluding any source code
|
||||
for portions of the Combined Work that, considered in isolation, are
|
||||
based on the Application, and not on the Linked Version.
|
||||
|
||||
The "Corresponding Application Code" for a Combined Work means the
|
||||
object code and/or source code for the Application, including any data
|
||||
and utility programs needed for reproducing the Combined Work from the
|
||||
Application, but excluding the System Libraries of the Combined Work.
|
||||
|
||||
1. Exception to Section 3 of the GNU GPL.
|
||||
|
||||
You may convey a covered work under sections 3 and 4 of this License
|
||||
without being bound by section 3 of the GNU GPL.
|
||||
|
||||
2. Conveying Modified Versions.
|
||||
|
||||
If you modify a copy of the Library, and, in your modifications, a
|
||||
facility refers to a function or data to be supplied by an Application
|
||||
that uses the facility (other than as an argument passed when the
|
||||
facility is invoked), then you may convey a copy of the modified
|
||||
version:
|
||||
|
||||
a) under this License, provided that you make a good faith effort to
|
||||
ensure that, in the event an Application does not supply the
|
||||
function or data, the facility still operates, and performs
|
||||
whatever part of its purpose remains meaningful, or
|
||||
|
||||
b) under the GNU GPL, with none of the additional permissions of
|
||||
this License applicable to that copy.
|
||||
|
||||
3. Object Code Incorporating Material from Library Header Files.
|
||||
|
||||
The object code form of an Application may incorporate material from
|
||||
a header file that is part of the Library. You may convey such object
|
||||
code under terms of your choice, provided that, if the incorporated
|
||||
material is not limited to numerical parameters, data structure
|
||||
layouts and accessors, or small macros, inline functions and templates
|
||||
(ten or fewer lines in length), you do both of the following:
|
||||
|
||||
a) Give prominent notice with each copy of the object code that the
|
||||
Library is used in it and that the Library and its use are
|
||||
covered by this License.
|
||||
|
||||
b) Accompany the object code with a copy of the GNU GPL and this license
|
||||
document.
|
||||
|
||||
4. Combined Works.
|
||||
|
||||
You may convey a Combined Work under terms of your choice that,
|
||||
taken together, effectively do not restrict modification of the
|
||||
portions of the Library contained in the Combined Work and reverse
|
||||
engineering for debugging such modifications, if you also do each of
|
||||
the following:
|
||||
|
||||
a) Give prominent notice with each copy of the Combined Work that
|
||||
the Library is used in it and that the Library and its use are
|
||||
covered by this License.
|
||||
|
||||
b) Accompany the Combined Work with a copy of the GNU GPL and this license
|
||||
document.
|
||||
|
||||
c) For a Combined Work that displays copyright notices during
|
||||
execution, include the copyright notice for the Library among
|
||||
these notices, as well as a reference directing the user to the
|
||||
copies of the GNU GPL and this license document.
|
||||
|
||||
d) Do one of the following:
|
||||
|
||||
0) Convey the Minimal Corresponding Source under the terms of this
|
||||
License, and the Corresponding Application Code in a form
|
||||
suitable for, and under terms that permit, the user to
|
||||
recombine or relink the Application with a modified version of
|
||||
the Linked Version to produce a modified Combined Work, in the
|
||||
manner specified by section 6 of the GNU GPL for conveying
|
||||
Corresponding Source.
|
||||
|
||||
1) Use a suitable shared library mechanism for linking with the
|
||||
Library. A suitable mechanism is one that (a) uses at run time
|
||||
a copy of the Library already present on the user's computer
|
||||
system, and (b) will operate properly with a modified version
|
||||
of the Library that is interface-compatible with the Linked
|
||||
Version.
|
||||
|
||||
e) Provide Installation Information, but only if you would otherwise
|
||||
be required to provide such information under section 6 of the
|
||||
GNU GPL, and only to the extent that such information is
|
||||
necessary to install and execute a modified version of the
|
||||
Combined Work produced by recombining or relinking the
|
||||
Application with a modified version of the Linked Version. (If
|
||||
you use option 4d0, the Installation Information must accompany
|
||||
the Minimal Corresponding Source and Corresponding Application
|
||||
Code. If you use option 4d1, you must provide the Installation
|
||||
Information in the manner specified by section 6 of the GNU GPL
|
||||
for conveying Corresponding Source.)
|
||||
|
||||
5. Combined Libraries.
|
||||
|
||||
You may place library facilities that are a work based on the
|
||||
Library side by side in a single library together with other library
|
||||
facilities that are not Applications and are not covered by this
|
||||
License, and convey such a combined library under terms of your
|
||||
choice, if you do both of the following:
|
||||
|
||||
a) Accompany the combined library with a copy of the same work based
|
||||
on the Library, uncombined with any other library facilities,
|
||||
conveyed under the terms of this License.
|
||||
|
||||
b) Give prominent notice with the combined library that part of it
|
||||
is a work based on the Library, and explaining where to find the
|
||||
accompanying uncombined form of the same work.
|
||||
|
||||
6. Revised Versions of the GNU Lesser General Public License.
|
||||
|
||||
The Free Software Foundation may publish revised and/or new versions
|
||||
of the GNU Lesser General Public License from time to time. Such new
|
||||
versions will be similar in spirit to the present version, but may
|
||||
differ in detail to address new problems or concerns.
|
||||
|
||||
Each version is given a distinguishing version number. If the
|
||||
Library as you received it specifies that a certain numbered version
|
||||
of the GNU Lesser General Public License "or any later version"
|
||||
applies to it, you have the option of following the terms and
|
||||
conditions either of that published version or of any later version
|
||||
published by the Free Software Foundation. If the Library as you
|
||||
received it does not specify a version number of the GNU Lesser
|
||||
General Public License, you may choose any version of the GNU Lesser
|
||||
General Public License ever published by the Free Software Foundation.
|
||||
|
||||
If the Library as you received it specifies that a proxy can decide
|
||||
whether future versions of the GNU Lesser General Public License shall
|
||||
apply, that proxy's public statement of acceptance of any version is
|
||||
permanent authorization for you to choose that version for the
|
||||
Library.
|
||||
20
assets/js/syntaxhighlighter/MIT-LICENSE
Normal file
20
assets/js/syntaxhighlighter/MIT-LICENSE
Normal file
@@ -0,0 +1,20 @@
|
||||
Copyright (c) 2003, 2004 Jim Weirich
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining
|
||||
a copy of this software and associated documentation files (the
|
||||
"Software"), to deal in the Software without restriction, including
|
||||
without limitation the rights to use, copy, modify, merge, publish,
|
||||
distribute, sublicense, and/or sell copies of the Software, and to
|
||||
permit persons to whom the Software is furnished to do so, subject to
|
||||
the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be
|
||||
included in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
||||
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
||||
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
120
assets/js/syntaxhighlighter/compass/_theme_template.scss
Normal file
120
assets/js/syntaxhighlighter/compass/_theme_template.scss
Normal file
@@ -0,0 +1,120 @@
|
||||
$background: white !default;
|
||||
|
||||
$line_alt1_background: $background !default;
|
||||
$line_alt2_background: $background !default;
|
||||
|
||||
$line_highlighted_background: #e0e0e0 !default;
|
||||
$line_highlighted_number: black !default;
|
||||
|
||||
$gutter_text: #afafaf !default;
|
||||
$gutter_border_color: #6ce26c !default;
|
||||
$gutter_border: 3px solid $gutter_border_color !default;
|
||||
|
||||
$toolbar_collapsed_a: #00f !default;
|
||||
$toolbar_collapsed_a_hover: #f00 !default;
|
||||
$toolbar_collapsed_background: #fff !default;
|
||||
$toolbar_collapsed_border: 1px solid $gutter_border_color !default;
|
||||
|
||||
$toolbar_a: #fff !default;
|
||||
$toolbar_a_hover: #000 !default;
|
||||
$toolbar_background: $gutter_border_color !default;
|
||||
$toolbar_border: none !default;
|
||||
|
||||
$code_plain: black !default;
|
||||
$code_comments: #008200 !default;
|
||||
$code_string: blue !default;
|
||||
$code_keyword: #006699 !default;
|
||||
$code_preprocessor: gray !default;
|
||||
$code_variable: #aa7700 !default;
|
||||
$code_value: #009900 !default;
|
||||
$code_functions: #ff1493 !default;
|
||||
$code_constants: #0066cc !default;
|
||||
$code_script: $code_keyword !default;
|
||||
$code_script_background: none !default;
|
||||
$code_color1: gray !default;
|
||||
$code_color2: #ff1493 !default;
|
||||
$code_color3: red !default;
|
||||
|
||||
$caption_color: $code_plain !default;
|
||||
|
||||
// Interface elements.
|
||||
.syntaxhighlighter {
|
||||
background-color: $background !important;
|
||||
|
||||
// Highlighed line number
|
||||
.line {
|
||||
&.alt1 { background-color: $line_alt1_background !important; }
|
||||
&.alt2 { background-color: $line_alt2_background !important; }
|
||||
|
||||
// Highlighed line
|
||||
&.highlighted {
|
||||
&.alt1, &.alt2 { background-color: $line_highlighted_background !important; }
|
||||
&.number { color: $line_highlighted_number !important; }
|
||||
}
|
||||
}
|
||||
|
||||
table {
|
||||
caption {
|
||||
color: $caption_color !important;
|
||||
}
|
||||
}
|
||||
|
||||
// Add border to the lines
|
||||
.gutter {
|
||||
color: $gutter_text !important;
|
||||
.line {
|
||||
border-right: $gutter_border !important;
|
||||
|
||||
&.highlighted {
|
||||
background-color: $gutter_border_color !important;
|
||||
color: $background !important;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&.printing .line .content { border: none !important; }
|
||||
|
||||
&.collapsed {
|
||||
overflow: visible !important;
|
||||
|
||||
.toolbar {
|
||||
color: $toolbar_collapsed_a !important;
|
||||
background: $toolbar_collapsed_background !important;
|
||||
border: $toolbar_collapsed_border !important;
|
||||
|
||||
a {
|
||||
color: $toolbar_collapsed_a !important;
|
||||
&:hover { color: $toolbar_collapsed_a_hover !important; }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.toolbar {
|
||||
color: $toolbar_a !important;
|
||||
background: $toolbar_background !important;
|
||||
border: $toolbar_border !important;
|
||||
a {
|
||||
color: $toolbar_a !important;
|
||||
&:hover { color: $toolbar_a_hover !important; }
|
||||
}
|
||||
}
|
||||
|
||||
// Actual syntax highlighter colors.
|
||||
.plain, .plain a { color: $code_plain !important; }
|
||||
.comments, .comments a { color: $code_comments !important; }
|
||||
.string, .string a { color: $code_string !important; }
|
||||
.keyword { color: $code_keyword !important; }
|
||||
.preprocessor { color: $code_preprocessor !important; }
|
||||
.variable { color: $code_variable !important; }
|
||||
.value { color: $code_value !important; }
|
||||
.functions { color: $code_functions !important; }
|
||||
.constants { color: $code_constants !important; }
|
||||
.script {
|
||||
font-weight: bold !important;
|
||||
color: $code_script !important;
|
||||
background-color: $code_script_background !important;
|
||||
}
|
||||
.color1, .color1 a { color: $code_color1 !important; }
|
||||
.color2, .color2 a { color: $code_color2 !important; }
|
||||
.color3, .color3 a { color: $code_color3 !important; }
|
||||
}
|
||||
14
assets/js/syntaxhighlighter/compass/config.rb
Normal file
14
assets/js/syntaxhighlighter/compass/config.rb
Normal file
@@ -0,0 +1,14 @@
|
||||
environment = :production
|
||||
project_type = :stand_alone
|
||||
http_path = "/"
|
||||
css_dir = "../styles"
|
||||
sass_dir = "."
|
||||
images_dir = "images"
|
||||
sass_options = {
|
||||
:line_numbers => false,
|
||||
:debug_info => false
|
||||
}
|
||||
|
||||
# output_style = :compressed
|
||||
# output_style = :compact
|
||||
output_style = :expanded
|
||||
216
assets/js/syntaxhighlighter/compass/shCore.scss
Normal file
216
assets/js/syntaxhighlighter/compass/shCore.scss
Normal file
@@ -0,0 +1,216 @@
|
||||
@mixin round_corners_custom($top, $right, $bottom, $left) {
|
||||
-moz-border-radius: $top $right $bottom $left !important;
|
||||
-webkit-border-radius: $top $right $bottom $left !important;
|
||||
}
|
||||
|
||||
@mixin round_corners($radius) {
|
||||
@include round_corners_custom($radius, $radius, $radius, $radius);
|
||||
}
|
||||
|
||||
.syntaxhighlighter {
|
||||
a,
|
||||
div,
|
||||
code,
|
||||
table,
|
||||
table td,
|
||||
table tr,
|
||||
table tbody,
|
||||
table thead,
|
||||
table caption,
|
||||
textarea {
|
||||
@include round_corners(0);
|
||||
|
||||
background: none !important;
|
||||
border: 0 !important;
|
||||
bottom: auto !important;
|
||||
float: none !important;
|
||||
height: auto !important;
|
||||
left: auto !important;
|
||||
line-height: 1.1em !important;
|
||||
margin: 0 !important;
|
||||
outline: 0 !important;
|
||||
overflow: visible !important;
|
||||
padding: 0 !important;
|
||||
position: static !important;
|
||||
right: auto !important;
|
||||
text-align: left !important;
|
||||
top: auto !important;
|
||||
vertical-align: baseline !important;
|
||||
width: auto !important;
|
||||
box-sizing: content-box !important;
|
||||
font: {
|
||||
family: "Consolas", "Bitstream Vera Sans Mono", "Courier New", Courier, monospace !important;
|
||||
weight: normal !important;
|
||||
style: normal !important;
|
||||
size: 1em !important;
|
||||
}
|
||||
min: {
|
||||
// For IE8, FF & WebKit
|
||||
height: inherit !important;
|
||||
// For IE7
|
||||
height: auto !important;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.syntaxhighlighter {
|
||||
width: 100% !important;
|
||||
margin: 1em 0 1em 0 !important;
|
||||
|
||||
position: relative !important;
|
||||
overflow: auto !important;
|
||||
font-size: 1em !important;
|
||||
|
||||
&.source { overflow: hidden !important; }
|
||||
|
||||
// set up bold and italic
|
||||
.bold { font-weight: bold !important; }
|
||||
.italic { font-style: italic !important; }
|
||||
|
||||
.line { white-space: pre !important; }
|
||||
|
||||
// main table and columns
|
||||
table {
|
||||
width: 100% !important;
|
||||
caption {
|
||||
text-align: left !important;
|
||||
padding: .5em 0 0.5em 1em !important;
|
||||
}
|
||||
|
||||
td.code {
|
||||
width: 100% !important;
|
||||
|
||||
.container {
|
||||
position: relative !important;
|
||||
|
||||
textarea {
|
||||
box-sizing: border-box !important;
|
||||
position: absolute !important;
|
||||
left: 0 !important;
|
||||
top: 0 !important;
|
||||
width: 100% !important;
|
||||
height: 100% !important;
|
||||
border: none !important;
|
||||
background: white !important;
|
||||
padding-left: 1em !important;
|
||||
overflow: hidden !important;
|
||||
white-space: pre !important;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// middle spacing between line numbers and lines
|
||||
td.gutter .line {
|
||||
text-align: right !important;
|
||||
padding: 0 0.5em 0 1em !important;
|
||||
}
|
||||
|
||||
td.code .line {
|
||||
padding: 0 1em !important;
|
||||
}
|
||||
}
|
||||
|
||||
&.nogutter {
|
||||
td.code {
|
||||
.container textarea, .line { padding-left: 0em !important; }
|
||||
}
|
||||
}
|
||||
|
||||
&.show { display: block !important; }
|
||||
|
||||
// Adjust some properties when collapsed
|
||||
&.collapsed {
|
||||
table { display: none !important; }
|
||||
|
||||
.toolbar {
|
||||
padding: 0.1em 0.8em 0em 0.8em !important;
|
||||
font-size: 1em !important;
|
||||
position: static !important;
|
||||
width: auto !important;
|
||||
height: auto !important;
|
||||
|
||||
span {
|
||||
display: inline !important;
|
||||
margin-right: 1em !important;
|
||||
|
||||
a {
|
||||
padding: 0 !important;
|
||||
display: none !important;
|
||||
&.expandSource { display: inline !important; }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Styles for the toolbar
|
||||
.toolbar {
|
||||
position: absolute !important;
|
||||
right: 1px !important;
|
||||
top: 1px !important;
|
||||
width: 11px !important;
|
||||
height: 11px !important;
|
||||
font-size: 10px !important;
|
||||
z-index: 10 !important;
|
||||
|
||||
span.title { display: inline !important; }
|
||||
|
||||
a {
|
||||
display: block !important;
|
||||
text-align: center !important;
|
||||
text-decoration: none !important;
|
||||
padding-top: 1px !important;
|
||||
|
||||
&.expandSource { display: none !important; }
|
||||
}
|
||||
}
|
||||
|
||||
&.ie {
|
||||
font-size: .9em !important;
|
||||
padding: 1px 0 1px 0 !important;
|
||||
|
||||
.toolbar {
|
||||
line-height: 8px !important;
|
||||
a {
|
||||
padding-top: 0px !important;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Print view.
|
||||
// Colors are based on the default theme without background.
|
||||
&.printing {
|
||||
.line.alt1 .content,
|
||||
.line.alt2 .content,
|
||||
.line.highlighted .number,
|
||||
.line.highlighted.alt1 .content,
|
||||
.line.highlighted.alt2 .content { background: none !important; }
|
||||
|
||||
// Gutter line numbers
|
||||
.line {
|
||||
.number { color: #bbbbbb !important; }
|
||||
// Add border to the lines
|
||||
.content { color: black !important; }
|
||||
}
|
||||
|
||||
// Toolbar when visible
|
||||
.toolbar { display: none !important; }
|
||||
a { text-decoration: none !important; }
|
||||
.plain, .plain a { color: black !important; }
|
||||
.comments, .comments a { color: #008200 !important; }
|
||||
.string, .string a { color: blue !important; }
|
||||
.keyword {
|
||||
color: #006699 !important;
|
||||
font-weight: bold !important;
|
||||
}
|
||||
.preprocessor { color: gray !important; }
|
||||
.variable { color: #aa7700 !important; }
|
||||
.value { color: #009900 !important; }
|
||||
.functions { color: #ff1493 !important; }
|
||||
.constants { color: #0066cc !important; }
|
||||
.script { font-weight: bold !important; }
|
||||
.color1, .color1 a { color: gray !important; }
|
||||
.color2, .color2 a { color: #ff1493 !important; }
|
||||
.color3, .color3 a { color: red !important; }
|
||||
.break, .break a { color: black !important; }
|
||||
}
|
||||
}
|
||||
2
assets/js/syntaxhighlighter/compass/shCoreDefault.scss
Normal file
2
assets/js/syntaxhighlighter/compass/shCoreDefault.scss
Normal file
@@ -0,0 +1,2 @@
|
||||
@import "shCore.scss";
|
||||
@import "shThemeDefault.scss";
|
||||
2
assets/js/syntaxhighlighter/compass/shCoreDjango.scss
Normal file
2
assets/js/syntaxhighlighter/compass/shCoreDjango.scss
Normal file
@@ -0,0 +1,2 @@
|
||||
@import "shCore.scss";
|
||||
@import "shThemeDjango.scss";
|
||||
2
assets/js/syntaxhighlighter/compass/shCoreEclipse.scss
Normal file
2
assets/js/syntaxhighlighter/compass/shCoreEclipse.scss
Normal file
@@ -0,0 +1,2 @@
|
||||
@import "shCore.scss";
|
||||
@import "shThemeEclipse.scss";
|
||||
2
assets/js/syntaxhighlighter/compass/shCoreEmacs.scss
Normal file
2
assets/js/syntaxhighlighter/compass/shCoreEmacs.scss
Normal file
@@ -0,0 +1,2 @@
|
||||
@import "shCore.scss";
|
||||
@import "shThemeEmacs.scss";
|
||||
@@ -0,0 +1,2 @@
|
||||
@import "shCore.scss";
|
||||
@import "shThemeFadeToGrey.scss";
|
||||
2
assets/js/syntaxhighlighter/compass/shCoreMDUltra.scss
Normal file
2
assets/js/syntaxhighlighter/compass/shCoreMDUltra.scss
Normal file
@@ -0,0 +1,2 @@
|
||||
@import "shCore.scss";
|
||||
@import "shThemeMDUltra.scss";
|
||||
2
assets/js/syntaxhighlighter/compass/shCoreMidnight.scss
Normal file
2
assets/js/syntaxhighlighter/compass/shCoreMidnight.scss
Normal file
@@ -0,0 +1,2 @@
|
||||
@import "shCore.scss";
|
||||
@import "shThemeMidnight.scss";
|
||||
2
assets/js/syntaxhighlighter/compass/shCoreRDark.scss
Normal file
2
assets/js/syntaxhighlighter/compass/shCoreRDark.scss
Normal file
@@ -0,0 +1,2 @@
|
||||
@import "shCore.scss";
|
||||
@import "shThemeRDark.scss";
|
||||
7
assets/js/syntaxhighlighter/compass/shThemeDefault.scss
Normal file
7
assets/js/syntaxhighlighter/compass/shThemeDefault.scss
Normal file
@@ -0,0 +1,7 @@
|
||||
// Default Syntax Highlighter theme.
|
||||
|
||||
@import "_theme_template.scss";
|
||||
|
||||
.syntaxhighlighter {
|
||||
.keyword { font-weight: bold !important; }
|
||||
}
|
||||
36
assets/js/syntaxhighlighter/compass/shThemeDjango.scss
Normal file
36
assets/js/syntaxhighlighter/compass/shThemeDjango.scss
Normal file
@@ -0,0 +1,36 @@
|
||||
// Django SyntaxHighlighter theme
|
||||
|
||||
$background: #0a2b1d !default;
|
||||
|
||||
$line_highlighted_background: #233729 !default;
|
||||
$line_highlighted_number: white !default;
|
||||
|
||||
$gutter_text: #497958 !default;
|
||||
$gutter_border_color: #41a83e !default;
|
||||
|
||||
$toolbar_collapsed_a: #96dd3b !default;
|
||||
$toolbar_collapsed_a_hover: #fff !default;
|
||||
$toolbar_collapsed_background: #000 !default;
|
||||
|
||||
$toolbar_a: #fff !default;
|
||||
$toolbar_a_hover: #ffe862 !default;
|
||||
|
||||
$code_plain: #f8f8f8 !default;
|
||||
$code_comments: #336442 !default;
|
||||
$code_string: #9df39f !default;
|
||||
$code_keyword: #96dd3b !default;
|
||||
$code_preprocessor: #91bb9e !default;
|
||||
$code_variable: #ffaa3e !default;
|
||||
$code_value: #f7e741 !default;
|
||||
$code_functions: #ffaa3e !default;
|
||||
$code_constants: #e0e8ff !default;
|
||||
$code_color1: #eb939a !default;
|
||||
$code_color2: #91bb9e !default;
|
||||
$code_color3: #edef7d !default;
|
||||
|
||||
@import "_theme_template.scss";
|
||||
|
||||
.syntaxhighlighter {
|
||||
.comments { font-style: italic !important; }
|
||||
.keyword { font-weight: bold !important; }
|
||||
}
|
||||
48
assets/js/syntaxhighlighter/compass/shThemeEclipse.scss
Normal file
48
assets/js/syntaxhighlighter/compass/shThemeEclipse.scss
Normal file
@@ -0,0 +1,48 @@
|
||||
// Eclipse IDE SyntaxHighlighter color theme
|
||||
// (C) Code-House
|
||||
// :http//blog.code-house.org/2009/10/xml-i-adnotacje-kod-ogolnego-przeznaczenia-i-jpa/
|
||||
|
||||
$background: #fff !default;
|
||||
|
||||
$line_highlighted_background: #c3defe !default;
|
||||
$line_highlighted_number: #fff !default;
|
||||
|
||||
$gutter_text: #787878 !default;
|
||||
$gutter_border_color: #d4d0c8 !default;
|
||||
|
||||
$toolbar_collapsed_a: #3f5fbf !default;
|
||||
$toolbar_collapsed_a_hover: #aa7700 !default;
|
||||
$toolbar_collapsed_background: #fff !default;
|
||||
|
||||
$toolbar_a: #a0a0a0 !default;
|
||||
$toolbar_a_hover: red !default;
|
||||
|
||||
$code_plain: black !default;
|
||||
$code_comments: #3f5fbf !default;
|
||||
$code_string: #2a00ff !default;
|
||||
$code_keyword: #7f0055 !default;
|
||||
$code_preprocessor: #646464 !default;
|
||||
$code_variable: #aa7700 !default;
|
||||
$code_value: #009900 !default;
|
||||
$code_functions: #ff1493 !default;
|
||||
$code_constants: #0066cc !default;
|
||||
$code_color1: gray !default;
|
||||
$code_color2: #ff1493 !default;
|
||||
$code_color3: red !default;
|
||||
|
||||
@import "_theme_template.scss";
|
||||
|
||||
.syntaxhighlighter {
|
||||
.keyword { font-weight: bold !important; }
|
||||
|
||||
.xml {
|
||||
.keyword {
|
||||
color: #3f7f7f !important;
|
||||
font-weight: normal !important; }
|
||||
.color1, .color1 a { color: #7f007f !important; }
|
||||
.string {
|
||||
font-style: italic !important;
|
||||
color: #2a00ff !important;
|
||||
}
|
||||
}
|
||||
}
|
||||
32
assets/js/syntaxhighlighter/compass/shThemeEmacs.scss
Normal file
32
assets/js/syntaxhighlighter/compass/shThemeEmacs.scss
Normal file
@@ -0,0 +1,32 @@
|
||||
// Emacs SyntaxHighlighter theme based on theme by Joshua Emmons
|
||||
// http://www.skia.net/
|
||||
|
||||
$background: black !default;
|
||||
|
||||
$line_highlighted_background: #2A3133 !default;
|
||||
$line_highlighted_number: white !default;
|
||||
|
||||
$gutter_text: #d3d3d3 !default;
|
||||
$gutter_border_color: #990000 !default;
|
||||
|
||||
$toolbar_collapsed_a: #ebdb8d !default;
|
||||
$toolbar_collapsed_a_hover: #ff7d27 !default;
|
||||
$toolbar_collapsed_background: black !default;
|
||||
|
||||
$toolbar_a: #fff !default;
|
||||
$toolbar_a_hover: #9ccff4 !default;
|
||||
|
||||
$code_plain: #d3d3d3 !default;
|
||||
$code_comments: #ff7d27 !default;
|
||||
$code_string: #ff9e7b !default;
|
||||
$code_keyword: aqua !default;
|
||||
$code_preprocessor: #aec4de !default;
|
||||
$code_variable: #ffaa3e !default;
|
||||
$code_value: #009900 !default;
|
||||
$code_functions: #81cef9 !default;
|
||||
$code_constants: #ff9e7b !default;
|
||||
$code_color1: #ebdb8d !default;
|
||||
$code_color2: #ff7d27 !default;
|
||||
$code_color3: #aec4de !default;
|
||||
|
||||
@import "_theme_template.scss";
|
||||
36
assets/js/syntaxhighlighter/compass/shThemeFadeToGrey.scss
Normal file
36
assets/js/syntaxhighlighter/compass/shThemeFadeToGrey.scss
Normal file
@@ -0,0 +1,36 @@
|
||||
// Fade to Grey SyntaxHighlighter theme based on theme by Brasten Sager
|
||||
// :http//www.ibrasten.com/
|
||||
|
||||
$background: #121212 !default;
|
||||
|
||||
$line_highlighted_background: #2C2C29 !default;
|
||||
$line_highlighted_number: white !default;
|
||||
|
||||
$gutter_text: #afafaf !default;
|
||||
$gutter_border_color: #3185b9 !default;
|
||||
|
||||
$toolbar_collapsed_a: #3185b9 !default;
|
||||
$toolbar_collapsed_a_hover: #d01d33 !default;
|
||||
$toolbar_collapsed_background: black !default;
|
||||
|
||||
$toolbar_a: #fff !default;
|
||||
$toolbar_a_hover: #96daff !default;
|
||||
|
||||
$code_plain: white !default;
|
||||
$code_comments: #696854 !default;
|
||||
$code_string: #e3e658 !default;
|
||||
$code_keyword: #d01d33 !default;
|
||||
$code_preprocessor: #435a5f !default;
|
||||
$code_variable: #898989 !default;
|
||||
$code_value: #009900 !default;
|
||||
$code_functions: #aaaaaa !default;
|
||||
$code_constants: #96daff !default;
|
||||
$code_color1: #ffc074 !default;
|
||||
$code_color2: #4a8cdb !default;
|
||||
$code_color3: #96daff !default;
|
||||
|
||||
@import "_theme_template.scss";
|
||||
|
||||
.syntaxhighlighter {
|
||||
.functions { font-weight: bold !important; }
|
||||
}
|
||||
32
assets/js/syntaxhighlighter/compass/shThemeMDUltra.scss
Normal file
32
assets/js/syntaxhighlighter/compass/shThemeMDUltra.scss
Normal file
@@ -0,0 +1,32 @@
|
||||
// MDUltra SyntaxHighlighter theme based on Midnight Theme
|
||||
// http://www.mddev.co.uk/
|
||||
|
||||
$background: #222222 !default;
|
||||
|
||||
$line_highlighted_background: #253e5a !default;
|
||||
$line_highlighted_number: white !default;
|
||||
|
||||
$gutter_text: #38566f !default;
|
||||
$gutter_border_color: #435a5f !default;
|
||||
|
||||
$toolbar_collapsed_a: #428bdd !default;
|
||||
$toolbar_collapsed_a_hover: lime !default;
|
||||
$toolbar_collapsed_background: black !default;
|
||||
|
||||
$toolbar_a: #aaaaff !default;
|
||||
$toolbar_a_hover: #9ccff4 !default;
|
||||
|
||||
$code_plain: lime !default;
|
||||
$code_comments: #428bdd !default;
|
||||
$code_string: lime !default;
|
||||
$code_keyword: #aaaaff !default;
|
||||
$code_preprocessor: #8aa6c1 !default;
|
||||
$code_variable: aqua !default;
|
||||
$code_value: #f7e741 !default;
|
||||
$code_functions: #ff8000 !default;
|
||||
$code_constants: yellow !default;
|
||||
$code_color1: red !default;
|
||||
$code_color2: yellow !default;
|
||||
$code_color3: #ffaa3e !default;
|
||||
|
||||
@import "_theme_template.scss";
|
||||
32
assets/js/syntaxhighlighter/compass/shThemeMidnight.scss
Normal file
32
assets/js/syntaxhighlighter/compass/shThemeMidnight.scss
Normal file
@@ -0,0 +1,32 @@
|
||||
// Midnight SyntaxHighlighter theme based on theme by J.D. Myers
|
||||
// http://webdesign.lsnjd.com/
|
||||
|
||||
$background: #0f192a !default;
|
||||
|
||||
$line_highlighted_background: #253e5a !default;
|
||||
$line_highlighted_number: #38566f !default;
|
||||
|
||||
$gutter_text: #afafaf !default;
|
||||
$gutter_border_color: #435a5f !default;
|
||||
|
||||
$toolbar_collapsed_a: #428bdd !default;
|
||||
$toolbar_collapsed_a_hover: #1dc116 !default;
|
||||
$toolbar_collapsed_background: #000 !default;
|
||||
|
||||
$toolbar_a: #D1EDFF !default;
|
||||
$toolbar_a_hover: #8aa6c1 !default;
|
||||
|
||||
$code_plain: #d1edff !default;
|
||||
$code_comments: #428bdd !default;
|
||||
$code_string: #1dc116 !default;
|
||||
$code_keyword: #b43d3d !default;
|
||||
$code_preprocessor: #8aa6c1 !default;
|
||||
$code_variable: #ffaa3e !default;
|
||||
$code_value: #f7e741 !default;
|
||||
$code_functions: #ffaa3e !default;
|
||||
$code_constants: #e0e8ff !default;
|
||||
$code_color1: #f8bb00 !default;
|
||||
$code_color2: white !default;
|
||||
$code_color3: #ffaa3e !default;
|
||||
|
||||
@import "_theme_template.scss";
|
||||
32
assets/js/syntaxhighlighter/compass/shThemeRDark.scss
Normal file
32
assets/js/syntaxhighlighter/compass/shThemeRDark.scss
Normal file
@@ -0,0 +1,32 @@
|
||||
// RDark SyntaxHighlighter theme based on theme by Radu Dineiu
|
||||
// http://www.vim.org/scripts/script.php?script_id=1732
|
||||
|
||||
$background: #1b2426 !default;
|
||||
|
||||
$line_highlighted_background: #323E41 !default;
|
||||
$line_highlighted_number: #b9bdb6 !default;
|
||||
|
||||
$gutter_text: #afafaf !default;
|
||||
$gutter_border_color: #435a5f !default;
|
||||
|
||||
$toolbar_collapsed_a: #5ba1cf !default;
|
||||
$toolbar_collapsed_a_hover: #5ce638 !default;
|
||||
$toolbar_collapsed_background: #000 !default;
|
||||
|
||||
$toolbar_a: #fff !default;
|
||||
$toolbar_a_hover: #e0e8ff !default;
|
||||
|
||||
$code_plain: #b9bdb6 !default;
|
||||
$code_comments: #878a85 !default;
|
||||
$code_string: #5ce638 !default;
|
||||
$code_keyword: #5ba1cf !default;
|
||||
$code_preprocessor: #435a5f !default;
|
||||
$code_variable: #ffaa3e !default;
|
||||
$code_value: #009900 !default;
|
||||
$code_functions: #ffaa3e !default;
|
||||
$code_constants: #e0e8ff !default;
|
||||
$code_color1: #e0e8ff !default;
|
||||
$code_color2: white !default;
|
||||
$code_color3: #ffaa3e !default;
|
||||
|
||||
@import "_theme_template.scss";
|
||||
22
assets/js/syntaxhighlighter/index.html
Normal file
22
assets/js/syntaxhighlighter/index.html
Normal file
@@ -0,0 +1,22 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
||||
<title>Hello SyntaxHighlighter</title>
|
||||
<script type="text/javascript" src="scripts/shCore.js"></script>
|
||||
<script type="text/javascript" src="scripts/shBrushJScript.js"></script>
|
||||
<link type="text/css" rel="stylesheet" href="styles/shCoreDefault.css"/>
|
||||
<script type="text/javascript">SyntaxHighlighter.all();</script>
|
||||
</head>
|
||||
|
||||
<body style="background: white; font-family: Helvetica">
|
||||
|
||||
<h1>Hello SyntaxHighlighter</h1>
|
||||
<pre class="brush: js;">
|
||||
function helloSyntaxHighlighter()
|
||||
{
|
||||
return "hi!";
|
||||
}
|
||||
</pre>
|
||||
|
||||
</html>
|
||||
17
assets/js/syntaxhighlighter/scripts/shAutoloader.js
Normal file
17
assets/js/syntaxhighlighter/scripts/shAutoloader.js
Normal file
@@ -0,0 +1,17 @@
|
||||
/**
|
||||
* SyntaxHighlighter
|
||||
* http://alexgorbatchev.com/SyntaxHighlighter
|
||||
*
|
||||
* SyntaxHighlighter is donationware. If you are using it, please donate.
|
||||
* http://alexgorbatchev.com/SyntaxHighlighter/donate.html
|
||||
*
|
||||
* @version
|
||||
* 3.0.83 (July 02 2010)
|
||||
*
|
||||
* @copyright
|
||||
* Copyright (C) 2004-2010 Alex Gorbatchev.
|
||||
*
|
||||
* @license
|
||||
* Dual licensed under the MIT and GPL licenses.
|
||||
*/
|
||||
eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('(2(){1 h=5;h.I=2(){2 n(c,a){4(1 d=0;d<c.9;d++)i[c[d]]=a}2 o(c){1 a=r.H("J"),d=3;a.K=c;a.M="L/t";a.G="t";a.u=a.v=2(){6(!d&&(!8.7||8.7=="F"||8.7=="z")){d=q;e[c]=q;a:{4(1 p y e)6(e[p]==3)B a;j&&5.C(k)}a.u=a.v=x;a.D.O(a)}};r.N.R(a)}1 f=Q,l=h.P(),i={},e={},j=3,k=x,b;5.T=2(c){k=c;j=q};4(b=0;b<f.9;b++){1 m=f[b].w?f[b]:f[b].S(/\\s+/),g=m.w();n(m,g)}4(b=0;b<l.9;b++)6(g=i[l[b].E.A]){e[g]=3;o(g)}}})();',56,56,'|var|function|false|for|SyntaxHighlighter|if|readyState|this|length|||||||||||||||||true|document||javascript|onload|onreadystatechange|pop|null|in|complete|brush|break|highlight|parentNode|params|loaded|language|createElement|autoloader|script|src|text|type|body|removeChild|findElements|arguments|appendChild|split|all'.split('|'),0,{}))
|
||||
59
assets/js/syntaxhighlighter/scripts/shBrushAS3.js
vendored
Normal file
59
assets/js/syntaxhighlighter/scripts/shBrushAS3.js
vendored
Normal file
@@ -0,0 +1,59 @@
|
||||
/**
|
||||
* SyntaxHighlighter
|
||||
* http://alexgorbatchev.com/SyntaxHighlighter
|
||||
*
|
||||
* SyntaxHighlighter is donationware. If you are using it, please donate.
|
||||
* http://alexgorbatchev.com/SyntaxHighlighter/donate.html
|
||||
*
|
||||
* @version
|
||||
* 3.0.83 (July 02 2010)
|
||||
*
|
||||
* @copyright
|
||||
* Copyright (C) 2004-2010 Alex Gorbatchev.
|
||||
*
|
||||
* @license
|
||||
* Dual licensed under the MIT and GPL licenses.
|
||||
*/
|
||||
;(function()
|
||||
{
|
||||
// CommonJS
|
||||
typeof(require) != 'undefined' ? SyntaxHighlighter = require('shCore').SyntaxHighlighter : null;
|
||||
|
||||
function Brush()
|
||||
{
|
||||
// Created by Peter Atoria @ http://iAtoria.com
|
||||
|
||||
var inits = 'class interface function package';
|
||||
|
||||
var keywords = '-Infinity ...rest Array as AS3 Boolean break case catch const continue Date decodeURI ' +
|
||||
'decodeURIComponent default delete do dynamic each else encodeURI encodeURIComponent escape ' +
|
||||
'extends false final finally flash_proxy for get if implements import in include Infinity ' +
|
||||
'instanceof int internal is isFinite isNaN isXMLName label namespace NaN native new null ' +
|
||||
'Null Number Object object_proxy override parseFloat parseInt private protected public ' +
|
||||
'return set static String super switch this throw true try typeof uint undefined unescape ' +
|
||||
'use void while with'
|
||||
;
|
||||
|
||||
this.regexList = [
|
||||
{ regex: SyntaxHighlighter.regexLib.singleLineCComments, css: 'comments' }, // one line comments
|
||||
{ regex: SyntaxHighlighter.regexLib.multiLineCComments, css: 'comments' }, // multiline comments
|
||||
{ regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // double quoted strings
|
||||
{ regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // single quoted strings
|
||||
{ regex: /\b([\d]+(\.[\d]+)?|0x[a-f0-9]+)\b/gi, css: 'value' }, // numbers
|
||||
{ regex: new RegExp(this.getKeywords(inits), 'gm'), css: 'color3' }, // initializations
|
||||
{ regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' }, // keywords
|
||||
{ regex: new RegExp('var', 'gm'), css: 'variable' }, // variable
|
||||
{ regex: new RegExp('trace', 'gm'), css: 'color1' } // trace
|
||||
];
|
||||
|
||||
this.forHtmlScript(SyntaxHighlighter.regexLib.scriptScriptTags);
|
||||
};
|
||||
|
||||
Brush.prototype = new SyntaxHighlighter.Highlighter();
|
||||
Brush.aliases = ['actionscript3', 'as3'];
|
||||
|
||||
SyntaxHighlighter.brushes.AS3 = Brush;
|
||||
|
||||
// CommonJS
|
||||
typeof(exports) != 'undefined' ? exports.Brush = Brush : null;
|
||||
})();
|
||||
75
assets/js/syntaxhighlighter/scripts/shBrushAppleScript.js
vendored
Normal file
75
assets/js/syntaxhighlighter/scripts/shBrushAppleScript.js
vendored
Normal file
File diff suppressed because one or more lines are too long
59
assets/js/syntaxhighlighter/scripts/shBrushBash.js
vendored
Normal file
59
assets/js/syntaxhighlighter/scripts/shBrushBash.js
vendored
Normal file
@@ -0,0 +1,59 @@
|
||||
/**
|
||||
* SyntaxHighlighter
|
||||
* http://alexgorbatchev.com/SyntaxHighlighter
|
||||
*
|
||||
* SyntaxHighlighter is donationware. If you are using it, please donate.
|
||||
* http://alexgorbatchev.com/SyntaxHighlighter/donate.html
|
||||
*
|
||||
* @version
|
||||
* 3.0.83 (July 02 2010)
|
||||
*
|
||||
* @copyright
|
||||
* Copyright (C) 2004-2010 Alex Gorbatchev.
|
||||
*
|
||||
* @license
|
||||
* Dual licensed under the MIT and GPL licenses.
|
||||
*/
|
||||
;(function()
|
||||
{
|
||||
// CommonJS
|
||||
typeof(require) != 'undefined' ? SyntaxHighlighter = require('shCore').SyntaxHighlighter : null;
|
||||
|
||||
function Brush()
|
||||
{
|
||||
var keywords = 'if fi then elif else for do done until while break continue case function return in eq ne ge le';
|
||||
var commands = 'alias apropos awk basename bash bc bg builtin bzip2 cal cat cd cfdisk chgrp chmod chown chroot' +
|
||||
'cksum clear cmp comm command cp cron crontab csplit cut date dc dd ddrescue declare df ' +
|
||||
'diff diff3 dig dir dircolors dirname dirs du echo egrep eject enable env ethtool eval ' +
|
||||
'exec exit expand export expr false fdformat fdisk fg fgrep file find fmt fold format ' +
|
||||
'free fsck ftp gawk getopts grep groups gzip hash head history hostname id ifconfig ' +
|
||||
'import install join kill less let ln local locate logname logout look lpc lpr lprint ' +
|
||||
'lprintd lprintq lprm ls lsof make man mkdir mkfifo mkisofs mknod more mount mtools ' +
|
||||
'mv netstat nice nl nohup nslookup open op passwd paste pathchk ping popd pr printcap ' +
|
||||
'printenv printf ps pushd pwd quota quotacheck quotactl ram rcp read readonly renice ' +
|
||||
'remsync rm rmdir rsync screen scp sdiff sed select seq set sftp shift shopt shutdown ' +
|
||||
'sleep sort source split ssh strace su sudo sum symlink sync tail tar tee test time ' +
|
||||
'times touch top traceroute trap tr true tsort tty type ulimit umask umount unalias ' +
|
||||
'uname unexpand uniq units unset unshar useradd usermod users uuencode uudecode v vdir ' +
|
||||
'vi watch wc whereis which who whoami Wget xargs yes'
|
||||
;
|
||||
|
||||
this.regexList = [
|
||||
{ regex: /^#!.*$/gm, css: 'preprocessor bold' },
|
||||
{ regex: /\/[\w-\/]+/gm, css: 'plain' },
|
||||
{ regex: SyntaxHighlighter.regexLib.singleLinePerlComments, css: 'comments' }, // one line comments
|
||||
{ regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // double quoted strings
|
||||
{ regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // single quoted strings
|
||||
{ regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' }, // keywords
|
||||
{ regex: new RegExp(this.getKeywords(commands), 'gm'), css: 'functions' } // commands
|
||||
];
|
||||
}
|
||||
|
||||
Brush.prototype = new SyntaxHighlighter.Highlighter();
|
||||
Brush.aliases = ['bash', 'shell'];
|
||||
|
||||
SyntaxHighlighter.brushes.Bash = Brush;
|
||||
|
||||
// CommonJS
|
||||
typeof(exports) != 'undefined' ? exports.Brush = Brush : null;
|
||||
})();
|
||||
65
assets/js/syntaxhighlighter/scripts/shBrushCSharp.js
vendored
Normal file
65
assets/js/syntaxhighlighter/scripts/shBrushCSharp.js
vendored
Normal file
@@ -0,0 +1,65 @@
|
||||
/**
|
||||
* SyntaxHighlighter
|
||||
* http://alexgorbatchev.com/SyntaxHighlighter
|
||||
*
|
||||
* SyntaxHighlighter is donationware. If you are using it, please donate.
|
||||
* http://alexgorbatchev.com/SyntaxHighlighter/donate.html
|
||||
*
|
||||
* @version
|
||||
* 3.0.83 (July 02 2010)
|
||||
*
|
||||
* @copyright
|
||||
* Copyright (C) 2004-2010 Alex Gorbatchev.
|
||||
*
|
||||
* @license
|
||||
* Dual licensed under the MIT and GPL licenses.
|
||||
*/
|
||||
;(function()
|
||||
{
|
||||
// CommonJS
|
||||
typeof(require) != 'undefined' ? SyntaxHighlighter = require('shCore').SyntaxHighlighter : null;
|
||||
|
||||
function Brush()
|
||||
{
|
||||
var keywords = 'abstract as base bool break byte case catch char checked class const ' +
|
||||
'continue decimal default delegate do double else enum event explicit ' +
|
||||
'extern false finally fixed float for foreach get goto if implicit in int ' +
|
||||
'interface internal is lock long namespace new null object operator out ' +
|
||||
'override params private protected public readonly ref return sbyte sealed set ' +
|
||||
'short sizeof stackalloc static string struct switch this throw true try ' +
|
||||
'typeof uint ulong unchecked unsafe ushort using virtual void while';
|
||||
|
||||
function fixComments(match, regexInfo)
|
||||
{
|
||||
var css = (match[0].indexOf("///") == 0)
|
||||
? 'color1'
|
||||
: 'comments'
|
||||
;
|
||||
|
||||
return [new SyntaxHighlighter.Match(match[0], match.index, css)];
|
||||
}
|
||||
|
||||
this.regexList = [
|
||||
{ regex: SyntaxHighlighter.regexLib.singleLineCComments, func : fixComments }, // one line comments
|
||||
{ regex: SyntaxHighlighter.regexLib.multiLineCComments, css: 'comments' }, // multiline comments
|
||||
{ regex: /@"(?:[^"]|"")*"/g, css: 'string' }, // @-quoted strings
|
||||
{ regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // strings
|
||||
{ regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // strings
|
||||
{ regex: /^\s*#.*/gm, css: 'preprocessor' }, // preprocessor tags like #region and #endregion
|
||||
{ regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' }, // c# keyword
|
||||
{ regex: /\bpartial(?=\s+(?:class|interface|struct)\b)/g, css: 'keyword' }, // contextual keyword: 'partial'
|
||||
{ regex: /\byield(?=\s+(?:return|break)\b)/g, css: 'keyword' } // contextual keyword: 'yield'
|
||||
];
|
||||
|
||||
this.forHtmlScript(SyntaxHighlighter.regexLib.aspScriptTags);
|
||||
};
|
||||
|
||||
Brush.prototype = new SyntaxHighlighter.Highlighter();
|
||||
Brush.aliases = ['c#', 'c-sharp', 'csharp'];
|
||||
|
||||
SyntaxHighlighter.brushes.CSharp = Brush;
|
||||
|
||||
// CommonJS
|
||||
typeof(exports) != 'undefined' ? exports.Brush = Brush : null;
|
||||
})();
|
||||
|
||||
100
assets/js/syntaxhighlighter/scripts/shBrushColdFusion.js
vendored
Normal file
100
assets/js/syntaxhighlighter/scripts/shBrushColdFusion.js
vendored
Normal file
@@ -0,0 +1,100 @@
|
||||
/**
|
||||
* SyntaxHighlighter
|
||||
* http://alexgorbatchev.com/SyntaxHighlighter
|
||||
*
|
||||
* SyntaxHighlighter is donationware. If you are using it, please donate.
|
||||
* http://alexgorbatchev.com/SyntaxHighlighter/donate.html
|
||||
*
|
||||
* @version
|
||||
* 3.0.83 (July 02 2010)
|
||||
*
|
||||
* @copyright
|
||||
* Copyright (C) 2004-2010 Alex Gorbatchev.
|
||||
*
|
||||
* @license
|
||||
* Dual licensed under the MIT and GPL licenses.
|
||||
*/
|
||||
;(function()
|
||||
{
|
||||
// CommonJS
|
||||
typeof(require) != 'undefined' ? SyntaxHighlighter = require('shCore').SyntaxHighlighter : null;
|
||||
|
||||
function Brush()
|
||||
{
|
||||
// Contributed by Jen
|
||||
// http://www.jensbits.com/2009/05/14/coldfusion-brush-for-syntaxhighlighter-plus
|
||||
|
||||
var funcs = 'Abs ACos AddSOAPRequestHeader AddSOAPResponseHeader AjaxLink AjaxOnLoad ArrayAppend ArrayAvg ArrayClear ArrayDeleteAt ' +
|
||||
'ArrayInsertAt ArrayIsDefined ArrayIsEmpty ArrayLen ArrayMax ArrayMin ArraySet ArraySort ArraySum ArraySwap ArrayToList ' +
|
||||
'Asc ASin Atn BinaryDecode BinaryEncode BitAnd BitMaskClear BitMaskRead BitMaskSet BitNot BitOr BitSHLN BitSHRN BitXor ' +
|
||||
'Ceiling CharsetDecode CharsetEncode Chr CJustify Compare CompareNoCase Cos CreateDate CreateDateTime CreateObject ' +
|
||||
'CreateODBCDate CreateODBCDateTime CreateODBCTime CreateTime CreateTimeSpan CreateUUID DateAdd DateCompare DateConvert ' +
|
||||
'DateDiff DateFormat DatePart Day DayOfWeek DayOfWeekAsString DayOfYear DaysInMonth DaysInYear DE DecimalFormat DecrementValue ' +
|
||||
'Decrypt DecryptBinary DeleteClientVariable DeserializeJSON DirectoryExists DollarFormat DotNetToCFType Duplicate Encrypt ' +
|
||||
'EncryptBinary Evaluate Exp ExpandPath FileClose FileCopy FileDelete FileExists FileIsEOF FileMove FileOpen FileRead ' +
|
||||
'FileReadBinary FileReadLine FileSetAccessMode FileSetAttribute FileSetLastModified FileWrite Find FindNoCase FindOneOf ' +
|
||||
'FirstDayOfMonth Fix FormatBaseN GenerateSecretKey GetAuthUser GetBaseTagData GetBaseTagList GetBaseTemplatePath ' +
|
||||
'GetClientVariablesList GetComponentMetaData GetContextRoot GetCurrentTemplatePath GetDirectoryFromPath GetEncoding ' +
|
||||
'GetException GetFileFromPath GetFileInfo GetFunctionList GetGatewayHelper GetHttpRequestData GetHttpTimeString ' +
|
||||
'GetK2ServerDocCount GetK2ServerDocCountLimit GetLocale GetLocaleDisplayName GetLocalHostIP GetMetaData GetMetricData ' +
|
||||
'GetPageContext GetPrinterInfo GetProfileSections GetProfileString GetReadableImageFormats GetSOAPRequest GetSOAPRequestHeader ' +
|
||||
'GetSOAPResponse GetSOAPResponseHeader GetTempDirectory GetTempFile GetTemplatePath GetTickCount GetTimeZoneInfo GetToken ' +
|
||||
'GetUserRoles GetWriteableImageFormats Hash Hour HTMLCodeFormat HTMLEditFormat IIf ImageAddBorder ImageBlur ImageClearRect ' +
|
||||
'ImageCopy ImageCrop ImageDrawArc ImageDrawBeveledRect ImageDrawCubicCurve ImageDrawLine ImageDrawLines ImageDrawOval ' +
|
||||
'ImageDrawPoint ImageDrawQuadraticCurve ImageDrawRect ImageDrawRoundRect ImageDrawText ImageFlip ImageGetBlob ImageGetBufferedImage ' +
|
||||
'ImageGetEXIFTag ImageGetHeight ImageGetIPTCTag ImageGetWidth ImageGrayscale ImageInfo ImageNegative ImageNew ImageOverlay ImagePaste ' +
|
||||
'ImageRead ImageReadBase64 ImageResize ImageRotate ImageRotateDrawingAxis ImageScaleToFit ImageSetAntialiasing ImageSetBackgroundColor ' +
|
||||
'ImageSetDrawingColor ImageSetDrawingStroke ImageSetDrawingTransparency ImageSharpen ImageShear ImageShearDrawingAxis ImageTranslate ' +
|
||||
'ImageTranslateDrawingAxis ImageWrite ImageWriteBase64 ImageXORDrawingMode IncrementValue InputBaseN Insert Int IsArray IsBinary ' +
|
||||
'IsBoolean IsCustomFunction IsDate IsDDX IsDebugMode IsDefined IsImage IsImageFile IsInstanceOf IsJSON IsLeapYear IsLocalHost ' +
|
||||
'IsNumeric IsNumericDate IsObject IsPDFFile IsPDFObject IsQuery IsSimpleValue IsSOAPRequest IsStruct IsUserInAnyRole IsUserInRole ' +
|
||||
'IsUserLoggedIn IsValid IsWDDX IsXML IsXmlAttribute IsXmlDoc IsXmlElem IsXmlNode IsXmlRoot JavaCast JSStringFormat LCase Left Len ' +
|
||||
'ListAppend ListChangeDelims ListContains ListContainsNoCase ListDeleteAt ListFind ListFindNoCase ListFirst ListGetAt ListInsertAt ' +
|
||||
'ListLast ListLen ListPrepend ListQualify ListRest ListSetAt ListSort ListToArray ListValueCount ListValueCountNoCase LJustify Log ' +
|
||||
'Log10 LSCurrencyFormat LSDateFormat LSEuroCurrencyFormat LSIsCurrency LSIsDate LSIsNumeric LSNumberFormat LSParseCurrency LSParseDateTime ' +
|
||||
'LSParseEuroCurrency LSParseNumber LSTimeFormat LTrim Max Mid Min Minute Month MonthAsString Now NumberFormat ParagraphFormat ParseDateTime ' +
|
||||
'Pi PrecisionEvaluate PreserveSingleQuotes Quarter QueryAddColumn QueryAddRow QueryConvertForGrid QueryNew QuerySetCell QuotedValueList Rand ' +
|
||||
'Randomize RandRange REFind REFindNoCase ReleaseComObject REMatch REMatchNoCase RemoveChars RepeatString Replace ReplaceList ReplaceNoCase ' +
|
||||
'REReplace REReplaceNoCase Reverse Right RJustify Round RTrim Second SendGatewayMessage SerializeJSON SetEncoding SetLocale SetProfileString ' +
|
||||
'SetVariable Sgn Sin Sleep SpanExcluding SpanIncluding Sqr StripCR StructAppend StructClear StructCopy StructCount StructDelete StructFind ' +
|
||||
'StructFindKey StructFindValue StructGet StructInsert StructIsEmpty StructKeyArray StructKeyExists StructKeyList StructKeyList StructNew ' +
|
||||
'StructSort StructUpdate Tan TimeFormat ToBase64 ToBinary ToScript ToString Trim UCase URLDecode URLEncodedFormat URLSessionFormat Val ' +
|
||||
'ValueList VerifyClient Week Wrap Wrap WriteOutput XmlChildPos XmlElemNew XmlFormat XmlGetNodeType XmlNew XmlParse XmlSearch XmlTransform ' +
|
||||
'XmlValidate Year YesNoFormat';
|
||||
|
||||
var keywords = 'cfabort cfajaximport cfajaxproxy cfapplet cfapplication cfargument cfassociate cfbreak cfcache cfcalendar ' +
|
||||
'cfcase cfcatch cfchart cfchartdata cfchartseries cfcol cfcollection cfcomponent cfcontent cfcookie cfdbinfo ' +
|
||||
'cfdefaultcase cfdirectory cfdiv cfdocument cfdocumentitem cfdocumentsection cfdump cfelse cfelseif cferror ' +
|
||||
'cfexchangecalendar cfexchangeconnection cfexchangecontact cfexchangefilter cfexchangemail cfexchangetask ' +
|
||||
'cfexecute cfexit cffeed cffile cfflush cfform cfformgroup cfformitem cfftp cffunction cfgrid cfgridcolumn ' +
|
||||
'cfgridrow cfgridupdate cfheader cfhtmlhead cfhttp cfhttpparam cfif cfimage cfimport cfinclude cfindex ' +
|
||||
'cfinput cfinsert cfinterface cfinvoke cfinvokeargument cflayout cflayoutarea cfldap cflocation cflock cflog ' +
|
||||
'cflogin cfloginuser cflogout cfloop cfmail cfmailparam cfmailpart cfmenu cfmenuitem cfmodule cfNTauthenticate ' +
|
||||
'cfobject cfobjectcache cfoutput cfparam cfpdf cfpdfform cfpdfformparam cfpdfparam cfpdfsubform cfpod cfpop ' +
|
||||
'cfpresentation cfpresentationslide cfpresenter cfprint cfprocessingdirective cfprocparam cfprocresult ' +
|
||||
'cfproperty cfquery cfqueryparam cfregistry cfreport cfreportparam cfrethrow cfreturn cfsavecontent cfschedule ' +
|
||||
'cfscript cfsearch cfselect cfset cfsetting cfsilent cfslider cfsprydataset cfstoredproc cfswitch cftable ' +
|
||||
'cftextarea cfthread cfthrow cftimer cftooltip cftrace cftransaction cftree cftreeitem cftry cfupdate cfwddx ' +
|
||||
'cfwindow cfxml cfzip cfzipparam';
|
||||
|
||||
var operators = 'all and any between cross in join like not null or outer some';
|
||||
|
||||
this.regexList = [
|
||||
{ regex: new RegExp('--(.*)$', 'gm'), css: 'comments' }, // one line and multiline comments
|
||||
{ regex: SyntaxHighlighter.regexLib.xmlComments, css: 'comments' }, // single quoted strings
|
||||
{ regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // double quoted strings
|
||||
{ regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // single quoted strings
|
||||
{ regex: new RegExp(this.getKeywords(funcs), 'gmi'), css: 'functions' }, // functions
|
||||
{ regex: new RegExp(this.getKeywords(operators), 'gmi'), css: 'color1' }, // operators and such
|
||||
{ regex: new RegExp(this.getKeywords(keywords), 'gmi'), css: 'keyword' } // keyword
|
||||
];
|
||||
}
|
||||
|
||||
Brush.prototype = new SyntaxHighlighter.Highlighter();
|
||||
Brush.aliases = ['coldfusion','cf'];
|
||||
|
||||
SyntaxHighlighter.brushes.ColdFusion = Brush;
|
||||
|
||||
// CommonJS
|
||||
typeof(exports) != 'undefined' ? exports.Brush = Brush : null;
|
||||
})();
|
||||
97
assets/js/syntaxhighlighter/scripts/shBrushCpp.js
vendored
Normal file
97
assets/js/syntaxhighlighter/scripts/shBrushCpp.js
vendored
Normal file
@@ -0,0 +1,97 @@
|
||||
/**
|
||||
* SyntaxHighlighter
|
||||
* http://alexgorbatchev.com/SyntaxHighlighter
|
||||
*
|
||||
* SyntaxHighlighter is donationware. If you are using it, please donate.
|
||||
* http://alexgorbatchev.com/SyntaxHighlighter/donate.html
|
||||
*
|
||||
* @version
|
||||
* 3.0.83 (July 02 2010)
|
||||
*
|
||||
* @copyright
|
||||
* Copyright (C) 2004-2010 Alex Gorbatchev.
|
||||
*
|
||||
* @license
|
||||
* Dual licensed under the MIT and GPL licenses.
|
||||
*/
|
||||
;(function()
|
||||
{
|
||||
// CommonJS
|
||||
typeof(require) != 'undefined' ? SyntaxHighlighter = require('shCore').SyntaxHighlighter : null;
|
||||
|
||||
function Brush()
|
||||
{
|
||||
// Copyright 2006 Shin, YoungJin
|
||||
|
||||
var datatypes = 'ATOM BOOL BOOLEAN BYTE CHAR COLORREF DWORD DWORDLONG DWORD_PTR ' +
|
||||
'DWORD32 DWORD64 FLOAT HACCEL HALF_PTR HANDLE HBITMAP HBRUSH ' +
|
||||
'HCOLORSPACE HCONV HCONVLIST HCURSOR HDC HDDEDATA HDESK HDROP HDWP ' +
|
||||
'HENHMETAFILE HFILE HFONT HGDIOBJ HGLOBAL HHOOK HICON HINSTANCE HKEY ' +
|
||||
'HKL HLOCAL HMENU HMETAFILE HMODULE HMONITOR HPALETTE HPEN HRESULT ' +
|
||||
'HRGN HRSRC HSZ HWINSTA HWND INT INT_PTR INT32 INT64 LANGID LCID LCTYPE ' +
|
||||
'LGRPID LONG LONGLONG LONG_PTR LONG32 LONG64 LPARAM LPBOOL LPBYTE LPCOLORREF ' +
|
||||
'LPCSTR LPCTSTR LPCVOID LPCWSTR LPDWORD LPHANDLE LPINT LPLONG LPSTR LPTSTR ' +
|
||||
'LPVOID LPWORD LPWSTR LRESULT PBOOL PBOOLEAN PBYTE PCHAR PCSTR PCTSTR PCWSTR ' +
|
||||
'PDWORDLONG PDWORD_PTR PDWORD32 PDWORD64 PFLOAT PHALF_PTR PHANDLE PHKEY PINT ' +
|
||||
'PINT_PTR PINT32 PINT64 PLCID PLONG PLONGLONG PLONG_PTR PLONG32 PLONG64 POINTER_32 ' +
|
||||
'POINTER_64 PSHORT PSIZE_T PSSIZE_T PSTR PTBYTE PTCHAR PTSTR PUCHAR PUHALF_PTR ' +
|
||||
'PUINT PUINT_PTR PUINT32 PUINT64 PULONG PULONGLONG PULONG_PTR PULONG32 PULONG64 ' +
|
||||
'PUSHORT PVOID PWCHAR PWORD PWSTR SC_HANDLE SC_LOCK SERVICE_STATUS_HANDLE SHORT ' +
|
||||
'SIZE_T SSIZE_T TBYTE TCHAR UCHAR UHALF_PTR UINT UINT_PTR UINT32 UINT64 ULONG ' +
|
||||
'ULONGLONG ULONG_PTR ULONG32 ULONG64 USHORT USN VOID WCHAR WORD WPARAM WPARAM WPARAM ' +
|
||||
'char bool short int __int32 __int64 __int8 __int16 long float double __wchar_t ' +
|
||||
'clock_t _complex _dev_t _diskfree_t div_t ldiv_t _exception _EXCEPTION_POINTERS ' +
|
||||
'FILE _finddata_t _finddatai64_t _wfinddata_t _wfinddatai64_t __finddata64_t ' +
|
||||
'__wfinddata64_t _FPIEEE_RECORD fpos_t _HEAPINFO _HFILE lconv intptr_t ' +
|
||||
'jmp_buf mbstate_t _off_t _onexit_t _PNH ptrdiff_t _purecall_handler ' +
|
||||
'sig_atomic_t size_t _stat __stat64 _stati64 terminate_function ' +
|
||||
'time_t __time64_t _timeb __timeb64 tm uintptr_t _utimbuf ' +
|
||||
'va_list wchar_t wctrans_t wctype_t wint_t signed';
|
||||
|
||||
var keywords = 'break case catch class const __finally __exception __try ' +
|
||||
'const_cast continue private public protected __declspec ' +
|
||||
'default delete deprecated dllexport dllimport do dynamic_cast ' +
|
||||
'else enum explicit extern if for friend goto inline ' +
|
||||
'mutable naked namespace new noinline noreturn nothrow ' +
|
||||
'register reinterpret_cast return selectany ' +
|
||||
'sizeof static static_cast struct switch template this ' +
|
||||
'thread throw true false try typedef typeid typename union ' +
|
||||
'using uuid virtual void volatile whcar_t while';
|
||||
|
||||
var functions = 'assert isalnum isalpha iscntrl isdigit isgraph islower isprint' +
|
||||
'ispunct isspace isupper isxdigit tolower toupper errno localeconv ' +
|
||||
'setlocale acos asin atan atan2 ceil cos cosh exp fabs floor fmod ' +
|
||||
'frexp ldexp log log10 modf pow sin sinh sqrt tan tanh jmp_buf ' +
|
||||
'longjmp setjmp raise signal sig_atomic_t va_arg va_end va_start ' +
|
||||
'clearerr fclose feof ferror fflush fgetc fgetpos fgets fopen ' +
|
||||
'fprintf fputc fputs fread freopen fscanf fseek fsetpos ftell ' +
|
||||
'fwrite getc getchar gets perror printf putc putchar puts remove ' +
|
||||
'rename rewind scanf setbuf setvbuf sprintf sscanf tmpfile tmpnam ' +
|
||||
'ungetc vfprintf vprintf vsprintf abort abs atexit atof atoi atol ' +
|
||||
'bsearch calloc div exit free getenv labs ldiv malloc mblen mbstowcs ' +
|
||||
'mbtowc qsort rand realloc srand strtod strtol strtoul system ' +
|
||||
'wcstombs wctomb memchr memcmp memcpy memmove memset strcat strchr ' +
|
||||
'strcmp strcoll strcpy strcspn strerror strlen strncat strncmp ' +
|
||||
'strncpy strpbrk strrchr strspn strstr strtok strxfrm asctime ' +
|
||||
'clock ctime difftime gmtime localtime mktime strftime time';
|
||||
|
||||
this.regexList = [
|
||||
{ regex: SyntaxHighlighter.regexLib.singleLineCComments, css: 'comments' }, // one line comments
|
||||
{ regex: SyntaxHighlighter.regexLib.multiLineCComments, css: 'comments' }, // multiline comments
|
||||
{ regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // strings
|
||||
{ regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // strings
|
||||
{ regex: /^ *#.*/gm, css: 'preprocessor' },
|
||||
{ regex: new RegExp(this.getKeywords(datatypes), 'gm'), css: 'color1 bold' },
|
||||
{ regex: new RegExp(this.getKeywords(functions), 'gm'), css: 'functions bold' },
|
||||
{ regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword bold' }
|
||||
];
|
||||
};
|
||||
|
||||
Brush.prototype = new SyntaxHighlighter.Highlighter();
|
||||
Brush.aliases = ['cpp', 'c'];
|
||||
|
||||
SyntaxHighlighter.brushes.Cpp = Brush;
|
||||
|
||||
// CommonJS
|
||||
typeof(exports) != 'undefined' ? exports.Brush = Brush : null;
|
||||
})();
|
||||
91
assets/js/syntaxhighlighter/scripts/shBrushCss.js
vendored
Normal file
91
assets/js/syntaxhighlighter/scripts/shBrushCss.js
vendored
Normal file
@@ -0,0 +1,91 @@
|
||||
/**
|
||||
* SyntaxHighlighter
|
||||
* http://alexgorbatchev.com/SyntaxHighlighter
|
||||
*
|
||||
* SyntaxHighlighter is donationware. If you are using it, please donate.
|
||||
* http://alexgorbatchev.com/SyntaxHighlighter/donate.html
|
||||
*
|
||||
* @version
|
||||
* 3.0.83 (July 02 2010)
|
||||
*
|
||||
* @copyright
|
||||
* Copyright (C) 2004-2010 Alex Gorbatchev.
|
||||
*
|
||||
* @license
|
||||
* Dual licensed under the MIT and GPL licenses.
|
||||
*/
|
||||
;(function()
|
||||
{
|
||||
// CommonJS
|
||||
typeof(require) != 'undefined' ? SyntaxHighlighter = require('shCore').SyntaxHighlighter : null;
|
||||
|
||||
function Brush()
|
||||
{
|
||||
function getKeywordsCSS(str)
|
||||
{
|
||||
return '\\b([a-z_]|)' + str.replace(/ /g, '(?=:)\\b|\\b([a-z_\\*]|\\*|)') + '(?=:)\\b';
|
||||
};
|
||||
|
||||
function getValuesCSS(str)
|
||||
{
|
||||
return '\\b' + str.replace(/ /g, '(?!-)(?!:)\\b|\\b()') + '\:\\b';
|
||||
};
|
||||
|
||||
var keywords = 'ascent azimuth background-attachment background-color background-image background-position ' +
|
||||
'background-repeat background baseline bbox border-collapse border-color border-spacing border-style border-top ' +
|
||||
'border-right border-bottom border-left border-top-color border-right-color border-bottom-color border-left-color ' +
|
||||
'border-top-style border-right-style border-bottom-style border-left-style border-top-width border-right-width ' +
|
||||
'border-bottom-width border-left-width border-width border bottom cap-height caption-side centerline clear clip color ' +
|
||||
'content counter-increment counter-reset cue-after cue-before cue cursor definition-src descent direction display ' +
|
||||
'elevation empty-cells float font-size-adjust font-family font-size font-stretch font-style font-variant font-weight font ' +
|
||||
'height left letter-spacing line-height list-style-image list-style-position list-style-type list-style margin-top ' +
|
||||
'margin-right margin-bottom margin-left margin marker-offset marks mathline max-height max-width min-height min-width orphans ' +
|
||||
'outline-color outline-style outline-width outline overflow padding-top padding-right padding-bottom padding-left padding page ' +
|
||||
'page-break-after page-break-before page-break-inside pause pause-after pause-before pitch pitch-range play-during position ' +
|
||||
'quotes right richness size slope src speak-header speak-numeral speak-punctuation speak speech-rate stemh stemv stress ' +
|
||||
'table-layout text-align top text-decoration text-indent text-shadow text-transform unicode-bidi unicode-range units-per-em ' +
|
||||
'vertical-align visibility voice-family volume white-space widows width widths word-spacing x-height z-index';
|
||||
|
||||
var values = 'above absolute all always aqua armenian attr aural auto avoid baseline behind below bidi-override black blink block blue bold bolder '+
|
||||
'both bottom braille capitalize caption center center-left center-right circle close-quote code collapse compact condensed '+
|
||||
'continuous counter counters crop cross crosshair cursive dashed decimal decimal-leading-zero default digits disc dotted double '+
|
||||
'embed embossed e-resize expanded extra-condensed extra-expanded fantasy far-left far-right fast faster fixed format fuchsia '+
|
||||
'gray green groove handheld hebrew help hidden hide high higher icon inline-table inline inset inside invert italic '+
|
||||
'justify landscape large larger left-side left leftwards level lighter lime line-through list-item local loud lower-alpha '+
|
||||
'lowercase lower-greek lower-latin lower-roman lower low ltr marker maroon medium message-box middle mix move narrower '+
|
||||
'navy ne-resize no-close-quote none no-open-quote no-repeat normal nowrap n-resize nw-resize oblique olive once open-quote outset '+
|
||||
'outside overline pointer portrait pre print projection purple red relative repeat repeat-x repeat-y rgb ridge right right-side '+
|
||||
'rightwards rtl run-in screen scroll semi-condensed semi-expanded separate se-resize show silent silver slower slow '+
|
||||
'small small-caps small-caption smaller soft solid speech spell-out square s-resize static status-bar sub super sw-resize '+
|
||||
'table-caption table-cell table-column table-column-group table-footer-group table-header-group table-row table-row-group teal '+
|
||||
'text-bottom text-top thick thin top transparent tty tv ultra-condensed ultra-expanded underline upper-alpha uppercase upper-latin '+
|
||||
'upper-roman url visible wait white wider w-resize x-fast x-high x-large x-loud x-low x-slow x-small x-soft xx-large xx-small yellow';
|
||||
|
||||
var fonts = '[mM]onospace [tT]ahoma [vV]erdana [aA]rial [hH]elvetica [sS]ans-serif [sS]erif [cC]ourier mono sans serif';
|
||||
|
||||
this.regexList = [
|
||||
{ regex: SyntaxHighlighter.regexLib.multiLineCComments, css: 'comments' }, // multiline comments
|
||||
{ regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // double quoted strings
|
||||
{ regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // single quoted strings
|
||||
{ regex: /\#[a-fA-F0-9]{3,6}/g, css: 'value' }, // html colors
|
||||
{ regex: /(-?\d+)(\.\d+)?(px|em|pt|\:|\%|)/g, css: 'value' }, // sizes
|
||||
{ regex: /!important/g, css: 'color3' }, // !important
|
||||
{ regex: new RegExp(getKeywordsCSS(keywords), 'gm'), css: 'keyword' }, // keywords
|
||||
{ regex: new RegExp(getValuesCSS(values), 'g'), css: 'value' }, // values
|
||||
{ regex: new RegExp(this.getKeywords(fonts), 'g'), css: 'color1' } // fonts
|
||||
];
|
||||
|
||||
this.forHtmlScript({
|
||||
left: /(<|<)\s*style.*?(>|>)/gi,
|
||||
right: /(<|<)\/\s*style\s*(>|>)/gi
|
||||
});
|
||||
};
|
||||
|
||||
Brush.prototype = new SyntaxHighlighter.Highlighter();
|
||||
Brush.aliases = ['css'];
|
||||
|
||||
SyntaxHighlighter.brushes.CSS = Brush;
|
||||
|
||||
// CommonJS
|
||||
typeof(exports) != 'undefined' ? exports.Brush = Brush : null;
|
||||
})();
|
||||
55
assets/js/syntaxhighlighter/scripts/shBrushDelphi.js
vendored
Normal file
55
assets/js/syntaxhighlighter/scripts/shBrushDelphi.js
vendored
Normal file
@@ -0,0 +1,55 @@
|
||||
/**
|
||||
* SyntaxHighlighter
|
||||
* http://alexgorbatchev.com/SyntaxHighlighter
|
||||
*
|
||||
* SyntaxHighlighter is donationware. If you are using it, please donate.
|
||||
* http://alexgorbatchev.com/SyntaxHighlighter/donate.html
|
||||
*
|
||||
* @version
|
||||
* 3.0.83 (July 02 2010)
|
||||
*
|
||||
* @copyright
|
||||
* Copyright (C) 2004-2010 Alex Gorbatchev.
|
||||
*
|
||||
* @license
|
||||
* Dual licensed under the MIT and GPL licenses.
|
||||
*/
|
||||
;(function()
|
||||
{
|
||||
// CommonJS
|
||||
typeof(require) != 'undefined' ? SyntaxHighlighter = require('shCore').SyntaxHighlighter : null;
|
||||
|
||||
function Brush()
|
||||
{
|
||||
var keywords = 'abs addr and ansichar ansistring array as asm begin boolean byte cardinal ' +
|
||||
'case char class comp const constructor currency destructor div do double ' +
|
||||
'downto else end except exports extended false file finalization finally ' +
|
||||
'for function goto if implementation in inherited int64 initialization ' +
|
||||
'integer interface is label library longint longword mod nil not object ' +
|
||||
'of on or packed pansichar pansistring pchar pcurrency pdatetime pextended ' +
|
||||
'pint64 pointer private procedure program property pshortstring pstring ' +
|
||||
'pvariant pwidechar pwidestring protected public published raise real real48 ' +
|
||||
'record repeat set shl shortint shortstring shr single smallint string then ' +
|
||||
'threadvar to true try type unit until uses val var varirnt while widechar ' +
|
||||
'widestring with word write writeln xor';
|
||||
|
||||
this.regexList = [
|
||||
{ regex: /\(\*[\s\S]*?\*\)/gm, css: 'comments' }, // multiline comments (* *)
|
||||
{ regex: /{(?!\$)[\s\S]*?}/gm, css: 'comments' }, // multiline comments { }
|
||||
{ regex: SyntaxHighlighter.regexLib.singleLineCComments, css: 'comments' }, // one line
|
||||
{ regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // strings
|
||||
{ regex: /\{\$[a-zA-Z]+ .+\}/g, css: 'color1' }, // compiler Directives and Region tags
|
||||
{ regex: /\b[\d\.]+\b/g, css: 'value' }, // numbers 12345
|
||||
{ regex: /\$[a-zA-Z0-9]+\b/g, css: 'value' }, // numbers $F5D3
|
||||
{ regex: new RegExp(this.getKeywords(keywords), 'gmi'), css: 'keyword' } // keyword
|
||||
];
|
||||
};
|
||||
|
||||
Brush.prototype = new SyntaxHighlighter.Highlighter();
|
||||
Brush.aliases = ['delphi', 'pascal', 'pas'];
|
||||
|
||||
SyntaxHighlighter.brushes.Delphi = Brush;
|
||||
|
||||
// CommonJS
|
||||
typeof(exports) != 'undefined' ? exports.Brush = Brush : null;
|
||||
})();
|
||||
41
assets/js/syntaxhighlighter/scripts/shBrushDiff.js
vendored
Normal file
41
assets/js/syntaxhighlighter/scripts/shBrushDiff.js
vendored
Normal file
@@ -0,0 +1,41 @@
|
||||
/**
|
||||
* SyntaxHighlighter
|
||||
* http://alexgorbatchev.com/SyntaxHighlighter
|
||||
*
|
||||
* SyntaxHighlighter is donationware. If you are using it, please donate.
|
||||
* http://alexgorbatchev.com/SyntaxHighlighter/donate.html
|
||||
*
|
||||
* @version
|
||||
* 3.0.83 (July 02 2010)
|
||||
*
|
||||
* @copyright
|
||||
* Copyright (C) 2004-2010 Alex Gorbatchev.
|
||||
*
|
||||
* @license
|
||||
* Dual licensed under the MIT and GPL licenses.
|
||||
*/
|
||||
;(function()
|
||||
{
|
||||
// CommonJS
|
||||
typeof(require) != 'undefined' ? SyntaxHighlighter = require('shCore').SyntaxHighlighter : null;
|
||||
|
||||
function Brush()
|
||||
{
|
||||
this.regexList = [
|
||||
{ regex: /^\+\+\+.*$/gm, css: 'color2' },
|
||||
{ regex: /^\-\-\-.*$/gm, css: 'color2' },
|
||||
{ regex: /^\s.*$/gm, css: 'color1' },
|
||||
{ regex: /^@@.*@@$/gm, css: 'variable' },
|
||||
{ regex: /^\+[^\+]{1}.*$/gm, css: 'string' },
|
||||
{ regex: /^\-[^\-]{1}.*$/gm, css: 'comments' }
|
||||
];
|
||||
};
|
||||
|
||||
Brush.prototype = new SyntaxHighlighter.Highlighter();
|
||||
Brush.aliases = ['diff', 'patch'];
|
||||
|
||||
SyntaxHighlighter.brushes.Diff = Brush;
|
||||
|
||||
// CommonJS
|
||||
typeof(exports) != 'undefined' ? exports.Brush = Brush : null;
|
||||
})();
|
||||
52
assets/js/syntaxhighlighter/scripts/shBrushErlang.js
vendored
Normal file
52
assets/js/syntaxhighlighter/scripts/shBrushErlang.js
vendored
Normal file
@@ -0,0 +1,52 @@
|
||||
/**
|
||||
* SyntaxHighlighter
|
||||
* http://alexgorbatchev.com/SyntaxHighlighter
|
||||
*
|
||||
* SyntaxHighlighter is donationware. If you are using it, please donate.
|
||||
* http://alexgorbatchev.com/SyntaxHighlighter/donate.html
|
||||
*
|
||||
* @version
|
||||
* 3.0.83 (July 02 2010)
|
||||
*
|
||||
* @copyright
|
||||
* Copyright (C) 2004-2010 Alex Gorbatchev.
|
||||
*
|
||||
* @license
|
||||
* Dual licensed under the MIT and GPL licenses.
|
||||
*/
|
||||
;(function()
|
||||
{
|
||||
// CommonJS
|
||||
typeof(require) != 'undefined' ? SyntaxHighlighter = require('shCore').SyntaxHighlighter : null;
|
||||
|
||||
function Brush()
|
||||
{
|
||||
// Contributed by Jean-Lou Dupont
|
||||
// http://jldupont.blogspot.com/2009/06/erlang-syntax-highlighter.html
|
||||
|
||||
// According to: http://erlang.org/doc/reference_manual/introduction.html#1.5
|
||||
var keywords = 'after and andalso band begin bnot bor bsl bsr bxor '+
|
||||
'case catch cond div end fun if let not of or orelse '+
|
||||
'query receive rem try when xor'+
|
||||
// additional
|
||||
' module export import define';
|
||||
|
||||
this.regexList = [
|
||||
{ regex: new RegExp("[A-Z][A-Za-z0-9_]+", 'g'), css: 'constants' },
|
||||
{ regex: new RegExp("\\%.+", 'gm'), css: 'comments' },
|
||||
{ regex: new RegExp("\\?[A-Za-z0-9_]+", 'g'), css: 'preprocessor' },
|
||||
{ regex: new RegExp("[a-z0-9_]+:[a-z0-9_]+", 'g'), css: 'functions' },
|
||||
{ regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' },
|
||||
{ regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' },
|
||||
{ regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' }
|
||||
];
|
||||
};
|
||||
|
||||
Brush.prototype = new SyntaxHighlighter.Highlighter();
|
||||
Brush.aliases = ['erl', 'erlang'];
|
||||
|
||||
SyntaxHighlighter.brushes.Erland = Brush;
|
||||
|
||||
// CommonJS
|
||||
typeof(exports) != 'undefined' ? exports.Brush = Brush : null;
|
||||
})();
|
||||
67
assets/js/syntaxhighlighter/scripts/shBrushGroovy.js
vendored
Normal file
67
assets/js/syntaxhighlighter/scripts/shBrushGroovy.js
vendored
Normal file
@@ -0,0 +1,67 @@
|
||||
/**
|
||||
* SyntaxHighlighter
|
||||
* http://alexgorbatchev.com/SyntaxHighlighter
|
||||
*
|
||||
* SyntaxHighlighter is donationware. If you are using it, please donate.
|
||||
* http://alexgorbatchev.com/SyntaxHighlighter/donate.html
|
||||
*
|
||||
* @version
|
||||
* 3.0.83 (July 02 2010)
|
||||
*
|
||||
* @copyright
|
||||
* Copyright (C) 2004-2010 Alex Gorbatchev.
|
||||
*
|
||||
* @license
|
||||
* Dual licensed under the MIT and GPL licenses.
|
||||
*/
|
||||
;(function()
|
||||
{
|
||||
// CommonJS
|
||||
typeof(require) != 'undefined' ? SyntaxHighlighter = require('shCore').SyntaxHighlighter : null;
|
||||
|
||||
function Brush()
|
||||
{
|
||||
// Contributed by Andres Almiray
|
||||
// http://jroller.com/aalmiray/entry/nice_source_code_syntax_highlighter
|
||||
|
||||
var keywords = 'as assert break case catch class continue def default do else extends finally ' +
|
||||
'if in implements import instanceof interface new package property return switch ' +
|
||||
'throw throws try while public protected private static';
|
||||
var types = 'void boolean byte char short int long float double';
|
||||
var constants = 'null';
|
||||
var methods = 'allProperties count get size '+
|
||||
'collect each eachProperty eachPropertyName eachWithIndex find findAll ' +
|
||||
'findIndexOf grep inject max min reverseEach sort ' +
|
||||
'asImmutable asSynchronized flatten intersect join pop reverse subMap toList ' +
|
||||
'padRight padLeft contains eachMatch toCharacter toLong toUrl tokenize ' +
|
||||
'eachFile eachFileRecurse eachB yte eachLine readBytes readLine getText ' +
|
||||
'splitEachLine withReader append encodeBase64 decodeBase64 filterLine ' +
|
||||
'transformChar transformLine withOutputStream withPrintWriter withStream ' +
|
||||
'withStreams withWriter withWriterAppend write writeLine '+
|
||||
'dump inspect invokeMethod print println step times upto use waitForOrKill '+
|
||||
'getText';
|
||||
|
||||
this.regexList = [
|
||||
{ regex: SyntaxHighlighter.regexLib.singleLineCComments, css: 'comments' }, // one line comments
|
||||
{ regex: SyntaxHighlighter.regexLib.multiLineCComments, css: 'comments' }, // multiline comments
|
||||
{ regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // strings
|
||||
{ regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // strings
|
||||
{ regex: /""".*"""/g, css: 'string' }, // GStrings
|
||||
{ regex: new RegExp('\\b([\\d]+(\\.[\\d]+)?|0x[a-f0-9]+)\\b', 'gi'), css: 'value' }, // numbers
|
||||
{ regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' }, // goovy keyword
|
||||
{ regex: new RegExp(this.getKeywords(types), 'gm'), css: 'color1' }, // goovy/java type
|
||||
{ regex: new RegExp(this.getKeywords(constants), 'gm'), css: 'constants' }, // constants
|
||||
{ regex: new RegExp(this.getKeywords(methods), 'gm'), css: 'functions' } // methods
|
||||
];
|
||||
|
||||
this.forHtmlScript(SyntaxHighlighter.regexLib.aspScriptTags);
|
||||
}
|
||||
|
||||
Brush.prototype = new SyntaxHighlighter.Highlighter();
|
||||
Brush.aliases = ['groovy'];
|
||||
|
||||
SyntaxHighlighter.brushes.Groovy = Brush;
|
||||
|
||||
// CommonJS
|
||||
typeof(exports) != 'undefined' ? exports.Brush = Brush : null;
|
||||
})();
|
||||
52
assets/js/syntaxhighlighter/scripts/shBrushJScript.js
vendored
Normal file
52
assets/js/syntaxhighlighter/scripts/shBrushJScript.js
vendored
Normal file
@@ -0,0 +1,52 @@
|
||||
/**
|
||||
* SyntaxHighlighter
|
||||
* http://alexgorbatchev.com/SyntaxHighlighter
|
||||
*
|
||||
* SyntaxHighlighter is donationware. If you are using it, please donate.
|
||||
* http://alexgorbatchev.com/SyntaxHighlighter/donate.html
|
||||
*
|
||||
* @version
|
||||
* 3.0.83 (July 02 2010)
|
||||
*
|
||||
* @copyright
|
||||
* Copyright (C) 2004-2010 Alex Gorbatchev.
|
||||
*
|
||||
* @license
|
||||
* Dual licensed under the MIT and GPL licenses.
|
||||
*/
|
||||
;(function()
|
||||
{
|
||||
// CommonJS
|
||||
typeof(require) != 'undefined' ? SyntaxHighlighter = require('shCore').SyntaxHighlighter : null;
|
||||
|
||||
function Brush()
|
||||
{
|
||||
var keywords = 'break case catch continue ' +
|
||||
'default delete do else false ' +
|
||||
'for function if in instanceof ' +
|
||||
'new null return super switch ' +
|
||||
'this throw true try typeof var while with'
|
||||
;
|
||||
|
||||
var r = SyntaxHighlighter.regexLib;
|
||||
|
||||
this.regexList = [
|
||||
{ regex: r.multiLineDoubleQuotedString, css: 'string' }, // double quoted strings
|
||||
{ regex: r.multiLineSingleQuotedString, css: 'string' }, // single quoted strings
|
||||
{ regex: r.singleLineCComments, css: 'comments' }, // one line comments
|
||||
{ regex: r.multiLineCComments, css: 'comments' }, // multiline comments
|
||||
{ regex: /\s*#.*/gm, css: 'preprocessor' }, // preprocessor tags like #region and #endregion
|
||||
{ regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' } // keywords
|
||||
];
|
||||
|
||||
this.forHtmlScript(r.scriptScriptTags);
|
||||
};
|
||||
|
||||
Brush.prototype = new SyntaxHighlighter.Highlighter();
|
||||
Brush.aliases = ['js', 'jscript', 'javascript'];
|
||||
|
||||
SyntaxHighlighter.brushes.JScript = Brush;
|
||||
|
||||
// CommonJS
|
||||
typeof(exports) != 'undefined' ? exports.Brush = Brush : null;
|
||||
})();
|
||||
57
assets/js/syntaxhighlighter/scripts/shBrushJava.js
vendored
Normal file
57
assets/js/syntaxhighlighter/scripts/shBrushJava.js
vendored
Normal file
@@ -0,0 +1,57 @@
|
||||
/**
|
||||
* SyntaxHighlighter
|
||||
* http://alexgorbatchev.com/SyntaxHighlighter
|
||||
*
|
||||
* SyntaxHighlighter is donationware. If you are using it, please donate.
|
||||
* http://alexgorbatchev.com/SyntaxHighlighter/donate.html
|
||||
*
|
||||
* @version
|
||||
* 3.0.83 (July 02 2010)
|
||||
*
|
||||
* @copyright
|
||||
* Copyright (C) 2004-2010 Alex Gorbatchev.
|
||||
*
|
||||
* @license
|
||||
* Dual licensed under the MIT and GPL licenses.
|
||||
*/
|
||||
;(function()
|
||||
{
|
||||
// CommonJS
|
||||
typeof(require) != 'undefined' ? SyntaxHighlighter = require('shCore').SyntaxHighlighter : null;
|
||||
|
||||
function Brush()
|
||||
{
|
||||
var keywords = 'abstract assert boolean break byte case catch char class const ' +
|
||||
'continue default do double else enum extends ' +
|
||||
'false final finally float for goto if implements import ' +
|
||||
'instanceof int interface long native new null ' +
|
||||
'package private protected public return ' +
|
||||
'short static strictfp super switch synchronized this throw throws true ' +
|
||||
'transient try void volatile while';
|
||||
|
||||
this.regexList = [
|
||||
{ regex: SyntaxHighlighter.regexLib.singleLineCComments, css: 'comments' }, // one line comments
|
||||
{ regex: /\/\*([^\*][\s\S]*)?\*\//gm, css: 'comments' }, // multiline comments
|
||||
{ regex: /\/\*(?!\*\/)\*[\s\S]*?\*\//gm, css: 'preprocessor' }, // documentation comments
|
||||
{ regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // strings
|
||||
{ regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // strings
|
||||
{ regex: /\b([\d]+(\.[\d]+)?|0x[a-f0-9]+)\b/gi, css: 'value' }, // numbers
|
||||
{ regex: /(?!\@interface\b)\@[\$\w]+\b/g, css: 'color1' }, // annotation @anno
|
||||
{ regex: /\@interface\b/g, css: 'color2' }, // @interface keyword
|
||||
{ regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' } // java keyword
|
||||
];
|
||||
|
||||
this.forHtmlScript({
|
||||
left : /(<|<)%[@!=]?/g,
|
||||
right : /%(>|>)/g
|
||||
});
|
||||
};
|
||||
|
||||
Brush.prototype = new SyntaxHighlighter.Highlighter();
|
||||
Brush.aliases = ['java'];
|
||||
|
||||
SyntaxHighlighter.brushes.Java = Brush;
|
||||
|
||||
// CommonJS
|
||||
typeof(exports) != 'undefined' ? exports.Brush = Brush : null;
|
||||
})();
|
||||
58
assets/js/syntaxhighlighter/scripts/shBrushJavaFX.js
vendored
Normal file
58
assets/js/syntaxhighlighter/scripts/shBrushJavaFX.js
vendored
Normal file
@@ -0,0 +1,58 @@
|
||||
/**
|
||||
* SyntaxHighlighter
|
||||
* http://alexgorbatchev.com/SyntaxHighlighter
|
||||
*
|
||||
* SyntaxHighlighter is donationware. If you are using it, please donate.
|
||||
* http://alexgorbatchev.com/SyntaxHighlighter/donate.html
|
||||
*
|
||||
* @version
|
||||
* 3.0.83 (July 02 2010)
|
||||
*
|
||||
* @copyright
|
||||
* Copyright (C) 2004-2010 Alex Gorbatchev.
|
||||
*
|
||||
* @license
|
||||
* Dual licensed under the MIT and GPL licenses.
|
||||
*/
|
||||
;(function()
|
||||
{
|
||||
// CommonJS
|
||||
typeof(require) != 'undefined' ? SyntaxHighlighter = require('shCore').SyntaxHighlighter : null;
|
||||
|
||||
function Brush()
|
||||
{
|
||||
// Contributed by Patrick Webster
|
||||
// http://patrickwebster.blogspot.com/2009/04/javafx-brush-for-syntaxhighlighter.html
|
||||
var datatypes = 'Boolean Byte Character Double Duration '
|
||||
+ 'Float Integer Long Number Short String Void'
|
||||
;
|
||||
|
||||
var keywords = 'abstract after and as assert at before bind bound break catch class '
|
||||
+ 'continue def delete else exclusive extends false finally first for from '
|
||||
+ 'function if import in indexof init insert instanceof into inverse last '
|
||||
+ 'lazy mixin mod nativearray new not null on or override package postinit '
|
||||
+ 'protected public public-init public-read replace return reverse sizeof '
|
||||
+ 'step super then this throw true try tween typeof var where while with '
|
||||
+ 'attribute let private readonly static trigger'
|
||||
;
|
||||
|
||||
this.regexList = [
|
||||
{ regex: SyntaxHighlighter.regexLib.singleLineCComments, css: 'comments' },
|
||||
{ regex: SyntaxHighlighter.regexLib.multiLineCComments, css: 'comments' },
|
||||
{ regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' },
|
||||
{ regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' },
|
||||
{ regex: /(-?\.?)(\b(\d*\.?\d+|\d+\.?\d*)(e[+-]?\d+)?|0x[a-f\d]+)\b\.?/gi, css: 'color2' }, // numbers
|
||||
{ regex: new RegExp(this.getKeywords(datatypes), 'gm'), css: 'variable' }, // datatypes
|
||||
{ regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' }
|
||||
];
|
||||
this.forHtmlScript(SyntaxHighlighter.regexLib.aspScriptTags);
|
||||
};
|
||||
|
||||
Brush.prototype = new SyntaxHighlighter.Highlighter();
|
||||
Brush.aliases = ['jfx', 'javafx'];
|
||||
|
||||
SyntaxHighlighter.brushes.JavaFX = Brush;
|
||||
|
||||
// CommonJS
|
||||
typeof(exports) != 'undefined' ? exports.Brush = Brush : null;
|
||||
})();
|
||||
72
assets/js/syntaxhighlighter/scripts/shBrushPerl.js
vendored
Normal file
72
assets/js/syntaxhighlighter/scripts/shBrushPerl.js
vendored
Normal file
@@ -0,0 +1,72 @@
|
||||
/**
|
||||
* SyntaxHighlighter
|
||||
* http://alexgorbatchev.com/SyntaxHighlighter
|
||||
*
|
||||
* SyntaxHighlighter is donationware. If you are using it, please donate.
|
||||
* http://alexgorbatchev.com/SyntaxHighlighter/donate.html
|
||||
*
|
||||
* @version
|
||||
* 3.0.83 (July 02 2010)
|
||||
*
|
||||
* @copyright
|
||||
* Copyright (C) 2004-2010 Alex Gorbatchev.
|
||||
*
|
||||
* @license
|
||||
* Dual licensed under the MIT and GPL licenses.
|
||||
*/
|
||||
;(function()
|
||||
{
|
||||
// CommonJS
|
||||
typeof(require) != 'undefined' ? SyntaxHighlighter = require('shCore').SyntaxHighlighter : null;
|
||||
|
||||
function Brush()
|
||||
{
|
||||
// Contributed by David Simmons-Duffin and Marty Kube
|
||||
|
||||
var funcs =
|
||||
'abs accept alarm atan2 bind binmode chdir chmod chomp chop chown chr ' +
|
||||
'chroot close closedir connect cos crypt defined delete each endgrent ' +
|
||||
'endhostent endnetent endprotoent endpwent endservent eof exec exists ' +
|
||||
'exp fcntl fileno flock fork format formline getc getgrent getgrgid ' +
|
||||
'getgrnam gethostbyaddr gethostbyname gethostent getlogin getnetbyaddr ' +
|
||||
'getnetbyname getnetent getpeername getpgrp getppid getpriority ' +
|
||||
'getprotobyname getprotobynumber getprotoent getpwent getpwnam getpwuid ' +
|
||||
'getservbyname getservbyport getservent getsockname getsockopt glob ' +
|
||||
'gmtime grep hex index int ioctl join keys kill lc lcfirst length link ' +
|
||||
'listen localtime lock log lstat map mkdir msgctl msgget msgrcv msgsnd ' +
|
||||
'oct open opendir ord pack pipe pop pos print printf prototype push ' +
|
||||
'quotemeta rand read readdir readline readlink readpipe recv rename ' +
|
||||
'reset reverse rewinddir rindex rmdir scalar seek seekdir select semctl ' +
|
||||
'semget semop send setgrent sethostent setnetent setpgrp setpriority ' +
|
||||
'setprotoent setpwent setservent setsockopt shift shmctl shmget shmread ' +
|
||||
'shmwrite shutdown sin sleep socket socketpair sort splice split sprintf ' +
|
||||
'sqrt srand stat study substr symlink syscall sysopen sysread sysseek ' +
|
||||
'system syswrite tell telldir time times tr truncate uc ucfirst umask ' +
|
||||
'undef unlink unpack unshift utime values vec wait waitpid warn write';
|
||||
|
||||
var keywords =
|
||||
'bless caller continue dbmclose dbmopen die do dump else elsif eval exit ' +
|
||||
'for foreach goto if import last local my next no our package redo ref ' +
|
||||
'require return sub tie tied unless untie until use wantarray while';
|
||||
|
||||
this.regexList = [
|
||||
{ regex: new RegExp('#[^!].*$', 'gm'), css: 'comments' },
|
||||
{ regex: new RegExp('^\\s*#!.*$', 'gm'), css: 'preprocessor' }, // shebang
|
||||
{ regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' },
|
||||
{ regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' },
|
||||
{ regex: new RegExp('(\\$|@|%)\\w+', 'g'), css: 'variable' },
|
||||
{ regex: new RegExp(this.getKeywords(funcs), 'gmi'), css: 'functions' },
|
||||
{ regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' }
|
||||
];
|
||||
|
||||
this.forHtmlScript(SyntaxHighlighter.regexLib.phpScriptTags);
|
||||
}
|
||||
|
||||
Brush.prototype = new SyntaxHighlighter.Highlighter();
|
||||
Brush.aliases = ['perl', 'Perl', 'pl'];
|
||||
|
||||
SyntaxHighlighter.brushes.Perl = Brush;
|
||||
|
||||
// CommonJS
|
||||
typeof(exports) != 'undefined' ? exports.Brush = Brush : null;
|
||||
})();
|
||||
88
assets/js/syntaxhighlighter/scripts/shBrushPhp.js
vendored
Normal file
88
assets/js/syntaxhighlighter/scripts/shBrushPhp.js
vendored
Normal file
@@ -0,0 +1,88 @@
|
||||
/**
|
||||
* SyntaxHighlighter
|
||||
* http://alexgorbatchev.com/SyntaxHighlighter
|
||||
*
|
||||
* SyntaxHighlighter is donationware. If you are using it, please donate.
|
||||
* http://alexgorbatchev.com/SyntaxHighlighter/donate.html
|
||||
*
|
||||
* @version
|
||||
* 3.0.83 (July 02 2010)
|
||||
*
|
||||
* @copyright
|
||||
* Copyright (C) 2004-2010 Alex Gorbatchev.
|
||||
*
|
||||
* @license
|
||||
* Dual licensed under the MIT and GPL licenses.
|
||||
*/
|
||||
;(function()
|
||||
{
|
||||
// CommonJS
|
||||
typeof(require) != 'undefined' ? SyntaxHighlighter = require('shCore').SyntaxHighlighter : null;
|
||||
|
||||
function Brush()
|
||||
{
|
||||
var funcs = 'abs acos acosh addcslashes addslashes ' +
|
||||
'array_change_key_case array_chunk array_combine array_count_values array_diff '+
|
||||
'array_diff_assoc array_diff_key array_diff_uassoc array_diff_ukey array_fill '+
|
||||
'array_filter array_flip array_intersect array_intersect_assoc array_intersect_key '+
|
||||
'array_intersect_uassoc array_intersect_ukey array_key_exists array_keys array_map '+
|
||||
'array_merge array_merge_recursive array_multisort array_pad array_pop array_product '+
|
||||
'array_push array_rand array_reduce array_reverse array_search array_shift '+
|
||||
'array_slice array_splice array_sum array_udiff array_udiff_assoc '+
|
||||
'array_udiff_uassoc array_uintersect array_uintersect_assoc '+
|
||||
'array_uintersect_uassoc array_unique array_unshift array_values array_walk '+
|
||||
'array_walk_recursive atan atan2 atanh base64_decode base64_encode base_convert '+
|
||||
'basename bcadd bccomp bcdiv bcmod bcmul bindec bindtextdomain bzclose bzcompress '+
|
||||
'bzdecompress bzerrno bzerror bzerrstr bzflush bzopen bzread bzwrite ceil chdir '+
|
||||
'checkdate checkdnsrr chgrp chmod chop chown chr chroot chunk_split class_exists '+
|
||||
'closedir closelog copy cos cosh count count_chars date decbin dechex decoct '+
|
||||
'deg2rad delete ebcdic2ascii echo empty end ereg ereg_replace eregi eregi_replace error_log '+
|
||||
'error_reporting escapeshellarg escapeshellcmd eval exec exit exp explode extension_loaded '+
|
||||
'feof fflush fgetc fgetcsv fgets fgetss file_exists file_get_contents file_put_contents '+
|
||||
'fileatime filectime filegroup fileinode filemtime fileowner fileperms filesize filetype '+
|
||||
'floatval flock floor flush fmod fnmatch fopen fpassthru fprintf fputcsv fputs fread fscanf '+
|
||||
'fseek fsockopen fstat ftell ftok getallheaders getcwd getdate getenv gethostbyaddr gethostbyname '+
|
||||
'gethostbynamel getimagesize getlastmod getmxrr getmygid getmyinode getmypid getmyuid getopt '+
|
||||
'getprotobyname getprotobynumber getrandmax getrusage getservbyname getservbyport gettext '+
|
||||
'gettimeofday gettype glob gmdate gmmktime ini_alter ini_get ini_get_all ini_restore ini_set '+
|
||||
'interface_exists intval ip2long is_a is_array is_bool is_callable is_dir is_double '+
|
||||
'is_executable is_file is_finite is_float is_infinite is_int is_integer is_link is_long '+
|
||||
'is_nan is_null is_numeric is_object is_readable is_real is_resource is_scalar is_soap_fault '+
|
||||
'is_string is_subclass_of is_uploaded_file is_writable is_writeable mkdir mktime nl2br '+
|
||||
'parse_ini_file parse_str parse_url passthru pathinfo print readlink realpath rewind rewinddir rmdir '+
|
||||
'round str_ireplace str_pad str_repeat str_replace str_rot13 str_shuffle str_split '+
|
||||
'str_word_count strcasecmp strchr strcmp strcoll strcspn strftime strip_tags stripcslashes '+
|
||||
'stripos stripslashes stristr strlen strnatcasecmp strnatcmp strncasecmp strncmp strpbrk '+
|
||||
'strpos strptime strrchr strrev strripos strrpos strspn strstr strtok strtolower strtotime '+
|
||||
'strtoupper strtr strval substr substr_compare';
|
||||
|
||||
var keywords = 'abstract and array as break case catch cfunction class clone const continue declare default die do ' +
|
||||
'else elseif enddeclare endfor endforeach endif endswitch endwhile extends final for foreach ' +
|
||||
'function include include_once global goto if implements interface instanceof namespace new ' +
|
||||
'old_function or private protected public return require require_once static switch ' +
|
||||
'throw try use var while xor ';
|
||||
|
||||
var constants = '__FILE__ __LINE__ __METHOD__ __FUNCTION__ __CLASS__';
|
||||
|
||||
this.regexList = [
|
||||
{ regex: SyntaxHighlighter.regexLib.singleLineCComments, css: 'comments' }, // one line comments
|
||||
{ regex: SyntaxHighlighter.regexLib.multiLineCComments, css: 'comments' }, // multiline comments
|
||||
{ regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // double quoted strings
|
||||
{ regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // single quoted strings
|
||||
{ regex: /\$\w+/g, css: 'variable' }, // variables
|
||||
{ regex: new RegExp(this.getKeywords(funcs), 'gmi'), css: 'functions' }, // common functions
|
||||
{ regex: new RegExp(this.getKeywords(constants), 'gmi'), css: 'constants' }, // constants
|
||||
{ regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' } // keyword
|
||||
];
|
||||
|
||||
this.forHtmlScript(SyntaxHighlighter.regexLib.phpScriptTags);
|
||||
};
|
||||
|
||||
Brush.prototype = new SyntaxHighlighter.Highlighter();
|
||||
Brush.aliases = ['php'];
|
||||
|
||||
SyntaxHighlighter.brushes.Php = Brush;
|
||||
|
||||
// CommonJS
|
||||
typeof(exports) != 'undefined' ? exports.Brush = Brush : null;
|
||||
})();
|
||||
33
assets/js/syntaxhighlighter/scripts/shBrushPlain.js
vendored
Normal file
33
assets/js/syntaxhighlighter/scripts/shBrushPlain.js
vendored
Normal file
@@ -0,0 +1,33 @@
|
||||
/**
|
||||
* SyntaxHighlighter
|
||||
* http://alexgorbatchev.com/SyntaxHighlighter
|
||||
*
|
||||
* SyntaxHighlighter is donationware. If you are using it, please donate.
|
||||
* http://alexgorbatchev.com/SyntaxHighlighter/donate.html
|
||||
*
|
||||
* @version
|
||||
* 3.0.83 (July 02 2010)
|
||||
*
|
||||
* @copyright
|
||||
* Copyright (C) 2004-2010 Alex Gorbatchev.
|
||||
*
|
||||
* @license
|
||||
* Dual licensed under the MIT and GPL licenses.
|
||||
*/
|
||||
;(function()
|
||||
{
|
||||
// CommonJS
|
||||
typeof(require) != 'undefined' ? SyntaxHighlighter = require('shCore').SyntaxHighlighter : null;
|
||||
|
||||
function Brush()
|
||||
{
|
||||
};
|
||||
|
||||
Brush.prototype = new SyntaxHighlighter.Highlighter();
|
||||
Brush.aliases = ['text', 'plain'];
|
||||
|
||||
SyntaxHighlighter.brushes.Plain = Brush;
|
||||
|
||||
// CommonJS
|
||||
typeof(exports) != 'undefined' ? exports.Brush = Brush : null;
|
||||
})();
|
||||
74
assets/js/syntaxhighlighter/scripts/shBrushPowerShell.js
vendored
Normal file
74
assets/js/syntaxhighlighter/scripts/shBrushPowerShell.js
vendored
Normal file
@@ -0,0 +1,74 @@
|
||||
/**
|
||||
* SyntaxHighlighter
|
||||
* http://alexgorbatchev.com/SyntaxHighlighter
|
||||
*
|
||||
* SyntaxHighlighter is donationware. If you are using it, please donate.
|
||||
* http://alexgorbatchev.com/SyntaxHighlighter/donate.html
|
||||
*
|
||||
* @version
|
||||
* 3.0.83 (July 02 2010)
|
||||
*
|
||||
* @copyright
|
||||
* Copyright (C) 2004-2010 Alex Gorbatchev.
|
||||
*
|
||||
* @license
|
||||
* Dual licensed under the MIT and GPL licenses.
|
||||
*/
|
||||
;(function()
|
||||
{
|
||||
// CommonJS
|
||||
typeof(require) != 'undefined' ? SyntaxHighlighter = require('shCore').SyntaxHighlighter : null;
|
||||
|
||||
function Brush()
|
||||
{
|
||||
// Contributes by B.v.Zanten, Getronics
|
||||
// http://confluence.atlassian.com/display/CONFEXT/New+Code+Macro
|
||||
|
||||
var keywords = 'Add-Content Add-History Add-Member Add-PSSnapin Clear(-Content)? Clear-Item ' +
|
||||
'Clear-ItemProperty Clear-Variable Compare-Object ConvertFrom-SecureString Convert-Path ' +
|
||||
'ConvertTo-Html ConvertTo-SecureString Copy(-Item)? Copy-ItemProperty Export-Alias ' +
|
||||
'Export-Clixml Export-Console Export-Csv ForEach(-Object)? Format-Custom Format-List ' +
|
||||
'Format-Table Format-Wide Get-Acl Get-Alias Get-AuthenticodeSignature Get-ChildItem Get-Command ' +
|
||||
'Get-Content Get-Credential Get-Culture Get-Date Get-EventLog Get-ExecutionPolicy ' +
|
||||
'Get-Help Get-History Get-Host Get-Item Get-ItemProperty Get-Location Get-Member ' +
|
||||
'Get-PfxCertificate Get-Process Get-PSDrive Get-PSProvider Get-PSSnapin Get-Service ' +
|
||||
'Get-TraceSource Get-UICulture Get-Unique Get-Variable Get-WmiObject Group-Object ' +
|
||||
'Import-Alias Import-Clixml Import-Csv Invoke-Expression Invoke-History Invoke-Item ' +
|
||||
'Join-Path Measure-Command Measure-Object Move(-Item)? Move-ItemProperty New-Alias ' +
|
||||
'New-Item New-ItemProperty New-Object New-PSDrive New-Service New-TimeSpan ' +
|
||||
'New-Variable Out-Default Out-File Out-Host Out-Null Out-Printer Out-String Pop-Location ' +
|
||||
'Push-Location Read-Host Remove-Item Remove-ItemProperty Remove-PSDrive Remove-PSSnapin ' +
|
||||
'Remove-Variable Rename-Item Rename-ItemProperty Resolve-Path Restart-Service Resume-Service ' +
|
||||
'Select-Object Select-String Set-Acl Set-Alias Set-AuthenticodeSignature Set-Content ' +
|
||||
'Set-Date Set-ExecutionPolicy Set-Item Set-ItemProperty Set-Location Set-PSDebug ' +
|
||||
'Set-Service Set-TraceSource Set(-Variable)? Sort-Object Split-Path Start-Service ' +
|
||||
'Start-Sleep Start-Transcript Stop-Process Stop-Service Stop-Transcript Suspend-Service ' +
|
||||
'Tee-Object Test-Path Trace-Command Update-FormatData Update-TypeData Where(-Object)? ' +
|
||||
'Write-Debug Write-Error Write(-Host)? Write-Output Write-Progress Write-Verbose Write-Warning';
|
||||
var alias = 'ac asnp clc cli clp clv cpi cpp cvpa diff epal epcsv fc fl ' +
|
||||
'ft fw gal gc gci gcm gdr ghy gi gl gm gp gps group gsv ' +
|
||||
'gsnp gu gv gwmi iex ihy ii ipal ipcsv mi mp nal ndr ni nv oh rdr ' +
|
||||
'ri rni rnp rp rsnp rv rvpa sal sasv sc select si sl sleep sort sp ' +
|
||||
'spps spsv sv tee cat cd cp h history kill lp ls ' +
|
||||
'mount mv popd ps pushd pwd r rm rmdir echo cls chdir del dir ' +
|
||||
'erase rd ren type % \\?';
|
||||
|
||||
this.regexList = [
|
||||
{ regex: /#.*$/gm, css: 'comments' }, // one line comments
|
||||
{ regex: /\$[a-zA-Z0-9]+\b/g, css: 'value' }, // variables $Computer1
|
||||
{ regex: /\-[a-zA-Z]+\b/g, css: 'keyword' }, // Operators -not -and -eq
|
||||
{ regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // strings
|
||||
{ regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // strings
|
||||
{ regex: new RegExp(this.getKeywords(keywords), 'gmi'), css: 'keyword' },
|
||||
{ regex: new RegExp(this.getKeywords(alias), 'gmi'), css: 'keyword' }
|
||||
];
|
||||
};
|
||||
|
||||
Brush.prototype = new SyntaxHighlighter.Highlighter();
|
||||
Brush.aliases = ['powershell', 'ps'];
|
||||
|
||||
SyntaxHighlighter.brushes.PowerShell = Brush;
|
||||
|
||||
// CommonJS
|
||||
typeof(exports) != 'undefined' ? exports.Brush = Brush : null;
|
||||
})();
|
||||
64
assets/js/syntaxhighlighter/scripts/shBrushPython.js
vendored
Normal file
64
assets/js/syntaxhighlighter/scripts/shBrushPython.js
vendored
Normal file
@@ -0,0 +1,64 @@
|
||||
/**
|
||||
* SyntaxHighlighter
|
||||
* http://alexgorbatchev.com/SyntaxHighlighter
|
||||
*
|
||||
* SyntaxHighlighter is donationware. If you are using it, please donate.
|
||||
* http://alexgorbatchev.com/SyntaxHighlighter/donate.html
|
||||
*
|
||||
* @version
|
||||
* 3.0.83 (July 02 2010)
|
||||
*
|
||||
* @copyright
|
||||
* Copyright (C) 2004-2010 Alex Gorbatchev.
|
||||
*
|
||||
* @license
|
||||
* Dual licensed under the MIT and GPL licenses.
|
||||
*/
|
||||
;(function()
|
||||
{
|
||||
// CommonJS
|
||||
typeof(require) != 'undefined' ? SyntaxHighlighter = require('shCore').SyntaxHighlighter : null;
|
||||
|
||||
function Brush()
|
||||
{
|
||||
// Contributed by Gheorghe Milas and Ahmad Sherif
|
||||
|
||||
var keywords = 'and assert break class continue def del elif else ' +
|
||||
'except exec finally for from global if import in is ' +
|
||||
'lambda not or pass print raise return try yield while';
|
||||
|
||||
var funcs = '__import__ abs all any apply basestring bin bool buffer callable ' +
|
||||
'chr classmethod cmp coerce compile complex delattr dict dir ' +
|
||||
'divmod enumerate eval execfile file filter float format frozenset ' +
|
||||
'getattr globals hasattr hash help hex id input int intern ' +
|
||||
'isinstance issubclass iter len list locals long map max min next ' +
|
||||
'object oct open ord pow print property range raw_input reduce ' +
|
||||
'reload repr reversed round set setattr slice sorted staticmethod ' +
|
||||
'str sum super tuple type type unichr unicode vars xrange zip';
|
||||
|
||||
var special = 'None True False self cls class_';
|
||||
|
||||
this.regexList = [
|
||||
{ regex: SyntaxHighlighter.regexLib.singleLinePerlComments, css: 'comments' },
|
||||
{ regex: /^\s*@\w+/gm, css: 'decorator' },
|
||||
{ regex: /(['\"]{3})([^\1])*?\1/gm, css: 'comments' },
|
||||
{ regex: /"(?!")(?:\.|\\\"|[^\""\n])*"/gm, css: 'string' },
|
||||
{ regex: /'(?!')(?:\.|(\\\')|[^\''\n])*'/gm, css: 'string' },
|
||||
{ regex: /\+|\-|\*|\/|\%|=|==/gm, css: 'keyword' },
|
||||
{ regex: /\b\d+\.?\w*/g, css: 'value' },
|
||||
{ regex: new RegExp(this.getKeywords(funcs), 'gmi'), css: 'functions' },
|
||||
{ regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' },
|
||||
{ regex: new RegExp(this.getKeywords(special), 'gm'), css: 'color1' }
|
||||
];
|
||||
|
||||
this.forHtmlScript(SyntaxHighlighter.regexLib.aspScriptTags);
|
||||
};
|
||||
|
||||
Brush.prototype = new SyntaxHighlighter.Highlighter();
|
||||
Brush.aliases = ['py', 'python'];
|
||||
|
||||
SyntaxHighlighter.brushes.Python = Brush;
|
||||
|
||||
// CommonJS
|
||||
typeof(exports) != 'undefined' ? exports.Brush = Brush : null;
|
||||
})();
|
||||
55
assets/js/syntaxhighlighter/scripts/shBrushRuby.js
vendored
Normal file
55
assets/js/syntaxhighlighter/scripts/shBrushRuby.js
vendored
Normal file
@@ -0,0 +1,55 @@
|
||||
/**
|
||||
* SyntaxHighlighter
|
||||
* http://alexgorbatchev.com/SyntaxHighlighter
|
||||
*
|
||||
* SyntaxHighlighter is donationware. If you are using it, please donate.
|
||||
* http://alexgorbatchev.com/SyntaxHighlighter/donate.html
|
||||
*
|
||||
* @version
|
||||
* 3.0.83 (July 02 2010)
|
||||
*
|
||||
* @copyright
|
||||
* Copyright (C) 2004-2010 Alex Gorbatchev.
|
||||
*
|
||||
* @license
|
||||
* Dual licensed under the MIT and GPL licenses.
|
||||
*/
|
||||
;(function()
|
||||
{
|
||||
// CommonJS
|
||||
typeof(require) != 'undefined' ? SyntaxHighlighter = require('shCore').SyntaxHighlighter : null;
|
||||
|
||||
function Brush()
|
||||
{
|
||||
// Contributed by Erik Peterson.
|
||||
|
||||
var keywords = 'alias and BEGIN begin break case class def define_method defined do each else elsif ' +
|
||||
'END end ensure false for if in module new next nil not or raise redo rescue retry return ' +
|
||||
'self super then throw true undef unless until when while yield';
|
||||
|
||||
var builtins = 'Array Bignum Binding Class Continuation Dir Exception FalseClass File::Stat File Fixnum Fload ' +
|
||||
'Hash Integer IO MatchData Method Module NilClass Numeric Object Proc Range Regexp String Struct::TMS Symbol ' +
|
||||
'ThreadGroup Thread Time TrueClass';
|
||||
|
||||
this.regexList = [
|
||||
{ regex: SyntaxHighlighter.regexLib.singleLinePerlComments, css: 'comments' }, // one line comments
|
||||
{ regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // double quoted strings
|
||||
{ regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // single quoted strings
|
||||
{ regex: /\b[A-Z0-9_]+\b/g, css: 'constants' }, // constants
|
||||
{ regex: /:[a-z][A-Za-z0-9_]*/g, css: 'color2' }, // symbols
|
||||
{ regex: /(\$|@@|@)\w+/g, css: 'variable bold' }, // $global, @instance, and @@class variables
|
||||
{ regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' }, // keywords
|
||||
{ regex: new RegExp(this.getKeywords(builtins), 'gm'), css: 'color1' } // builtins
|
||||
];
|
||||
|
||||
this.forHtmlScript(SyntaxHighlighter.regexLib.aspScriptTags);
|
||||
};
|
||||
|
||||
Brush.prototype = new SyntaxHighlighter.Highlighter();
|
||||
Brush.aliases = ['ruby', 'rails', 'ror', 'rb'];
|
||||
|
||||
SyntaxHighlighter.brushes.Ruby = Brush;
|
||||
|
||||
// CommonJS
|
||||
typeof(exports) != 'undefined' ? exports.Brush = Brush : null;
|
||||
})();
|
||||
94
assets/js/syntaxhighlighter/scripts/shBrushSass.js
vendored
Normal file
94
assets/js/syntaxhighlighter/scripts/shBrushSass.js
vendored
Normal file
@@ -0,0 +1,94 @@
|
||||
/**
|
||||
* SyntaxHighlighter
|
||||
* http://alexgorbatchev.com/SyntaxHighlighter
|
||||
*
|
||||
* SyntaxHighlighter is donationware. If you are using it, please donate.
|
||||
* http://alexgorbatchev.com/SyntaxHighlighter/donate.html
|
||||
*
|
||||
* @version
|
||||
* 3.0.83 (July 02 2010)
|
||||
*
|
||||
* @copyright
|
||||
* Copyright (C) 2004-2010 Alex Gorbatchev.
|
||||
*
|
||||
* @license
|
||||
* Dual licensed under the MIT and GPL licenses.
|
||||
*/
|
||||
;(function()
|
||||
{
|
||||
// CommonJS
|
||||
typeof(require) != 'undefined' ? SyntaxHighlighter = require('shCore').SyntaxHighlighter : null;
|
||||
|
||||
function Brush()
|
||||
{
|
||||
function getKeywordsCSS(str)
|
||||
{
|
||||
return '\\b([a-z_]|)' + str.replace(/ /g, '(?=:)\\b|\\b([a-z_\\*]|\\*|)') + '(?=:)\\b';
|
||||
};
|
||||
|
||||
function getValuesCSS(str)
|
||||
{
|
||||
return '\\b' + str.replace(/ /g, '(?!-)(?!:)\\b|\\b()') + '\:\\b';
|
||||
};
|
||||
|
||||
var keywords = 'ascent azimuth background-attachment background-color background-image background-position ' +
|
||||
'background-repeat background baseline bbox border-collapse border-color border-spacing border-style border-top ' +
|
||||
'border-right border-bottom border-left border-top-color border-right-color border-bottom-color border-left-color ' +
|
||||
'border-top-style border-right-style border-bottom-style border-left-style border-top-width border-right-width ' +
|
||||
'border-bottom-width border-left-width border-width border bottom cap-height caption-side centerline clear clip color ' +
|
||||
'content counter-increment counter-reset cue-after cue-before cue cursor definition-src descent direction display ' +
|
||||
'elevation empty-cells float font-size-adjust font-family font-size font-stretch font-style font-variant font-weight font ' +
|
||||
'height left letter-spacing line-height list-style-image list-style-position list-style-type list-style margin-top ' +
|
||||
'margin-right margin-bottom margin-left margin marker-offset marks mathline max-height max-width min-height min-width orphans ' +
|
||||
'outline-color outline-style outline-width outline overflow padding-top padding-right padding-bottom padding-left padding page ' +
|
||||
'page-break-after page-break-before page-break-inside pause pause-after pause-before pitch pitch-range play-during position ' +
|
||||
'quotes right richness size slope src speak-header speak-numeral speak-punctuation speak speech-rate stemh stemv stress ' +
|
||||
'table-layout text-align top text-decoration text-indent text-shadow text-transform unicode-bidi unicode-range units-per-em ' +
|
||||
'vertical-align visibility voice-family volume white-space widows width widths word-spacing x-height z-index';
|
||||
|
||||
var values = 'above absolute all always aqua armenian attr aural auto avoid baseline behind below bidi-override black blink block blue bold bolder '+
|
||||
'both bottom braille capitalize caption center center-left center-right circle close-quote code collapse compact condensed '+
|
||||
'continuous counter counters crop cross crosshair cursive dashed decimal decimal-leading-zero digits disc dotted double '+
|
||||
'embed embossed e-resize expanded extra-condensed extra-expanded fantasy far-left far-right fast faster fixed format fuchsia '+
|
||||
'gray green groove handheld hebrew help hidden hide high higher icon inline-table inline inset inside invert italic '+
|
||||
'justify landscape large larger left-side left leftwards level lighter lime line-through list-item local loud lower-alpha '+
|
||||
'lowercase lower-greek lower-latin lower-roman lower low ltr marker maroon medium message-box middle mix move narrower '+
|
||||
'navy ne-resize no-close-quote none no-open-quote no-repeat normal nowrap n-resize nw-resize oblique olive once open-quote outset '+
|
||||
'outside overline pointer portrait pre print projection purple red relative repeat repeat-x repeat-y rgb ridge right right-side '+
|
||||
'rightwards rtl run-in screen scroll semi-condensed semi-expanded separate se-resize show silent silver slower slow '+
|
||||
'small small-caps small-caption smaller soft solid speech spell-out square s-resize static status-bar sub super sw-resize '+
|
||||
'table-caption table-cell table-column table-column-group table-footer-group table-header-group table-row table-row-group teal '+
|
||||
'text-bottom text-top thick thin top transparent tty tv ultra-condensed ultra-expanded underline upper-alpha uppercase upper-latin '+
|
||||
'upper-roman url visible wait white wider w-resize x-fast x-high x-large x-loud x-low x-slow x-small x-soft xx-large xx-small yellow';
|
||||
|
||||
var fonts = '[mM]onospace [tT]ahoma [vV]erdana [aA]rial [hH]elvetica [sS]ans-serif [sS]erif [cC]ourier mono sans serif';
|
||||
|
||||
var statements = '!important !default';
|
||||
var preprocessor = '@import @extend @debug @warn @if @for @while @mixin @include';
|
||||
|
||||
var r = SyntaxHighlighter.regexLib;
|
||||
|
||||
this.regexList = [
|
||||
{ regex: r.multiLineCComments, css: 'comments' }, // multiline comments
|
||||
{ regex: r.singleLineCComments, css: 'comments' }, // singleline comments
|
||||
{ regex: r.doubleQuotedString, css: 'string' }, // double quoted strings
|
||||
{ regex: r.singleQuotedString, css: 'string' }, // single quoted strings
|
||||
{ regex: /\#[a-fA-F0-9]{3,6}/g, css: 'value' }, // html colors
|
||||
{ regex: /\b(-?\d+)(\.\d+)?(px|em|pt|\:|\%|)\b/g, css: 'value' }, // sizes
|
||||
{ regex: /\$\w+/g, css: 'variable' }, // variables
|
||||
{ regex: new RegExp(this.getKeywords(statements), 'g'), css: 'color3' }, // statements
|
||||
{ regex: new RegExp(this.getKeywords(preprocessor), 'g'), css: 'preprocessor' }, // preprocessor
|
||||
{ regex: new RegExp(getKeywordsCSS(keywords), 'gm'), css: 'keyword' }, // keywords
|
||||
{ regex: new RegExp(getValuesCSS(values), 'g'), css: 'value' }, // values
|
||||
{ regex: new RegExp(this.getKeywords(fonts), 'g'), css: 'color1' } // fonts
|
||||
];
|
||||
};
|
||||
|
||||
Brush.prototype = new SyntaxHighlighter.Highlighter();
|
||||
Brush.aliases = ['sass', 'scss'];
|
||||
|
||||
SyntaxHighlighter.brushes.Sass = Brush;
|
||||
|
||||
// CommonJS
|
||||
typeof(exports) != 'undefined' ? exports.Brush = Brush : null;
|
||||
})();
|
||||
51
assets/js/syntaxhighlighter/scripts/shBrushScala.js
vendored
Normal file
51
assets/js/syntaxhighlighter/scripts/shBrushScala.js
vendored
Normal file
@@ -0,0 +1,51 @@
|
||||
/**
|
||||
* SyntaxHighlighter
|
||||
* http://alexgorbatchev.com/SyntaxHighlighter
|
||||
*
|
||||
* SyntaxHighlighter is donationware. If you are using it, please donate.
|
||||
* http://alexgorbatchev.com/SyntaxHighlighter/donate.html
|
||||
*
|
||||
* @version
|
||||
* 3.0.83 (July 02 2010)
|
||||
*
|
||||
* @copyright
|
||||
* Copyright (C) 2004-2010 Alex Gorbatchev.
|
||||
*
|
||||
* @license
|
||||
* Dual licensed under the MIT and GPL licenses.
|
||||
*/
|
||||
;(function()
|
||||
{
|
||||
// CommonJS
|
||||
typeof(require) != 'undefined' ? SyntaxHighlighter = require('shCore').SyntaxHighlighter : null;
|
||||
|
||||
function Brush()
|
||||
{
|
||||
// Contributed by Yegor Jbanov and David Bernard.
|
||||
|
||||
var keywords = 'val sealed case def true trait implicit forSome import match object null finally super ' +
|
||||
'override try lazy for var catch throw type extends class while with new final yield abstract ' +
|
||||
'else do if return protected private this package false';
|
||||
|
||||
var keyops = '[_:=><%#@]+';
|
||||
|
||||
this.regexList = [
|
||||
{ regex: SyntaxHighlighter.regexLib.singleLineCComments, css: 'comments' }, // one line comments
|
||||
{ regex: SyntaxHighlighter.regexLib.multiLineCComments, css: 'comments' }, // multiline comments
|
||||
{ regex: SyntaxHighlighter.regexLib.multiLineSingleQuotedString, css: 'string' }, // multi-line strings
|
||||
{ regex: SyntaxHighlighter.regexLib.multiLineDoubleQuotedString, css: 'string' }, // double-quoted string
|
||||
{ regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // strings
|
||||
{ regex: /0x[a-f0-9]+|\d+(\.\d+)?/gi, css: 'value' }, // numbers
|
||||
{ regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' }, // keywords
|
||||
{ regex: new RegExp(keyops, 'gm'), css: 'keyword' } // scala keyword
|
||||
];
|
||||
}
|
||||
|
||||
Brush.prototype = new SyntaxHighlighter.Highlighter();
|
||||
Brush.aliases = ['scala'];
|
||||
|
||||
SyntaxHighlighter.brushes.Scala = Brush;
|
||||
|
||||
// CommonJS
|
||||
typeof(exports) != 'undefined' ? exports.Brush = Brush : null;
|
||||
})();
|
||||
66
assets/js/syntaxhighlighter/scripts/shBrushSql.js
vendored
Normal file
66
assets/js/syntaxhighlighter/scripts/shBrushSql.js
vendored
Normal file
@@ -0,0 +1,66 @@
|
||||
/**
|
||||
* SyntaxHighlighter
|
||||
* http://alexgorbatchev.com/SyntaxHighlighter
|
||||
*
|
||||
* SyntaxHighlighter is donationware. If you are using it, please donate.
|
||||
* http://alexgorbatchev.com/SyntaxHighlighter/donate.html
|
||||
*
|
||||
* @version
|
||||
* 3.0.83 (July 02 2010)
|
||||
*
|
||||
* @copyright
|
||||
* Copyright (C) 2004-2010 Alex Gorbatchev.
|
||||
*
|
||||
* @license
|
||||
* Dual licensed under the MIT and GPL licenses.
|
||||
*/
|
||||
;(function()
|
||||
{
|
||||
// CommonJS
|
||||
typeof(require) != 'undefined' ? SyntaxHighlighter = require('shCore').SyntaxHighlighter : null;
|
||||
|
||||
function Brush()
|
||||
{
|
||||
var funcs = 'abs avg case cast coalesce convert count current_timestamp ' +
|
||||
'current_user day isnull left lower month nullif replace right ' +
|
||||
'session_user space substring sum system_user upper user year';
|
||||
|
||||
var keywords = 'absolute action add after alter as asc at authorization begin bigint ' +
|
||||
'binary bit by cascade char character check checkpoint close collate ' +
|
||||
'column commit committed connect connection constraint contains continue ' +
|
||||
'create cube current current_date current_time cursor database date ' +
|
||||
'deallocate dec decimal declare default delete desc distinct double drop ' +
|
||||
'dynamic else end end-exec escape except exec execute false fetch first ' +
|
||||
'float for force foreign forward free from full function global goto grant ' +
|
||||
'group grouping having hour ignore index inner insensitive insert instead ' +
|
||||
'int integer intersect into is isolation key last level load local max min ' +
|
||||
'minute modify move name national nchar next no numeric of off on only ' +
|
||||
'open option order out output partial password precision prepare primary ' +
|
||||
'prior privileges procedure public read real references relative repeatable ' +
|
||||
'restrict return returns revoke rollback rollup rows rule schema scroll ' +
|
||||
'second section select sequence serializable set size smallint static ' +
|
||||
'statistics table temp temporary then time timestamp to top transaction ' +
|
||||
'translation trigger true truncate uncommitted union unique update values ' +
|
||||
'varchar varying view when where with work';
|
||||
|
||||
var operators = 'all and any between cross in join like not null or outer some';
|
||||
|
||||
this.regexList = [
|
||||
{ regex: /--(.*)$/gm, css: 'comments' }, // one line and multiline comments
|
||||
{ regex: SyntaxHighlighter.regexLib.multiLineDoubleQuotedString, css: 'string' }, // double quoted strings
|
||||
{ regex: SyntaxHighlighter.regexLib.multiLineSingleQuotedString, css: 'string' }, // single quoted strings
|
||||
{ regex: new RegExp(this.getKeywords(funcs), 'gmi'), css: 'color2' }, // functions
|
||||
{ regex: new RegExp(this.getKeywords(operators), 'gmi'), css: 'color1' }, // operators and such
|
||||
{ regex: new RegExp(this.getKeywords(keywords), 'gmi'), css: 'keyword' } // keyword
|
||||
];
|
||||
};
|
||||
|
||||
Brush.prototype = new SyntaxHighlighter.Highlighter();
|
||||
Brush.aliases = ['sql'];
|
||||
|
||||
SyntaxHighlighter.brushes.Sql = Brush;
|
||||
|
||||
// CommonJS
|
||||
typeof(exports) != 'undefined' ? exports.Brush = Brush : null;
|
||||
})();
|
||||
|
||||
56
assets/js/syntaxhighlighter/scripts/shBrushVb.js
vendored
Normal file
56
assets/js/syntaxhighlighter/scripts/shBrushVb.js
vendored
Normal file
@@ -0,0 +1,56 @@
|
||||
/**
|
||||
* SyntaxHighlighter
|
||||
* http://alexgorbatchev.com/SyntaxHighlighter
|
||||
*
|
||||
* SyntaxHighlighter is donationware. If you are using it, please donate.
|
||||
* http://alexgorbatchev.com/SyntaxHighlighter/donate.html
|
||||
*
|
||||
* @version
|
||||
* 3.0.83 (July 02 2010)
|
||||
*
|
||||
* @copyright
|
||||
* Copyright (C) 2004-2010 Alex Gorbatchev.
|
||||
*
|
||||
* @license
|
||||
* Dual licensed under the MIT and GPL licenses.
|
||||
*/
|
||||
;(function()
|
||||
{
|
||||
// CommonJS
|
||||
typeof(require) != 'undefined' ? SyntaxHighlighter = require('shCore').SyntaxHighlighter : null;
|
||||
|
||||
function Brush()
|
||||
{
|
||||
var keywords = 'AddHandler AddressOf AndAlso Alias And Ansi As Assembly Auto ' +
|
||||
'Boolean ByRef Byte ByVal Call Case Catch CBool CByte CChar CDate ' +
|
||||
'CDec CDbl Char CInt Class CLng CObj Const CShort CSng CStr CType ' +
|
||||
'Date Decimal Declare Default Delegate Dim DirectCast Do Double Each ' +
|
||||
'Else ElseIf End Enum Erase Error Event Exit False Finally For Friend ' +
|
||||
'Function Get GetType GoSub GoTo Handles If Implements Imports In ' +
|
||||
'Inherits Integer Interface Is Let Lib Like Long Loop Me Mod Module ' +
|
||||
'MustInherit MustOverride MyBase MyClass Namespace New Next Not Nothing ' +
|
||||
'NotInheritable NotOverridable Object On Option Optional Or OrElse ' +
|
||||
'Overloads Overridable Overrides ParamArray Preserve Private Property ' +
|
||||
'Protected Public RaiseEvent ReadOnly ReDim REM RemoveHandler Resume ' +
|
||||
'Return Select Set Shadows Shared Short Single Static Step Stop String ' +
|
||||
'Structure Sub SyncLock Then Throw To True Try TypeOf Unicode Until ' +
|
||||
'Variant When While With WithEvents WriteOnly Xor';
|
||||
|
||||
this.regexList = [
|
||||
{ regex: /'.*$/gm, css: 'comments' }, // one line comments
|
||||
{ regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // strings
|
||||
{ regex: /^\s*#.*$/gm, css: 'preprocessor' }, // preprocessor tags like #region and #endregion
|
||||
{ regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' } // vb keyword
|
||||
];
|
||||
|
||||
this.forHtmlScript(SyntaxHighlighter.regexLib.aspScriptTags);
|
||||
};
|
||||
|
||||
Brush.prototype = new SyntaxHighlighter.Highlighter();
|
||||
Brush.aliases = ['vb', 'vbnet'];
|
||||
|
||||
SyntaxHighlighter.brushes.Vb = Brush;
|
||||
|
||||
// CommonJS
|
||||
typeof(exports) != 'undefined' ? exports.Brush = Brush : null;
|
||||
})();
|
||||
69
assets/js/syntaxhighlighter/scripts/shBrushXml.js
vendored
Normal file
69
assets/js/syntaxhighlighter/scripts/shBrushXml.js
vendored
Normal file
@@ -0,0 +1,69 @@
|
||||
/**
|
||||
* SyntaxHighlighter
|
||||
* http://alexgorbatchev.com/SyntaxHighlighter
|
||||
*
|
||||
* SyntaxHighlighter is donationware. If you are using it, please donate.
|
||||
* http://alexgorbatchev.com/SyntaxHighlighter/donate.html
|
||||
*
|
||||
* @version
|
||||
* 3.0.83 (July 02 2010)
|
||||
*
|
||||
* @copyright
|
||||
* Copyright (C) 2004-2010 Alex Gorbatchev.
|
||||
*
|
||||
* @license
|
||||
* Dual licensed under the MIT and GPL licenses.
|
||||
*/
|
||||
;(function()
|
||||
{
|
||||
// CommonJS
|
||||
typeof(require) != 'undefined' ? SyntaxHighlighter = require('shCore').SyntaxHighlighter : null;
|
||||
|
||||
function Brush()
|
||||
{
|
||||
function process(match, regexInfo)
|
||||
{
|
||||
var constructor = SyntaxHighlighter.Match,
|
||||
code = match[0],
|
||||
tag = new XRegExp('(<|<)[\\s\\/\\?]*(?<name>[:\\w-\\.]+)', 'xg').exec(code),
|
||||
result = []
|
||||
;
|
||||
|
||||
if (match.attributes != null)
|
||||
{
|
||||
var attributes,
|
||||
regex = new XRegExp('(?<name> [\\w:\\-\\.]+)' +
|
||||
'\\s*=\\s*' +
|
||||
'(?<value> ".*?"|\'.*?\'|\\w+)',
|
||||
'xg');
|
||||
|
||||
while ((attributes = regex.exec(code)) != null)
|
||||
{
|
||||
result.push(new constructor(attributes.name, match.index + attributes.index, 'color1'));
|
||||
result.push(new constructor(attributes.value, match.index + attributes.index + attributes[0].indexOf(attributes.value), 'string'));
|
||||
}
|
||||
}
|
||||
|
||||
if (tag != null)
|
||||
result.push(
|
||||
new constructor(tag.name, match.index + tag[0].indexOf(tag.name), 'keyword')
|
||||
);
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
this.regexList = [
|
||||
{ regex: new XRegExp('(\\<|<)\\!\\[[\\w\\s]*?\\[(.|\\s)*?\\]\\](\\>|>)', 'gm'), css: 'color2' }, // <![ ... [ ... ]]>
|
||||
{ regex: SyntaxHighlighter.regexLib.xmlComments, css: 'comments' }, // <!-- ... -->
|
||||
{ regex: new XRegExp('(<|<)[\\s\\/\\?]*(\\w+)(?<attributes>.*?)[\\s\\/\\?]*(>|>)', 'sg'), func: process }
|
||||
];
|
||||
};
|
||||
|
||||
Brush.prototype = new SyntaxHighlighter.Highlighter();
|
||||
Brush.aliases = ['xml', 'xhtml', 'xslt', 'html'];
|
||||
|
||||
SyntaxHighlighter.brushes.Xml = Brush;
|
||||
|
||||
// CommonJS
|
||||
typeof(exports) != 'undefined' ? exports.Brush = Brush : null;
|
||||
})();
|
||||
17
assets/js/syntaxhighlighter/scripts/shCore.js
vendored
Normal file
17
assets/js/syntaxhighlighter/scripts/shCore.js
vendored
Normal file
File diff suppressed because one or more lines are too long
17
assets/js/syntaxhighlighter/scripts/shLegacy.js
vendored
Normal file
17
assets/js/syntaxhighlighter/scripts/shLegacy.js
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
/**
|
||||
* SyntaxHighlighter
|
||||
* http://alexgorbatchev.com/SyntaxHighlighter
|
||||
*
|
||||
* SyntaxHighlighter is donationware. If you are using it, please donate.
|
||||
* http://alexgorbatchev.com/SyntaxHighlighter/donate.html
|
||||
*
|
||||
* @version
|
||||
* 3.0.83 (July 02 2010)
|
||||
*
|
||||
* @copyright
|
||||
* Copyright (C) 2004-2010 Alex Gorbatchev.
|
||||
*
|
||||
* @license
|
||||
* Dual licensed under the MIT and GPL licenses.
|
||||
*/
|
||||
eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('3 u={8:{}};u.8={A:4(c,k,l,m,n,o){4 d(a,b){2 a!=1?a:b}4 f(a){2 a!=1?a.E():1}c=c.I(":");3 g=c[0],e={};t={"r":K};M=1;5=8.5;9(3 j R c)e[c[j]]="r";k=f(d(k,5.C));l=f(d(l,5.D));m=f(d(m,5.s));o=f(d(o,5.Q));n=f(d(n,5["x-y"]));2{P:g,C:d(t[e.O],k),D:d(t[e.N],l),s:d({"r":r}[e.s],m),"x-y":d(4(a,b){9(3 h=T S("^"+b+"\\\\[(?<q>\\\\w+)\\\\]$","U"),i=1,p=0;p<a.7;p++)6((i=h.J(a[p]))!=1)2 i.q;2 1}(c,"G"),n)}},F:4(c,k,l,m,n,o){4 d(){9(3 a=H,b=0;b<a.7;b++)6(a[b]!==1){6(z a[b]=="L"&&a[b]!="")2 a[b]+"";6(z a[b]=="X"&&a[b].q!="")2 a[b].q+""}2 1}4 f(a,b,h){h=12.13(h);9(3 i=0;i<h.7;i++)h[i].V("15")==b&&a.Y(h[i])}3 g=[];f(g,c,"Z");f(g,c,"W");6(g.7!==0)9(c=0;c<g.7;c++){3 e=g[c],j=d(e.B["14"],e.10,e.B.v,e.v);6(j!==1){j=u.8.A(j,k,l,m,n,o);8.11(j,e)}}}};',62,68,'|null|return|var|function|defaults|if|length|SyntaxHighlighter|for|||||||||||||||||value|true|collapse|reverse|dp|language||first|line|typeof|parseParams|attributes|gutter|toolbar|toString|HighlightAll|firstline|arguments|split|exec|false|string|result|nocontrols|nogutter|brush|ruler|in|XRegExp|new|gi|getAttribute|textarea|object|push|pre|className|highlight|document|getElementsByTagName|class|name'.split('|'),0,{}))
|
||||
130
assets/js/syntaxhighlighter/src/shAutoloader.js
Normal file
130
assets/js/syntaxhighlighter/src/shAutoloader.js
Normal file
@@ -0,0 +1,130 @@
|
||||
/**
|
||||
* SyntaxHighlighter
|
||||
* http://alexgorbatchev.com/SyntaxHighlighter
|
||||
*
|
||||
* SyntaxHighlighter is donationware. If you are using it, please donate.
|
||||
* http://alexgorbatchev.com/SyntaxHighlighter/donate.html
|
||||
*
|
||||
* @version
|
||||
* 3.0.83 (July 02 2010)
|
||||
*
|
||||
* @copyright
|
||||
* Copyright (C) 2004-2010 Alex Gorbatchev.
|
||||
*
|
||||
* @license
|
||||
* Dual licensed under the MIT and GPL licenses.
|
||||
*/
|
||||
(function() {
|
||||
|
||||
var sh = SyntaxHighlighter;
|
||||
|
||||
/**
|
||||
* Provides functionality to dynamically load only the brushes that a needed to render the current page.
|
||||
*
|
||||
* There are two syntaxes that autoload understands. For example:
|
||||
*
|
||||
* SyntaxHighlighter.autoloader(
|
||||
* [ 'applescript', 'Scripts/shBrushAppleScript.js' ],
|
||||
* [ 'actionscript3', 'as3', 'Scripts/shBrushAS3.js' ]
|
||||
* );
|
||||
*
|
||||
* or a more easily comprehendable one:
|
||||
*
|
||||
* SyntaxHighlighter.autoloader(
|
||||
* 'applescript Scripts/shBrushAppleScript.js',
|
||||
* 'actionscript3 as3 Scripts/shBrushAS3.js'
|
||||
* );
|
||||
*/
|
||||
sh.autoloader = function()
|
||||
{
|
||||
var list = arguments,
|
||||
elements = sh.findElements(),
|
||||
brushes = {},
|
||||
scripts = {},
|
||||
all = SyntaxHighlighter.all,
|
||||
allCalled = false,
|
||||
allParams = null,
|
||||
i
|
||||
;
|
||||
|
||||
SyntaxHighlighter.all = function(params)
|
||||
{
|
||||
allParams = params;
|
||||
allCalled = true;
|
||||
};
|
||||
|
||||
function addBrush(aliases, url)
|
||||
{
|
||||
for (var i = 0; i < aliases.length; i++)
|
||||
brushes[aliases[i]] = url;
|
||||
};
|
||||
|
||||
function getAliases(item)
|
||||
{
|
||||
return item.pop
|
||||
? item
|
||||
: item.split(/\s+/)
|
||||
;
|
||||
}
|
||||
|
||||
// create table of aliases and script urls
|
||||
for (i = 0; i < list.length; i++)
|
||||
{
|
||||
var aliases = getAliases(list[i]),
|
||||
url = aliases.pop()
|
||||
;
|
||||
|
||||
addBrush(aliases, url);
|
||||
}
|
||||
|
||||
// dynamically add <script /> tags to the document body
|
||||
for (i = 0; i < elements.length; i++)
|
||||
{
|
||||
var url = brushes[elements[i].params.brush];
|
||||
|
||||
if (!url)
|
||||
continue;
|
||||
|
||||
scripts[url] = false;
|
||||
loadScript(url);
|
||||
}
|
||||
|
||||
function loadScript(url)
|
||||
{
|
||||
var script = document.createElement('script'),
|
||||
done = false
|
||||
;
|
||||
|
||||
script.src = url;
|
||||
script.type = 'text/javascript';
|
||||
script.language = 'javascript';
|
||||
script.onload = script.onreadystatechange = function()
|
||||
{
|
||||
if (!done && (!this.readyState || this.readyState == 'loaded' || this.readyState == 'complete'))
|
||||
{
|
||||
done = true;
|
||||
scripts[url] = true;
|
||||
checkAll();
|
||||
|
||||
// Handle memory leak in IE
|
||||
script.onload = script.onreadystatechange = null;
|
||||
script.parentNode.removeChild(script);
|
||||
}
|
||||
};
|
||||
|
||||
// sync way of adding script tags to the page
|
||||
document.body.appendChild(script);
|
||||
};
|
||||
|
||||
function checkAll()
|
||||
{
|
||||
for(var url in scripts)
|
||||
if (scripts[url] == false)
|
||||
return;
|
||||
|
||||
if (allCalled)
|
||||
SyntaxHighlighter.highlight(allParams);
|
||||
};
|
||||
};
|
||||
|
||||
})();
|
||||
1721
assets/js/syntaxhighlighter/src/shCore.js
vendored
Normal file
1721
assets/js/syntaxhighlighter/src/shCore.js
vendored
Normal file
File diff suppressed because it is too large
Load Diff
157
assets/js/syntaxhighlighter/src/shLegacy.js
vendored
Normal file
157
assets/js/syntaxhighlighter/src/shLegacy.js
vendored
Normal file
@@ -0,0 +1,157 @@
|
||||
/**
|
||||
* SyntaxHighlighter
|
||||
* http://alexgorbatchev.com/SyntaxHighlighter
|
||||
*
|
||||
* SyntaxHighlighter is donationware. If you are using it, please donate.
|
||||
* http://alexgorbatchev.com/SyntaxHighlighter/donate.html
|
||||
*
|
||||
* @version
|
||||
* 3.0.83 (July 02 2010)
|
||||
*
|
||||
* @copyright
|
||||
* Copyright (C) 2004-2010 Alex Gorbatchev.
|
||||
*
|
||||
* @license
|
||||
* Dual licensed under the MIT and GPL licenses.
|
||||
*/
|
||||
var dp = {
|
||||
SyntaxHighlighter : {}
|
||||
};
|
||||
|
||||
dp.SyntaxHighlighter = {
|
||||
parseParams: function(
|
||||
input,
|
||||
showGutter,
|
||||
showControls,
|
||||
collapseAll,
|
||||
firstLine,
|
||||
showColumns
|
||||
)
|
||||
{
|
||||
function getValue(list, name)
|
||||
{
|
||||
var regex = new XRegExp('^' + name + '\\[(?<value>\\w+)\\]$', 'gi'),
|
||||
match = null
|
||||
;
|
||||
|
||||
for (var i = 0; i < list.length; i++)
|
||||
if ((match = regex.exec(list[i])) != null)
|
||||
return match.value;
|
||||
|
||||
return null;
|
||||
};
|
||||
|
||||
function defaultValue(value, def)
|
||||
{
|
||||
return value != null ? value : def;
|
||||
};
|
||||
|
||||
function asString(value)
|
||||
{
|
||||
return value != null ? value.toString() : null;
|
||||
};
|
||||
|
||||
var parts = input.split(':'),
|
||||
brushName = parts[0],
|
||||
options = {},
|
||||
straight = { 'true' : true }
|
||||
reverse = { 'true' : false },
|
||||
result = null,
|
||||
defaults = SyntaxHighlighter.defaults
|
||||
;
|
||||
|
||||
for (var i in parts)
|
||||
options[parts[i]] = 'true';
|
||||
|
||||
showGutter = asString(defaultValue(showGutter, defaults.gutter));
|
||||
showControls = asString(defaultValue(showControls, defaults.toolbar));
|
||||
collapseAll = asString(defaultValue(collapseAll, defaults.collapse));
|
||||
showColumns = asString(defaultValue(showColumns, defaults.ruler));
|
||||
firstLine = asString(defaultValue(firstLine, defaults['first-line']));
|
||||
|
||||
return {
|
||||
brush : brushName,
|
||||
gutter : defaultValue(reverse[options.nogutter], showGutter),
|
||||
toolbar : defaultValue(reverse[options.nocontrols], showControls),
|
||||
collapse : defaultValue(straight[options.collapse], collapseAll),
|
||||
// ruler : defaultValue(straight[options.showcolumns], showColumns),
|
||||
'first-line' : defaultValue(getValue(parts, 'firstline'), firstLine)
|
||||
};
|
||||
},
|
||||
|
||||
HighlightAll: function(
|
||||
name,
|
||||
showGutter /* optional */,
|
||||
showControls /* optional */,
|
||||
collapseAll /* optional */,
|
||||
firstLine /* optional */,
|
||||
showColumns /* optional */
|
||||
)
|
||||
{
|
||||
function findValue()
|
||||
{
|
||||
var a = arguments;
|
||||
|
||||
for (var i = 0; i < a.length; i++)
|
||||
{
|
||||
if (a[i] === null)
|
||||
continue;
|
||||
|
||||
if (typeof(a[i]) == 'string' && a[i] != '')
|
||||
return a[i] + '';
|
||||
|
||||
if (typeof(a[i]) == 'object' && a[i].value != '')
|
||||
return a[i].value + '';
|
||||
}
|
||||
|
||||
return null;
|
||||
};
|
||||
|
||||
function findTagsByName(list, name, tagName)
|
||||
{
|
||||
var tags = document.getElementsByTagName(tagName);
|
||||
|
||||
for (var i = 0; i < tags.length; i++)
|
||||
if (tags[i].getAttribute('name') == name)
|
||||
list.push(tags[i]);
|
||||
}
|
||||
|
||||
var elements = [],
|
||||
highlighter = null,
|
||||
registered = {},
|
||||
propertyName = 'innerHTML'
|
||||
;
|
||||
|
||||
// for some reason IE doesn't find <pre/> by name, however it does see them just fine by tag name...
|
||||
findTagsByName(elements, name, 'pre');
|
||||
findTagsByName(elements, name, 'textarea');
|
||||
|
||||
if (elements.length === 0)
|
||||
return;
|
||||
|
||||
for (var i = 0; i < elements.length; i++)
|
||||
{
|
||||
var element = elements[i],
|
||||
params = findValue(
|
||||
element.attributes['class'], element.className,
|
||||
element.attributes['language'], element.language
|
||||
),
|
||||
language = ''
|
||||
;
|
||||
|
||||
if (params === null)
|
||||
continue;
|
||||
|
||||
params = dp.SyntaxHighlighter.parseParams(
|
||||
params,
|
||||
showGutter,
|
||||
showControls,
|
||||
collapseAll,
|
||||
firstLine,
|
||||
showColumns
|
||||
);
|
||||
|
||||
SyntaxHighlighter.highlight(params, element);
|
||||
}
|
||||
}
|
||||
};
|
||||
232
assets/js/syntaxhighlighter/styles/shCore.css
Normal file
232
assets/js/syntaxhighlighter/styles/shCore.css
Normal file
@@ -0,0 +1,232 @@
|
||||
/**
|
||||
* SyntaxHighlighter
|
||||
* http://alexgorbatchev.com/SyntaxHighlighter
|
||||
*
|
||||
* SyntaxHighlighter is donationware. If you are using it, please donate.
|
||||
* http://alexgorbatchev.com/SyntaxHighlighter/donate.html
|
||||
*
|
||||
* @version
|
||||
* 3.0.83 (July 02 2010)
|
||||
*
|
||||
* @copyright
|
||||
* Copyright (C) 2004-2010 Alex Gorbatchev.
|
||||
*
|
||||
* @license
|
||||
* Dual licensed under the MIT and GPL licenses.
|
||||
*/
|
||||
.syntaxhighlighter a,
|
||||
.syntaxhighlighter div,
|
||||
.syntaxhighlighter code,
|
||||
.syntaxhighlighter table,
|
||||
.syntaxhighlighter table td,
|
||||
.syntaxhighlighter table tr,
|
||||
.syntaxhighlighter table tbody,
|
||||
.syntaxhighlighter table thead,
|
||||
.syntaxhighlighter table caption,
|
||||
.syntaxhighlighter textarea {
|
||||
-moz-border-radius: 0 0 0 0 !important;
|
||||
-webkit-border-radius: 0 0 0 0 !important;
|
||||
background: none !important;
|
||||
border: 0 !important;
|
||||
bottom: auto !important;
|
||||
float: none !important;
|
||||
height: auto !important;
|
||||
left: auto !important;
|
||||
line-height: 1.1em !important;
|
||||
margin: 0 !important;
|
||||
outline: 0 !important;
|
||||
overflow: visible !important;
|
||||
padding: 0 !important;
|
||||
position: static !important;
|
||||
right: auto !important;
|
||||
text-align: left !important;
|
||||
top: auto !important;
|
||||
vertical-align: baseline !important;
|
||||
width: auto !important;
|
||||
box-sizing: content-box !important;
|
||||
font-family: "Consolas", "Bitstream Vera Sans Mono", "Courier New", Courier, monospace !important;
|
||||
font-weight: normal !important;
|
||||
font-style: normal !important;
|
||||
font-size: 1em !important;
|
||||
min-height: inherit !important;
|
||||
min-height: auto !important;
|
||||
}
|
||||
|
||||
.syntaxhighlighter {
|
||||
width: 100% !important;
|
||||
margin: 1em 0 1em 0 !important;
|
||||
position: relative !important;
|
||||
overflow: auto !important;
|
||||
font-size: 1em !important;
|
||||
}
|
||||
.syntaxhighlighter.source {
|
||||
overflow: hidden !important;
|
||||
}
|
||||
.syntaxhighlighter .bold {
|
||||
font-weight: bold !important;
|
||||
}
|
||||
.syntaxhighlighter .italic {
|
||||
font-style: italic !important;
|
||||
}
|
||||
.syntaxhighlighter .line {
|
||||
white-space: pre !important;
|
||||
}
|
||||
.syntaxhighlighter table {
|
||||
width: 100% !important;
|
||||
}
|
||||
.syntaxhighlighter table caption {
|
||||
text-align: left !important;
|
||||
padding: .5em 0 0.5em 1em !important;
|
||||
}
|
||||
.syntaxhighlighter table td.code {
|
||||
width: 100% !important;
|
||||
}
|
||||
.syntaxhighlighter table td.code .container {
|
||||
position: relative !important;
|
||||
}
|
||||
.syntaxhighlighter table td.code .container textarea {
|
||||
box-sizing: border-box !important;
|
||||
position: absolute !important;
|
||||
left: 0 !important;
|
||||
top: 0 !important;
|
||||
width: 100% !important;
|
||||
height: 100% !important;
|
||||
border: none !important;
|
||||
background: white !important;
|
||||
padding-left: 1em !important;
|
||||
overflow: hidden !important;
|
||||
white-space: pre !important;
|
||||
}
|
||||
.syntaxhighlighter table td.gutter .line {
|
||||
text-align: right !important;
|
||||
padding: 0 0.5em 0 1em !important;
|
||||
}
|
||||
.syntaxhighlighter table td.code .line {
|
||||
padding: 0 1em !important;
|
||||
}
|
||||
.syntaxhighlighter.nogutter td.code .container textarea, .syntaxhighlighter.nogutter td.code .line {
|
||||
padding-left: 0em !important;
|
||||
}
|
||||
.syntaxhighlighter.show {
|
||||
display: block !important;
|
||||
}
|
||||
.syntaxhighlighter.collapsed table {
|
||||
display: none !important;
|
||||
}
|
||||
.syntaxhighlighter.collapsed .toolbar {
|
||||
padding: 0.1em 0.8em 0em 0.8em !important;
|
||||
font-size: 1em !important;
|
||||
position: static !important;
|
||||
width: auto !important;
|
||||
height: auto !important;
|
||||
}
|
||||
.syntaxhighlighter.collapsed .toolbar span {
|
||||
display: inline !important;
|
||||
margin-right: 1em !important;
|
||||
}
|
||||
.syntaxhighlighter.collapsed .toolbar span a {
|
||||
padding: 0 !important;
|
||||
display: none !important;
|
||||
}
|
||||
.syntaxhighlighter.collapsed .toolbar span a.expandSource {
|
||||
display: inline !important;
|
||||
}
|
||||
.syntaxhighlighter .toolbar {
|
||||
position: absolute !important;
|
||||
right: 1px !important;
|
||||
top: 1px !important;
|
||||
width: 11px !important;
|
||||
height: 11px !important;
|
||||
font-size: 10px !important;
|
||||
z-index: 10 !important;
|
||||
}
|
||||
.syntaxhighlighter .toolbar span.title {
|
||||
display: inline !important;
|
||||
}
|
||||
.syntaxhighlighter .toolbar a {
|
||||
display: block !important;
|
||||
text-align: center !important;
|
||||
text-decoration: none !important;
|
||||
padding-top: 1px !important;
|
||||
}
|
||||
.syntaxhighlighter .toolbar a.expandSource {
|
||||
display: none !important;
|
||||
}
|
||||
.syntaxhighlighter.ie {
|
||||
font-size: .9em !important;
|
||||
padding: 1px 0 1px 0 !important;
|
||||
}
|
||||
.syntaxhighlighter.ie .toolbar {
|
||||
line-height: 8px !important;
|
||||
}
|
||||
.syntaxhighlighter.ie .toolbar a {
|
||||
padding-top: 0px !important;
|
||||
}
|
||||
.syntaxhighlighter.printing .line.alt1 .content,
|
||||
.syntaxhighlighter.printing .line.alt2 .content,
|
||||
.syntaxhighlighter.printing .line.highlighted .number,
|
||||
.syntaxhighlighter.printing .line.highlighted.alt1 .content,
|
||||
.syntaxhighlighter.printing .line.highlighted.alt2 .content {
|
||||
background: none !important;
|
||||
}
|
||||
.syntaxhighlighter.printing .line .number {
|
||||
color: #bbbbbb !important;
|
||||
}
|
||||
.syntaxhighlighter.printing .line .content {
|
||||
color: black !important;
|
||||
}
|
||||
.syntaxhighlighter.printing .toolbar {
|
||||
display: none !important;
|
||||
}
|
||||
.syntaxhighlighter.printing a {
|
||||
text-decoration: none !important;
|
||||
}
|
||||
.syntaxhighlighter.printing .plain, .syntaxhighlighter.printing .plain a {
|
||||
color: black !important;
|
||||
}
|
||||
.syntaxhighlighter.printing .comments, .syntaxhighlighter.printing .comments a {
|
||||
color: #008200 !important;
|
||||
}
|
||||
.syntaxhighlighter.printing .string, .syntaxhighlighter.printing .string a {
|
||||
color: blue !important;
|
||||
}
|
||||
.syntaxhighlighter.printing .keyword {
|
||||
color: #006699 !important;
|
||||
font-weight: bold !important;
|
||||
}
|
||||
.syntaxhighlighter.printing .preprocessor {
|
||||
color: gray !important;
|
||||
}
|
||||
.syntaxhighlighter.printing .variable {
|
||||
color: #aa7700 !important;
|
||||
}
|
||||
.syntaxhighlighter.printing .value {
|
||||
color: #009900 !important;
|
||||
}
|
||||
.syntaxhighlighter.printing .functions {
|
||||
color: #ff1493 !important;
|
||||
}
|
||||
.syntaxhighlighter.printing .constants {
|
||||
color: #0066cc !important;
|
||||
}
|
||||
.syntaxhighlighter.printing .script {
|
||||
font-weight: bold !important;
|
||||
}
|
||||
.syntaxhighlighter.printing .color1, .syntaxhighlighter.printing .color1 a {
|
||||
color: gray !important;
|
||||
}
|
||||
.syntaxhighlighter.printing .color2, .syntaxhighlighter.printing .color2 a {
|
||||
color: #ff1493 !important;
|
||||
}
|
||||
.syntaxhighlighter.printing .color3, .syntaxhighlighter.printing .color3 a {
|
||||
color: red !important;
|
||||
}
|
||||
.syntaxhighlighter.printing .break, .syntaxhighlighter.printing .break a {
|
||||
color: black !important;
|
||||
}
|
||||
|
||||
|
||||
.syntaxhighlighter .line {
|
||||
font-size: 13px !important;
|
||||
line-height: 20px !important;
|
||||
}
|
||||
328
assets/js/syntaxhighlighter/styles/shCoreDefault.css
Normal file
328
assets/js/syntaxhighlighter/styles/shCoreDefault.css
Normal file
@@ -0,0 +1,328 @@
|
||||
/**
|
||||
* SyntaxHighlighter
|
||||
* http://alexgorbatchev.com/SyntaxHighlighter
|
||||
*
|
||||
* SyntaxHighlighter is donationware. If you are using it, please donate.
|
||||
* http://alexgorbatchev.com/SyntaxHighlighter/donate.html
|
||||
*
|
||||
* @version
|
||||
* 3.0.83 (July 02 2010)
|
||||
*
|
||||
* @copyright
|
||||
* Copyright (C) 2004-2010 Alex Gorbatchev.
|
||||
*
|
||||
* @license
|
||||
* Dual licensed under the MIT and GPL licenses.
|
||||
*/
|
||||
.syntaxhighlighter a,
|
||||
.syntaxhighlighter div,
|
||||
.syntaxhighlighter code,
|
||||
.syntaxhighlighter table,
|
||||
.syntaxhighlighter table td,
|
||||
.syntaxhighlighter table tr,
|
||||
.syntaxhighlighter table tbody,
|
||||
.syntaxhighlighter table thead,
|
||||
.syntaxhighlighter table caption,
|
||||
.syntaxhighlighter textarea {
|
||||
-moz-border-radius: 0 0 0 0 !important;
|
||||
-webkit-border-radius: 0 0 0 0 !important;
|
||||
background: none !important;
|
||||
border: 0 !important;
|
||||
bottom: auto !important;
|
||||
float: none !important;
|
||||
height: auto !important;
|
||||
left: auto !important;
|
||||
line-height: 1.1em !important;
|
||||
margin: 0 !important;
|
||||
outline: 0 !important;
|
||||
overflow: visible !important;
|
||||
padding: 0 !important;
|
||||
position: static !important;
|
||||
right: auto !important;
|
||||
text-align: left !important;
|
||||
top: auto !important;
|
||||
vertical-align: baseline !important;
|
||||
width: auto !important;
|
||||
box-sizing: content-box !important;
|
||||
font-family: "Consolas", "Bitstream Vera Sans Mono", "Courier New", Courier, monospace !important;
|
||||
font-weight: normal !important;
|
||||
font-style: normal !important;
|
||||
font-size: 1em !important;
|
||||
min-height: inherit !important;
|
||||
min-height: auto !important;
|
||||
}
|
||||
|
||||
.syntaxhighlighter {
|
||||
width: 100% !important;
|
||||
margin: 1em 0 1em 0 !important;
|
||||
position: relative !important;
|
||||
overflow: auto !important;
|
||||
font-size: 1em !important;
|
||||
}
|
||||
.syntaxhighlighter.source {
|
||||
overflow: hidden !important;
|
||||
}
|
||||
.syntaxhighlighter .bold {
|
||||
font-weight: bold !important;
|
||||
}
|
||||
.syntaxhighlighter .italic {
|
||||
font-style: italic !important;
|
||||
}
|
||||
.syntaxhighlighter .line {
|
||||
white-space: pre !important;
|
||||
}
|
||||
.syntaxhighlighter table {
|
||||
width: 100% !important;
|
||||
}
|
||||
.syntaxhighlighter table caption {
|
||||
text-align: left !important;
|
||||
padding: .5em 0 0.5em 1em !important;
|
||||
}
|
||||
.syntaxhighlighter table td.code {
|
||||
width: 100% !important;
|
||||
}
|
||||
.syntaxhighlighter table td.code .container {
|
||||
position: relative !important;
|
||||
}
|
||||
.syntaxhighlighter table td.code .container textarea {
|
||||
box-sizing: border-box !important;
|
||||
position: absolute !important;
|
||||
left: 0 !important;
|
||||
top: 0 !important;
|
||||
width: 100% !important;
|
||||
height: 100% !important;
|
||||
border: none !important;
|
||||
background: white !important;
|
||||
padding-left: 1em !important;
|
||||
overflow: hidden !important;
|
||||
white-space: pre !important;
|
||||
}
|
||||
.syntaxhighlighter table td.gutter .line {
|
||||
text-align: right !important;
|
||||
padding: 0 0.5em 0 1em !important;
|
||||
}
|
||||
.syntaxhighlighter table td.code .line {
|
||||
padding: 0 1em !important;
|
||||
}
|
||||
.syntaxhighlighter.nogutter td.code .container textarea, .syntaxhighlighter.nogutter td.code .line {
|
||||
padding-left: 0em !important;
|
||||
}
|
||||
.syntaxhighlighter.show {
|
||||
display: block !important;
|
||||
}
|
||||
.syntaxhighlighter.collapsed table {
|
||||
display: none !important;
|
||||
}
|
||||
.syntaxhighlighter.collapsed .toolbar {
|
||||
padding: 0.1em 0.8em 0em 0.8em !important;
|
||||
font-size: 1em !important;
|
||||
position: static !important;
|
||||
width: auto !important;
|
||||
height: auto !important;
|
||||
}
|
||||
.syntaxhighlighter.collapsed .toolbar span {
|
||||
display: inline !important;
|
||||
margin-right: 1em !important;
|
||||
}
|
||||
.syntaxhighlighter.collapsed .toolbar span a {
|
||||
padding: 0 !important;
|
||||
display: none !important;
|
||||
}
|
||||
.syntaxhighlighter.collapsed .toolbar span a.expandSource {
|
||||
display: inline !important;
|
||||
}
|
||||
.syntaxhighlighter .toolbar {
|
||||
position: absolute !important;
|
||||
right: 1px !important;
|
||||
top: 1px !important;
|
||||
width: 11px !important;
|
||||
height: 11px !important;
|
||||
font-size: 10px !important;
|
||||
z-index: 10 !important;
|
||||
}
|
||||
.syntaxhighlighter .toolbar span.title {
|
||||
display: inline !important;
|
||||
}
|
||||
.syntaxhighlighter .toolbar a {
|
||||
display: block !important;
|
||||
text-align: center !important;
|
||||
text-decoration: none !important;
|
||||
padding-top: 1px !important;
|
||||
}
|
||||
.syntaxhighlighter .toolbar a.expandSource {
|
||||
display: none !important;
|
||||
}
|
||||
.syntaxhighlighter.ie {
|
||||
font-size: .9em !important;
|
||||
padding: 1px 0 1px 0 !important;
|
||||
}
|
||||
.syntaxhighlighter.ie .toolbar {
|
||||
line-height: 8px !important;
|
||||
}
|
||||
.syntaxhighlighter.ie .toolbar a {
|
||||
padding-top: 0px !important;
|
||||
}
|
||||
.syntaxhighlighter.printing .line.alt1 .content,
|
||||
.syntaxhighlighter.printing .line.alt2 .content,
|
||||
.syntaxhighlighter.printing .line.highlighted .number,
|
||||
.syntaxhighlighter.printing .line.highlighted.alt1 .content,
|
||||
.syntaxhighlighter.printing .line.highlighted.alt2 .content {
|
||||
background: none !important;
|
||||
}
|
||||
.syntaxhighlighter.printing .line .number {
|
||||
color: #bbbbbb !important;
|
||||
}
|
||||
.syntaxhighlighter.printing .line .content {
|
||||
color: black !important;
|
||||
}
|
||||
.syntaxhighlighter.printing .toolbar {
|
||||
display: none !important;
|
||||
}
|
||||
.syntaxhighlighter.printing a {
|
||||
text-decoration: none !important;
|
||||
}
|
||||
.syntaxhighlighter.printing .plain, .syntaxhighlighter.printing .plain a {
|
||||
color: black !important;
|
||||
}
|
||||
.syntaxhighlighter.printing .comments, .syntaxhighlighter.printing .comments a {
|
||||
color: #008200 !important;
|
||||
}
|
||||
.syntaxhighlighter.printing .string, .syntaxhighlighter.printing .string a {
|
||||
color: blue !important;
|
||||
}
|
||||
.syntaxhighlighter.printing .keyword {
|
||||
color: #006699 !important;
|
||||
font-weight: bold !important;
|
||||
}
|
||||
.syntaxhighlighter.printing .preprocessor {
|
||||
color: gray !important;
|
||||
}
|
||||
.syntaxhighlighter.printing .variable {
|
||||
color: #aa7700 !important;
|
||||
}
|
||||
.syntaxhighlighter.printing .value {
|
||||
color: #009900 !important;
|
||||
}
|
||||
.syntaxhighlighter.printing .functions {
|
||||
color: #ff1493 !important;
|
||||
}
|
||||
.syntaxhighlighter.printing .constants {
|
||||
color: #0066cc !important;
|
||||
}
|
||||
.syntaxhighlighter.printing .script {
|
||||
font-weight: bold !important;
|
||||
}
|
||||
.syntaxhighlighter.printing .color1, .syntaxhighlighter.printing .color1 a {
|
||||
color: gray !important;
|
||||
}
|
||||
.syntaxhighlighter.printing .color2, .syntaxhighlighter.printing .color2 a {
|
||||
color: #ff1493 !important;
|
||||
}
|
||||
.syntaxhighlighter.printing .color3, .syntaxhighlighter.printing .color3 a {
|
||||
color: red !important;
|
||||
}
|
||||
.syntaxhighlighter.printing .break, .syntaxhighlighter.printing .break a {
|
||||
color: black !important;
|
||||
}
|
||||
|
||||
.syntaxhighlighter {
|
||||
background-color: white !important;
|
||||
}
|
||||
.syntaxhighlighter .line.alt1 {
|
||||
background-color: white !important;
|
||||
}
|
||||
.syntaxhighlighter .line.alt2 {
|
||||
background-color: white !important;
|
||||
}
|
||||
.syntaxhighlighter .line.highlighted.alt1, .syntaxhighlighter .line.highlighted.alt2 {
|
||||
background-color: #e0e0e0 !important;
|
||||
}
|
||||
.syntaxhighlighter .line.highlighted.number {
|
||||
color: black !important;
|
||||
}
|
||||
.syntaxhighlighter table caption {
|
||||
color: black !important;
|
||||
}
|
||||
.syntaxhighlighter .gutter {
|
||||
color: #afafaf !important;
|
||||
}
|
||||
.syntaxhighlighter .gutter .line {
|
||||
border-right: 3px solid #6ce26c !important;
|
||||
}
|
||||
.syntaxhighlighter .gutter .line.highlighted {
|
||||
background-color: #6ce26c !important;
|
||||
color: white !important;
|
||||
}
|
||||
.syntaxhighlighter.printing .line .content {
|
||||
border: none !important;
|
||||
}
|
||||
.syntaxhighlighter.collapsed {
|
||||
overflow: visible !important;
|
||||
}
|
||||
.syntaxhighlighter.collapsed .toolbar {
|
||||
color: blue !important;
|
||||
background: white !important;
|
||||
border: 1px solid #6ce26c !important;
|
||||
}
|
||||
.syntaxhighlighter.collapsed .toolbar a {
|
||||
color: blue !important;
|
||||
}
|
||||
.syntaxhighlighter.collapsed .toolbar a:hover {
|
||||
color: red !important;
|
||||
}
|
||||
.syntaxhighlighter .toolbar {
|
||||
color: white !important;
|
||||
background: #6ce26c !important;
|
||||
border: none !important;
|
||||
}
|
||||
.syntaxhighlighter .toolbar a {
|
||||
color: white !important;
|
||||
}
|
||||
.syntaxhighlighter .toolbar a:hover {
|
||||
color: black !important;
|
||||
}
|
||||
.syntaxhighlighter .plain, .syntaxhighlighter .plain a {
|
||||
color: black !important;
|
||||
}
|
||||
.syntaxhighlighter .comments, .syntaxhighlighter .comments a {
|
||||
color: #008200 !important;
|
||||
}
|
||||
.syntaxhighlighter .string, .syntaxhighlighter .string a {
|
||||
color: blue !important;
|
||||
}
|
||||
.syntaxhighlighter .keyword {
|
||||
color: #006699 !important;
|
||||
}
|
||||
.syntaxhighlighter .preprocessor {
|
||||
color: gray !important;
|
||||
}
|
||||
.syntaxhighlighter .variable {
|
||||
color: #aa7700 !important;
|
||||
}
|
||||
.syntaxhighlighter .value {
|
||||
color: #009900 !important;
|
||||
}
|
||||
.syntaxhighlighter .functions {
|
||||
color: #ff1493 !important;
|
||||
}
|
||||
.syntaxhighlighter .constants {
|
||||
color: #0066cc !important;
|
||||
}
|
||||
.syntaxhighlighter .script {
|
||||
font-weight: bold !important;
|
||||
color: #006699 !important;
|
||||
background-color: none !important;
|
||||
}
|
||||
.syntaxhighlighter .color1, .syntaxhighlighter .color1 a {
|
||||
color: gray !important;
|
||||
}
|
||||
.syntaxhighlighter .color2, .syntaxhighlighter .color2 a {
|
||||
color: #ff1493 !important;
|
||||
}
|
||||
.syntaxhighlighter .color3, .syntaxhighlighter .color3 a {
|
||||
color: red !important;
|
||||
}
|
||||
|
||||
.syntaxhighlighter .keyword {
|
||||
font-weight: bold !important;
|
||||
}
|
||||
331
assets/js/syntaxhighlighter/styles/shCoreDjango.css
Normal file
331
assets/js/syntaxhighlighter/styles/shCoreDjango.css
Normal file
@@ -0,0 +1,331 @@
|
||||
/**
|
||||
* SyntaxHighlighter
|
||||
* http://alexgorbatchev.com/SyntaxHighlighter
|
||||
*
|
||||
* SyntaxHighlighter is donationware. If you are using it, please donate.
|
||||
* http://alexgorbatchev.com/SyntaxHighlighter/donate.html
|
||||
*
|
||||
* @version
|
||||
* 3.0.83 (July 02 2010)
|
||||
*
|
||||
* @copyright
|
||||
* Copyright (C) 2004-2010 Alex Gorbatchev.
|
||||
*
|
||||
* @license
|
||||
* Dual licensed under the MIT and GPL licenses.
|
||||
*/
|
||||
.syntaxhighlighter a,
|
||||
.syntaxhighlighter div,
|
||||
.syntaxhighlighter code,
|
||||
.syntaxhighlighter table,
|
||||
.syntaxhighlighter table td,
|
||||
.syntaxhighlighter table tr,
|
||||
.syntaxhighlighter table tbody,
|
||||
.syntaxhighlighter table thead,
|
||||
.syntaxhighlighter table caption,
|
||||
.syntaxhighlighter textarea {
|
||||
-moz-border-radius: 0 0 0 0 !important;
|
||||
-webkit-border-radius: 0 0 0 0 !important;
|
||||
background: none !important;
|
||||
border: 0 !important;
|
||||
bottom: auto !important;
|
||||
float: none !important;
|
||||
height: auto !important;
|
||||
left: auto !important;
|
||||
line-height: 1.1em !important;
|
||||
margin: 0 !important;
|
||||
outline: 0 !important;
|
||||
overflow: visible !important;
|
||||
padding: 0 !important;
|
||||
position: static !important;
|
||||
right: auto !important;
|
||||
text-align: left !important;
|
||||
top: auto !important;
|
||||
vertical-align: baseline !important;
|
||||
width: auto !important;
|
||||
box-sizing: content-box !important;
|
||||
font-family: "Consolas", "Bitstream Vera Sans Mono", "Courier New", Courier, monospace !important;
|
||||
font-weight: normal !important;
|
||||
font-style: normal !important;
|
||||
font-size: 1em !important;
|
||||
min-height: inherit !important;
|
||||
min-height: auto !important;
|
||||
}
|
||||
|
||||
.syntaxhighlighter {
|
||||
width: 100% !important;
|
||||
margin: 1em 0 1em 0 !important;
|
||||
position: relative !important;
|
||||
overflow: auto !important;
|
||||
font-size: 1em !important;
|
||||
}
|
||||
.syntaxhighlighter.source {
|
||||
overflow: hidden !important;
|
||||
}
|
||||
.syntaxhighlighter .bold {
|
||||
font-weight: bold !important;
|
||||
}
|
||||
.syntaxhighlighter .italic {
|
||||
font-style: italic !important;
|
||||
}
|
||||
.syntaxhighlighter .line {
|
||||
white-space: pre !important;
|
||||
}
|
||||
.syntaxhighlighter table {
|
||||
width: 100% !important;
|
||||
}
|
||||
.syntaxhighlighter table caption {
|
||||
text-align: left !important;
|
||||
padding: .5em 0 0.5em 1em !important;
|
||||
}
|
||||
.syntaxhighlighter table td.code {
|
||||
width: 100% !important;
|
||||
}
|
||||
.syntaxhighlighter table td.code .container {
|
||||
position: relative !important;
|
||||
}
|
||||
.syntaxhighlighter table td.code .container textarea {
|
||||
box-sizing: border-box !important;
|
||||
position: absolute !important;
|
||||
left: 0 !important;
|
||||
top: 0 !important;
|
||||
width: 100% !important;
|
||||
height: 100% !important;
|
||||
border: none !important;
|
||||
background: white !important;
|
||||
padding-left: 1em !important;
|
||||
overflow: hidden !important;
|
||||
white-space: pre !important;
|
||||
}
|
||||
.syntaxhighlighter table td.gutter .line {
|
||||
text-align: right !important;
|
||||
padding: 0 0.5em 0 1em !important;
|
||||
}
|
||||
.syntaxhighlighter table td.code .line {
|
||||
padding: 0 1em !important;
|
||||
}
|
||||
.syntaxhighlighter.nogutter td.code .container textarea, .syntaxhighlighter.nogutter td.code .line {
|
||||
padding-left: 0em !important;
|
||||
}
|
||||
.syntaxhighlighter.show {
|
||||
display: block !important;
|
||||
}
|
||||
.syntaxhighlighter.collapsed table {
|
||||
display: none !important;
|
||||
}
|
||||
.syntaxhighlighter.collapsed .toolbar {
|
||||
padding: 0.1em 0.8em 0em 0.8em !important;
|
||||
font-size: 1em !important;
|
||||
position: static !important;
|
||||
width: auto !important;
|
||||
height: auto !important;
|
||||
}
|
||||
.syntaxhighlighter.collapsed .toolbar span {
|
||||
display: inline !important;
|
||||
margin-right: 1em !important;
|
||||
}
|
||||
.syntaxhighlighter.collapsed .toolbar span a {
|
||||
padding: 0 !important;
|
||||
display: none !important;
|
||||
}
|
||||
.syntaxhighlighter.collapsed .toolbar span a.expandSource {
|
||||
display: inline !important;
|
||||
}
|
||||
.syntaxhighlighter .toolbar {
|
||||
position: absolute !important;
|
||||
right: 1px !important;
|
||||
top: 1px !important;
|
||||
width: 11px !important;
|
||||
height: 11px !important;
|
||||
font-size: 10px !important;
|
||||
z-index: 10 !important;
|
||||
}
|
||||
.syntaxhighlighter .toolbar span.title {
|
||||
display: inline !important;
|
||||
}
|
||||
.syntaxhighlighter .toolbar a {
|
||||
display: block !important;
|
||||
text-align: center !important;
|
||||
text-decoration: none !important;
|
||||
padding-top: 1px !important;
|
||||
}
|
||||
.syntaxhighlighter .toolbar a.expandSource {
|
||||
display: none !important;
|
||||
}
|
||||
.syntaxhighlighter.ie {
|
||||
font-size: .9em !important;
|
||||
padding: 1px 0 1px 0 !important;
|
||||
}
|
||||
.syntaxhighlighter.ie .toolbar {
|
||||
line-height: 8px !important;
|
||||
}
|
||||
.syntaxhighlighter.ie .toolbar a {
|
||||
padding-top: 0px !important;
|
||||
}
|
||||
.syntaxhighlighter.printing .line.alt1 .content,
|
||||
.syntaxhighlighter.printing .line.alt2 .content,
|
||||
.syntaxhighlighter.printing .line.highlighted .number,
|
||||
.syntaxhighlighter.printing .line.highlighted.alt1 .content,
|
||||
.syntaxhighlighter.printing .line.highlighted.alt2 .content {
|
||||
background: none !important;
|
||||
}
|
||||
.syntaxhighlighter.printing .line .number {
|
||||
color: #bbbbbb !important;
|
||||
}
|
||||
.syntaxhighlighter.printing .line .content {
|
||||
color: black !important;
|
||||
}
|
||||
.syntaxhighlighter.printing .toolbar {
|
||||
display: none !important;
|
||||
}
|
||||
.syntaxhighlighter.printing a {
|
||||
text-decoration: none !important;
|
||||
}
|
||||
.syntaxhighlighter.printing .plain, .syntaxhighlighter.printing .plain a {
|
||||
color: black !important;
|
||||
}
|
||||
.syntaxhighlighter.printing .comments, .syntaxhighlighter.printing .comments a {
|
||||
color: #008200 !important;
|
||||
}
|
||||
.syntaxhighlighter.printing .string, .syntaxhighlighter.printing .string a {
|
||||
color: blue !important;
|
||||
}
|
||||
.syntaxhighlighter.printing .keyword {
|
||||
color: #006699 !important;
|
||||
font-weight: bold !important;
|
||||
}
|
||||
.syntaxhighlighter.printing .preprocessor {
|
||||
color: gray !important;
|
||||
}
|
||||
.syntaxhighlighter.printing .variable {
|
||||
color: #aa7700 !important;
|
||||
}
|
||||
.syntaxhighlighter.printing .value {
|
||||
color: #009900 !important;
|
||||
}
|
||||
.syntaxhighlighter.printing .functions {
|
||||
color: #ff1493 !important;
|
||||
}
|
||||
.syntaxhighlighter.printing .constants {
|
||||
color: #0066cc !important;
|
||||
}
|
||||
.syntaxhighlighter.printing .script {
|
||||
font-weight: bold !important;
|
||||
}
|
||||
.syntaxhighlighter.printing .color1, .syntaxhighlighter.printing .color1 a {
|
||||
color: gray !important;
|
||||
}
|
||||
.syntaxhighlighter.printing .color2, .syntaxhighlighter.printing .color2 a {
|
||||
color: #ff1493 !important;
|
||||
}
|
||||
.syntaxhighlighter.printing .color3, .syntaxhighlighter.printing .color3 a {
|
||||
color: red !important;
|
||||
}
|
||||
.syntaxhighlighter.printing .break, .syntaxhighlighter.printing .break a {
|
||||
color: black !important;
|
||||
}
|
||||
|
||||
.syntaxhighlighter {
|
||||
background-color: #0a2b1d !important;
|
||||
}
|
||||
.syntaxhighlighter .line.alt1 {
|
||||
background-color: #0a2b1d !important;
|
||||
}
|
||||
.syntaxhighlighter .line.alt2 {
|
||||
background-color: #0a2b1d !important;
|
||||
}
|
||||
.syntaxhighlighter .line.highlighted.alt1, .syntaxhighlighter .line.highlighted.alt2 {
|
||||
background-color: #233729 !important;
|
||||
}
|
||||
.syntaxhighlighter .line.highlighted.number {
|
||||
color: white !important;
|
||||
}
|
||||
.syntaxhighlighter table caption {
|
||||
color: #f8f8f8 !important;
|
||||
}
|
||||
.syntaxhighlighter .gutter {
|
||||
color: #497958 !important;
|
||||
}
|
||||
.syntaxhighlighter .gutter .line {
|
||||
border-right: 3px solid #41a83e !important;
|
||||
}
|
||||
.syntaxhighlighter .gutter .line.highlighted {
|
||||
background-color: #41a83e !important;
|
||||
color: #0a2b1d !important;
|
||||
}
|
||||
.syntaxhighlighter.printing .line .content {
|
||||
border: none !important;
|
||||
}
|
||||
.syntaxhighlighter.collapsed {
|
||||
overflow: visible !important;
|
||||
}
|
||||
.syntaxhighlighter.collapsed .toolbar {
|
||||
color: #96dd3b !important;
|
||||
background: black !important;
|
||||
border: 1px solid #41a83e !important;
|
||||
}
|
||||
.syntaxhighlighter.collapsed .toolbar a {
|
||||
color: #96dd3b !important;
|
||||
}
|
||||
.syntaxhighlighter.collapsed .toolbar a:hover {
|
||||
color: white !important;
|
||||
}
|
||||
.syntaxhighlighter .toolbar {
|
||||
color: white !important;
|
||||
background: #41a83e !important;
|
||||
border: none !important;
|
||||
}
|
||||
.syntaxhighlighter .toolbar a {
|
||||
color: white !important;
|
||||
}
|
||||
.syntaxhighlighter .toolbar a:hover {
|
||||
color: #ffe862 !important;
|
||||
}
|
||||
.syntaxhighlighter .plain, .syntaxhighlighter .plain a {
|
||||
color: #f8f8f8 !important;
|
||||
}
|
||||
.syntaxhighlighter .comments, .syntaxhighlighter .comments a {
|
||||
color: #336442 !important;
|
||||
}
|
||||
.syntaxhighlighter .string, .syntaxhighlighter .string a {
|
||||
color: #9df39f !important;
|
||||
}
|
||||
.syntaxhighlighter .keyword {
|
||||
color: #96dd3b !important;
|
||||
}
|
||||
.syntaxhighlighter .preprocessor {
|
||||
color: #91bb9e !important;
|
||||
}
|
||||
.syntaxhighlighter .variable {
|
||||
color: #ffaa3e !important;
|
||||
}
|
||||
.syntaxhighlighter .value {
|
||||
color: #f7e741 !important;
|
||||
}
|
||||
.syntaxhighlighter .functions {
|
||||
color: #ffaa3e !important;
|
||||
}
|
||||
.syntaxhighlighter .constants {
|
||||
color: #e0e8ff !important;
|
||||
}
|
||||
.syntaxhighlighter .script {
|
||||
font-weight: bold !important;
|
||||
color: #96dd3b !important;
|
||||
background-color: none !important;
|
||||
}
|
||||
.syntaxhighlighter .color1, .syntaxhighlighter .color1 a {
|
||||
color: #eb939a !important;
|
||||
}
|
||||
.syntaxhighlighter .color2, .syntaxhighlighter .color2 a {
|
||||
color: #91bb9e !important;
|
||||
}
|
||||
.syntaxhighlighter .color3, .syntaxhighlighter .color3 a {
|
||||
color: #edef7d !important;
|
||||
}
|
||||
|
||||
.syntaxhighlighter .comments {
|
||||
font-style: italic !important;
|
||||
}
|
||||
.syntaxhighlighter .keyword {
|
||||
font-weight: bold !important;
|
||||
}
|
||||
339
assets/js/syntaxhighlighter/styles/shCoreEclipse.css
Normal file
339
assets/js/syntaxhighlighter/styles/shCoreEclipse.css
Normal file
@@ -0,0 +1,339 @@
|
||||
/**
|
||||
* SyntaxHighlighter
|
||||
* http://alexgorbatchev.com/SyntaxHighlighter
|
||||
*
|
||||
* SyntaxHighlighter is donationware. If you are using it, please donate.
|
||||
* http://alexgorbatchev.com/SyntaxHighlighter/donate.html
|
||||
*
|
||||
* @version
|
||||
* 3.0.83 (July 02 2010)
|
||||
*
|
||||
* @copyright
|
||||
* Copyright (C) 2004-2010 Alex Gorbatchev.
|
||||
*
|
||||
* @license
|
||||
* Dual licensed under the MIT and GPL licenses.
|
||||
*/
|
||||
.syntaxhighlighter a,
|
||||
.syntaxhighlighter div,
|
||||
.syntaxhighlighter code,
|
||||
.syntaxhighlighter table,
|
||||
.syntaxhighlighter table td,
|
||||
.syntaxhighlighter table tr,
|
||||
.syntaxhighlighter table tbody,
|
||||
.syntaxhighlighter table thead,
|
||||
.syntaxhighlighter table caption,
|
||||
.syntaxhighlighter textarea {
|
||||
-moz-border-radius: 0 0 0 0 !important;
|
||||
-webkit-border-radius: 0 0 0 0 !important;
|
||||
background: none !important;
|
||||
border: 0 !important;
|
||||
bottom: auto !important;
|
||||
float: none !important;
|
||||
height: auto !important;
|
||||
left: auto !important;
|
||||
line-height: 1.1em !important;
|
||||
margin: 0 !important;
|
||||
outline: 0 !important;
|
||||
overflow: visible !important;
|
||||
padding: 0 !important;
|
||||
position: static !important;
|
||||
right: auto !important;
|
||||
text-align: left !important;
|
||||
top: auto !important;
|
||||
vertical-align: baseline !important;
|
||||
width: auto !important;
|
||||
box-sizing: content-box !important;
|
||||
font-family: "Consolas", "Bitstream Vera Sans Mono", "Courier New", Courier, monospace !important;
|
||||
font-weight: normal !important;
|
||||
font-style: normal !important;
|
||||
font-size: 1em !important;
|
||||
min-height: inherit !important;
|
||||
min-height: auto !important;
|
||||
}
|
||||
|
||||
.syntaxhighlighter {
|
||||
width: 100% !important;
|
||||
margin: 1em 0 1em 0 !important;
|
||||
position: relative !important;
|
||||
overflow: auto !important;
|
||||
font-size: 1em !important;
|
||||
}
|
||||
.syntaxhighlighter.source {
|
||||
overflow: hidden !important;
|
||||
}
|
||||
.syntaxhighlighter .bold {
|
||||
font-weight: bold !important;
|
||||
}
|
||||
.syntaxhighlighter .italic {
|
||||
font-style: italic !important;
|
||||
}
|
||||
.syntaxhighlighter .line {
|
||||
white-space: pre !important;
|
||||
}
|
||||
.syntaxhighlighter table {
|
||||
width: 100% !important;
|
||||
}
|
||||
.syntaxhighlighter table caption {
|
||||
text-align: left !important;
|
||||
padding: .5em 0 0.5em 1em !important;
|
||||
}
|
||||
.syntaxhighlighter table td.code {
|
||||
width: 100% !important;
|
||||
}
|
||||
.syntaxhighlighter table td.code .container {
|
||||
position: relative !important;
|
||||
}
|
||||
.syntaxhighlighter table td.code .container textarea {
|
||||
box-sizing: border-box !important;
|
||||
position: absolute !important;
|
||||
left: 0 !important;
|
||||
top: 0 !important;
|
||||
width: 100% !important;
|
||||
height: 100% !important;
|
||||
border: none !important;
|
||||
background: white !important;
|
||||
padding-left: 1em !important;
|
||||
overflow: hidden !important;
|
||||
white-space: pre !important;
|
||||
}
|
||||
.syntaxhighlighter table td.gutter .line {
|
||||
text-align: right !important;
|
||||
padding: 0 0.5em 0 1em !important;
|
||||
}
|
||||
.syntaxhighlighter table td.code .line {
|
||||
padding: 0 1em !important;
|
||||
}
|
||||
.syntaxhighlighter.nogutter td.code .container textarea, .syntaxhighlighter.nogutter td.code .line {
|
||||
padding-left: 0em !important;
|
||||
}
|
||||
.syntaxhighlighter.show {
|
||||
display: block !important;
|
||||
}
|
||||
.syntaxhighlighter.collapsed table {
|
||||
display: none !important;
|
||||
}
|
||||
.syntaxhighlighter.collapsed .toolbar {
|
||||
padding: 0.1em 0.8em 0em 0.8em !important;
|
||||
font-size: 1em !important;
|
||||
position: static !important;
|
||||
width: auto !important;
|
||||
height: auto !important;
|
||||
}
|
||||
.syntaxhighlighter.collapsed .toolbar span {
|
||||
display: inline !important;
|
||||
margin-right: 1em !important;
|
||||
}
|
||||
.syntaxhighlighter.collapsed .toolbar span a {
|
||||
padding: 0 !important;
|
||||
display: none !important;
|
||||
}
|
||||
.syntaxhighlighter.collapsed .toolbar span a.expandSource {
|
||||
display: inline !important;
|
||||
}
|
||||
.syntaxhighlighter .toolbar {
|
||||
position: absolute !important;
|
||||
right: 1px !important;
|
||||
top: 1px !important;
|
||||
width: 11px !important;
|
||||
height: 11px !important;
|
||||
font-size: 10px !important;
|
||||
z-index: 10 !important;
|
||||
}
|
||||
.syntaxhighlighter .toolbar span.title {
|
||||
display: inline !important;
|
||||
}
|
||||
.syntaxhighlighter .toolbar a {
|
||||
display: block !important;
|
||||
text-align: center !important;
|
||||
text-decoration: none !important;
|
||||
padding-top: 1px !important;
|
||||
}
|
||||
.syntaxhighlighter .toolbar a.expandSource {
|
||||
display: none !important;
|
||||
}
|
||||
.syntaxhighlighter.ie {
|
||||
font-size: .9em !important;
|
||||
padding: 1px 0 1px 0 !important;
|
||||
}
|
||||
.syntaxhighlighter.ie .toolbar {
|
||||
line-height: 8px !important;
|
||||
}
|
||||
.syntaxhighlighter.ie .toolbar a {
|
||||
padding-top: 0px !important;
|
||||
}
|
||||
.syntaxhighlighter.printing .line.alt1 .content,
|
||||
.syntaxhighlighter.printing .line.alt2 .content,
|
||||
.syntaxhighlighter.printing .line.highlighted .number,
|
||||
.syntaxhighlighter.printing .line.highlighted.alt1 .content,
|
||||
.syntaxhighlighter.printing .line.highlighted.alt2 .content {
|
||||
background: none !important;
|
||||
}
|
||||
.syntaxhighlighter.printing .line .number {
|
||||
color: #bbbbbb !important;
|
||||
}
|
||||
.syntaxhighlighter.printing .line .content {
|
||||
color: black !important;
|
||||
}
|
||||
.syntaxhighlighter.printing .toolbar {
|
||||
display: none !important;
|
||||
}
|
||||
.syntaxhighlighter.printing a {
|
||||
text-decoration: none !important;
|
||||
}
|
||||
.syntaxhighlighter.printing .plain, .syntaxhighlighter.printing .plain a {
|
||||
color: black !important;
|
||||
}
|
||||
.syntaxhighlighter.printing .comments, .syntaxhighlighter.printing .comments a {
|
||||
color: #008200 !important;
|
||||
}
|
||||
.syntaxhighlighter.printing .string, .syntaxhighlighter.printing .string a {
|
||||
color: blue !important;
|
||||
}
|
||||
.syntaxhighlighter.printing .keyword {
|
||||
color: #006699 !important;
|
||||
font-weight: bold !important;
|
||||
}
|
||||
.syntaxhighlighter.printing .preprocessor {
|
||||
color: gray !important;
|
||||
}
|
||||
.syntaxhighlighter.printing .variable {
|
||||
color: #aa7700 !important;
|
||||
}
|
||||
.syntaxhighlighter.printing .value {
|
||||
color: #009900 !important;
|
||||
}
|
||||
.syntaxhighlighter.printing .functions {
|
||||
color: #ff1493 !important;
|
||||
}
|
||||
.syntaxhighlighter.printing .constants {
|
||||
color: #0066cc !important;
|
||||
}
|
||||
.syntaxhighlighter.printing .script {
|
||||
font-weight: bold !important;
|
||||
}
|
||||
.syntaxhighlighter.printing .color1, .syntaxhighlighter.printing .color1 a {
|
||||
color: gray !important;
|
||||
}
|
||||
.syntaxhighlighter.printing .color2, .syntaxhighlighter.printing .color2 a {
|
||||
color: #ff1493 !important;
|
||||
}
|
||||
.syntaxhighlighter.printing .color3, .syntaxhighlighter.printing .color3 a {
|
||||
color: red !important;
|
||||
}
|
||||
.syntaxhighlighter.printing .break, .syntaxhighlighter.printing .break a {
|
||||
color: black !important;
|
||||
}
|
||||
|
||||
.syntaxhighlighter {
|
||||
background-color: white !important;
|
||||
}
|
||||
.syntaxhighlighter .line.alt1 {
|
||||
background-color: white !important;
|
||||
}
|
||||
.syntaxhighlighter .line.alt2 {
|
||||
background-color: white !important;
|
||||
}
|
||||
.syntaxhighlighter .line.highlighted.alt1, .syntaxhighlighter .line.highlighted.alt2 {
|
||||
background-color: #c3defe !important;
|
||||
}
|
||||
.syntaxhighlighter .line.highlighted.number {
|
||||
color: white !important;
|
||||
}
|
||||
.syntaxhighlighter table caption {
|
||||
color: black !important;
|
||||
}
|
||||
.syntaxhighlighter .gutter {
|
||||
color: #787878 !important;
|
||||
}
|
||||
.syntaxhighlighter .gutter .line {
|
||||
border-right: 3px solid #d4d0c8 !important;
|
||||
}
|
||||
.syntaxhighlighter .gutter .line.highlighted {
|
||||
background-color: #d4d0c8 !important;
|
||||
color: white !important;
|
||||
}
|
||||
.syntaxhighlighter.printing .line .content {
|
||||
border: none !important;
|
||||
}
|
||||
.syntaxhighlighter.collapsed {
|
||||
overflow: visible !important;
|
||||
}
|
||||
.syntaxhighlighter.collapsed .toolbar {
|
||||
color: #3f5fbf !important;
|
||||
background: white !important;
|
||||
border: 1px solid #d4d0c8 !important;
|
||||
}
|
||||
.syntaxhighlighter.collapsed .toolbar a {
|
||||
color: #3f5fbf !important;
|
||||
}
|
||||
.syntaxhighlighter.collapsed .toolbar a:hover {
|
||||
color: #aa7700 !important;
|
||||
}
|
||||
.syntaxhighlighter .toolbar {
|
||||
color: #a0a0a0 !important;
|
||||
background: #d4d0c8 !important;
|
||||
border: none !important;
|
||||
}
|
||||
.syntaxhighlighter .toolbar a {
|
||||
color: #a0a0a0 !important;
|
||||
}
|
||||
.syntaxhighlighter .toolbar a:hover {
|
||||
color: red !important;
|
||||
}
|
||||
.syntaxhighlighter .plain, .syntaxhighlighter .plain a {
|
||||
color: black !important;
|
||||
}
|
||||
.syntaxhighlighter .comments, .syntaxhighlighter .comments a {
|
||||
color: #3f5fbf !important;
|
||||
}
|
||||
.syntaxhighlighter .string, .syntaxhighlighter .string a {
|
||||
color: #2a00ff !important;
|
||||
}
|
||||
.syntaxhighlighter .keyword {
|
||||
color: #7f0055 !important;
|
||||
}
|
||||
.syntaxhighlighter .preprocessor {
|
||||
color: #646464 !important;
|
||||
}
|
||||
.syntaxhighlighter .variable {
|
||||
color: #aa7700 !important;
|
||||
}
|
||||
.syntaxhighlighter .value {
|
||||
color: #009900 !important;
|
||||
}
|
||||
.syntaxhighlighter .functions {
|
||||
color: #ff1493 !important;
|
||||
}
|
||||
.syntaxhighlighter .constants {
|
||||
color: #0066cc !important;
|
||||
}
|
||||
.syntaxhighlighter .script {
|
||||
font-weight: bold !important;
|
||||
color: #7f0055 !important;
|
||||
background-color: none !important;
|
||||
}
|
||||
.syntaxhighlighter .color1, .syntaxhighlighter .color1 a {
|
||||
color: gray !important;
|
||||
}
|
||||
.syntaxhighlighter .color2, .syntaxhighlighter .color2 a {
|
||||
color: #ff1493 !important;
|
||||
}
|
||||
.syntaxhighlighter .color3, .syntaxhighlighter .color3 a {
|
||||
color: red !important;
|
||||
}
|
||||
|
||||
.syntaxhighlighter .keyword {
|
||||
font-weight: bold !important;
|
||||
}
|
||||
.syntaxhighlighter .xml .keyword {
|
||||
color: #3f7f7f !important;
|
||||
font-weight: normal !important;
|
||||
}
|
||||
.syntaxhighlighter .xml .color1, .syntaxhighlighter .xml .color1 a {
|
||||
color: #7f007f !important;
|
||||
}
|
||||
.syntaxhighlighter .xml .string {
|
||||
font-style: italic !important;
|
||||
color: #2a00ff !important;
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user