Version 3.3.4

This commit is contained in:
Neo committed 2025-12-19 00:35:52 -08:00
1 parent 78706903a2
commit fb6b5baabc
2206 files changed
+409828 -382984

No files matched your search

+79
View File
@@ -0,0 +1,79 @@
/* Reset */
.ccsBase * { margin: 0; padding: 0; }
.ccsBase ol, .ccsBase ul { list-style:none; }
.ccsBase h1,.ccsBase h2,.ccsBase h3,.ccsBase h4,.ccsBase h5,.ccsBase h6 { font-size:100%;font-weight:normal; }
/* Base styles */
.ccsBase {
font: normal 13px helvetica, arial, sans-serif;
background: #fff;
}
.ccsBase .ccsBlockTitle {
background: #262626;
font-size: 16px;
color: #fff;
padding: 10px 8px;
}
/* Backgrounds */
.ccsRow_1 { background: #fbfbfb; }
.ccsRow_2 { background: #f5f5f5; }
.ccsRow_3 { background: #e6e6e6; }
.ccsRow_4 { }
/* Text */
.ccsText_light { color: #b5b5b5; }
.ccsText_small { font-size: 12px; }
.ccsText_block { line-height: 1.6; margin-top: 5px; }
/* Padding */
.ccsPad_medium { padding: 15px; }
.ccsPad_small { padding: 10px; }
.ccsPad_smaller { padding: 5px; }
/* Images */
.ccsImage_thumbnail {
background: #fff;
border: 1px solid #d2d2d2;
-webkit-box-shadow: 0px 1px 2px rgba(0,0,0,0.2);
-moz-box-shadow: 0px 1px 2px rgba(0,0,0,0.2);
box-shadow: 0px 1px 2px rgba(0,0,0,0.2);
}
/* User photos */
.ccsUserPhoto {
border: 1px solid #d2d2d2;
-webkit-box-shadow: 0px 1px 2px rgba(0,0,0,0.2);
-moz-box-shadow: 0px 1px 2px rgba(0,0,0,0.2);
box-shadow: 0px 1px 2px rgba(0,0,0,0.2);
}
.ccsUserPhoto_small { width: 30px; height: 30px; }
.ccsUserPhoto_medium { width: 50px; height: 50px; }
.ccsUserPhoto_large { width: 75px; height: 75px; }
/* Titles */
.ccsBase h2 { font-size: 15px; }
.ccsBase h2.ccsHeadline { font-size: 20px; }
/* Badges */
.ccsBadge {
background: #e6e6e6;
padding: 4px 8px;
-webkit-border-radius: 3px;
-moz-border-radius: 3px;
border-radius: 3px;
display: inline-block;
color: #6c6c6c;
font-size: 11px;
font-weight: bold;
}
/* Misc */
.ccsClearfix:after { content: ".";display: block;height: 0;clear: both;visibility: hidden; }
.ccsPos_left { float: left; }
.ccsPos_right { float: right; }
.ccsClickable { cursor: pointer; }
+185
View File
@@ -0,0 +1,185 @@
(function($){
$.ccs = {
//----------------------------------------------
// $.ccs.register method; based on jQuery UI
//----------------------------------------------
register: function( widget, base, obj, short){
var bits = widget.split('.');
var namespace = bits[0];
var name = bits[1];
if( obj && !short ){
short = obj;
obj = base;
base = $.ccsBase;
} else if( !obj && !short ){
obj = base;
base = $.ccsBase;
}
$[ namespace ] = $[ namespace ] || {};
if( $[ namespace ][ name ] ){
return;
}
$[ namespace ][ name ] = function( options, element){
if( arguments.length ){
this._instantiate( options, element );
}
};
var newBase = new base();
newBase.options = $.extend( true, {}, newBase.options );
$[ namespace ][ name ].prototype = $.extend( true, newBase, obj );
if( !short ){
short = namespace + name;
}
$.ccs.bridge( short, $[ namespace ][ name ] );
},
//----------------------------------------------
// $.ccs.bridge method; taken from jQuery UI
//
// jQuery UI Widget 1.8.16
//
// Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
// Dual licensed under the MIT or GPL Version 2 licenses.
// http://jquery.org/license
//
// http://docs.jquery.com/UI/Widget
//----------------------------------------------
bridge: function( name, object ) {
$.fn[ name ] = function( options ) {
var isMethodCall = typeof options === "string",
args = Array.prototype.slice.call( arguments, 1 ),
returnValue = this;
// allow multiple hashes to be passed on init
options = !isMethodCall && args.length ?
$.extend.apply( null, [ true, options ].concat(args) ) :
options;
// prevent calls to internal methods
if ( isMethodCall && options.charAt( 0 ) === "_" ) {
return returnValue;
}
if ( isMethodCall ) {
this.each(function() {
var instance = $.data( this, name ),
methodValue = instance && $.isFunction( instance[options] ) ?
instance[ options ].apply( instance, args ) :
instance;
if ( methodValue !== instance && methodValue !== undefined ) {
returnValue = methodValue;
return false;
}
});
} else {
this.each(function() {
var instance = $.data( this, name );
if ( instance ) {
instance.option( options || {} )._init();
} else {
$.data( this, name, new object( options, this ) );
}
});
}
return returnValue;
};
},
util: {
//----------------------------------------------
// Fits an image (or other box) inside a bigger box
//----------------------------------------------
fitImage: function( imageDims, boxDims ){
var newSize = {},
aspect = imageDims['w'] / imageDims['h'];
if( (imageDims['w'] <= boxDims['w']) || (imageDims['h'] <= boxDims['h']) ){
return {'w': imageDims['w'], 'h': imageDims['h']};
}
newSize['w'] = boxDims['w'];
newSize['h'] = newSize['w'] / aspect;
if( newSize['h'] < boxDims['h'] ){
newSize['h'] = boxDims['h'];
newSize['w'] = newSize['h'] * aspect;
}
return {
'w': newSize['w'],
'h': newSize['h'],
'l': Math.ceil( ( boxDims['w'] - newSize['w'] ) / 2 ),
't': Math.ceil( ( boxDims['h'] - newSize['h'] ) / 2 )
};
}
}
};
//----------------------------------------------
// Base object for ccs widgets
//----------------------------------------------
$.ccsBase = function( options, element ){
if( arguments.length ){
this._instantiate( options, element );
}
};
$.ccsBase.prototype = {
name: 'ccsWidget',
options: { },
//----------------------------------------------
// Called when widget is instantiated
//----------------------------------------------
_instantiate: function( options, element ){
$.data( element, this.name, this );
this.element = $(element);
this.options = $.extend( true, {}, this.options, options );
this._init();
},
//----------------------------------------------
// Called after initial setup
//----------------------------------------------
_init: function(){},
//----------------------------------------------
// Getter/setter for options
//----------------------------------------------
option: function( key, value )
{
if( $.isPlainObject( key ) ){
this.options = $.extend(true, this.options, key);
} else if( key && typeof value === 'undefined' ) {
return this.options[ key ];
} else {
this.options[ key ] = value;
}
return this;
}
};
})(_ccsjQ);
var Debug = {
write: function( text ){
if( window.console ){
console.log( text );
}
},
dir: function( values ){
if( window.console ){
console.dir( values );
}
}
};
+10
View File
@@ -0,0 +1,10 @@
<html>
<head><title>IP.Board - Bulletin Board System</title></head>
<body>
<h1>403: IP.Board -&gt; Forbidden</h1>
<hr>
You have reached this page in error, please use your back button to return to the forum.
<hr>
<a href="http://www.invisionpower.com/">IP.Board</a>
</body>
</html>