home/amitahospital/public_html/amita_master/js/demo.js000064400000120327147211620210017202 0ustar00$.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: '
\n\
\n\
', 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: [ '

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.

', '

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.

', '

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.

' ].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('
' + $body.html() + '
'); 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.js000064400000043020147211770310020146 0ustar00/** * 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 = $("
", { "id": "control-sidebar-theme-demo-options-tab", "class": "tab-pane active" }); //Create the tab button var tab_button = $("
  • ", {"class": "active"}) .html("" + "" + ""); //Add the tab button to the right sidebar tabs $("[href='#control-sidebar-home-tab']") .parent() .before(tab_button); //Create the menu var demo_settings = $("
    "); //Layout options demo_settings.append( "

    " + "Layout Options" + "

    " //Fixed layout + "
    " + "" + "

    Activate the fixed layout. You can't use fixed and boxed layouts together

    " + "
    " //Boxed layout + "
    " + "" + "

    Activate the boxed layout

    " + "
    " //Sidebar Toggle + "
    " + "" + "

    Toggle the left sidebar's state (open or collapse)

    " + "
    " //Sidebar mini expand on hover toggle + "
    " + "" + "

    Let the sidebar mini expand on hover

    " + "
    " //Control Sidebar Toggle + "
    " + "" + "

    Toggle between slide over content and push content effects

    " + "
    " //Control Sidebar Skin Toggle + "
    " + "" + "

    Toggle between dark and light skins for the right sidebar

    " + "
    " ); var skins_list = $("
      ", {"class": 'list-unstyled clearfix'}); //Dark sidebar skins var skin_blue = $("
    • ", {style: "float:left; width: 33.33333%; padding: 5px;"}) .append("" + "
      " + "
      " + "
      " + "

      Blue

      "); skins_list.append(skin_blue); var skin_black = $("
    • ", {style: "float:left; width: 33.33333%; padding: 5px;"}) .append("" + "
      " + "
      " + "
      " + "

      Black

      "); skins_list.append(skin_black); var skin_purple = $("
    • ", {style: "float:left; width: 33.33333%; padding: 5px;"}) .append("" + "
      " + "
      " + "
      " + "

      Purple

      "); skins_list.append(skin_purple); var skin_green = $("
    • ", {style: "float:left; width: 33.33333%; padding: 5px;"}) .append("" + "
      " + "
      " + "
      " + "

      Green

      "); skins_list.append(skin_green); var skin_red = $("
    • ", {style: "float:left; width: 33.33333%; padding: 5px;"}) .append("" + "
      " + "
      " + "
      " + "

      Red

      "); skins_list.append(skin_red); var skin_yellow = $("
    • ", {style: "float:left; width: 33.33333%; padding: 5px;"}) .append("" + "
      " + "
      " + "
      " + "

      Yellow

      "); skins_list.append(skin_yellow); //Light sidebar skins var skin_blue_light = $("
    • ", {style: "float:left; width: 33.33333%; padding: 5px;"}) .append("" + "
      " + "
      " + "
      " + "

      Blue Light

      "); skins_list.append(skin_blue_light); var skin_black_light = $("
    • ", {style: "float:left; width: 33.33333%; padding: 5px;"}) .append("" + "
      " + "
      " + "
      " + "

      Black Light

      "); skins_list.append(skin_black_light); var skin_purple_light = $("
    • ", {style: "float:left; width: 33.33333%; padding: 5px;"}) .append("" + "
      " + "
      " + "
      " + "

      Purple Light

      "); skins_list.append(skin_purple_light); var skin_green_light = $("
    • ", {style: "float:left; width: 33.33333%; padding: 5px;"}) .append("" + "
      " + "
      " + "
      " + "

      Green Light

      "); skins_list.append(skin_green_light); var skin_red_light = $("
    • ", {style: "float:left; width: 33.33333%; padding: 5px;"}) .append("" + "
      " + "
      " + "
      " + "

      Red Light

      "); skins_list.append(skin_red_light); var skin_yellow_light = $("
    • ", {style: "float:left; width: 33.33333%; padding: 5px;"}) .append("" + "
      " + "
      " + "
      " + "

      Yellow Light

      "); skins_list.append(skin_yellow_light); demo_settings.append("

      Skins

      "); 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);