PHP Classes

File: uploady/assets/js/main.js

Recommend this page to a friend!
  Classes of Faris AL-Otabi   Uploady PHP Upload File to MySQL   uploady/assets/js/main.js   Download  
File: uploady/assets/js/main.js
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Uploady PHP Upload File to MySQL
Store file upload details in a MySQL database
Author: By
Last change: update permission to 755
Date: 26 days ago
Size: 1,219 bytes
 

Contents

Class file image Download
var lang = document.querySelector("html").getAttribute("lang"); if (lang == "en") { lang = "en-GB"; } $(document).ready(function () { $("#dataTable").DataTable({ ordering: true, language: { url: `//cdn.datatables.net/plug-ins/1.13.4/i18n/${lang}.json`, }, select: { style: "multi", }, order: [[1, null]], columnDefs: [ { targets: 0, orderable: false, }, ], fixedColumns: true, }); $("#supported").DataTable({ ordering: true, language: { url: `//cdn.datatables.net/plug-ins/1.13.4/i18n/${lang}.json`, }, select: { style: "multi", }, order: [[0, "asc"]], columnDefs: [ { targets: 0, orderable: false, }, ], fixedColumns: true, }); $("#select-all").click(function (event) { if (this.checked) { $(":checkbox").each(function () { this.checked = true; }); } else { $(":checkbox").each(function () { this.checked = false; }); } }); }); function deleteAccount(token) { var conf = confirm("Are you sure ?"); if (conf == true) { window.location.href = `actions/delete_me.php?token=${token}`; } }