Skip to content

Commit

Permalink
Version 6.9.6
Browse files Browse the repository at this point in the history
  • Loading branch information
luigifab committed Jan 1, 2024
1 parent 6d7caca commit ddcf2f4
Show file tree
Hide file tree
Showing 20 changed files with 69 additions and 69 deletions.
11 changes: 4 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,12 @@ Stop russian war. **🇺🇦 Free Ukraine!**

# apijs

JavaScript pop-ups and slideshow.
JavaScript pop-ups and slideshow for all websites.

For more information, go to https://www.luigifab.fr/apijs (IPv6 is required, it's not a joke). No IPv6? It's possible to get an IPv6 thanks to *Miredo*. Run `sudo apt install miredo` and `sudo service miredo force-start`.
For more information, go to https://www.luigifab.fr/apijs (IPv6 is required).

This repository is a releases mirror. To install it, please read the documentation.

- Current version: 6.9.4 (06/06/2023)
- Current version: 6.9.6 (01/01/2024)
- Client compatibility: Firefox 36+, Chrome 32+, Opera 19+, Edge 16+, Safari 9+
- Translations: English (en), French (fr-FR/fr-CA), German (de), Italian (it), Portuguese (pt-PT/pt-BR), Spanish (es) / Chinese (zh), Czech (cs), Dutch (nl), Greek (el), Hungarian (hu), Japanese (ja), Polish (pl), Romanian (ro), Russian (ru), Slovak (sk), Turkish (tr), Ukrainian (uk)
- License: GNU GPL 2+
- License: GNU GPL 2.0+

