//YCodaSlider.Base.css('../../include/css/id.css'); //YCodaSlider.Base.css('../../include/js/lib/ycodaslider-2.0.rc2/skins/base/style.css'); //YCodaSlider.Base.css('../../include/js/lib/ycodaslider-2.0.rc2/skins/base/desktop/desktop.css'); jQuery(window).ycodacss('../../include/js/lib/ycodaslider-3.0/ycodaslider-3.0.css'); //jQuery(document).ready(function() { // if(location.toString().indexOf("maxb.net") !== -1){ // jQuery('body').append('
'); // } //}); jQuery(window).bind("load", function() { var wh = window.innerHeight || jQuery(window).height(); var ww = window.innerWidth || jQuery(window).width(); wh = wh - 100;ww = ww - 180; jQuery("div#yslider-table") .ycodaslider({ height : wh, width: (ww-100), scroll : true, tracking : true, tracking_pre : 'jgtable' }); jQuery("div#yslider-docs") .ycodaslider({ height : wh, scroll : true, tracking : true, tracking_pre : 'jgcharts' }); jQuery(".h-code").click(function(){ var ref = jQuery("div#yslider-code").get(0); if(!ref.loaded){ jQuery("div#yslider-code") .ycodacode() .ycodaslider({ width: (ww-100), height : wh, scroll : true, tracking : true, tracking_pre : 'jgcharts-code' }); ref.loaded = true; } }); jQuery(".ycodaslider").hide(); jQuery(".handle").each(function(nr){ var target = jQuery(this).attr("class").split(" ")[1].split("-")[1]; jQuery(this).click(function(){ jQuery(".ycodaslider").hide(); jQuery("#yslider-" + target).toggle(); }); }); jQuery("#yslider-docs").show(); //utils jQuery("a.blank").attr("target", "_blank"); //my chili wrapper jQuery("div.code").each(function(){ var _c = jQuery(this).attr("class").split(" ")[1]; var _t = html_encode(jQuery(this).html()); jQuery(this).html(""); jQuery(''+_t+'
')
.chili()
.appendTo(this);
});
jQuery("code").chili();
function html_encode(s) {
var str = new String(s);
str = str.replace("