mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-01-22 20:09:58 +01:00
Avviso navigator.hid non supportato
This commit is contained in:
parent
45dff17c44
commit
422a70a320
@ -137,11 +137,23 @@ if(setting('Sistema di firma')=='Base'){
|
||||
<div id="firma-div"></div>
|
||||
|
||||
<script type="text/javascript">
|
||||
$(document).ready( function() {
|
||||
|
||||
$(document).ready( function() {
|
||||
$("#firma").on("click", function() {
|
||||
$("#preview").addClass("hide");
|
||||
caricaTavoletta()
|
||||
});
|
||||
try {
|
||||
// Check if navigator.hid is available
|
||||
if (navigator.hid) {
|
||||
caricaTavoletta()
|
||||
} else {
|
||||
// Handle the case when navigator.hid is undefined
|
||||
alert("navigator.hid '.tr("non è supportato da questo browser.").'");
|
||||
}
|
||||
} catch (error) {
|
||||
// Handle any other errors that may occur
|
||||
console.error("An error occurred:", error);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
function caricaTavoletta(){
|
||||
|
@ -41,7 +41,7 @@ INSERT INTO `zz_api_resources` (`id`, `version`, `type`, `resource`, `class`, `e
|
||||
-- Impostazione firme con tavoletta grafica
|
||||
INSERT INTO `zz_settings` (`id`, `nome`, `valore`, `tipo`, `editable`, `sezione`, `order`, `help`) VALUES
|
||||
(NULL, 'Sistema di firma', 'Base', 'list[Base,Tavoletta Wacom]', '1', 'Generali', '2', 'Seleziona il sistema di firma per i documenti.'),
|
||||
(NULL, 'Licenza Wacom SDK', 'eyJhbGciOiJSUzUxMiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJiMzNhYWUyODA0NmM0MmE5OTgyY2E1NTdkZjhmY2YxOCIsImV4cCI6MTcwODE3ODg3NCwiaWF0IjoxNjgxNzI2MjY3LCJzZWF0cyI6MCwicmlnaHRzIjpbIkpTX0NPUkUiLCJTSUdfU0RLX0NPUkUiLCJTSUdfU0RLX0lTTyIsIlNJR19TREtfRU5DUllQVElPTiJdLCJkZXZpY2VzIjpbIldBQ09NX0FOWSJdLCJ0eXBlIjoiZXZhbCIsImxpY19uYW1lIjoiTGljZW5zZSBmb3IgSmF2YXNjcmlwdCBEZW1vIiwid2Fjb21faWQiOiJiMzNhYWUyODA0NmM0MmE5OTgyY2E1NTdkZjhmY2YxOCIsImxpY191aWQiOiI1MDU3Mzk4My05MDgzLTRjZjUtOGM5Yy0yNTMwNjc0ZWFmMmIiLCJhcHBzX3dpbmRvd3MiOltdLCJhcHBzX2lvcyI6W10sImFwcHNfYW5kcm9pZCI6W10sIm1hY2hpbmVfaWRzIjpbXX0.inGHe6CM3FexchESeu5mlPccOzrbTeZ_goMxRPppmHEqMcKz8DplC0IHOhjPvfV5c1giHsj_OctuomKWAsqt_lqo9ml4QAmnRiBYhE_itq1UdemIYusaHxapU3CL1Nr3ed9g-2Wq9Dducl-d7jCMNVnvmYM7fexIQAEV6soXBnJbdY4YXCznFftcA2jj2YI6Nz6f9ya-C9R1skQ0xuCEkkESWZ9NC_CSbu4I9h_Uv_X-0voY89H046F7wM1t61JGYMfIYwaDcJGazgD8_71OsRfOf5cUKDYsE0c-gH8vUUbbIMRO6i6zICwgEj2FAki9Rf23blPmvk8ijhBU0ZE_Hg', 'string', '1', 'Tavoletta Wacom', '5', NULL),
|
||||
(NULL, 'Sfondo firma tavoletta Wacom', '#d3d3d3', 'string', '2', 'Tavoletta Wacom', '2', ''),
|
||||
(NULL, 'Luminosità firma Wacom', '15', 'integer', '3', 'Tavoletta Wacom', '2', ''),
|
||||
(NULL, 'Contrasto firma Wacom', '3', 'integer', '4', 'Tavoletta Wacom', '2', '');
|
||||
(NULL, 'Licenza Wacom SDK', 'eyJhbGciOiJSUzUxMiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJiMzNhYWUyODA0NmM0MmE5OTgyY2E1NTdkZjhmY2YxOCIsImV4cCI6MTcwODE3ODg3NCwiaWF0IjoxNjgxNzI2MjY3LCJzZWF0cyI6MCwicmlnaHRzIjpbIkpTX0NPUkUiLCJTSUdfU0RLX0NPUkUiLCJTSUdfU0RLX0lTTyIsIlNJR19TREtfRU5DUllQVElPTiJdLCJkZXZpY2VzIjpbIldBQ09NX0FOWSJdLCJ0eXBlIjoiZXZhbCIsImxpY19uYW1lIjoiTGljZW5zZSBmb3IgSmF2YXNjcmlwdCBEZW1vIiwid2Fjb21faWQiOiJiMzNhYWUyODA0NmM0MmE5OTgyY2E1NTdkZjhmY2YxOCIsImxpY191aWQiOiI1MDU3Mzk4My05MDgzLTRjZjUtOGM5Yy0yNTMwNjc0ZWFmMmIiLCJhcHBzX3dpbmRvd3MiOltdLCJhcHBzX2lvcyI6W10sImFwcHNfYW5kcm9pZCI6W10sIm1hY2hpbmVfaWRzIjpbXX0.inGHe6CM3FexchESeu5mlPccOzrbTeZ_goMxRPppmHEqMcKz8DplC0IHOhjPvfV5c1giHsj_OctuomKWAsqt_lqo9ml4QAmnRiBYhE_itq1UdemIYusaHxapU3CL1Nr3ed9g-2Wq9Dducl-d7jCMNVnvmYM7fexIQAEV6soXBnJbdY4YXCznFftcA2jj2YI6Nz6f9ya-C9R1skQ0xuCEkkESWZ9NC_CSbu4I9h_Uv_X-0voY89H046F7wM1t61JGYMfIYwaDcJGazgD8_71OsRfOf5cUKDYsE0c-gH8vUUbbIMRO6i6zICwgEj2FAki9Rf23blPmvk8ijhBU0ZE_Hg', 'string', '1', 'Tavoletta Wacom', '1', NULL),
|
||||
(NULL, 'Sfondo firma tavoletta Wacom', '#d3d3d3', 'string', '1', 'Tavoletta Wacom', '2', NULL),
|
||||
(NULL, 'Luminosità firma Wacom', '15', 'integer', '1', 'Tavoletta Wacom', '3', NULL),
|
||||
(NULL, 'Contrasto firma Wacom', '3', 'integer', '1', 'Tavoletta Wacom', '4', NULL);
|
Loading…
Reference in New Issue
Block a user