If you like, take some of your time to improve the translations, go to https://bit.ly/2HyCCEc.
10 changes: 5 additions & 5 deletions src/javascripts/dialog.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/**
* Created D/12/04/2009
* Updated S/14/01/2023
* Updated D/03/12/2023
*
* Copyright 2008-2023 | Fabrice Creuzot (luigifab) <code~luigifab~fr>
* Copyright 2008-2024 | Fabrice Creuzot (luigifab) <code~luigifab~fr>
* https://github.com/luigifab/apijs
*
* This program is free software, you can redistribute it or modify
Expand Down Expand Up @@ -316,8 +316,8 @@ apijs.core.dialog = function () {
var that = apijs.dialog, elem = ev.target, brk = false;

// dialogues du diaporama (suivant/précédent)
// https://github.com/hammerjs/hammer.js
// https://github.com/john-doherty/swiped-events
// @see https://github.com/hammerjs/hammer.js
// @see https://github.com/john-doherty/swiped-events
if (
that.has('slideshow') && !that.has('playing') &&
!['OPTION', 'SELECT'].has(elem.nodeName) && ['DOMMouseScroll', 'mousewheel', 'swipeleft', 'swiperight', 'swipeup', 'swipedown', 'swiped-left', 'swiped-right', 'swiped-up', 'swiped-down'].has(ev.type)
Expand Down Expand Up @@ -661,7 +661,7 @@ apijs.core.dialog = function () {
this.toggle('start', 'ready');
this.t1 = old;
// this.t1.appendChild(this.t0.firstChild.firstChild);
// https://stackoverflow.com/a/24775765/2980105
// @see https://stackoverflow.com/a/24775765/2980105
apijs.toArray(this.t0.firstChild.childNodes).forEach(function (node) {
this.t1.appendChild(node);
}, this); // pour que ci-dessus this = this
Expand Down
6 changes: 3 additions & 3 deletions src/javascripts/i18n.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/**
* Created S/05/06/2010
* Updated S/03/07/2021
* Updated D/03/12/2023
*
* Copyright 2008-2023 | Fabrice Creuzot (luigifab) <code~luigifab~fr>
* Copyright 2008-2024 | Fabrice Creuzot (luigifab) <code~luigifab~fr>
* https://github.com/luigifab/apijs
*
* This program is free software, you can redistribute it or modify
Expand All @@ -20,7 +20,7 @@ apijs.core.i18n = function () {

"use strict";
this.data = {
// https://docs.google.com/spreadsheets/d/1UUpKZ-YAAlcfvGHYwt6aUM9io390j0-fIL0vMRh1pW0/edit?usp=sharing
// @see https://docs.google.com/spreadsheets/d/1UUpKZ-YAAlcfvGHYwt6aUM9io390j0-fIL0vMRh1pW0/edit?usp=sharing
// auto start
cs: {
103: "Zrušit",
Expand Down
10 changes: 5 additions & 5 deletions src/javascripts/main.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/**
* Created J/03/12/2009
* Updated J/21/09/2023
* Updated S/23/12/2023
*
* Copyright 2008-2023 | Fabrice Creuzot (luigifab) <code~luigifab~fr>
* Copyright 2008-2024 | Fabrice Creuzot (luigifab) <code~luigifab~fr>
* https://github.com/luigifab/apijs
*
* This program is free software, you can redistribute it or modify
Expand Down Expand Up @@ -46,7 +46,7 @@ var apijs = new (function () {

"use strict";
this.core = {};
this.version = 695;
this.version = 696;

this.config = {
lang: 'auto',
Expand Down Expand Up @@ -123,7 +123,7 @@ var apijs = new (function () {
try {
str = new Intl.NumberFormat(this.config.lang, { minimumFractionDigits: dgt, maximumFractionDigits: dgt }).format(nb);
}
catch (ignore) {
catch (e) {
str = nb.toFixed(dgt);
}

Expand Down Expand Up @@ -191,7 +191,7 @@ var apijs = new (function () {
var data = [];
filter = (typeof filter == 'string') ? filter : '';

// https://gomakethings.com/how-to-serialize-form-data-with-vanilla-js/
// @see https://gomakethings.com/how-to-serialize-form-data-with-vanilla-js/
Array.prototype.forEach.call(form.elements, function (elem, idx) {

if (!elem.name || elem.disabled || ['file', 'reset', 'submit', 'button'].has(elem.type) || (elem.name.indexOf(filter) !== 0))
Expand Down
10 changes: 5 additions & 5 deletions src/javascripts/player.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/**
* Created D/11/01/2015
* Updated S/02/07/2022
* Updated D/03/12/2023
*
* Copyright 2008-2023 | Fabrice Creuzot (luigifab) <code~luigifab~fr>
* Copyright 2008-2024 | Fabrice Creuzot (luigifab) <code~luigifab~fr>
* https://github.com/luigifab/apijs
*
* This program is free software, you can redistribute it or modify
Expand Down Expand Up @@ -33,7 +33,7 @@ apijs.core.player = function (video, url) {
video.removeAttribute('controls');
video.classList.add('apijsplayer');

// https://developer.mozilla.org/fr/docs/Web/Guide/DOM/Events/evenement_medias
// @see https://developer.mozilla.org/fr/docs/Web/Guide/DOM/Events/evenement_medias
video.onloadedmetadata = function (ev) {
this.stalled = false;
this.onTimeupdate(ev);
Expand Down Expand Up @@ -147,7 +147,7 @@ apijs.core.player = function (video, url) {
if (typeof tracks == 'object') {

// si la vidéo contient plusieurs pistes vidéo
// https://developer.mozilla.org/en-US/docs/Web/API/VideoTrack
// @see https://developer.mozilla.org/en-US/docs/Web/API/VideoTrack
if (tracks.length > 1) {
for (idx = 0; idx < tracks.length; idx++) {
if (tracks[idx].language && (tracks[idx].language.toLowerCase().replace(/[-_]/g, '').indexOf(lang) == 0))
Expand All @@ -171,7 +171,7 @@ apijs.core.player = function (video, url) {
if (typeof tracks == 'object') {

// si la vidéo contient plusieurs pistes audio
// https://developer.mozilla.org/en-US/docs/Web/API/AudioTrack
// @see https://developer.mozilla.org/en-US/docs/Web/API/AudioTrack
if (tracks.length > 1) {
for (idx = 0; idx < tracks.length; idx++) {
if (tracks[idx].language && (tracks[idx].language.toLowerCase().replace(/[-_]/g, '').indexOf(lang) == 0))
Expand Down
7 changes: 4 additions & 3 deletions src/javascripts/slideshow.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/**
* Created J/13/05/2010
* Updated J/11/08/2022
* Updated S/04/11/2023
*
* Copyright 2008-2023 | Fabrice Creuzot (luigifab) <code~luigifab~fr>
* Copyright 2008-2024 | Fabrice Creuzot (luigifab) <code~luigifab~fr>
* https://github.com/luigifab/apijs
*
* This program is free software, you can redistribute it or modify
Expand Down Expand Up @@ -150,7 +150,8 @@ apijs.core.slideshow = function () {
media.url = source.getAttribute('href');
media.type = source.getAttribute('type').substring(0, 5).replace('image', 'dialogPhoto').replace('video', 'dialogVideo').replace('audio', 'dialogVideo');
media.type = (media.type.indexOf('dialog') === 0) ? media.type : 'dialogPhoto';
media.styles = apijs.html(media.prefix, true).getAttribute('class').replace(/gallery|album/g, '').trim();
media.styles = apijs.html(media.prefix, true);
media.styles = media.styles.hasAttribute('class') ? media.styles.getAttribute('class').replace(/gallery|album/g, '').trim() : '';

// demande l'affichage du dialogue
// lors d'un clic sur l'image principale du mode gallery
Expand Down
10 changes: 5 additions & 5 deletions src/javascripts/upload.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/**
* Created L/13/04/2009
* Updated V/24/06/2022
* Updated D/03/12/2023
*
* Copyright 2008-2023 | Fabrice Creuzot (luigifab) <code~luigifab~fr>
* Copyright 2008-2024 | Fabrice Creuzot (luigifab) <code~luigifab~fr>
* https://github.com/luigifab/apijs
*
* This program is free software, you can redistribute it or modify
Expand Down Expand Up @@ -141,7 +141,7 @@ apijs.core.upload = function () {
if (this.exts) {

// 1048576 octet = 1 Mo
// https://stackoverflow.com/a/24775765/2980105
// @see https://stackoverflow.com/a/24775765/2980105
apijs.toArray(elem.files, (this.allmax > 0) ? 999 : 1).forEach(function (file, idx) {

var txt = file.size / 1048576;
Expand Down Expand Up @@ -202,8 +202,8 @@ apijs.core.upload = function () {
form.append(apijs.config.upload.tokenName, apijs.config.upload.tokenValue);
}

// https://bugzilla.mozilla.org/show_bug.cgi?id=637002
// https://stackoverflow.com/a/15491086
// @see https://bugzilla.mozilla.org/show_bug.cgi?id=637002
// @see https://stackoverflow.com/a/15491086
// loadstart - When the request starts
// progress - While sending and loading data
// load - When the request has successfully completed even if the server hasn't responded that it finished
Expand Down
20 changes: 11 additions & 9 deletions src/readme
Original file line number Diff line number Diff line change
@@ -1,31 +1,33 @@
Docs : https://www.luigifab.fr/apijs
Tracker : https://github.com/luigifab/apijs
JS-App : Apijs
License : GNU GPL 2+ (https://opensource.org/licenses/gpl-2.0)
Copyright : 2008-2023 Fabrice Creuzot (luigifab) <code~luigifab~fr>
Composer : https://packagist.org/packages/luigifab/apijs
JS-App : Apijs (original)
License : GNU GPL 2.0+ (https://opensource.org/licenses/gpl-2.0)
Copyright : 2008-2024 Fabrice Creuzot (luigifab) <code~luigifab~fr>





CSS AND JS FILES ARE MINIFIED WITH clean-css (github.com/jakubpawlowicz/clean-css) AND uglify-js (github.com/mishoo/uglifyjs)
ALL FILES ARE LICENSED UNDER THE TERMS OF THE GNU GPL 2.0+ LICENSE
THAT BEING SAID SOME FILES COME FROM OTHER PROJECTS AND ARE UNDER OTHER LICENSES (SEE AT THE END OF THIS FILE)

IF YOU FOUND A MISTAKE OR A BUG, PLEASE CONTACT ME (IN FRENCH OR IN ENGLISH).
CSS AND JS FILES ARE MINIFIED WITH clean-css (github.com/jakubpawlowicz/clean-css) AND uglify-js (github.com/mishoo/uglifyjs).
ALL FILES (INCLUDING DOCUMENTATION AND TRANSLATIONS) ARE LICENSED UNDER THE TERMS OF THE GNU GPL 2+ LICENSE.
THAT BEING SAID SOME FILES COME FROM OTHER PROJECTS AND ARE UNDER OTHER LICENSES (SEE AT THE END OF THIS FILE).


Notes
- For the app, read: https://www.luigifab.fr/apijs
- For the Redmine plugin, read: https://www.luigifab.fr/redmine/apijs
- For the OpenMage module, read: https://www.luigifab.fr/openmage/apijs
- For the Dolibarr module, read install: https://www.luigifab.fr/apijs
- For the Symfony bundle, read install: https://www.luigifab.fr/apijs


Translations in de-DE (deutsch/Deutschland) by:
- Philip Junietz <info~label-park~com> 2016
- Pamela Steinborn <st.pamela~laposte~net> 2016
Translations in en-US (english/United-States) by:
- Fabrice Creuzot (luigifab) <code~luigifab~fr> 2008-2023
- Fabrice Creuzot (luigifab) <code~luigifab~fr> 2008-2024
- Brian Legrand <mrbibi1987~gmail~com> 2012
- Pascale Scellier <scellier.pascale~orange~fr> 2016
Translations in es-ES (español/España) by:
Expand All @@ -35,7 +37,7 @@ Translations in es-ES (español/España) by:
- Hélène Vergine <vergineh~gmail~com> 2017, 2020
- Guillaume Genetet <genetet.incorporated~gmail~com> 2018 https://fr.tipeee.com/william-broome
Translations in fr-FR (français/France) by:
- Fabrice Creuzot (luigifab) <code~luigifab~fr> 2008-2023
- Fabrice Creuzot (luigifab) <code~luigifab~fr> 2008-2024
- Pascale Scellier <scellier.pascale~orange~fr> 2016
Translations in it-IT (italiano/Italia) by:
- Maria Grasso <mgrasso~outlook~fr> 2016-2017
Expand Down
2 changes: 1 addition & 1 deletion src/styles/album.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Created V/08/05/2009
* Updated J/12/09/2019
*
* Copyright 2008-2023 | Fabrice Creuzot (luigifab) <code~luigifab~fr>
* Copyright 2008-2024 | Fabrice Creuzot (luigifab) <code~luigifab~fr>
* https://github.com/luigifab/apijs
*
* This program is free software, you can redistribute it or modify
Expand Down
18 changes: 9 additions & 9 deletions src/styles/dialog.css
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/**
* Created V/08/05/2009
* Updated L/02/10/2023
* Updated V/17/10/2023
*
* Copyright 2008-2023 | Fabrice Creuzot (luigifab) <code~luigifab~fr>
* Copyright 2008-2024 | Fabrice Creuzot (luigifab) <code~luigifab~fr>
* https://github.com/luigifab/apijs
*
* This program is free software, you can redistribute it or modify
Expand All @@ -19,23 +19,23 @@
/* &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& conteneurs &&& */
div[id="apijsDialog"] * { margin:0; padding:0; }

