From: Charles Connell Date: Thu, 10 Apr 2014 19:03:56 +0000 (-0400) Subject: Tweak static assets X-Git-Tag: release-20150131~144^2~7 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=ec3a220344e85fa5b6bec153f9f43a0fdd875352;p=oweals%2Fkarmaworld.git Tweak static assets --- diff --git a/karmaworld/assets/css/global.css b/karmaworld/assets/css/global.css index 65468d2..a40b6f5 100644 --- a/karmaworld/assets/css/global.css +++ b/karmaworld/assets/css/global.css @@ -186,11 +186,15 @@ table.dataTable a { } .even { - background: #fafafa; + background-color: #fafafa !important; border-top: 1px solid #f0f0f0; border-bottom: 1px solid #f0f0f0; } +.odd { + background-color: transparent !important; +} + ul.ui-autocomplete { z-index: 1000; } diff --git a/karmaworld/assets/img/about_hero.jpg b/karmaworld/assets/img/about_hero.jpg deleted file mode 100644 index bc929ab..0000000 Binary files a/karmaworld/assets/img/about_hero.jpg and /dev/null differ diff --git a/karmaworld/assets/img/asc.gif b/karmaworld/assets/img/asc.gif deleted file mode 100644 index 7415786..0000000 Binary files a/karmaworld/assets/img/asc.gif and /dev/null differ diff --git a/karmaworld/assets/img/banner_small.jpg b/karmaworld/assets/img/banner_small.jpg new file mode 100644 index 0000000..0eefbad Binary files /dev/null and b/karmaworld/assets/img/banner_small.jpg differ diff --git a/karmaworld/assets/img/bg.gif b/karmaworld/assets/img/bg.gif deleted file mode 100644 index fac668f..0000000 Binary files a/karmaworld/assets/img/bg.gif and /dev/null differ diff --git a/karmaworld/assets/img/course_action_gear.png b/karmaworld/assets/img/course_action_gear.png deleted file mode 100644 index 2ccb3be..0000000 Binary files a/karmaworld/assets/img/course_action_gear.png and /dev/null differ diff --git a/karmaworld/assets/img/course_meta_drop_bg.png b/karmaworld/assets/img/course_meta_drop_bg.png deleted file mode 100644 index 9e4cf73..0000000 Binary files a/karmaworld/assets/img/course_meta_drop_bg.png and /dev/null differ diff --git a/karmaworld/assets/img/course_meta_join_bg.png b/karmaworld/assets/img/course_meta_join_bg.png deleted file mode 100644 index e064e0d..0000000 Binary files a/karmaworld/assets/img/course_meta_join_bg.png and /dev/null differ diff --git a/karmaworld/assets/img/dashboard_activity_alt_on_bg.gif b/karmaworld/assets/img/dashboard_activity_alt_on_bg.gif deleted file mode 100644 index 78c53db..0000000 Binary files a/karmaworld/assets/img/dashboard_activity_alt_on_bg.gif and /dev/null differ diff --git a/karmaworld/assets/img/dashboard_activity_callout_icon_notebook.png b/karmaworld/assets/img/dashboard_activity_callout_icon_notebook.png deleted file mode 100644 index b15c87c..0000000 Binary files a/karmaworld/assets/img/dashboard_activity_callout_icon_notebook.png and /dev/null differ diff --git a/karmaworld/assets/img/dashboard_more_plusicon.png b/karmaworld/assets/img/dashboard_more_plusicon.png deleted file mode 100644 index f1bdbf7..0000000 Binary files a/karmaworld/assets/img/dashboard_more_plusicon.png and /dev/null differ diff --git a/karmaworld/assets/img/dashboard_profile_avatar.jpg b/karmaworld/assets/img/dashboard_profile_avatar.jpg deleted file mode 100644 index ecff16a..0000000 Binary files a/karmaworld/assets/img/dashboard_profile_avatar.jpg and /dev/null differ diff --git a/karmaworld/assets/img/dashboard_profile_avatar_ad.jpg b/karmaworld/assets/img/dashboard_profile_avatar_ad.jpg deleted file mode 100644 index 2375ecb..0000000 Binary files a/karmaworld/assets/img/dashboard_profile_avatar_ad.jpg and /dev/null differ diff --git a/karmaworld/assets/img/dashboard_profile_avatar_dm.jpg b/karmaworld/assets/img/dashboard_profile_avatar_dm.jpg deleted file mode 100644 index 9118b60..0000000 Binary files a/karmaworld/assets/img/dashboard_profile_avatar_dm.jpg and /dev/null differ diff --git a/karmaworld/assets/img/dashboard_profile_avatar_gs.jpg b/karmaworld/assets/img/dashboard_profile_avatar_gs.jpg deleted file mode 100644 index bf3f7be..0000000 Binary files a/karmaworld/assets/img/dashboard_profile_avatar_gs.jpg and /dev/null differ diff --git a/karmaworld/assets/img/dashboard_profile_avatar_jh.jpg b/karmaworld/assets/img/dashboard_profile_avatar_jh.jpg deleted file mode 100644 index d863e05..0000000 Binary files a/karmaworld/assets/img/dashboard_profile_avatar_jh.jpg and /dev/null differ diff --git a/karmaworld/assets/img/dashboard_profile_foldericon.png b/karmaworld/assets/img/dashboard_profile_foldericon.png deleted file mode 100644 index e06e86e..0000000 Binary files a/karmaworld/assets/img/dashboard_profile_foldericon.png and /dev/null differ diff --git a/karmaworld/assets/img/dashboard_profile_plusicon.png b/karmaworld/assets/img/dashboard_profile_plusicon.png deleted file mode 100644 index 8e15956..0000000 Binary files a/karmaworld/assets/img/dashboard_profile_plusicon.png and /dev/null differ diff --git a/karmaworld/assets/img/dashboard_statsbar_bg.gif b/karmaworld/assets/img/dashboard_statsbar_bg.gif deleted file mode 100644 index 09a5320..0000000 Binary files a/karmaworld/assets/img/dashboard_statsbar_bg.gif and /dev/null differ diff --git a/karmaworld/assets/img/datatables-images/Sorting icons.psd b/karmaworld/assets/img/datatables-images/Sorting icons.psd deleted file mode 100644 index 53b2e06..0000000 Binary files a/karmaworld/assets/img/datatables-images/Sorting icons.psd and /dev/null differ diff --git a/karmaworld/assets/img/datatables-images/back_disabled.png b/karmaworld/assets/img/datatables-images/back_disabled.png deleted file mode 100644 index 881de79..0000000 Binary files a/karmaworld/assets/img/datatables-images/back_disabled.png and /dev/null differ diff --git a/karmaworld/assets/img/datatables-images/back_enabled.png b/karmaworld/assets/img/datatables-images/back_enabled.png deleted file mode 100644 index c608682..0000000 Binary files a/karmaworld/assets/img/datatables-images/back_enabled.png and /dev/null differ diff --git a/karmaworld/assets/img/datatables-images/back_enabled_hover.png b/karmaworld/assets/img/datatables-images/back_enabled_hover.png deleted file mode 100644 index d300f10..0000000 Binary files a/karmaworld/assets/img/datatables-images/back_enabled_hover.png and /dev/null differ diff --git a/karmaworld/assets/img/datatables-images/favicon.ico b/karmaworld/assets/img/datatables-images/favicon.ico deleted file mode 100644 index 6eeaa2a..0000000 Binary files a/karmaworld/assets/img/datatables-images/favicon.ico and /dev/null differ diff --git a/karmaworld/assets/img/datatables-images/forward_disabled.png b/karmaworld/assets/img/datatables-images/forward_disabled.png deleted file mode 100644 index 6a6ded7..0000000 Binary files a/karmaworld/assets/img/datatables-images/forward_disabled.png and /dev/null differ diff --git a/karmaworld/assets/img/datatables-images/forward_enabled.png b/karmaworld/assets/img/datatables-images/forward_enabled.png deleted file mode 100644 index a4e6b53..0000000 Binary files a/karmaworld/assets/img/datatables-images/forward_enabled.png and /dev/null differ diff --git a/karmaworld/assets/img/datatables-images/forward_enabled_hover.png b/karmaworld/assets/img/datatables-images/forward_enabled_hover.png deleted file mode 100644 index fc46c5e..0000000 Binary files a/karmaworld/assets/img/datatables-images/forward_enabled_hover.png and /dev/null differ diff --git a/karmaworld/assets/img/datatables-images/sort_asc.png b/karmaworld/assets/img/datatables-images/sort_asc.png deleted file mode 100644 index a88d797..0000000 Binary files a/karmaworld/assets/img/datatables-images/sort_asc.png and /dev/null differ diff --git a/karmaworld/assets/img/datatables-images/sort_asc_disabled.png b/karmaworld/assets/img/datatables-images/sort_asc_disabled.png deleted file mode 100644 index 4e144cf..0000000 Binary files a/karmaworld/assets/img/datatables-images/sort_asc_disabled.png and /dev/null differ diff --git a/karmaworld/assets/img/datatables-images/sort_both.png b/karmaworld/assets/img/datatables-images/sort_both.png deleted file mode 100644 index 1867040..0000000 Binary files a/karmaworld/assets/img/datatables-images/sort_both.png and /dev/null differ diff --git a/karmaworld/assets/img/datatables-images/sort_desc.png b/karmaworld/assets/img/datatables-images/sort_desc.png deleted file mode 100644 index def071e..0000000 Binary files a/karmaworld/assets/img/datatables-images/sort_desc.png and /dev/null differ diff --git a/karmaworld/assets/img/datatables-images/sort_desc_disabled.png b/karmaworld/assets/img/datatables-images/sort_desc_disabled.png deleted file mode 100644 index 7824973..0000000 Binary files a/karmaworld/assets/img/datatables-images/sort_desc_disabled.png and /dev/null differ diff --git a/karmaworld/assets/img/desc.gif b/karmaworld/assets/img/desc.gif deleted file mode 100644 index 3b30b3c..0000000 Binary files a/karmaworld/assets/img/desc.gif and /dev/null differ diff --git a/karmaworld/assets/img/edit.png b/karmaworld/assets/img/edit.png deleted file mode 100644 index c3caca8..0000000 Binary files a/karmaworld/assets/img/edit.png and /dev/null differ diff --git a/karmaworld/assets/img/global_button_orange_arrow.png b/karmaworld/assets/img/global_button_orange_arrow.png deleted file mode 100644 index cb2c265..0000000 Binary files a/karmaworld/assets/img/global_button_orange_arrow.png and /dev/null differ diff --git a/karmaworld/assets/img/global_header_add_course.png b/karmaworld/assets/img/global_header_add_course.png deleted file mode 100644 index b9064cb..0000000 Binary files a/karmaworld/assets/img/global_header_add_course.png and /dev/null differ diff --git a/karmaworld/assets/img/global_header_avatar.jpg b/karmaworld/assets/img/global_header_avatar.jpg deleted file mode 100644 index a91bbfc..0000000 Binary files a/karmaworld/assets/img/global_header_avatar.jpg and /dev/null differ diff --git a/karmaworld/assets/img/global_header_bg.gif b/karmaworld/assets/img/global_header_bg.gif deleted file mode 100644 index 9e85256..0000000 Binary files a/karmaworld/assets/img/global_header_bg.gif and /dev/null differ diff --git a/karmaworld/assets/img/global_header_gear.png b/karmaworld/assets/img/global_header_gear.png deleted file mode 100644 index 6f3d662..0000000 Binary files a/karmaworld/assets/img/global_header_gear.png and /dev/null differ diff --git a/karmaworld/assets/img/global_header_login_fbbg.png b/karmaworld/assets/img/global_header_login_fbbg.png deleted file mode 100644 index 9b993b9..0000000 Binary files a/karmaworld/assets/img/global_header_login_fbbg.png and /dev/null differ diff --git a/karmaworld/assets/img/global_header_login_fbbtn.png b/karmaworld/assets/img/global_header_login_fbbtn.png deleted file mode 100644 index fd2b3db..0000000 Binary files a/karmaworld/assets/img/global_header_login_fbbtn.png and /dev/null differ diff --git a/karmaworld/assets/img/global_header_login_formbg.png b/karmaworld/assets/img/global_header_login_formbg.png deleted file mode 100644 index 68041ba..0000000 Binary files a/karmaworld/assets/img/global_header_login_formbg.png and /dev/null differ diff --git a/karmaworld/assets/img/global_header_login_menu_arrow.png b/karmaworld/assets/img/global_header_login_menu_arrow.png deleted file mode 100644 index 6cd7211..0000000 Binary files a/karmaworld/assets/img/global_header_login_menu_arrow.png and /dev/null differ diff --git a/karmaworld/assets/img/global_header_more_info.png b/karmaworld/assets/img/global_header_more_info.png deleted file mode 100644 index 7ab5ea5..0000000 Binary files a/karmaworld/assets/img/global_header_more_info.png and /dev/null differ diff --git a/karmaworld/assets/img/global_header_my_notes.png b/karmaworld/assets/img/global_header_my_notes.png deleted file mode 100644 index 130521a..0000000 Binary files a/karmaworld/assets/img/global_header_my_notes.png and /dev/null differ diff --git a/karmaworld/assets/img/global_header_pluscourse.png b/karmaworld/assets/img/global_header_pluscourse.png deleted file mode 100644 index d4482b5..0000000 Binary files a/karmaworld/assets/img/global_header_pluscourse.png and /dev/null differ diff --git a/karmaworld/assets/img/global_header_plusnote.png b/karmaworld/assets/img/global_header_plusnote.png deleted file mode 100644 index 7c6f5d6..0000000 Binary files a/karmaworld/assets/img/global_header_plusnote.png and /dev/null differ diff --git a/karmaworld/assets/img/global_header_search.png b/karmaworld/assets/img/global_header_search.png deleted file mode 100644 index a432cf7..0000000 Binary files a/karmaworld/assets/img/global_header_search.png and /dev/null differ diff --git a/karmaworld/assets/img/lightbox_close_x.png b/karmaworld/assets/img/lightbox_close_x.png deleted file mode 100644 index 27b6558..0000000 Binary files a/karmaworld/assets/img/lightbox_close_x.png and /dev/null differ diff --git a/karmaworld/assets/img/lightbox_search_icon.png b/karmaworld/assets/img/lightbox_search_icon.png deleted file mode 100644 index c785a2b..0000000 Binary files a/karmaworld/assets/img/lightbox_search_icon.png and /dev/null differ diff --git a/karmaworld/assets/img/lightbox_signu_fb_lage.jpg b/karmaworld/assets/img/lightbox_signu_fb_lage.jpg deleted file mode 100644 index 4b34420..0000000 Binary files a/karmaworld/assets/img/lightbox_signu_fb_lage.jpg and /dev/null differ diff --git a/karmaworld/assets/img/note_download.png b/karmaworld/assets/img/note_download.png deleted file mode 100644 index 819cf67..0000000 Binary files a/karmaworld/assets/img/note_download.png and /dev/null differ diff --git a/karmaworld/assets/img/note_download_disabled.png b/karmaworld/assets/img/note_download_disabled.png deleted file mode 100644 index f9d94de..0000000 Binary files a/karmaworld/assets/img/note_download_disabled.png and /dev/null differ diff --git a/karmaworld/assets/img/note_flag.png b/karmaworld/assets/img/note_flag.png deleted file mode 100644 index a94dc51..0000000 Binary files a/karmaworld/assets/img/note_flag.png and /dev/null differ diff --git a/karmaworld/assets/img/note_flag_disabled.png b/karmaworld/assets/img/note_flag_disabled.png deleted file mode 100644 index b4fd85f..0000000 Binary files a/karmaworld/assets/img/note_flag_disabled.png and /dev/null differ diff --git a/karmaworld/assets/img/note_thank.png b/karmaworld/assets/img/note_thank.png deleted file mode 100644 index 1aa2cd2..0000000 Binary files a/karmaworld/assets/img/note_thank.png and /dev/null differ diff --git a/karmaworld/assets/img/note_thank_disabled.png b/karmaworld/assets/img/note_thank_disabled.png deleted file mode 100644 index a4f0ddc..0000000 Binary files a/karmaworld/assets/img/note_thank_disabled.png and /dev/null differ diff --git a/karmaworld/assets/img/noun_project_6858.svg b/karmaworld/assets/img/noun_project_6858.svg deleted file mode 100644 index c4d3ff9..0000000 --- a/karmaworld/assets/img/noun_project_6858.svg +++ /dev/null @@ -1,51 +0,0 @@ - - - - - http://thenounproject.com - The Noun ProjectIcon Template - Reminders - - - - - - - - - - - - - StrokesTry to keep strokes at 4pxMinimum stroke weight is 2pxFor thicker strokes use even numbers: 6px, 8px etc.Remember to expand strokes before saving as an SVG - - SizeCannot be wider or taller than 100px (artboard size)Scale your icon to fill as much of the artboard as possible - - UngroupIf your design has more than one shape, make sure to ungroup - - Save asSave as .SVG and make sure “Use Artboards” is checked - 100px - .SVG - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/karmaworld/assets/img/team_crop.jpg b/karmaworld/assets/img/team_crop.jpg deleted file mode 100644 index 578fa43..0000000 Binary files a/karmaworld/assets/img/team_crop.jpg and /dev/null differ diff --git a/karmaworld/assets/js/jquery-scrollto.min.js b/karmaworld/assets/js/jquery-scrollto.min.js deleted file mode 100644 index d04f3df..0000000 --- a/karmaworld/assets/js/jquery-scrollto.min.js +++ /dev/null @@ -1 +0,0 @@ -(function(name,context,definition){if(typeof module!='undefined'&&module.exports)module.exports=definition();else if(typeof define=='function'&&define.amd)define(definition);else context[name]=definition()})('jquery-scrollto',this,function(){var jQuery,$,ScrollTo;jQuery=$=window.jQuery||require('jquery');$.propHooks.scrollTop=$.propHooks.scrollLeft={get:function(elem,prop){var result=null;if(elem.tagName==='HTML'||elem.tagName==='BODY'){if(prop==='scrollLeft'){result=window.scrollX}else if(prop==='scrollTop'){result=window.scrollY}}if(result==null){result=elem[prop]}return result}};$.Tween.propHooks.scrollTop=$.Tween.propHooks.scrollLeft={get:function(tween){return $.propHooks.scrollTop.get(tween.elem,tween.prop)},set:function(tween){if(tween.elem.tagName==='HTML'||tween.elem.tagName==='BODY'){tween.options.bodyScrollLeft=(tween.options.bodyScrollLeft||window.scrollX);tween.options.bodyScrollTop=(tween.options.bodyScrollTop||window.scrollY);if(tween.prop==='scrollLeft'){tween.options.bodyScrollLeft=Math.round(tween.now)}else if(tween.prop==='scrollTop'){tween.options.bodyScrollTop=Math.round(tween.now)}window.scrollTo(tween.options.bodyScrollLeft,tween.options.bodyScrollTop)}else if(tween.elem.nodeType&&tween.elem.parentNode){tween.elem[tween.prop]=tween.now}}};ScrollTo={config:{duration:400,easing:'swing',callback:undefined,durationMode:'each',offsetTop:0,offsetLeft:0},configure:function(options){$.extend(ScrollTo.config,options||{});return this},scroll:function(collections,config){var collection,$container,container,$target,$inline,position,containerTagName,containerScrollTop,containerScrollLeft,containerScrollTopEnd,containerScrollLeftEnd,startOffsetTop,targetOffsetTop,targetOffsetTopAdjusted,startOffsetLeft,targetOffsetLeft,targetOffsetLeftAdjusted,scrollOptions,callback;collection=collections.pop();$container=collection.$container;$target=collection.$target;containerTagName=$container.prop('tagName');$inline=$('').css({'position':'absolute','top':'0px','left':'0px'});position=$container.css('position');$container.css({position:'relative'});$inline.appendTo($container);startOffsetTop=$inline.offset().top;targetOffsetTop=$target.offset().top;targetOffsetTopAdjusted=targetOffsetTop-startOffsetTop-parseInt(config.offsetTop,10);startOffsetLeft=$inline.offset().left;targetOffsetLeft=$target.offset().left;targetOffsetLeftAdjusted=targetOffsetLeft-startOffsetLeft-parseInt(config.offsetLeft,10);containerScrollTop=$container.prop('scrollTop');containerScrollLeft=$container.prop('scrollLeft');$inline.remove();$container.css({position:position});scrollOptions={};callback=function(event){if(collections.length===0){if(typeof config.callback==='function'){config.callback()}}else{ScrollTo.scroll(collections,config)}return true};if(config.onlyIfOutside){containerScrollTopEnd=containerScrollTop+$container.height();containerScrollLeftEnd=containerScrollLeft+$container.width();if(containerScrollTop")[0].src=this});this.isBody=c===document.body;this.$container=a(c);this.$root=this.isBody?l?a(d):a(document):this.$container;c=this.$container.children(".backstretch").first();this.$wrap=c.length?c:a('
').css(r).appendTo(this.$container);this.isBody||(c=this.$container.css("position"),b=this.$container.css("zIndex"),this.$container.css({position:"static"===c?"relative":c,zIndex:"auto"===b?0:b,background:"none"}),this.$wrap.css({zIndex:-999998}));this.$wrap.css({position:this.isBody&&l?"fixed":"absolute"});this.index=0;this.show(this.index);a(d).on("resize.backstretch",a.proxy(this.resize,this)).on("orientationchange.backstretch",a.proxy(function(){this.isBody&&0===d.pageYOffset&&(d.scrollTo(0,1),this.resize())},this))};q.prototype={resize:function(){try{var a={left:0,top:0},b=this.isBody?this.$root.width():this.$root.innerWidth(),e=b,g=this.isBody?d.innerHeight?d.innerHeight:this.$root.height():this.$root.innerHeight(),j=e/this.$img.data("ratio"),f;j>=g?(f=(j-g)/2,this.options.centeredY&&(a.top="-"+f+"px")):(j=g,e=j*this.$img.data("ratio"),f=(e-b)/2,this.options.centeredX&&(a.left="-"+f+"px"));this.$wrap.css({width:b,height:g}).find("img:not(.deleteable)").css({width:e,height:j}).css(a)}catch(h){}return this},show:function(c){if(!(Math.abs(c)>this.images.length-1)){var b=this,e=b.$wrap.find("img").addClass("deleteable"),d={relatedTarget:b.$container[0]};b.$container.trigger(a.Event("backstretch.before",d),[b,c]);this.index=c;clearInterval(b.interval);b.$img=a("").css(s).bind("load",function(f){var h=this.width||a(f.target).width();f=this.height||a(f.target).height();a(this).data("ratio",h/f);a(this).fadeIn(b.options.speed||b.options.fade,function(){e.remove();b.paused||b.cycle();a(["after","show"]).each(function(){b.$container.trigger(a.Event("backstretch."+this,d),[b,c])})});b.resize()}).appendTo(b.$wrap);b.$img.attr("src",b.images[c]);return b}},next:function(){return this.show(this.indexe||d.operamini&&"[object OperaMini]"==={}.toString.call(d.operamini)||n&&7458>t||-1e||h&&6>h||"palmGetResource"in d&&e&&534>e||-1=k)})(jQuery,window); \ No newline at end of file diff --git a/karmaworld/assets/js/jquery.cookie.js b/karmaworld/assets/js/jquery.cookie.js deleted file mode 100644 index 9271900..0000000 --- a/karmaworld/assets/js/jquery.cookie.js +++ /dev/null @@ -1,117 +0,0 @@ -/*! - * jQuery Cookie Plugin v1.4.0 - * https://github.com/carhartl/jquery-cookie - * - * Copyright 2013 Klaus Hartl - * Released under the MIT license - */ -(function (factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as anonymous module. - define(['jquery'], factory); - } else { - // Browser globals. - factory(jQuery); - } -}(function ($) { - - var pluses = /\+/g; - - function encode(s) { - return config.raw ? s : encodeURIComponent(s); - } - - function decode(s) { - return config.raw ? s : decodeURIComponent(s); - } - - function stringifyCookieValue(value) { - return encode(config.json ? JSON.stringify(value) : String(value)); - } - - function parseCookieValue(s) { - if (s.indexOf('"') === 0) { - // This is a quoted cookie as according to RFC2068, unescape... - s = s.slice(1, -1).replace(/\\"/g, '"').replace(/\\\\/g, '\\'); - } - - try { - // Replace server-side written pluses with spaces. - // If we can't decode the cookie, ignore it, it's unusable. - s = decodeURIComponent(s.replace(pluses, ' ')); - } catch(e) { - return; - } - - try { - // If we can't parse the cookie, ignore it, it's unusable. - return config.json ? JSON.parse(s) : s; - } catch(e) {} - } - - function read(s, converter) { - var value = config.raw ? s : parseCookieValue(s); - return $.isFunction(converter) ? converter(value) : value; - } - - var config = $.cookie = function (key, value, options) { - - // Write - if (value !== undefined && !$.isFunction(value)) { - options = $.extend({}, config.defaults, options); - - if (typeof options.expires === 'number') { - var days = options.expires, t = options.expires = new Date(); - t.setDate(t.getDate() + days); - } - - return (document.cookie = [ - encode(key), '=', stringifyCookieValue(value), - options.expires ? '; expires=' + options.expires.toUTCString() : '', // use expires attribute, max-age is not supported by IE - options.path ? '; path=' + options.path : '', - options.domain ? '; domain=' + options.domain : '', - options.secure ? '; secure' : '' - ].join('')); - } - - // Read - - var result = key ? undefined : {}; - - // 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 $.cookie(). - var cookies = document.cookie ? document.cookie.split('; ') : []; - - for (var i = 0, l = cookies.length; i < l; i++) { - var parts = cookies[i].split('='); - var name = decode(parts.shift()); - var cookie = parts.join('='); - - if (key && key === name) { - // If second argument (value) is a function it's a converter... - result = read(cookie, value); - break; - } - - // Prevent storing a cookie that we couldn't decode. - if (!key && (cookie = read(cookie)) !== undefined) { - result[name] = cookie; - } - } - - return result; - }; - - config.defaults = {}; - - $.removeCookie = function (key, options) { - if ($.cookie(key) !== undefined) { - // Must not alter options, thus extending a fresh object... - $.cookie(key, '', $.extend({}, options, { expires: -1 })); - return true; - } - return false; - }; - -})); diff --git a/karmaworld/assets/js/jquery.dataTables.min.js b/karmaworld/assets/js/jquery.dataTables.min.js deleted file mode 100644 index 88db60d..0000000 --- a/karmaworld/assets/js/jquery.dataTables.min.js +++ /dev/null @@ -1 +0,0 @@ -(function(window,document,undefined){(function(factory){"use strict";if(typeof define==='function'&&define.amd){define(['jquery'],factory)}else if(jQuery&&!jQuery.fn.dataTable){factory(jQuery)}}(function($){"use strict";var DataTable=function(oInit){function _fnAddColumn(oSettings,nTh){var oDefaults=DataTable.defaults.columns;var iCol=oSettings.aoColumns.length;var oCol=$.extend({},DataTable.models.oColumn,oDefaults,{"sSortingClass":oSettings.oClasses.sSortable,"sSortingClassJUI":oSettings.oClasses.sSortJUI,"nTh":nTh?nTh:document.createElement('th'),"sTitle":oDefaults.sTitle?oDefaults.sTitle:nTh?nTh.innerHTML:'',"aDataSort":oDefaults.aDataSort?oDefaults.aDataSort:[iCol],"mData":oDefaults.mData?oDefaults.oDefaults:iCol});oSettings.aoColumns.push(oCol);if(oSettings.aoPreSearchCols[iCol]===undefined||oSettings.aoPreSearchCols[iCol]===null){oSettings.aoPreSearchCols[iCol]=$.extend({},DataTable.models.oSearch)}else{var oPre=oSettings.aoPreSearchCols[iCol];if(oPre.bRegex===undefined){oPre.bRegex=true}if(oPre.bSmart===undefined){oPre.bSmart=true}if(oPre.bCaseInsensitive===undefined){oPre.bCaseInsensitive=true}}_fnColumnOptions(oSettings,iCol,null)}function _fnColumnOptions(oSettings,iCol,oOptions){var oCol=oSettings.aoColumns[iCol];if(oOptions!==undefined&&oOptions!==null){if(oOptions.mDataProp&&!oOptions.mData){oOptions.mData=oOptions.mDataProp}if(oOptions.sType!==undefined){oCol.sType=oOptions.sType;oCol._bAutoType=false}$.extend(oCol,oOptions);_fnMap(oCol,oOptions,"sWidth","sWidthOrig");if(oOptions.iDataSort!==undefined){oCol.aDataSort=[oOptions.iDataSort]}_fnMap(oCol,oOptions,"aDataSort")}var mRender=oCol.mRender?_fnGetObjectDataFn(oCol.mRender):null;var mData=_fnGetObjectDataFn(oCol.mData);oCol.fnGetData=function(oData,sSpecific){var innerData=mData(oData,sSpecific);if(oCol.mRender&&(sSpecific&&sSpecific!=='')){return mRender(innerData,sSpecific,oData)}return innerData};oCol.fnSetData=_fnSetObjectDataFn(oCol.mData);if(!oSettings.oFeatures.bSort){oCol.bSortable=false}if(!oCol.bSortable||($.inArray('asc',oCol.asSorting)==-1&&$.inArray('desc',oCol.asSorting)==-1)){oCol.sSortingClass=oSettings.oClasses.sSortableNone;oCol.sSortingClassJUI=""}else if($.inArray('asc',oCol.asSorting)==-1&&$.inArray('desc',oCol.asSorting)==-1){oCol.sSortingClass=oSettings.oClasses.sSortable;oCol.sSortingClassJUI=oSettings.oClasses.sSortJUI}else if($.inArray('asc',oCol.asSorting)!=-1&&$.inArray('desc',oCol.asSorting)==-1){oCol.sSortingClass=oSettings.oClasses.sSortableAsc;oCol.sSortingClassJUI=oSettings.oClasses.sSortJUIAscAllowed}else if($.inArray('asc',oCol.asSorting)==-1&&$.inArray('desc',oCol.asSorting)!=-1){oCol.sSortingClass=oSettings.oClasses.sSortableDesc;oCol.sSortingClassJUI=oSettings.oClasses.sSortJUIDescAllowed}}function _fnAdjustColumnSizing(oSettings){if(oSettings.oFeatures.bAutoWidth===false){return false}_fnCalculateColumnWidths(oSettings);for(var i=0,iLen=oSettings.aoColumns.length;i=0;i--){var aTargets=aoColDefs[i].aTargets;if(!$.isArray(aTargets)){_fnLog(oSettings,1,'aTargets must be an array of targets, not a '+(typeof aTargets))}for(j=0,jLen=aTargets.length;j=0){while(oSettings.aoColumns.length<=aTargets[j]){_fnAddColumn(oSettings)}fn(aTargets[j],aoColDefs[i])}else if(typeof aTargets[j]==='number'&&aTargets[j]<0){fn(oSettings.aoColumns.length+aTargets[j],aoColDefs[i])}else if(typeof aTargets[j]==='string'){for(k=0,kLen=oSettings.aoColumns.length;kiTarget){a[i]--}}if(iTargetIndex!=-1){a.splice(iTargetIndex,1)}}function _fnRender(oSettings,iRow,iCol){var oCol=oSettings.aoColumns[iCol];return oCol.fnRender({"iDataRow":iRow,"iDataColumn":iCol,"oSettings":oSettings,"aData":oSettings.aoData[iRow]._aData,"mDataProp":oCol.mData},_fnGetCellData(oSettings,iRow,iCol,'display'))}function _fnCreateTr(oSettings,iRow){var oData=oSettings.aoData[iRow];var nTd;if(oData.nTr===null){oData.nTr=document.createElement('tr');oData.nTr._DT_RowIndex=iRow;if(oData._aData.DT_RowId){oData.nTr.id=oData._aData.DT_RowId}if(oData._aData.DT_RowClass){oData.nTr.className=oData._aData.DT_RowClass}for(var i=0,iLen=oSettings.aoColumns.length;i=0;j--){if(!oSettings.aoColumns[j].bVisible&&!bIncludeHidden){aoLocal[i].splice(j,1)}}aApplied.push([])}for(i=0,iLen=aoLocal.length;i=oSettings.fnRecordsDisplay())?0:oSettings.iInitDisplayStart}oSettings.iInitDisplayStart=-1;_fnCalculateEnd(oSettings)}if(oSettings.bDeferLoading){oSettings.bDeferLoading=false;oSettings.iDraw++}else if(!oSettings.oFeatures.bServerSide){oSettings.iDraw++}else if(!oSettings.bDestroying&&!_fnAjaxUpdate(oSettings)){return}if(oSettings.aiDisplay.length!==0){var iStart=oSettings._iDisplayStart;var iEnd=oSettings._iDisplayEnd;if(oSettings.oFeatures.bServerSide){iStart=0;iEnd=oSettings.aoData.length}for(var j=iStart;j')[0];oSettings.nTable.parentNode.insertBefore(nHolding,oSettings.nTable);oSettings.nTableWrapper=$('
')[0];oSettings.nTableReinsertBefore=oSettings.nTable.nextSibling;var nInsertNode=oSettings.nTableWrapper;var aDom=oSettings.sDom.split('');var nTmp,iPushFeature,cOption,nNewNode,cNext,sAttr,j;for(var i=0;i')[0];cNext=aDom[i+1];if(cNext=="'"||cNext=='"'){sAttr="";j=2;while(aDom[i+j]!=cNext){sAttr+=aDom[i+j];j++}if(sAttr=="H"){sAttr=oSettings.oClasses.sJUIHeader}else if(sAttr=="F"){sAttr=oSettings.oClasses.sJUIFooter}if(sAttr.indexOf('.')!=-1){var aSplit=sAttr.split('.');nNewNode.id=aSplit[0].substr(1,aSplit[0].length-1);nNewNode.className=aSplit[1]}else if(sAttr.charAt(0)=="#"){nNewNode.id=sAttr.substr(1,sAttr.length-1)}else{nNewNode.className=sAttr}i+=j}nInsertNode.appendChild(nNewNode);nInsertNode=nNewNode}else if(cOption=='>'){nInsertNode=nInsertNode.parentNode}else if(cOption=='l'&&oSettings.oFeatures.bPaginate&&oSettings.oFeatures.bLengthChange){nTmp=_fnFeatureHtmlLength(oSettings);iPushFeature=1}else if(cOption=='f'&&oSettings.oFeatures.bFilter){nTmp=_fnFeatureHtmlFilter(oSettings);iPushFeature=1}else if(cOption=='r'&&oSettings.oFeatures.bProcessing){nTmp=_fnFeatureHtmlProcessing(oSettings);iPushFeature=1}else if(cOption=='t'){nTmp=_fnFeatureHtmlTable(oSettings);iPushFeature=1}else if(cOption=='i'&&oSettings.oFeatures.bInfo){nTmp=_fnFeatureHtmlInfo(oSettings);iPushFeature=1}else if(cOption=='p'&&oSettings.oFeatures.bPaginate){nTmp=_fnFeatureHtmlPaginate(oSettings);iPushFeature=1}else if(DataTable.ext.aoFeatures.length!==0){var aoFeatures=DataTable.ext.aoFeatures;for(var k=0,kLen=aoFeatures.length;k'):sSearchStr===""?'':sSearchStr+' ';var nFilter=document.createElement('div');nFilter.className=oSettings.oClasses.sFilter;nFilter.innerHTML='';if(!oSettings.aanFeatures.f){nFilter.id=oSettings.sTableId+'_filter'}var jqFilter=$('input[type="text"]',nFilter);nFilter._DT_Input=jqFilter[0];jqFilter.val(oPreviousSearch.sSearch.replace('"','"'));jqFilter.bind('keyup.DT',function(e){var n=oSettings.aanFeatures.f;var val=this.value===""?"":this.value;for(var i=0,iLen=n.length;i=0;i--){var sData=_fnDataToSearch(_fnGetCellData(oSettings,oSettings.aiDisplay[i],iColumn,'filter'),oSettings.aoColumns[iColumn].sType);if(!rpSearch.test(sData)){oSettings.aiDisplay.splice(i,1);iIndexCorrector++}}}function _fnFilter(oSettings,sInput,iForce,bRegex,bSmart,bCaseInsensitive){var i;var rpSearch=_fnFilterCreateSearch(sInput,bRegex,bSmart,bCaseInsensitive);var oPrevSearch=oSettings.oPreviousSearch;if(!iForce){iForce=0}if(DataTable.ext.afnFiltering.length!==0){iForce=1}if(sInput.length<=0){oSettings.aiDisplay.splice(0,oSettings.aiDisplay.length);oSettings.aiDisplay=oSettings.aiDisplayMaster.slice()}else{if(oSettings.aiDisplay.length==oSettings.aiDisplayMaster.length||oPrevSearch.sSearch.length>sInput.length||iForce==1||sInput.indexOf(oPrevSearch.sSearch)!==0){oSettings.aiDisplay.splice(0,oSettings.aiDisplay.length);_fnBuildSearchArray(oSettings,1);for(i=0;i').html(sSearch).text()}return sSearch.replace(/[\n\r]/g," ")}function _fnFilterCreateSearch(sSearch,bRegex,bSmart,bCaseInsensitive){var asSearch,sRegExpString;if(bSmart){asSearch=bRegex?sSearch.split(' '):_fnEscapeRegex(sSearch).split(' ');sRegExpString='^(?=.*?'+asSearch.join(')(?=.*?')+').*$';return new RegExp(sRegExpString,bCaseInsensitive?"i":"")}else{sSearch=bRegex?sSearch:_fnEscapeRegex(sSearch);return new RegExp(sSearch,bCaseInsensitive?"i":"")}}function _fnDataToSearch(sData,sType){if(typeof DataTable.ext.ofnSearch[sType]==="function"){return DataTable.ext.ofnSearch[sType](sData)}else if(sData===null){return''}else if(sType=="html"){return sData.replace(/[\r\n]/g," ").replace(/<.*?>/g,"")}else if(typeof sData==="string"){return sData.replace(/[\r\n]/g," ")}return sData}function _fnEscapeRegex(sVal){var acEscape=['/','.','*','+','?','|','(',')','[',']','{','}','\\','$','^','-'];var reReplace=new RegExp('(\\'+acEscape.join('|\\')+')','g');return sVal.replace(reReplace,'\\$1')}function _fnFeatureHtmlInfo(oSettings){var nInfo=document.createElement('div');nInfo.className=oSettings.oClasses.sInfo;if(!oSettings.aanFeatures.i){oSettings.aoDrawCallback.push({"fn":_fnUpdateInfo,"sName":"information"});nInfo.id=oSettings.sTableId+'_info'}oSettings.nTable.setAttribute('aria-describedby',oSettings.sTableId+'_info');return nInfo}function _fnUpdateInfo(oSettings){if(!oSettings.oFeatures.bInfo||oSettings.aanFeatures.i.length===0){return}var oLang=oSettings.oLanguage,iStart=oSettings._iDisplayStart+1,iEnd=oSettings.fnDisplayEnd(),iMax=oSettings.fnRecordsTotal(),iTotal=oSettings.fnRecordsDisplay(),sOut;if(iTotal===0){sOut=oLang.sInfoEmpty}else{sOut=oLang.sInfo}if(iTotal!=iMax){sOut+=' '+oLang.sInfoFiltered}sOut+=oLang.sInfoPostFix;sOut=_fnInfoMacros(oSettings,sOut);if(oLang.fnInfoCallback!==null){sOut=oLang.fnInfoCallback.call(oSettings.oInstance,oSettings,iStart,iEnd,iMax,iTotal,sOut)}var n=oSettings.aanFeatures.i;for(var i=0,iLen=n.length;i';var i,iLen;var aLengthMenu=oSettings.aLengthMenu;if(aLengthMenu.length==2&&typeof aLengthMenu[0]==='object'&&typeof aLengthMenu[1]==='object'){for(i=0,iLen=aLengthMenu[0].length;i'+aLengthMenu[1][i]+''}}else{for(i=0,iLen=aLengthMenu.length;i'+aLengthMenu[i]+''}}sStdMenu+='';var nLength=document.createElement('div');if(!oSettings.aanFeatures.l){nLength.id=oSettings.sTableId+'_length'}nLength.className=oSettings.oClasses.sLength;nLength.innerHTML='';$('select option[value="'+oSettings._iDisplayLength+'"]',nLength).attr("selected",true);$('select',nLength).bind('change.DT',function(e){var iVal=$(this).val();var n=oSettings.aanFeatures.l;for(i=0,iLen=n.length;ioSettings.aiDisplay.length||oSettings._iDisplayLength==-1){oSettings._iDisplayEnd=oSettings.aiDisplay.length}else{oSettings._iDisplayEnd=oSettings._iDisplayStart+oSettings._iDisplayLength}}}function _fnFeatureHtmlPaginate(oSettings){if(oSettings.oScroll.bInfinite){return null}var nPaginate=document.createElement('div');nPaginate.className=oSettings.oClasses.sPaging+oSettings.sPaginationType;DataTable.ext.oPagination[oSettings.sPaginationType].fnInit(oSettings,nPaginate,function(oSettings){_fnCalculateEnd(oSettings);_fnDraw(oSettings)});if(!oSettings.aanFeatures.p){oSettings.aoDrawCallback.push({"fn":function(oSettings){DataTable.ext.oPagination[oSettings.sPaginationType].fnUpdate(oSettings,function(oSettings){_fnCalculateEnd(oSettings);_fnDraw(oSettings)})},"sName":"pagination"})}return nPaginate}function _fnPageChange(oSettings,mAction){var iOldStart=oSettings._iDisplayStart;if(typeof mAction==="number"){oSettings._iDisplayStart=mAction*oSettings._iDisplayLength;if(oSettings._iDisplayStart>oSettings.fnRecordsDisplay()){oSettings._iDisplayStart=0}}else if(mAction=="first"){oSettings._iDisplayStart=0}else if(mAction=="previous"){oSettings._iDisplayStart=oSettings._iDisplayLength>=0?oSettings._iDisplayStart-oSettings._iDisplayLength:0;if(oSettings._iDisplayStart<0){oSettings._iDisplayStart=0}}else if(mAction=="next"){if(oSettings._iDisplayLength>=0){if(oSettings._iDisplayStart+oSettings._iDisplayLength=0){var iPages=parseInt((oSettings.fnRecordsDisplay()-1)/oSettings._iDisplayLength,10)+1;oSettings._iDisplayStart=(iPages-1)*oSettings._iDisplayLength}else{oSettings._iDisplayStart=0}}else{_fnLog(oSettings,0,"Unknown paging action: "+mAction)}$(oSettings.oInstance).trigger('page',oSettings);return iOldStart!=oSettings._iDisplayStart}function _fnFeatureHtmlProcessing(oSettings){var nProcessing=document.createElement('div');if(!oSettings.aanFeatures.r){nProcessing.id=oSettings.sTableId+'_processing'}nProcessing.innerHTML=oSettings.oLanguage.sProcessing;nProcessing.className=oSettings.oClasses.sProcessing;oSettings.nTable.parentNode.insertBefore(nProcessing,oSettings.nTable);return nProcessing}function _fnProcessingDisplay(oSettings,bShow){if(oSettings.oFeatures.bProcessing){var an=oSettings.aanFeatures.r;for(var i=0,iLen=an.length;i0){nCaption=nCaption[0];if(nCaption._captionSide==="top"){nScrollHeadTable.appendChild(nCaption)}else if(nCaption._captionSide==="bottom"&&nTfoot){nScrollFootTable.appendChild(nCaption)}}if(oSettings.oScroll.sX!==""){nScrollHead.style.width=_fnStringToCss(oSettings.oScroll.sX);nScrollBody.style.width=_fnStringToCss(oSettings.oScroll.sX);if(nTfoot!==null){nScrollFoot.style.width=_fnStringToCss(oSettings.oScroll.sX)}$(nScrollBody).scroll(function(e){nScrollHead.scrollLeft=this.scrollLeft;if(nTfoot!==null){nScrollFoot.scrollLeft=this.scrollLeft}})}if(oSettings.oScroll.sY!==""){nScrollBody.style.height=_fnStringToCss(oSettings.oScroll.sY)}oSettings.aoDrawCallback.push({"fn":_fnScrollDraw,"sName":"scrolling"});if(oSettings.oScroll.bInfinite){$(nScrollBody).scroll(function(){if(!oSettings.bDrawing&&$(this).scrollTop()!==0){if($(this).scrollTop()+$(this).height()>$(oSettings.nTable).height()-oSettings.oScroll.iLoadGap){if(oSettings.fnDisplayEnd()nScrollBody.offsetHeight||$(nScrollBody).css('overflow-y')=="scroll")){o.nTable.style.width=_fnStringToCss($(o.nTable).outerWidth()-o.oScroll.iBarWidth)}}else{if(o.oScroll.sXInner!==""){o.nTable.style.width=_fnStringToCss(o.oScroll.sXInner)}else if(iSanityWidth==$(nScrollBody).width()&&$(nScrollBody).height()<$(o.nTable).height()){o.nTable.style.width=_fnStringToCss(iSanityWidth-o.oScroll.iBarWidth);if($(o.nTable).outerWidth()>iSanityWidth-o.oScroll.iBarWidth){o.nTable.style.width=_fnStringToCss(iSanityWidth)}}else{o.nTable.style.width=_fnStringToCss(iSanityWidth)}}iSanityWidth=$(o.nTable).outerWidth();_fnApplyToChildren(zeroOut,anHeadSizers);_fnApplyToChildren(function(nSizer){aApplied.push(_fnStringToCss($(nSizer).width()))},anHeadSizers);_fnApplyToChildren(function(nToSize,i){nToSize.style.width=aApplied[i]},anHeadToSize);$(anHeadSizers).height(0);if(o.nTFoot!==null){_fnApplyToChildren(zeroOut,anFootSizers);_fnApplyToChildren(function(nSizer){aAppliedFooter.push(_fnStringToCss($(nSizer).width()))},anFootSizers);_fnApplyToChildren(function(nToSize,i){nToSize.style.width=aAppliedFooter[i]},anFootToSize);$(anFootSizers).height(0)}_fnApplyToChildren(function(nSizer,i){nSizer.innerHTML="";nSizer.style.width=aApplied[i]},anHeadSizers);if(o.nTFoot!==null){_fnApplyToChildren(function(nSizer,i){nSizer.innerHTML="";nSizer.style.width=aAppliedFooter[i]},anFootSizers)}if($(o.nTable).outerWidth()nScrollBody.offsetHeight||$(nScrollBody).css('overflow-y')=="scroll"))?iSanityWidth+o.oScroll.iBarWidth:iSanityWidth;if(ie67&&(nScrollBody.scrollHeight>nScrollBody.offsetHeight||$(nScrollBody).css('overflow-y')=="scroll")){o.nTable.style.width=_fnStringToCss(iCorrection-o.oScroll.iBarWidth)}nScrollBody.style.width=_fnStringToCss(iCorrection);o.nScrollHead.style.width=_fnStringToCss(iCorrection);if(o.nTFoot!==null){o.nScrollFoot.style.width=_fnStringToCss(iCorrection)}if(o.oScroll.sX===""){_fnLog(o,1,"The table cannot fit into the current element which will cause column"+" misalignment. The table has been drawn at its minimum possible width.")}else if(o.oScroll.sXInner!==""){_fnLog(o,1,"The table cannot fit into the current element which will cause column"+" misalignment. Increase the sScrollXInner value or remove it to allow automatic"+" calculation")}}else{nScrollBody.style.width=_fnStringToCss('100%');o.nScrollHead.style.width=_fnStringToCss('100%');if(o.nTFoot!==null){o.nScrollFoot.style.width=_fnStringToCss('100%')}}if(o.oScroll.sY===""){if(ie67){nScrollBody.style.height=_fnStringToCss(o.nTable.offsetHeight+o.oScroll.iBarWidth)}}if(o.oScroll.sY!==""&&o.oScroll.bCollapse){nScrollBody.style.height=_fnStringToCss(o.oScroll.sY);var iExtra=(o.oScroll.sX!==""&&o.nTable.offsetWidth>nScrollBody.offsetWidth)?o.oScroll.iBarWidth:0;if(o.nTable.offsetHeightnScrollBody.clientHeight||$(nScrollBody).css('overflow-y')=="scroll";nScrollHeadInner.style.paddingRight=bScrolling?o.oScroll.iBarWidth+"px":"0px";if(o.nTFoot!==null){nScrollFootTable.style.width=_fnStringToCss(iOuterWidth);nScrollFootInner.style.width=_fnStringToCss(iOuterWidth);nScrollFootInner.style.paddingRight=bScrolling?o.oScroll.iBarWidth+"px":"0px"}$(nScrollBody).scroll();if(o.bSorted||o.bFiltered){nScrollBody.scrollTop=0}}function _fnApplyToChildren(fn,an1,an2){var index=0,i=0,iLen=an1.length;var nNode1,nNode2;while(itd',nCalcTmp)}var nThs=_fnGetUniqueThs(oSettings,nTheadClone);iCorrector=0;for(i=0;i0){oSettings.aoColumns[i].sWidth=_fnStringToCss(iWidth)}iCorrector++}}var cssWidth=$(nCalcTmp).css('width');oSettings.nTable.style.width=(cssWidth.indexOf('%')!==-1)?cssWidth:_fnStringToCss($(nCalcTmp).outerWidth());nCalcTmp.parentNode.removeChild(nCalcTmp)}if(widthAttr){oSettings.nTable.style.width=_fnStringToCss(widthAttr)}}function _fnScrollingWidthAdjust(oSettings,n){if(oSettings.oScroll.sX===""&&oSettings.oScroll.sY!==""){var iOrigWidth=$(n).width();n.style.width=_fnStringToCss($(n).outerWidth()-oSettings.oScroll.iBarWidth)}else if(oSettings.oScroll.sX!==""){n.style.width=_fnStringToCss($(n).outerWidth())}}function _fnGetWidestNode(oSettings,iCol){var iMaxIndex=_fnGetMaxLenString(oSettings,iCol);if(iMaxIndex<0){return null}if(oSettings.aoData[iMaxIndex].nTr===null){var n=document.createElement('td');n.innerHTML=_fnGetCellData(oSettings,iMaxIndex,iCol,'');return n}return _fnGetTdNodes(oSettings,iMaxIndex)[iCol]}function _fnGetMaxLenString(oSettings,iCol){var iMax=-1;var iMaxIndex=-1;for(var i=0;i/g,"");if(s.length>iMax){iMax=s.length;iMaxIndex=i}}return iMaxIndex}function _fnStringToCss(s){if(s===null){return"0px"}if(typeof s=='number'){if(s<0){return"0px"}return s+"px"}var c=s.charCodeAt(s.length-1);if(c<0x30||c>0x39){return s}return s+"px"}function _fnScrollBarWidth(){var inner=document.createElement('p');var style=inner.style;style.width="100%";style.height="200px";style.padding="0px";var outer=document.createElement('div');style=outer.style;style.position="absolute";style.top="0px";style.left="0px";style.visibility="hidden";style.width="200px";style.height="150px";style.padding="0px";style.overflow="hidden";outer.appendChild(inner);document.body.appendChild(outer);var w1=inner.offsetWidth;outer.style.overflow='scroll';var w2=inner.offsetWidth;if(w1==w2){w2=outer.clientWidth}document.body.removeChild(outer);return(w1-w2)}function _fnSort(oSettings,bApplyClasses){var i,iLen,j,jLen,k,kLen,sDataType,nTh,aaSort=[],aiOrig=[],oSort=DataTable.ext.oSort,aoData=oSettings.aoData,aoColumns=oSettings.aoColumns,oAria=oSettings.oLanguage.oAria;if(!oSettings.oFeatures.bServerSide&&(oSettings.aaSorting.length!==0||oSettings.aaSortingFixed!==null)){aaSort=(oSettings.aaSortingFixed!==null)?oSettings.aaSortingFixed.concat(oSettings.aaSorting):oSettings.aaSorting.slice();for(i=0;i/g,"");nTh=aoColumns[i].nTh;nTh.removeAttribute('aria-sort');nTh.removeAttribute('aria-label');if(aoColumns[i].bSortable){if(aaSort.length>0&&aaSort[0][0]==i){nTh.setAttribute('aria-sort',aaSort[0][1]=="asc"?"ascending":"descending");var nextSort=(aoColumns[i].asSorting[aaSort[0][2]+1])?aoColumns[i].asSorting[aaSort[0][2]+1]:aoColumns[i].asSorting[0];nTh.setAttribute('aria-label',sTitle+(nextSort=="asc"?oAria.sSortAscending:oAria.sSortDescending))}else{nTh.setAttribute('aria-label',sTitle+(aoColumns[i].asSorting[0]=="asc"?oAria.sSortAscending:oAria.sSortDescending))}}else{nTh.setAttribute('aria-label',sTitle)}}oSettings.bSorted=true;$(oSettings.oInstance).trigger('sort',oSettings);if(oSettings.oFeatures.bFilter){_fnFilterComplete(oSettings,oSettings.oPreviousSearch,1)}else{oSettings.aiDisplay=oSettings.aiDisplayMaster.slice();oSettings._iDisplayStart=0;_fnCalculateEnd(oSettings);_fnDraw(oSettings)}}function _fnSortAttachListener(oSettings,nNode,iDataIndex,fnCallback){_fnBindAction(nNode,{},function(e){if(oSettings.aoColumns[iDataIndex].bSortable===false){return}var fnInnerSorting=function(){var iColumn,iNextSort;if(e.shiftKey){var bFound=false;for(var i=0;i0&&sCurrentClass.indexOf(sNewClass)==-1){nTds[i].className=sCurrentClass+" "+sNewClass}}}}function _fnSaveState(oSettings){if(!oSettings.oFeatures.bStateSave||oSettings.bDestroying){return}var i,iLen,bInfinite=oSettings.oScroll.bInfinite;var oState={"iCreate":new Date().getTime(),"iStart":(bInfinite?0:oSettings._iDisplayStart),"iEnd":(bInfinite?oSettings._iDisplayLength:oSettings._iDisplayEnd),"iLength":oSettings._iDisplayLength,"aaSorting":$.extend(true,[],oSettings.aaSorting),"oSearch":$.extend(true,{},oSettings.oPreviousSearch),"aoSearchCols":$.extend(true,[],oSettings.aoPreSearchCols),"abVisCols":[]};for(i=0,iLen=oSettings.aoColumns.length;i4096){for(var i=0,iLen=aCookies.length;i4096){if(aOldCookies.length===0){return}var old=aOldCookies.pop();document.cookie=old.name+"=; expires=Thu, 01-Jan-1970 00:00:01 GMT; path="+aParts.join('/')+"/"}}document.cookie=sFullCookie}function _fnReadCookie(sName){var aParts=window.location.pathname.split('/'),sNameEQ=sName+'_'+aParts[aParts.length-1].replace(/[\/:]/g,"").toLowerCase()+'=',sCookieContents=document.cookie.split(';');for(var i=0;i=0;i--){aRet.push(aoStore[i].fn.apply(oSettings.oInstance,aArgs))}if(sTrigger!==null){$(oSettings.oInstance).trigger(sTrigger,aArgs)}return aRet}var _fnJsonString=(window.JSON)?JSON.stringify:function(o){var sType=typeof o;if(sType!=="object"||o===null){if(sType==="string"){o='"'+o+'"'}return o+""}var sProp,mValue,json=[],bArr=$.isArray(o);for(sProp in o){mValue=o[sProp];sType=typeof mValue;if(sType==="string"){mValue='"'+mValue+'"'}else if(sType==="object"&&mValue!==null){mValue=_fnJsonString(mValue)}json.push((bArr?"":'"'+sProp+'":')+mValue)}return(bArr?"[":"{")+json+(bArr?"]":"}")};function _fnBrowserDetect(oSettings){var n=$('
'+'
'+'
'+'
'+'
')[0];document.body.appendChild(n);oSettings.oBrowser.bScrollOversize=$('#DT_BrowserTest',n)[0].offsetWidth===100?true:false;document.body.removeChild(n)}this.$=function(sSelector,oOpts){var i,iLen,a=[],tr;var oSettings=_fnSettingsFromNode(this[DataTable.ext.iApiIndex]);var aoData=oSettings.aoData;var aiDisplay=oSettings.aiDisplay;var aiDisplayMaster=oSettings.aiDisplayMaster;if(!oOpts){oOpts={}}oOpts=$.extend({},{"filter":"none","order":"current","page":"all"},oOpts);if(oOpts.page=='current'){for(i=oSettings._iDisplayStart,iLen=oSettings.fnDisplayEnd();i=oSettings.fnRecordsDisplay()){oSettings._iDisplayStart-=oSettings._iDisplayLength;if(oSettings._iDisplayStart<0){oSettings._iDisplayStart=0}}if(bRedraw===undefined||bRedraw){_fnCalculateEnd(oSettings);_fnDraw(oSettings)}return oData};this.fnDestroy=function(bRemove){var oSettings=_fnSettingsFromNode(this[DataTable.ext.iApiIndex]);var nOrig=oSettings.nTableWrapper.parentNode;var nBody=oSettings.nTBody;var i,iLen;bRemove=(bRemove===undefined)?false:bRemove;oSettings.bDestroying=true;_fnCallbackFire(oSettings,"aoDestroyCallback","destroy",[oSettings]);if(!bRemove){for(i=0,iLen=oSettings.aoColumns.length;itr>td.'+oSettings.oClasses.sRowEmpty,oSettings.nTable).parent().remove();if(oSettings.nTable!=oSettings.nTHead.parentNode){$(oSettings.nTable).children('thead').remove();oSettings.nTable.appendChild(oSettings.nTHead)}if(oSettings.nTFoot&&oSettings.nTable!=oSettings.nTFoot.parentNode){$(oSettings.nTable).children('tfoot').remove();oSettings.nTable.appendChild(oSettings.nTFoot)}oSettings.nTable.parentNode.removeChild(oSettings.nTable);$(oSettings.nTableWrapper).remove();oSettings.aaSorting=[];oSettings.aaSortingFixed=[];_fnSortingClasses(oSettings);$(_fnGetTrNodes(oSettings)).removeClass(oSettings.asStripeClasses.join(' '));$('th, td',oSettings.nTHead).removeClass([oSettings.oClasses.sSortable,oSettings.oClasses.sSortableAsc,oSettings.oClasses.sSortableDesc,oSettings.oClasses.sSortableNone].join(' '));if(oSettings.bJUI){$('th span.'+oSettings.oClasses.sSortIcon+', td span.'+oSettings.oClasses.sSortIcon,oSettings.nTHead).remove();$('th, td',oSettings.nTHead).each(function(){var jqWrapper=$('div.'+oSettings.oClasses.sSortJUIWrapper,this);var kids=jqWrapper.contents();$(this).append(kids);jqWrapper.remove()})}if(!bRemove&&oSettings.nTableReinsertBefore){nOrig.insertBefore(oSettings.nTable,oSettings.nTableReinsertBefore)}else if(!bRemove){nOrig.appendChild(oSettings.nTable)}for(i=0,iLen=oSettings.aoData.length;i=_fnVisbleColumns(oSettings));if(!bAppend){for(i=iCol;it<"F"ip>'}}else{$.extend(oSettings.oClasses,DataTable.ext.oStdClasses)}$(this).addClass(oSettings.oClasses.sTable);if(oSettings.oScroll.sX!==""||oSettings.oScroll.sY!==""){oSettings.oScroll.iBarWidth=_fnScrollBarWidth()}if(oSettings.iInitDisplayStart===undefined){oSettings.iInitDisplayStart=oInit.iDisplayStart;oSettings._iDisplayStart=oInit.iDisplayStart}if(oInit.bStateSave){oSettings.oFeatures.bStateSave=true;_fnLoadState(oSettings,oInit);_fnCallbackReg(oSettings,'aoDrawCallback',_fnSaveState,'state_save')}if(oInit.iDeferLoading!==null){oSettings.bDeferLoading=true;var tmp=$.isArray(oInit.iDeferLoading);oSettings._iRecordsDisplay=tmp?oInit.iDeferLoading[0]:oInit.iDeferLoading;oSettings._iRecordsTotal=tmp?oInit.iDeferLoading[1]:oInit.iDeferLoading}if(oInit.aaData!==null){bUsePassedData=true}if(oInit.oLanguage.sUrl!==""){oSettings.oLanguage.sUrl=oInit.oLanguage.sUrl;$.getJSON(oSettings.oLanguage.sUrl,null,function(json){_fnLanguageCompat(json);$.extend(true,oSettings.oLanguage,oInit.oLanguage,json);_fnInitialise(oSettings)});bInitHandedOff=true}else{$.extend(true,oSettings.oLanguage,oInit.oLanguage)}if(oInit.asStripeClasses===null){oSettings.asStripeClasses=[oSettings.oClasses.sStripeOdd,oSettings.oClasses.sStripeEven]}iLen=oSettings.asStripeClasses.length;oSettings.asDestroyStripes=[];if(iLen){var bStripeRemove=false;var anRows=$(this).children('tbody').children('tr:lt('+iLen+')');for(i=0;i=oSettings.aoColumns.length){oSettings.aaSorting[i][0]=0}var oColumn=oSettings.aoColumns[oSettings.aaSorting[i][0]];if(oSettings.aaSorting[i][2]===undefined){oSettings.aaSorting[i][2]=0}if(oInit.aaSorting===undefined&&oSettings.saved_aaSorting===undefined){oSettings.aaSorting[i][1]=oColumn.asSorting[0]}for(j=0,jLen=oColumn.asSorting.length;j0&&(oSettings.oScroll.sX!==""||oSettings.oScroll.sY!=="")){tfoot=[document.createElement('tfoot')];this.appendChild(tfoot[0])}if(tfoot.length>0){oSettings.nTFoot=tfoot[0];_fnDetectHeader(oSettings.aoFooter,oSettings.nTFoot)}if(bUsePassedData){for(i=0;i=parseInt(sThat,10)};DataTable.fnIsDataTable=function(nTable){var o=DataTable.settings;for(var i=0;i'+oLang.sPrevious+''+''+oLang.sNext+'':''+'';$(nPaging).append(sAppend);var els=$('a',nPaging);var nPrevious=els[0],nNext=els[1];oSettings.oApi._fnBindAction(nPrevious,{action:"previous"},fnClickHandler);oSettings.oApi._fnBindAction(nNext,{action:"next"},fnClickHandler);if(!oSettings.aanFeatures.p){nPaging.id=oSettings.sTableId+'_paginate';nPrevious.id=oSettings.sTableId+'_previous';nNext.id=oSettings.sTableId+'_next';nPrevious.setAttribute('aria-controls',oSettings.sTableId);nNext.setAttribute('aria-controls',oSettings.sTableId)}},"fnUpdate":function(oSettings,fnCallbackDraw){if(!oSettings.aanFeatures.p){return}var oClasses=oSettings.oClasses;var an=oSettings.aanFeatures.p;var nNode;for(var i=0,iLen=an.length;i'+oLang.sFirst+''+''+oLang.sPrevious+''+''+''+oLang.sNext+''+''+oLang.sLast+'');var els=$('a',nPaging);var nFirst=els[0],nPrev=els[1],nNext=els[2],nLast=els[3];oSettings.oApi._fnBindAction(nFirst,{action:"first"},fnClickHandler);oSettings.oApi._fnBindAction(nPrev,{action:"previous"},fnClickHandler);oSettings.oApi._fnBindAction(nNext,{action:"next"},fnClickHandler);oSettings.oApi._fnBindAction(nLast,{action:"last"},fnClickHandler);if(!oSettings.aanFeatures.p){nPaging.id=oSettings.sTableId+'_paginate';nFirst.id=oSettings.sTableId+'_first';nPrev.id=oSettings.sTableId+'_previous';nNext.id=oSettings.sTableId+'_next';nLast.id=oSettings.sTableId+'_last'}},"fnUpdate":function(oSettings,fnCallbackDraw){if(!oSettings.aanFeatures.p){return}var iPageCount=DataTable.ext.oPagination.iFullNumbersShowPages;var iPageCountHalf=Math.floor(iPageCount/2);var iPages=Math.ceil((oSettings.fnRecordsDisplay())/oSettings._iDisplayLength);var iCurrentPage=Math.ceil(oSettings._iDisplayStart/oSettings._iDisplayLength)+1;var sList="";var iStartButton,iEndButton,i,iLen;var oClasses=oSettings.oClasses;var anButtons,anStatic,nPaginateList,nNode;var an=oSettings.aanFeatures.p;var fnBind=function(j){oSettings.oApi._fnBindAction(this,{"page":j+iStartButton-1},function(e){oSettings.oApi._fnPageChange(oSettings,e.data.page);fnCallbackDraw(oSettings);e.preventDefault()})};if(oSettings._iDisplayLength===-1){iStartButton=1;iEndButton=1;iCurrentPage=1}else if(iPages=(iPages-iPageCountHalf)){iStartButton=iPages-iPageCount+1;iEndButton=iPages}else{iStartButton=iCurrentPage-Math.ceil(iPageCount/2)+1;iEndButton=iStartButton+iPageCount-1}for(i=iStartButton;i<=iEndButton;i++){sList+=(iCurrentPage!==i)?''+oSettings.fnFormatNumber(i)+'':''+oSettings.fnFormatNumber(i)+''}for(i=0,iLen=an.length;iy)?1:0))},"string-desc":function(x,y){return((xy)?-1:0))},"html-pre":function(a){return a.replace(/<.*?>/g,"").toLowerCase()},"html-asc":function(x,y){return((xy)?1:0))},"html-desc":function(x,y){return((xy)?-1:0))},"date-pre":function(a){var x=Date.parse(a);if(isNaN(x)||x===""){x=Date.parse("01/01/1970 00:00:00")}return x},"date-asc":function(x,y){return x-y},"date-desc":function(x,y){return y-x},"numeric-pre":function(a){return(a=="-"||a==="")?0:a*1},"numeric-asc":function(x,y){return x-y},"numeric-desc":function(x,y){return y-x}});$.extend(DataTable.ext.aTypes,[function(sData){if(typeof sData==='number'){return'numeric'}else if(typeof sData!=='string'){return null}var sValidFirstChars="0123456789-";var sValidChars="0123456789.";var Char;var bDecimal=false;Char=sData.charAt(0);if(sValidFirstChars.indexOf(Char)==-1){return null}for(var i=1;i')!=-1){return'html'}return null}]);$.fn.DataTable=DataTable;$.fn.dataTable=DataTable;$.fn.dataTableSettings=DataTable.settings;$.fn.dataTableExt=DataTable.ext}))}(window,document)); \ No newline at end of file diff --git a/karmaworld/templates/base.html b/karmaworld/templates/base.html index 109c495..d29ef21 100644 --- a/karmaworld/templates/base.html +++ b/karmaworld/templates/base.html @@ -8,7 +8,7 @@ - + @@ -49,7 +49,7 @@ - + - + + {% endblock %} diff --git a/karmaworld/templates/notes/note_detail.html b/karmaworld/templates/notes/note_detail.html index a0c7757..977ac8e 100644 --- a/karmaworld/templates/notes/note_detail.html +++ b/karmaworld/templates/notes/note_detail.html @@ -31,9 +31,9 @@ {% block bodyscripts %} - + - +