
-v3.1.2. -Improve Installation_Instructions.txt. -Revise 3D Model support, Vector file support, Image support, Iso support. -Improve securePath function comments, add URL support. -Trying to automate the translation into other languages. -Add rc-local.service template file for systems where it is missing and needs to be installed.
49 lines
No EOL
2.4 KiB
JavaScript
49 lines
No EOL
2.4 KiB
JavaScript
// / -----------------------------------------------------------------------------------
|
|
// / APPLICATION INFORMATION ...
|
|
// / HRConvert2, Copyright on 4/11/2022 by Justin Grimes, www.github.com/zelon88
|
|
// /
|
|
// / LICENSE INFORMATION ...
|
|
// / This project is protected by the GNU GPLv3 Open-Source license.
|
|
// / https://www.gnu.org/licenses/gpl-3.0.html
|
|
// /
|
|
// / APPLICATION INFORMATION ...
|
|
// / This application is designed to provide a web-interface for converting file formats
|
|
// / on a server for users of any web browser without authentication.
|
|
// /
|
|
// / FILE INFORMATION
|
|
// / This file contains the client side javascript library that supports the HRConvert2 GUI.
|
|
// /
|
|
// / HARDWARE REQUIREMENTS ...
|
|
// / This application requires at least a Raspberry Pi Model B+ or greater.
|
|
// / This application will run on just about any x86 or x64 computer.
|
|
// /
|
|
// / DEPENDENCY REQUIREMENTS ...
|
|
// / This application requires Debian Linux (w/3rd Party audio license),
|
|
// / Apache 2.4, PHP 8+, LibreOffice, Unoconv, ClamAV, Tesseract, Rar, Unrar, Unzip,
|
|
// / 7zipper, FFMPEG, PDFTOTEXT, Dia, PopplerUtils, MeshLab, Mkisofs & ImageMagick.
|
|
// /
|
|
// / <3 Open-Source
|
|
// / -----------------------------------------------------------------------------------
|
|
|
|
// / -----------------------------------------------------------------------------------
|
|
// / A function to toggle the visibility of an HTML element.
|
|
// / Switches the 'Visibility' property between 'block' & 'none'.
|
|
function toggle_visibility(id) {
|
|
var e = document.getElementById(id);
|
|
if (e.style.display == 'block') e.style.display = 'none';
|
|
else e.style.display = 'block'; }
|
|
// / -----------------------------------------------------------------------------------
|
|
|
|
// / -----------------------------------------------------------------------------------
|
|
// / A function to trigger the browsers back functionality when called.
|
|
function goBack() {
|
|
window.history.back(); }
|
|
// / -----------------------------------------------------------------------------------
|
|
|
|
// / -----------------------------------------------------------------------------------
|
|
// / A function to copy an input URL to a users clipboard and output an alert in the local language.
|
|
function copy_share_link(url) {
|
|
if (navigator.clipboard) {
|
|
navigator.clipboard.writeText(url); }
|
|
else alert('Your brower does not support copying to the clipboard!'); }
|
|
// / -----------------------------------------------------------------------------------
|