#apijsDialog button, #apijsDialog label { cursor:pointer; }
#apijsDialog button:disabled { cursor:default; }

#apijsDialog {
position:fixed; top:0; right:0; bottom:0; left:0; width:100%; height:100%; text-align:center; direction:ltr; z-index:99000;
user-select:none; -moz-user-select:none; -ms-user-select:none; -webkit-user-select:none;
transition:background-color 0.5s, opacity 0.25s; opacity:0;
position:fixed; top:0; right:0; bottom:0; left:0; width:100%; height:100%; margin:0; padding:0; text-align:center; z-index:99000;
direction:ltr; user-select:none; -moz-user-select:none; -ms-user-select:none; -webkit-user-select:none;
border:0; transition:background-color 0.5s, opacity 0.25s; opacity:0;
}

#apijsDialog.ready { background-color:rgba(0, 0, 0, 0.65); opacity:1; }
#apijsDialog.fullscreen .nofullscreen { display:none !important; }
#apijsDialog.progress, #apijsDialog.waiting, #apijsDialog.loading { cursor:progress; }
#apijsDialog.reduce, #apijsDialog.reduce * { transition:none !important; }

#apijsDialog button, #apijsDialog label { cursor:pointer; }
#apijsDialog button:disabled { cursor:default; }

#apijsBox {
position:relative; top:21%; display:inline-block; padding:0.6em 0.8em 2.4em; width:26rem; max-width:26rem; min-height:9em; overflow:hidden;
text-align:left; color:black; border-radius:0.8em; background-color:white; box-shadow:0 0 2.5em #111;
text-align:left; color:black; border:0; border-radius:0.8em; background-color:white; box-shadow:0 0 2.5em #111;
}

#apijsBox.photo, #apijsBox.video {
Expand Down
2 changes: 1 addition & 1 deletion src/styles/player.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Created V/01/01/2021
* Updated S/02/07/2022
*
* Copyright 2008-2023 | Fabrice Creuzot (luigifab) <code~luigifab~fr>
* Copyright 2008-2024 | Fabrice Creuzot (luigifab) <code~luigifab~fr>
* https://github.com/luigifab/apijs
*
* This program is free software, you can redistribute it or modify
Expand Down
2 changes: 1 addition & 1 deletion src/styles/print.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Created J/20/06/2013
* Updated L/02/10/2023
*
* Copyright 2008-2023 | Fabrice Creuzot (luigifab) <code~luigifab~fr>
* Copyright 2008-2024 | Fabrice Creuzot (luigifab) <code~luigifab~fr>
* https://github.com/luigifab/apijs
*
* This program is free software, you can redistribute it or modify
Expand Down
4 changes: 2 additions & 2 deletions src/zip/apijs-print.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/zip/apijs-print.min.css.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit ddcf2f4

Please sign in to comment.