PHP Classes

File: public/asset/js/main.js

Recommend this page to a friend!
  Classes of fathurrahman   mnTemplate   public/asset/js/main.js   Download  
File: public/asset/js/main.js
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: mnTemplate
Route HTTP requests to callback functions
Author: By
Last change:
Date: 1 year ago
Size: 1,214 bytes
 

Contents

Class file image Download
$(document).ready(function(){ $(".menu-button .d-none .d-md-block") // Add event listener $("#logout").click(function(){ showLoading(); var options = { url: path + 'auth/logout', method: 'POST', success: function(){ endLoading(); location.href = path }, error: function(err){ var err = JSON.parse(err.responseText); endLoading(); makeToast({ wrapper: '.navbar', id: 'toast-error-logout', delay: 1500, autohide: true, show: true, bg: 'bg-danger', textColor: 'text-white', time: waktu(null, 'HH:mm'), toastId: 'logout-error', title: 'Gagal, Terjadi kesalahan', message: err.message, type: 'danger', hancurkan: true }); } }; $.ajax(options) }); $('#akun').click(function(){ location.href = path + 'admin/profile'; }) })