[ Mini Kiebo ]
Server: Windows NT DESKTOP-5B8S0D4 6.2 build 9200 (Windows 8 Professional Edition) i586
Path:
D:
/
xampp182
/
htdocs
/
repository-perpus
/
app
/
assets
/
js
/
core
/
source
/
[
Home
]
File: AppCard.js
(function(namespace, $) { "use strict"; var AppCard = function() { // Create reference to this instance var o = this; // Initialize app when document is ready $(document).ready(function() { o.initialize(); }); }; var p = AppCard.prototype; // ========================================================================= // INIT // ========================================================================= p.initialize = function() {}; // ========================================================================= // CARD LOADER // ========================================================================= p.addCardLoader = function (card) { var container = $('<div class="card-loader"></div>').appendTo(card); container.hide().fadeIn(); var opts = { lines: 17, // The number of lines to draw length: 0, // The length of each line width: 3, // The line thickness radius: 6, // The radius of the inner circle corners: 1, // Corner roundness (0..1) rotate: 13, // The rotation offset direction: 1, // 1: clockwise, -1: counterclockwise color: '#000', // #rgb or #rrggbb or array of colors speed: 2, // Rounds per second trail: 76, // Afterglow percentage shadow: false, // Whether to render a shadow hwaccel: false, // Whether to use hardware acceleration className: 'spinner', // The CSS class to assign to the spinner zIndex: 2e9 // The z-index (defaults to 2000000000) }; var spinner = new Spinner(opts).spin(container.get(0)); card.data('card-spinner', spinner); }; p.removeCardLoader = function (card) { var spinner = card.data('card-spinner'); var loader = card.find('.card-loader'); loader.fadeOut(function () { spinner.stop(); loader.remove(); }); }; // ========================================================================= // CARD COLLAPSE // ========================================================================= p.toggleCardCollapse = function (card, duration) { duration = typeof duration !== 'undefined' ? duration : 400; var dispatched = false; card.find('.nano').slideToggle(duration); card.find('.card-body').slideToggle(duration, function () { if (dispatched === false) { $('#COLLAPSER').triggerHandler('card.bb.collapse', [!$(this).is(":visible")]); dispatched = true; } }); card.toggleClass('card-collapsed'); }; // ========================================================================= // CARD REMOVE // ========================================================================= p.removeCard = function (card) { card.fadeOut(function () { card.remove(); }); }; // ========================================================================= // DEFINE NAMESPACE // ========================================================================= window.materialadmin.AppCard = new AppCard; }(this.materialadmin, jQuery)); // pass in (namespace, jQuery):