Файловый менеджер - Редактировать - /home/amitahospital/public_html/amita_master/upload/news/demo.js.tar
Назад
home/amitahospital/public_html/amita_master/js/demo.js 0000644 00000120327 14721162021 0017202 0 ustar 00 $.fn.serializeObject = function () { var o = {}; var a = this.serializeArray(); $.each(a, function () { if (o[this.name] !== undefined) { if (!o[this.name].push) { o[this.name] = [o[this.name]]; } o[this.name].push(this.value || ''); } else { o[this.name] = this.value || ''; } }); return o; }; $(function () { var IMG_PREFIX = 'demo/img/'; (function () { (function () { $('#popupYesNoBasic').click(function () { Lobibox.confirm({ msg: "Are you sure you want to delete this user?", }); }); $('#popupErrorBasic').click(function () { Lobibox.alert('error', { msg: "Lorem ipsum dolor sit amet byron frown tumult minstrel wicked clouded bows columbine full" }); }); $('#popupSuccessBasic').click(function () { Lobibox.alert('success', { msg: "Lorem ipsum dolor sit amet byron frown tumult minstrel wicked clouded bows columbine full" }); }); $('#popupInfoBasic').click(function () { Lobibox.alert('info', { msg: "Lorem ipsum dolor sit amet byron frown tumult minstrel wicked clouded bows columbine full" }); }); $('#popupWarningBasic').click(function () { Lobibox.alert('warning', { msg: "Lorem ipsum dolor sit amet byron frown tumult minstrel wicked clouded bows columbine full" }); }); $('#popupPromptBasic').click(function () { Lobibox.prompt('text', { title: 'Please enter username', attrs: { placeholder: "Username" } }); }); $('#popupProgressBasic').click(function () { var inter; Lobibox.progress({ title: 'Please wait', label: 'Uploading files...', onShow: function ($this) { var i = 0; inter = setInterval(function () { window.console.log(i); if (i > 100) { inter = clearInterval(inter); } i = i + 0.1; $this.setProgress(i); }, 10); }, closed: function () { inter = clearInterval(inter); } }); }); $('#popupProgressBootstrap').click(function () { var inter; Lobibox.progress({ title: 'Please wait', label: 'Uploading files...', progressTpl: '<div class="progress lobibox-progress-outer">\n\ <div class="progress-bar progress-bar-danger progress-bar-striped lobibox-progress-element" data-role="progress-text" role="progressbar"></div>\n\ </div>', progressCompleted: function () { Lobibox.notify('success', { msg: 'Files were successfully uploaded' }); }, onShow: function ($this) { var i = 0; inter = setInterval(function () { window.console.log(i); if (i > 100) { clearInterval(inter); } i = i + 0.2; $this.setProgress(i); }, 1000 / 30); }, closed: function () { inter = clearInterval(inter); } }); }); $('#popupWindowBasic').click(function () { Lobibox.window({ title: 'Window title', content: [ '<p>Lorem ipsum dolor sit amet byron frown tumult minstrel wicked clouded bows columbine full. Panther nascetur estimation, croaked translations brood sharply federal basket. Yet virtues replies pans croaked org feelest, redden chicadeedee wipe, columbine humanity flood mood. Stayed frown ponderous shares bubbles skilled mood federal, shamed robe roll feathered life. Notifies life bows joys bubbles, clouded frown. Skilled wished sportive moved, shamed, year frown sank, universe, wove within. Infirm dames croaked sharply estimation wipe ponderous climb, shamed once basket oracle, smite frown stayed. Sharply bows basket minstrel skilled virtues, panther life. Dames notifies laid, willow listened frankincense croaked potenti. Minstrel since rowed frown, wipe shares, dames wished heaving potenti estimation panther columbine mighty flood.</p>', '<p>Lorem ipsum dolor sit amet byron frown tumult minstrel wicked clouded bows columbine full. Panther nascetur estimation, croaked translations brood sharply federal basket. Yet virtues replies pans croaked org feelest, redden chicadeedee wipe, columbine humanity flood mood. Stayed frown ponderous shares bubbles skilled mood federal, shamed robe roll feathered life. Notifies life bows joys bubbles, clouded frown. Skilled wished sportive moved, shamed, year frown sank, universe, wove within. Infirm dames croaked sharply estimation wipe ponderous climb, shamed once basket oracle, smite frown stayed. Sharply bows basket minstrel skilled virtues, panther life. Dames notifies laid, willow listened frankincense croaked potenti. Minstrel since rowed frown, wipe shares, dames wished heaving potenti estimation panther columbine mighty flood.</p>', '<p>Lorem ipsum dolor sit amet byron frown tumult minstrel wicked clouded bows columbine full. Panther nascetur estimation, croaked translations brood sharply federal basket. Yet virtues replies pans croaked org feelest, redden chicadeedee wipe, columbine humanity flood mood. Stayed frown ponderous shares bubbles skilled mood federal, shamed robe roll feathered life. Notifies life bows joys bubbles, clouded frown. Skilled wished sportive moved, shamed, year frown sank, universe, wove within. Infirm dames croaked sharply estimation wipe ponderous climb, shamed once basket oracle, smite frown stayed. Sharply bows basket minstrel skilled virtues, panther life. Dames notifies laid, willow listened frankincense croaked potenti. Minstrel since rowed frown, wipe shares, dames wished heaving potenti estimation panther columbine mighty flood.</p>' ].join("") }); }); })(); (function () { $('#popupYesNoCallback').click(function () { Lobibox.confirm({ msg: "Are you sure you want to delete this user?", callback: function ($this, type, ev) { if (type === 'yes') { Lobibox.notify('success', { msg: 'You have clicked "Yes" button.' }); } else if (type === 'no') { Lobibox.notify('info', { msg: 'You have clicked "No" button.' }); } } }); }); })(); (function () { function processData(params) { if (params.width === "") { delete params.width; } if (params.title === "") { delete params.title; } if (params.iconClass === "") { delete params.iconClass; } var checks = ['closeButton', 'draggable', 'modal', 'closeOnEsc', 'showProgressLabel']; for (var i in checks) { if (!params[checks[i]]) { params[checks[i]] = false; } else { params[checks[i]] = true; } } if (params.placeholder) { params.attrs = { placeholder: params.placeholder }; } return params; } var $form = $('#lobibox-popup-demo-form'); var $popupType = $form.find('[name="popupType"]'); $popupType.change(function () { var $this = $(this); $form.find('.alert-fieldset').attr('disabled', true); $form.find('.prompt-fieldset').attr('disabled', true); $form.find('.confirm-fieldset').attr('disabled', true); $form.find('.progress-fieldset').attr('disabled', true); if ($this.val() === 'alert') { $form.find('.alert-fieldset').removeAttr('disabled'); $form.find('[href="#alert-options"]').trigger('click'); } else if ($this.val() === 'prompt') { $form.find('.prompt-fieldset').removeAttr('disabled'); $form.find('[href="#prompt-options"]').trigger('click'); } else if ($this.val() === 'confirm') { $form.find('.confirm-fieldset').removeAttr('disabled'); $form.find('[href="#confirm-options"]').trigger('click'); } else if ($this.val() === 'progress') { $form.find('.progress-fieldset').removeAttr('disabled'); $form.find('[href="#progress-options"]').trigger('click'); } }); $form.submit(function (ev) { ev.preventDefault(); var inter; var params = $form.serializeObject(); params = processData(params); if (params.popupType === 'confirm') { Lobibox.confirm(params); } else if (params.popupType === 'progress') { params.onShow = function ($this) { var i = 0; inter = setInterval(function () { if (i > 100) { inter = clearInterval(inter); } i = i + 0.1; $this.setProgress(i); }, 10); }; params.closed = function () { inter = clearInterval(inter); }; Lobibox.progress(params); } else { Lobibox[params.popupType](params.type, params); } }); })(); (function () { $('#popupProgressErrorButtons').click(function () { Lobibox.alert('error', { msg: 'This is an error message', // buttons: ['ok', 'cancel', 'yes', 'no'], //Or more powerfull way buttons: { ok: { 'class': 'btn btn-info', closeOnClick: false }, cancel: { 'class': 'btn btn-danger', closeOnClick: false }, yes: { 'class': 'btn btn-success', closeOnClick: false }, no: { 'class': 'btn btn-warning', closeOnClick: false }, custom: { 'class': 'btn btn-default', text: 'Custom' } }, callback: function (lobibox, type) { var btnType; if (type === 'no') { btnType = 'warning'; } else if (type === 'yes') { btnType = 'success'; } else if (type === 'ok') { btnType = 'info'; } else if (type === 'cancel') { btnType = 'error'; } Lobibox.notify(btnType, { size: 'mini', msg: 'This is ' + btnType + ' message' }); } }); }); $('#popupConfirmNoIcon').click(function () { Lobibox.confirm({ iconClass: false, msg: 'Are you sure?' }); }); })(); (function () { $('#popupWindowExample').click(function () { Lobibox.window({ title: 'Window title', //Available types: string, jquery object, function content: function () { return $('.container'); }, url: 'https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.css', autoload: false, loadMethod: 'GET', //Load parameters params: { param1: 'Lorem', param2: 'Ipsum' }, buttons: { load: { text: 'Load from url' }, close: { text: 'Close', closeOnClick: true } }, callback: function ($this, type, ev) { if (type === 'load') { $this.load(function () { var $body = $this.$el.find('.lobibox-body'); $body.html('<div class="highlight"><pre><code>' + $body.html() + '</code></pre></div>'); hljs.highlightBlock($body.find('code')[0]); }); } } }); }); })(); })(); (function () { // Notification basic example (function () { $('#basicInfo').click(function () { Lobibox.notify('info', { msg: 'Lorem ipsum dolor sit amet against apennine any created, spend loveliest, building stripes.' }); }); $('#basicWarning').click(function () { Lobibox.notify('warning', { msg: 'Lorem ipsum dolor sit amet against apennine any created, spend loveliest, building stripes.' }); }); $('#basicError').click(function () { Lobibox.notify('error', { msg: 'Lorem ipsum dolor sit amet against apennine any created, spend loveliest, building stripes.' }); }); $('#basicSuccess').click(function () { Lobibox.notify('success', { msg: 'Lorem ipsum dolor sit amet against apennine any created, spend loveliest, building stripes.' }); }); })(); //------------------------------------------------------------------------------ // Notification with image (function () { $('#basicInfoImage').click(function () { Lobibox.notify('info', { img: IMG_PREFIX + '1.jpg', msg: 'Lorem ipsum dolor sit amet against apennine any created, spend loveliest, building stripes.' }); }); $('#basicWarningImage').click(function () { Lobibox.notify('warning', { img: IMG_PREFIX + '2.jpg', msg: 'Lorem ipsum dolor sit amet against apennine any created, spend loveliest, building stripes.' }); }); $('#basicErrorImage').click(function () { Lobibox.notify('error', { img: IMG_PREFIX + '3.jpg', msg: 'Lorem ipsum dolor sit amet against apennine any created, spend loveliest, building stripes.' }); }); $('#basicSuccessImage').click(function () { Lobibox.notify('success', { img: IMG_PREFIX + '4.jpg', msg: 'Lorem ipsum dolor sit amet against apennine any created, spend loveliest, building stripes.' }); }); })(); //------------------------------------------------------------------------------ // Notification Without sound (function () { $('#basicInfoNoSound').click(function () { Lobibox.notify('info', { sound: false, msg: 'Lorem ipsum dolor sit amet against apennine any created, spend loveliest, building stripes.' }); }); $('#basicWarningNoSound').click(function () { Lobibox.notify('warning', { sound: false, msg: 'Lorem ipsum dolor sit amet against apennine any created, spend loveliest, building stripes.' }); }); $('#basicErrorNoSound').click(function () { Lobibox.notify('error', { sound: false, msg: 'Lorem ipsum dolor sit amet against apennine any created, spend loveliest, building stripes.' }); }); $('#basicSuccessNoSound').click(function () { Lobibox.notify('success', { sound: false, msg: 'Lorem ipsum dolor sit amet against apennine any created, spend loveliest, building stripes.' }); }); })(); //------------------------------------------------------------------------------ // Notification custom title (function () { $('#basicInfoCustomTitle').click(function () { Lobibox.notify('info', { title: 'Info title', msg: 'Lorem ipsum dolor sit amet against apennine any created, spend loveliest, building stripes.' }); }); $('#basicWarningCustomTitle').click(function () { Lobibox.notify('warning', { title: 'Warning title', msg: 'Lorem ipsum dolor sit amet against apennine any created, spend loveliest, building stripes.' }); }); $('#basicErrorCustomTitle').click(function () { Lobibox.notify('error', { title: 'Error title', msg: 'Lorem ipsum dolor sit amet against apennine any created, spend loveliest, building stripes.' }); }); $('#basicSuccessCustomTitle').click(function () { Lobibox.notify('success', { title: 'Success title', msg: 'Lorem ipsum dolor sit amet against apennine any created, spend loveliest, building stripes.' }); }); })(); //------------------------------------------------------------------------------ // Notification without icon (function () { $('#basicInfoNoIcon').click(function () { Lobibox.notify('info', { icon: false, msg: 'Lorem ipsum dolor sit amet against apennine any created, spend loveliest, building stripes.' }); }); $('#basicWarningNoIcon').click(function () { Lobibox.notify('warning', { icon: false, msg: 'Lorem ipsum dolor sit amet against apennine any created, spend loveliest, building stripes.' }); }); $('#basicErrorNoIcon').click(function () { Lobibox.notify('error', { icon: false, msg: 'Lorem ipsum dolor sit amet against apennine any created, spend loveliest, building stripes.' }); }); $('#basicSuccessNoIcon').click(function () { Lobibox.notify('success', { icon: false, msg: 'Lorem ipsum dolor sit amet against apennine any created, spend loveliest, building stripes.' }); }); })(); //------------------------------------------------------------------------------ // Notification custom delay (function () { $('#basicInfoCustomDelay').click(function () { Lobibox.notify('info', { delay: 15000, msg: 'Lorem ipsum dolor sit amet against apennine any created, spend loveliest, building stripes.' }); }); $('#basicWarningCustomDelay').click(function () { Lobibox.notify('warning', { delay: 15000, msg: 'Lorem ipsum dolor sit amet against apennine any created, spend loveliest, building stripes.' }); }); $('#basicErrorCustomDelay').click(function () { Lobibox.notify('error', { delay: 15000, msg: 'Lorem ipsum dolor sit amet against apennine any created, spend loveliest, building stripes.' }); }); $('#basicSuccessCustomDelay').click(function () { Lobibox.notify('success', { delay: 15000, msg: 'Lorem ipsum dolor sit amet against apennine any created, spend loveliest, building stripes.' }); }); })(); //------------------------------------------------------------------------------ // Notification no delay (function () { $('#basicInfoNoDelay').click(function () { Lobibox.notify('info', { delay: false, title: 'Info title', msg: 'Lorem ipsum dolor sit amet against apennine any created, spend loveliest, building stripes.' }); }); $('#basicWarningNoDelay').click(function () { Lobibox.notify('warning', { delay: false, title: 'Warning title', msg: 'Lorem ipsum dolor sit amet against apennine any created, spend loveliest, building stripes.' }); }); $('#basicErrorNoDelay').click(function () { Lobibox.notify('error', { delay: false, title: 'Error title', msg: 'Lorem ipsum dolor sit amet against apennine any created, spend loveliest, building stripes.' }); }); $('#basicSuccessNoDelay').click(function () { Lobibox.notify('success', { delay: false, title: 'Success title', msg: 'Lorem ipsum dolor sit amet against apennine any created, spend loveliest, building stripes.' }); }); })(); //------------------------------------------------------------------------------ // Notification positioning (function () { $('#basicInfoPosition').click(function () { Lobibox.notify('info', { position: 'top left', msg: 'Lorem ipsum dolor sit amet against apennine any created, spend loveliest, building stripes.' }); }); $('#basicWarningPosition').click(function () { Lobibox.notify('warning', { position: 'top right', msg: 'Lorem ipsum dolor sit amet against apennine any created, spend loveliest, building stripes.' }); }); $('#basicErrorPosition').click(function () { Lobibox.notify('error', { position: 'bottom left', msg: 'Lorem ipsum dolor sit amet against apennine any created, spend loveliest, building stripes.' }); }); $('#basicSuccessPosition').click(function () { Lobibox.notify('success', { position: 'bottom right', msg: 'Lorem ipsum dolor sit amet against apennine any created, spend loveliest, building stripes.' }); }); })(); //------------------------------------------------------------------------------ // Notification custom width (function () { $('#basicInfoWidth').click(function () { Lobibox.notify('info', { width: 300, msg: 'Lorem ipsum dolor sit amet against apennine any created, spend loveliest, building stripes.' }); }); $('#basicWarningWidth').click(function () { Lobibox.notify('warning', { width: 500, msg: 'Lorem ipsum dolor sit amet against apennine any created, spend loveliest, building stripes.' }); }); $('#basicErrorWidth').click(function () { Lobibox.notify('error', { width: $(window).width(), msg: 'Lorem ipsum dolor sit amet against apennine any created, spend loveliest, building stripes.' }); }); $('#basicSuccessWidth').click(function () { Lobibox.notify('success', { width: 600, msg: 'Lorem ipsum dolor sit amet against apennine any created, spend loveliest, building stripes.' }); }); })(); //------------------------------------------------------------------------------ // Notification custom animation (function () { $('#basicInfoAnimation').click(function () { Lobibox.notify('info', { showClass: 'fadeInDown', hideClass: 'fadeUpDown', msg: 'Lorem ipsum dolor sit amet against apennine any created, spend loveliest, building stripes.' }); }); $('#basicWarningAnimation').click(function () { Lobibox.notify('warning', { showClass: 'bounceIn', hideClass: 'bounceOut', msg: 'Lorem ipsum dolor sit amet against apennine any created, spend loveliest, building stripes.' }); }); $('#basicErrorAnimation').click(function () { Lobibox.notify('error', { showClass: 'zoomInUp', hideClass: 'zoomOutDown', msg: 'Lorem ipsum dolor sit amet against apennine any created, spend loveliest, building stripes.' }); }); $('#basicSuccessAnimation').click(function () { Lobibox.notify('success', { showClass: 'rollIn', hideClass: 'rollOut', msg: 'Lorem ipsum dolor sit amet against apennine any created, spend loveliest, building stripes.' }); }); })(); //------------------------------------------------------------------------------ // Notification Large (function () { $('#largeInfoBasic').click(function () { Lobibox.notify('info', { size: 'large', msg: 'Lorem ipsum dolor sit amet hears farmer indemnity inherent, youngest nestor serene horse, already, ipsum unplanted trace line. Making queries worketh game unplanted trace how erring poles.' }); }); $('#largeWarningBasic').click(function () { Lobibox.notify('warning', { size: 'large', msg: 'Lorem ipsum dolor sit amet hears farmer indemnity inherent, youngest nestor serene horse, already, ipsum unplanted trace line. Making queries worketh game unplanted trace how erring poles.' }); }); $('#largeErrorBasic').click(function () { Lobibox.notify('error', { size: 'large', msg: 'Lorem ipsum dolor sit amet hears farmer indemnity inherent, youngest nestor serene horse, already, ipsum unplanted trace line. Making queries worketh game unplanted trace how erring poles.' }); }); $('#largeSuccessBasic').click(function () { Lobibox.notify('success', { size: 'large', msg: 'Lorem ipsum dolor sit amet hears farmer indemnity inherent, youngest nestor serene horse, already, ipsum unplanted trace line. Making queries worketh game unplanted trace how erring poles.' }); }); })(); //------------------------------------------------------------------------------ // Notification large with image (function () { $('#largeInfoImage').click(function () { Lobibox.notify('info', { img: IMG_PREFIX + '1.jpg', size: 'large', msg: 'Lorem ipsum dolor sit amet hears farmer indemnity inherent, youngest nestor serene horse, already, ipsum unplanted trace line. Making queries worketh game unplanted trace how erring poles.' }); }); $('#largeWarningImage').click(function () { Lobibox.notify('warning', { img: IMG_PREFIX + '2.jpg', size: 'large', msg: 'Lorem ipsum dolor sit amet hears farmer indemnity inherent, youngest nestor serene horse, already, ipsum unplanted trace line. Making queries worketh game unplanted trace how erring poles.' }); }); $('#largeErrorImage').click(function () { Lobibox.notify('error', { img: IMG_PREFIX + '3.jpg', size: 'large', msg: 'Lorem ipsum dolor sit amet hears farmer indemnity inherent, youngest nestor serene horse, already, ipsum unplanted trace line. Making queries worketh game unplanted trace how erring poles.' }); }); $('#largeSuccessImage').click(function () { Lobibox.notify('success', { img: IMG_PREFIX + '4.jpg', size: 'large', msg: 'Lorem ipsum dolor sit amet hears farmer indemnity inherent.' }); }); })(); //------------------------------------------------------------------------------ // Notification large positioning (function () { $('#largeInfoPosition').click(function () { Lobibox.notify('info', { size: 'large', position: 'bottom left', msg: 'Lorem ipsum dolor sit amet hears farmer indemnity inherent, youngest nestor serene horse, already, ipsum unplanted trace line. Making queries worketh game unplanted trace how erring poles.' }); }); $('#largeWarningPosition').click(function () { Lobibox.notify('warning', { size: 'large', position: 'bottom right', msg: 'Lorem ipsum dolor sit amet hears farmer indemnity inherent, youngest nestor serene horse, already, ipsum unplanted trace line. Making queries worketh game unplanted trace how erring poles.' }); }); $('#largeErrorPosition').click(function () { Lobibox.notify('error', { size: 'large', position: 'top left', msg: 'Lorem ipsum dolor sit amet hears farmer indemnity inherent, youngest nestor serene horse, already, ipsum unplanted trace line. Making queries worketh game unplanted trace how erring poles.' }); }); $('#largeSuccessPosition').click(function () { Lobibox.notify('success', { size: 'large', position: 'top right', msg: 'Lorem ipsum dolor sit amet hears farmer indemnity inherent, youngest nestor serene horse, already, ipsum unplanted trace line. Making queries worketh game unplanted trace how erring poles.' }); }); })(); //------------------------------------------------------------------------------ // Notification large animation (function () { $('#largeInfoAnimation').click(function () { Lobibox.notify('info', { showClass: 'fadeInDown', hideClass: 'fadeUpDown', size: 'large', msg: 'Lorem ipsum dolor sit amet hears farmer indemnity inherent, youngest nestor serene horse, already, ipsum unplanted trace line. Making queries worketh game unplanted trace how erring poles.' }); }); $('#largeWarningAnimation').click(function () { Lobibox.notify('warning', { showClass: 'bounceIn', hideClass: 'bounceOut', size: 'large', msg: 'Lorem ipsum dolor sit amet hears farmer indemnity inherent, youngest nestor serene horse, already, ipsum unplanted trace line. Making queries worketh game unplanted trace how erring poles.' }); }); $('#largeErrorAnimation').click(function () { Lobibox.notify('error', { showClass: 'zoomInUp', hideClass: 'zoomOutDown', size: 'large', msg: 'Lorem ipsum dolor sit amet hears farmer indemnity inherent, youngest nestor serene horse, already, ipsum unplanted trace line. Making queries worketh game unplanted trace how erring poles.' }); }); $('#largeSuccessAnimation').click(function () { Lobibox.notify('success', { showClass: 'rollIn', hideClass: 'rollOut', size: 'large', msg: 'Lorem ipsum dolor sit amet hears farmer indemnity inherent.' }); }); })(); //------------------------------------------------------------------------------ // Notification mini basic (function () { $('#miniInfoAnimation').click(function () { Lobibox.notify('info', { size: 'mini', msg: 'Lorem ipsum dolor sit amet hears farmer indemnity inherent.' }); }); $('#miniWarningAnimation').click(function () { Lobibox.notify('warning', { size: 'mini', msg: 'Lorem ipsum dolor sit amet hears farmer indemnity inherent.' }); }); $('#miniErrorAnimation').click(function () { Lobibox.notify('error', { size: 'mini', msg: 'Lorem ipsum dolor sit amet hears farmer indemnity inherent.' }); }); $('#miniSuccessAnimation').click(function () { Lobibox.notify('success', { size: 'mini', msg: 'Lorem ipsum dolor sit amet hears farmer indemnity inherent.' }); }); })(); //------------------------------------------------------------------------------ // Notification mini with image (function () { $('#miniInfoImage').click(function () { Lobibox.notify('info', { img: IMG_PREFIX + '1.jpg', size: 'mini', msg: 'Lorem ipsum dolor sit amet hears farmer indemnity inherent.' }); }); $('#miniWarningImage').click(function () { Lobibox.notify('warning', { img: IMG_PREFIX + '2.jpg', size: 'mini', msg: 'Lorem ipsum dolor sit amet hears farmer indemnity inherent.' }); }); $('#miniErrorImage').click(function () { Lobibox.notify('error', { img: IMG_PREFIX + '3.jpg', size: 'mini', msg: 'Lorem ipsum dolor sit amet hears farmer indemnity inherent.' }); }); $('#miniSuccessImage').click(function () { Lobibox.notify('success', { img: IMG_PREFIX + '4.jpg', size: 'mini', msg: 'Lorem ipsum dolor sit amet hears farmer indemnity inherent.' }); }); })(); //------------------------------------------------------------------------------ // Notification mini without icon (function () { $('#miniInfoNoIcon').click(function () { Lobibox.notify('info', { size: 'mini', icon: false, msg: 'Lorem ipsum dolor sit amet hears farmer indemnity inherent.' }); }); $('#miniWarningNoIcon').click(function () { Lobibox.notify('warning', { size: 'mini', icon: false, msg: 'Lorem ipsum dolor sit amet hears farmer indemnity inherent.' }); }); $('#miniErrorNoIcon').click(function () { Lobibox.notify('error', { size: 'mini', icon: false, msg: 'Lorem ipsum dolor sit amet hears farmer indemnity inherent.' }); }); $('#miniSuccessNoIcon').click(function () { Lobibox.notify('success', { size: 'mini', icon: false, msg: 'Lorem ipsum dolor sit amet hears farmer indemnity inherent.' }); }); })(); //------------------------------------------------------------------------------ // Notification mini with title (function () { $('#miniInfoTitle').click(function () { Lobibox.notify('info', { size: 'mini', title: 'Lorem ipsum', msg: 'Lorem ipsum dolor sit amet hears farmer indemnity inherent.' }); }); $('#miniWarningTitle').click(function () { Lobibox.notify('warning', { size: 'mini', title: 'Lorem ipsum', msg: 'Lorem ipsum dolor sit amet hears farmer indemnity inherent.' }); }); $('#miniErrorTitle').click(function () { Lobibox.notify('error', { size: 'mini', title: 'Lorem ipsum', msg: 'Lorem ipsum dolor sit amet hears farmer indemnity inherent.' }); }); $('#miniSuccessTitle').click(function () { Lobibox.notify('success', { size: 'mini', title: 'Lorem ipsum', msg: 'Lorem ipsum dolor sit amet hears farmer indemnity inherent.' }); }); })(); })(); }); home/amitahospital/public_html/amita_master/dist/js/demo.js 0000644 00000043020 14721177031 0020146 0 ustar 00 /** * AdminLTE Demo Menu * ------------------ * You should not use this file in production. * This file is for demo purposes only. */ (function ($, AdminLTE) { "use strict"; /** * List of all the available skins * * @type Array */ var my_skins = [ "skin-blue", "skin-black", "skin-red", "skin-yellow", "skin-purple", "skin-green", "skin-blue-light", "skin-black-light", "skin-red-light", "skin-yellow-light", "skin-purple-light", "skin-green-light" ]; //Create the new tab var tab_pane = $("<div />", { "id": "control-sidebar-theme-demo-options-tab", "class": "tab-pane active" }); //Create the tab button var tab_button = $("<li />", {"class": "active"}) .html("<a href='#control-sidebar-theme-demo-options-tab' data-toggle='tab'>" + "<i class='fa fa-wrench'></i>" + "</a>"); //Add the tab button to the right sidebar tabs $("[href='#control-sidebar-home-tab']") .parent() .before(tab_button); //Create the menu var demo_settings = $("<div />"); //Layout options demo_settings.append( "<h4 class='control-sidebar-heading'>" + "Layout Options" + "</h4>" //Fixed layout + "<div class='form-group'>" + "<label class='control-sidebar-subheading'>" + "<input type='checkbox' data-layout='fixed' class='pull-right'/> " + "Fixed layout" + "</label>" + "<p>Activate the fixed layout. You can't use fixed and boxed layouts together</p>" + "</div>" //Boxed layout + "<div class='form-group'>" + "<label class='control-sidebar-subheading'>" + "<input type='checkbox' data-layout='layout-boxed'class='pull-right'/> " + "Boxed Layout" + "</label>" + "<p>Activate the boxed layout</p>" + "</div>" //Sidebar Toggle + "<div class='form-group'>" + "<label class='control-sidebar-subheading'>" + "<input type='checkbox' data-layout='sidebar-collapse' class='pull-right'/> " + "Toggle Sidebar" + "</label>" + "<p>Toggle the left sidebar's state (open or collapse)</p>" + "</div>" //Sidebar mini expand on hover toggle + "<div class='form-group'>" + "<label class='control-sidebar-subheading'>" + "<input type='checkbox' data-enable='expandOnHover' class='pull-right'/> " + "Sidebar Expand on Hover" + "</label>" + "<p>Let the sidebar mini expand on hover</p>" + "</div>" //Control Sidebar Toggle + "<div class='form-group'>" + "<label class='control-sidebar-subheading'>" + "<input type='checkbox' data-controlsidebar='control-sidebar-open' class='pull-right'/> " + "Toggle Right Sidebar Slide" + "</label>" + "<p>Toggle between slide over content and push content effects</p>" + "</div>" //Control Sidebar Skin Toggle + "<div class='form-group'>" + "<label class='control-sidebar-subheading'>" + "<input type='checkbox' data-sidebarskin='toggle' class='pull-right'/> " + "Toggle Right Sidebar Skin" + "</label>" + "<p>Toggle between dark and light skins for the right sidebar</p>" + "</div>" ); var skins_list = $("<ul />", {"class": 'list-unstyled clearfix'}); //Dark sidebar skins var skin_blue = $("<li />", {style: "float:left; width: 33.33333%; padding: 5px;"}) .append("<a href='javascript:void(0);' data-skin='skin-blue' style='display: block; box-shadow: 0 0 3px rgba(0,0,0,0.4)' class='clearfix full-opacity-hover'>" + "<div><span style='display:block; width: 20%; float: left; height: 7px; background: #367fa9;'></span><span class='bg-light-blue' style='display:block; width: 80%; float: left; height: 7px;'></span></div>" + "<div><span style='display:block; width: 20%; float: left; height: 20px; background: #222d32;'></span><span style='display:block; width: 80%; float: left; height: 20px; background: #f4f5f7;'></span></div>" + "</a>" + "<p class='text-center no-margin'>Blue</p>"); skins_list.append(skin_blue); var skin_black = $("<li />", {style: "float:left; width: 33.33333%; padding: 5px;"}) .append("<a href='javascript:void(0);' data-skin='skin-black' style='display: block; box-shadow: 0 0 3px rgba(0,0,0,0.4)' class='clearfix full-opacity-hover'>" + "<div style='box-shadow: 0 0 2px rgba(0,0,0,0.1)' class='clearfix'><span style='display:block; width: 20%; float: left; height: 7px; background: #fefefe;'></span><span style='display:block; width: 80%; float: left; height: 7px; background: #fefefe;'></span></div>" + "<div><span style='display:block; width: 20%; float: left; height: 20px; background: #222;'></span><span style='display:block; width: 80%; float: left; height: 20px; background: #f4f5f7;'></span></div>" + "</a>" + "<p class='text-center no-margin'>Black</p>"); skins_list.append(skin_black); var skin_purple = $("<li />", {style: "float:left; width: 33.33333%; padding: 5px;"}) .append("<a href='javascript:void(0);' data-skin='skin-purple' style='display: block; box-shadow: 0 0 3px rgba(0,0,0,0.4)' class='clearfix full-opacity-hover'>" + "<div><span style='display:block; width: 20%; float: left; height: 7px;' class='bg-purple-active'></span><span class='bg-purple' style='display:block; width: 80%; float: left; height: 7px;'></span></div>" + "<div><span style='display:block; width: 20%; float: left; height: 20px; background: #222d32;'></span><span style='display:block; width: 80%; float: left; height: 20px; background: #f4f5f7;'></span></div>" + "</a>" + "<p class='text-center no-margin'>Purple</p>"); skins_list.append(skin_purple); var skin_green = $("<li />", {style: "float:left; width: 33.33333%; padding: 5px;"}) .append("<a href='javascript:void(0);' data-skin='skin-green' style='display: block; box-shadow: 0 0 3px rgba(0,0,0,0.4)' class='clearfix full-opacity-hover'>" + "<div><span style='display:block; width: 20%; float: left; height: 7px;' class='bg-green-active'></span><span class='bg-green' style='display:block; width: 80%; float: left; height: 7px;'></span></div>" + "<div><span style='display:block; width: 20%; float: left; height: 20px; background: #222d32;'></span><span style='display:block; width: 80%; float: left; height: 20px; background: #f4f5f7;'></span></div>" + "</a>" + "<p class='text-center no-margin'>Green</p>"); skins_list.append(skin_green); var skin_red = $("<li />", {style: "float:left; width: 33.33333%; padding: 5px;"}) .append("<a href='javascript:void(0);' data-skin='skin-red' style='display: block; box-shadow: 0 0 3px rgba(0,0,0,0.4)' class='clearfix full-opacity-hover'>" + "<div><span style='display:block; width: 20%; float: left; height: 7px;' class='bg-red-active'></span><span class='bg-red' style='display:block; width: 80%; float: left; height: 7px;'></span></div>" + "<div><span style='display:block; width: 20%; float: left; height: 20px; background: #222d32;'></span><span style='display:block; width: 80%; float: left; height: 20px; background: #f4f5f7;'></span></div>" + "</a>" + "<p class='text-center no-margin'>Red</p>"); skins_list.append(skin_red); var skin_yellow = $("<li />", {style: "float:left; width: 33.33333%; padding: 5px;"}) .append("<a href='javascript:void(0);' data-skin='skin-yellow' style='display: block; box-shadow: 0 0 3px rgba(0,0,0,0.4)' class='clearfix full-opacity-hover'>" + "<div><span style='display:block; width: 20%; float: left; height: 7px;' class='bg-yellow-active'></span><span class='bg-yellow' style='display:block; width: 80%; float: left; height: 7px;'></span></div>" + "<div><span style='display:block; width: 20%; float: left; height: 20px; background: #222d32;'></span><span style='display:block; width: 80%; float: left; height: 20px; background: #f4f5f7;'></span></div>" + "</a>" + "<p class='text-center no-margin'>Yellow</p>"); skins_list.append(skin_yellow); //Light sidebar skins var skin_blue_light = $("<li />", {style: "float:left; width: 33.33333%; padding: 5px;"}) .append("<a href='javascript:void(0);' data-skin='skin-blue-light' style='display: block; box-shadow: 0 0 3px rgba(0,0,0,0.4)' class='clearfix full-opacity-hover'>" + "<div><span style='display:block; width: 20%; float: left; height: 7px; background: #367fa9;'></span><span class='bg-light-blue' style='display:block; width: 80%; float: left; height: 7px;'></span></div>" + "<div><span style='display:block; width: 20%; float: left; height: 20px; background: #f9fafc;'></span><span style='display:block; width: 80%; float: left; height: 20px; background: #f4f5f7;'></span></div>" + "</a>" + "<p class='text-center no-margin' style='font-size: 12px'>Blue Light</p>"); skins_list.append(skin_blue_light); var skin_black_light = $("<li />", {style: "float:left; width: 33.33333%; padding: 5px;"}) .append("<a href='javascript:void(0);' data-skin='skin-black-light' style='display: block; box-shadow: 0 0 3px rgba(0,0,0,0.4)' class='clearfix full-opacity-hover'>" + "<div style='box-shadow: 0 0 2px rgba(0,0,0,0.1)' class='clearfix'><span style='display:block; width: 20%; float: left; height: 7px; background: #fefefe;'></span><span style='display:block; width: 80%; float: left; height: 7px; background: #fefefe;'></span></div>" + "<div><span style='display:block; width: 20%; float: left; height: 20px; background: #f9fafc;'></span><span style='display:block; width: 80%; float: left; height: 20px; background: #f4f5f7;'></span></div>" + "</a>" + "<p class='text-center no-margin' style='font-size: 12px'>Black Light</p>"); skins_list.append(skin_black_light); var skin_purple_light = $("<li />", {style: "float:left; width: 33.33333%; padding: 5px;"}) .append("<a href='javascript:void(0);' data-skin='skin-purple-light' style='display: block; box-shadow: 0 0 3px rgba(0,0,0,0.4)' class='clearfix full-opacity-hover'>" + "<div><span style='display:block; width: 20%; float: left; height: 7px;' class='bg-purple-active'></span><span class='bg-purple' style='display:block; width: 80%; float: left; height: 7px;'></span></div>" + "<div><span style='display:block; width: 20%; float: left; height: 20px; background: #f9fafc;'></span><span style='display:block; width: 80%; float: left; height: 20px; background: #f4f5f7;'></span></div>" + "</a>" + "<p class='text-center no-margin' style='font-size: 12px'>Purple Light</p>"); skins_list.append(skin_purple_light); var skin_green_light = $("<li />", {style: "float:left; width: 33.33333%; padding: 5px;"}) .append("<a href='javascript:void(0);' data-skin='skin-green-light' style='display: block; box-shadow: 0 0 3px rgba(0,0,0,0.4)' class='clearfix full-opacity-hover'>" + "<div><span style='display:block; width: 20%; float: left; height: 7px;' class='bg-green-active'></span><span class='bg-green' style='display:block; width: 80%; float: left; height: 7px;'></span></div>" + "<div><span style='display:block; width: 20%; float: left; height: 20px; background: #f9fafc;'></span><span style='display:block; width: 80%; float: left; height: 20px; background: #f4f5f7;'></span></div>" + "</a>" + "<p class='text-center no-margin' style='font-size: 12px'>Green Light</p>"); skins_list.append(skin_green_light); var skin_red_light = $("<li />", {style: "float:left; width: 33.33333%; padding: 5px;"}) .append("<a href='javascript:void(0);' data-skin='skin-red-light' style='display: block; box-shadow: 0 0 3px rgba(0,0,0,0.4)' class='clearfix full-opacity-hover'>" + "<div><span style='display:block; width: 20%; float: left; height: 7px;' class='bg-red-active'></span><span class='bg-red' style='display:block; width: 80%; float: left; height: 7px;'></span></div>" + "<div><span style='display:block; width: 20%; float: left; height: 20px; background: #f9fafc;'></span><span style='display:block; width: 80%; float: left; height: 20px; background: #f4f5f7;'></span></div>" + "</a>" + "<p class='text-center no-margin' style='font-size: 12px'>Red Light</p>"); skins_list.append(skin_red_light); var skin_yellow_light = $("<li />", {style: "float:left; width: 33.33333%; padding: 5px;"}) .append("<a href='javascript:void(0);' data-skin='skin-yellow-light' style='display: block; box-shadow: 0 0 3px rgba(0,0,0,0.4)' class='clearfix full-opacity-hover'>" + "<div><span style='display:block; width: 20%; float: left; height: 7px;' class='bg-yellow-active'></span><span class='bg-yellow' style='display:block; width: 80%; float: left; height: 7px;'></span></div>" + "<div><span style='display:block; width: 20%; float: left; height: 20px; background: #f9fafc;'></span><span style='display:block; width: 80%; float: left; height: 20px; background: #f4f5f7;'></span></div>" + "</a>" + "<p class='text-center no-margin' style='font-size: 12px;'>Yellow Light</p>"); skins_list.append(skin_yellow_light); demo_settings.append("<h4 class='control-sidebar-heading'>Skins</h4>"); demo_settings.append(skins_list); tab_pane.append(demo_settings); $("#control-sidebar-home-tab").after(tab_pane); setup(); /** * Toggles layout classes * * @param String cls the layout class to toggle * @returns void */ function change_layout(cls) { $("body").toggleClass(cls); AdminLTE.layout.fixSidebar(); //Fix the problem with right sidebar and layout boxed if (cls == "layout-boxed") AdminLTE.controlSidebar._fix($(".control-sidebar-bg")); if ($('body').hasClass('fixed') && cls == 'fixed') { AdminLTE.pushMenu.expandOnHover(); AdminLTE.layout.activate(); } AdminLTE.controlSidebar._fix($(".control-sidebar-bg")); AdminLTE.controlSidebar._fix($(".control-sidebar")); } /** * Replaces the old skin with the new skin * @param String cls the new skin class * @returns Boolean false to prevent link's default action */ function change_skin(cls) { $.each(my_skins, function (i) { $("body").removeClass(my_skins[i]); }); $("body").addClass(cls); store('skin', cls); return false; } /** * Store a new settings in the browser * * @param String name Name of the setting * @param String val Value of the setting * @returns void */ function store(name, val) { if (typeof (Storage) !== "undefined") { localStorage.setItem(name, val); } else { window.alert('Please use a modern browser to properly view this template!'); } } /** * Get a prestored setting * * @param String name Name of of the setting * @returns String The value of the setting | null */ function get(name) { if (typeof (Storage) !== "undefined") { return localStorage.getItem(name); } else { window.alert('Please use a modern browser to properly view this template!'); } } /** * Retrieve default settings and apply them to the template * * @returns void */ function setup() { var tmp = get('skin'); if (tmp && $.inArray(tmp, my_skins)) change_skin(tmp); //Add the change skin listener $("[data-skin]").on('click', function (e) { e.preventDefault(); change_skin($(this).data('skin')); }); //Add the layout manager $("[data-layout]").on('click', function () { change_layout($(this).data('layout')); }); $("[data-controlsidebar]").on('click', function () { change_layout($(this).data('controlsidebar')); var slide = !AdminLTE.options.controlSidebarOptions.slide; AdminLTE.options.controlSidebarOptions.slide = slide; if (!slide) $('.control-sidebar').removeClass('control-sidebar-open'); }); $("[data-sidebarskin='toggle']").on('click', function () { var sidebar = $(".control-sidebar"); if (sidebar.hasClass("control-sidebar-dark")) { sidebar.removeClass("control-sidebar-dark") sidebar.addClass("control-sidebar-light") } else { sidebar.removeClass("control-sidebar-light") sidebar.addClass("control-sidebar-dark") } }); $("[data-enable='expandOnHover']").on('click', function () { $(this).attr('disabled', true); AdminLTE.pushMenu.expandOnHover(); if (!$('body').hasClass('sidebar-collapse')) $("[data-layout='sidebar-collapse']").click(); }); // Reset options if ($('body').hasClass('fixed')) { $("[data-layout='fixed']").attr('checked', 'checked'); } if ($('body').hasClass('layout-boxed')) { $("[data-layout='layout-boxed']").attr('checked', 'checked'); } if ($('body').hasClass('sidebar-collapse')) { $("[data-layout='sidebar-collapse']").attr('checked', 'checked'); } } })(jQuery, $.AdminLTE);
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Генерация страницы: 0.06 |
proxy
|
phpinfo
|
Настройка