HEX
Server: Apache
System: Linux b:u:newjapaneti:1 3.10.0-1160.31.1.el7.x86_64 #1 SMP Thu Jun 10 13:32:12 UTC 2021 x86_64
User: newjapaneti (381717)
PHP: 5.6.30
Disabled: apache_get_modules, apache_get_version, apache_reset_timeout, apache_getenv, apache_note, apache_setenv
Upload Files
File: /var/www/html/newjapanetiquetas.com.br/web/docs/scripts/ui/notifications.js
/**
 * Noty notifications demo page
 */
(function ($) {
  'use strict';

  $('.chosen-select').chosen({
    disable_search_threshold: 10
  });

  var i = -1,
    msgs = ['Your request has succeded!', 'Are you the six fingered man?', 'Inconceivable!', 'I do not think that means what you think it means.', 'Have fun storming the castle!'];

  $('.show-messenger').on('click', function () {
    var msg = $('#message').val(),
      type = $('#messenger-type').val().toLowerCase(),
      position = $('#position').val();
    if (!msg) {
      msg = getMessage();
    }
    if (!type) {
      type = 'error';
    }
    noty({
      theme: 'app-noty',
      text: msg,
      type: type,
      timeout: 3000,
      layout: position,
      closeWith: ['button', 'click'],
      animation: {
        open: 'in',
        close: 'out'
      },
    });
  });

  function getMessage() {
    i++;
    if (i === msgs.length) {
      i = 0;
    }
    return msgs[i];
  }
})(jQuery);