Commit 9021f897 authored by Nicola Spanti's avatar Nicola Spanti

Merge branch 'master' of https://gitlab.com/RyDroid/WebDeviceInformation

Conflicts:
	src/js/specific/software-configuration.js
parents 6dc11719 3559e76a
# Copying and distribution of this file, with or without modification,
# are permitted in any medium without royalty provided this notice is
# preserved. This file is offered as-is, without any warranty.
# Names of contributors must not be used to endorse or promote products
# derived from this file without specific prior written permission.
# EditorConfig
# http://EditorConfig.org
# top-most EditorConfig file
root = true
# LF end-of-line, insert an empty new line and UTF-8
[*]
end_of_line = lf
insert_final_newline = true
charset = utf-8
# Tab indentation
[makefile,Makefile,*.html,*.xhtml,*.htm,*.php,*.js,*.json,.htaccess,manifest.webapp]
indent_style = tab
## PEP 0008 https://www.python.org/dev/peps/pep-0008/
[*.py]
indent_style = space
indent_size = 4
# License Creative Commons 0 (like the public domain)
# Use, study, hack and share!
# Even if you are not force with copyleft to respect freedom of others, please do it.
# For more informations : https://www.gnu.org/philosophy/free-sw.html
# This file is provided with no warranty.
# Names of contributors must not be used to endorse or promote products derived from this software without specific prior written permission.
# Copying and distribution of this file, with or without modification,
# are permitted in any medium without royalty provided this notice is
# preserved. This file is offered as-is, without any warranty.
# Names of contributors must not be used to endorse or promote products
# derived from this file without specific prior written permission.
# Temp files
......@@ -12,15 +11,28 @@
*.backup
\#*
.\#*
*\#
*.swp
*.swap
*.sav
*.save
*.autosav
*.autosave
# Generated files
# Generated binaries
*.o
*.lo
*.ko
*.so
*.dll
*.a
*.la
*.out
*.class
*.pyc
*.elc
# Archives
*.deb
*.rpm
*.apk
......@@ -47,31 +59,115 @@ objects/
bin/
binaries/
build/
Build/
release/
Release/
dbg/
debug/
Debug/
__pycache__/
gen/
generated/
tmp/
temp/
cache/
META-INF/
## Documentation
doc/
Doc/
docs/
Docs/
documentation/
Documentation/
doc-html/
doc-pdf/
doc-web/
# OS specific useless files
thumbs.db
Thumbs.db
__MACOSX/
__MAC_OS_X/
__OSX/
__OS_X/
__WINDOWS/
.DS_Store
.directory
# TeX and LaTeX useless files
*.dvi
*.acn
*.aux
*.nav
*.toc
*.bcf
*.cut
*.fdb_latexmk
*.fls
*.glo
*.ist
*.lof
*.nav
*.run.xml
*.snm
*.vrm
*.fdb_latexmk
*.synctex
*.synctex.gz
*.synctex.bz2
*.synctex.xz
*.synctex.zip
*.synctex.rar
*.toc
*.vrb
*.vrm
*.xdy
*-converted-to.*
# Others
# TeX and LaTeX generated files
*.pdf
*.dvi
# CMake
CMakeLists.txt.user
CMakeCache.txt
CMakeFiles/
cmake_install.cmake
CPackConfig.cmake
CPackSourceConfig.cmake
# Integrated Development Environment
## Qt Creator
*.pro.user
## CodeBlocks
*.cbp
*.CBP
# CCCC
cccc/
CCCC/
.cccc/
.CCCC/
# Log
*.log
*.log.*
error_log*
# Copy
copy of *
copie de *
* - copy.*
* - copie.*
# Output results for testing and other tests
a
b
c
a.txt
b.txt
c.txt
a.html
b.html
c.html
report*
# Others
*.*rc
*.cache/
*.thumbnails/
......@@ -80,5 +176,3 @@ __OSX/
*.R*
*.octave*
*.xsession*
copy of *
copie de *
# Changelog
See [manifest](src/manifest.webapp) for a quick summary.
For a full "picture", there is [the git repository](https://gitlab.com/RyDroid/WebDeviceInformation).
# Contributing
See [the HTML page related to contributing](src/html/contribute.html).
GNU AFFERO GENERAL PUBLIC LICENSE
Version 3, 19 November 2007
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
......@@ -643,7 +643,7 @@ the "copyright" line and a pointer to where the full notice is found.
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
along with this program. If not, see <https://www.gnu.org/licenses/>.
Also add information on how to contact you by electronic and paper mail.
......@@ -658,4 +658,4 @@ specific requirements.
You should also get your employer (if you work as a programmer) or school,
if any, to sign a "copyright disclaimer" for the program, if necessary.
For more information on this, and how to apply and follow the GNU AGPL, see
<http://www.gnu.org/licenses/>.
<https://www.gnu.org/licenses/>.
GNU GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
......@@ -645,7 +645,7 @@ the "copyright" line and a pointer to where the full notice is found.
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
along with this program. If not, see <https://www.gnu.org/licenses/>.
Also add information on how to contact you by electronic and paper mail.
......@@ -664,11 +664,11 @@ might be different; for a GUI interface, you would use an "about box".
You should also get your employer (if you work as a programmer) or school,
if any, to sign a "copyright disclaimer" for the program, if necessary.
For more information on this, and how to apply and follow the GNU GPL, see
<http://www.gnu.org/licenses/>.
<https://www.gnu.org/licenses/>.
The GNU General Public License does not permit incorporating your program
into proprietary programs. If your program is a subroutine library, you
may consider it more useful to permit linking proprietary applications with
the library. If this is what you want to do, use the GNU Lesser General
Public License instead of this License. But first, please read
<http://www.gnu.org/philosophy/why-not-lgpl.html>.
<https://www.gnu.org/philosophy/why-not-lgpl.html>.
GNU LESSER GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
This version of the GNU Lesser General Public License incorporates
the terms and conditions of version 3 of the GNU General Public
License, supplemented by the additional permissions listed below.
0. Additional Definitions.
As used herein, "this License" refers to version 3 of the GNU Lesser
General Public License, and the "GNU GPL" refers to version 3 of the GNU
General Public License.
"The Library" refers to a covered work governed by this License,
other than an Application or a Combined Work as defined below.
An "Application" is any work that makes use of an interface provided
by the Library, but which is not otherwise based on the Library.
Defining a subclass of a class defined by the Library is deemed a mode
of using an interface provided by the Library.
A "Combined Work" is a work produced by combining or linking an
Application with the Library. The particular version of the Library
with which the Combined Work was made is also called the "Linked
Version".
The "Minimal Corresponding Source" for a Combined Work means the
Corresponding Source for the Combined Work, excluding any source code
for portions of the Combined Work that, considered in isolation, are
based on the Application, and not on the Linked Version.
The "Corresponding Application Code" for a Combined Work means the
object code and/or source code for the Application, including any data
and utility programs needed for reproducing the Combined Work from the
Application, but excluding the System Libraries of the Combined Work.
1. Exception to Section 3 of the GNU GPL.
You may convey a covered work under sections 3 and 4 of this License
without being bound by section 3 of the GNU GPL.
2. Conveying Modified Versions.
If you modify a copy of the Library, and, in your modifications, a
facility refers to a function or data to be supplied by an Application
that uses the facility (other than as an argument passed when the
facility is invoked), then you may convey a copy of the modified
version:
a) under this License, provided that you make a good faith effort to
ensure that, in the event an Application does not supply the
function or data, the facility still operates, and performs
whatever part of its purpose remains meaningful, or
b) under the GNU GPL, with none of the additional permissions of
this License applicable to that copy.
3. Object Code Incorporating Material from Library Header Files.
The object code form of an Application may incorporate material from
a header file that is part of the Library. You may convey such object
code under terms of your choice, provided that, if the incorporated
material is not limited to numerical parameters, data structure
layouts and accessors, or small macros, inline functions and templates
(ten or fewer lines in length), you do both of the following:
a) Give prominent notice with each copy of the object code that the
Library is used in it and that the Library and its use are
covered by this License.
b) Accompany the object code with a copy of the GNU GPL and this license
document.
4. Combined Works.
You may convey a Combined Work under terms of your choice that,
taken together, effectively do not restrict modification of the
portions of the Library contained in the Combined Work and reverse
engineering for debugging such modifications, if you also do each of
the following:
a) Give prominent notice with each copy of the Combined Work that
the Library is used in it and that the Library and its use are
covered by this License.
b) Accompany the Combined Work with a copy of the GNU GPL and this license
document.
c) For a Combined Work that displays copyright notices during
execution, include the copyright notice for the Library among
these notices, as well as a reference directing the user to the
copies of the GNU GPL and this license document.
d) Do one of the following:
0) Convey the Minimal Corresponding Source under the terms of this
License, and the Corresponding Application Code in a form
suitable for, and under terms that permit, the user to
recombine or relink the Application with a modified version of
the Linked Version to produce a modified Combined Work, in the
manner specified by section 6 of the GNU GPL for conveying
Corresponding Source.
1) Use a suitable shared library mechanism for linking with the
Library. A suitable mechanism is one that (a) uses at run time
a copy of the Library already present on the user's computer
system, and (b) will operate properly with a modified version
of the Library that is interface-compatible with the Linked
Version.
e) Provide Installation Information, but only if you would otherwise
be required to provide such information under section 6 of the
GNU GPL, and only to the extent that such information is
necessary to install and execute a modified version of the
Combined Work produced by recombining or relinking the
Application with a modified version of the Linked Version. (If
you use option 4d0, the Installation Information must accompany
the Minimal Corresponding Source and Corresponding Application
Code. If you use option 4d1, you must provide the Installation
Information in the manner specified by section 6 of the GNU GPL
for conveying Corresponding Source.)
5. Combined Libraries.
You may place library facilities that are a work based on the
Library side by side in a single library together with other library
facilities that are not Applications and are not covered by this
License, and convey such a combined library under terms of your
choice, if you do both of the following:
a) Accompany the combined library with a copy of the same work based
on the Library, uncombined with any other library facilities,
conveyed under the terms of this License.
b) Give prominent notice with the combined library that part of it
is a work based on the Library, and explaining where to find the
accompanying uncombined form of the same work.
6. Revised Versions of the GNU Lesser General Public License.
The Free Software Foundation may publish revised and/or new versions
of the GNU Lesser General Public License from time to time. Such new
versions will be similar in spirit to the present version, but may
differ in detail to address new problems or concerns.
Each version is given a distinguishing version number. If the
Library as you received it specifies that a certain numbered version
of the GNU Lesser General Public License "or any later version"
applies to it, you have the option of following the terms and
conditions either of that published version or of any later version
published by the Free Software Foundation. If the Library as you
received it does not specify a version number of the GNU Lesser
General Public License, you may choose any version of the GNU Lesser
General Public License ever published by the Free Software Foundation.
If the Library as you received it specifies that a proxy can decide
whether future versions of the GNU Lesser General Public License shall
apply, that proxy's public statement of acceptance of any version is
permanent authorization for you to choose that version for the
Library.
# Web Device Information
# Copyright (C) 2014-2015, Spanti Nicola (also known as RyDroid) (rydroid_dev@yahoo.com)
# Copyright (C) 2014-2015, Nicola Spanti (also known as RyDroid) <dev@nicola-spanti.info>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
......@@ -28,7 +28,11 @@ RM=rm -f
JAVAC=javac
.PHONY: $(DOC_DIR)
.PHONY: \
$(DOC_DIR) list rm-builds clean all \
all-archives archive-default \
archive-zip archive-tar-gz archive-tar-bz2 archive-tar-xz archive-7z \
all-apps website firefox-app chromium-app
# List of source files
......@@ -41,35 +45,44 @@ rm-builds:
clean: rm-builds
all: all-archives all-apps
all: archive-default all-apps
all-archives: archive-zip archive-tar-gz archive-tar-bz2 archive-tar-xz archive-7z
all-archives: \
archive-tar-gz archive-tar-bz2 archive-tar-xz \
archive-zip archive-7z
archive-default: archive-tar-xz
# Zip archive and compression of the source code
archive-zip: $(FILES_FOR_ARCHIVE)
archive-zip: $(BUILD_DIR)/source.zip
$(BUILD_DIR)/source.zip: $(FILES_FOR_ARCHIVE)
@mkdir -p $(BUILD_DIR)/
zip $(BUILD_DIR)/source.zip -r -- $(FILES_FOR_ARCHIVE)
# Tar archive of the source code with gz compression
archive-tar-gz: $(FILES_FOR_ARCHIVE)
archive-tar-gz: $(BUILD_DIR)/source.tar.gz
$(BUILD_DIR)/source.tar.gz: $(FILES_FOR_ARCHIVE)
@mkdir -p $(BUILD_DIR)/
tar -zcvf $(BUILD_DIR)/source.tar.gz -- $(FILES_FOR_ARCHIVE)
# Tar archive of the source code with bz2 compression
archive-tar-bz2: $(FILES_FOR_ARCHIVE)
archive-tar-bz2: $(BUILD_DIR)/source.tar.bz2
$(BUILD_DIR)/source.tar.bz2: $(FILES_FOR_ARCHIVE)
@mkdir -p $(BUILD_DIR)/
tar -jcvf $(BUILD_DIR)/source.tar.bz2 -- $(FILES_FOR_ARCHIVE)
# Tar archive of the source code with xz compression
archive-tar-xz: $(FILES_TO_ARCHIVE)
archive-tar-xz: $(BUILD_DIR)/source.tar.xz
$(BUILD_DIR)/source.tar.xz: $(FILES_TO_ARCHIVE)
@mkdir -p $(BUILD_DIR)/
tar -cJvf $(BUILD_DIR)/source.tar.xz -- $(FILES_TO_ARCHIVE)
tar -cJvf $(BUILD_DIR)/source.tar.xz -- $(FILES_FOR_ARCHIVE)
# 7z archive of the source code
archive-7z: $(FILES_TO_ARCHIVE)
archive-7z: $(BUILD_DIR)/source.7z
$(BUILD_DIR)/source.7z: $(FILES_TO_ARCHIVE)
@mkdir -p $(BUILD_DIR)/
7z a -t7z $(BUILD_DIR)/source.7z $(FILES_TO_ARCHIVE)
7z a -t7z $(BUILD_DIR)/source.7z $(FILES_FOR_ARCHIVE)
# Packages for all supported "platforms"
......@@ -89,10 +102,10 @@ firefox-app: $(SRC_DIR)/
mv $(SRC_DIR)/firefox-app.zip $(BUILD_DIR)/
# Package for Chromium and the non-free Google Chrome
# manifest notes:
# * Chromium wants a .json, not a .webapp
# * defaut_locale is used by Chromium for his non standard i18n and a _locales/ is needed with it
chromium-app: $(SRC_DIR)/
# manifest notes:
# * Chromium wants a .json, not a .webapp
# * defaut_locale is used by Chromium for his non standard i18n and a _locales/ is needed with it
@mkdir -p $(BUILD_DIR)/
grep -v default_locale $(SRC_DIR)/manifest.webapp > $(SRC_DIR)/manifest.json
cd $(SRC_DIR)/; \
......
# License Creative Commons 0 (like the public domain)
# https://creativecommons.org/publicdomain/zero/1.0/
#
# Use, study, hack and share!
# Even if I do not force you with copyleft to respect freedom of others, please do it.
# For more informations : http://www.gnu.org/philosophy/free-sw.html
# Even if you are not force with copyleft to respect freedom of others, please do it.
# For more informations: https://www.gnu.org/philosophy/free-sw.html
#
# This file is provided with no warranty.
# Names of contributors must not be used to endorse or promote products derived from this software without specific prior written permission.
# Texts
AddType text/plain .txt
AddType text/html .html .htm .xhtml
AddType text/css .css
AddType application/javascript .js
AddType text/xml .xml
# Images
AddType image/png .png
AddType image/svg+xml .svg .svgz
AddType image/jpg .jpg
AddType image/gif .gif
AddType image/x-icon .ico
# Audio
AddType audio/ogg .oga
AddType audio/webm .webma
AddType audio/flac .flac
AddType audio/opus .opus
AddType audio/mpeg .mp3
AddType audio/mp4 .m4a
AddType audio/wav .wav
# Others
AddType application/x-web-app-manifest+json .webapp
AddDefaultCharset utf-8
# https://httpd.apache.org/docs/current/mod/mod_mime.html
<IfModule mod_mime.c>
# Texts
AddType text/plain .txt .text
AddType text/html .html .htm .xhtml
AddType text/css .css
AddType text/markdown .md .markdown
# Source code
AddType application/javascript .js
# Data interchange
AddType application/json .json
AddType application/xml .xml
AddType application/atom+xml .atom
AddType application/rss+xml .rss
# Images
AddType image/png .png
AddType image/svg+xml .svg .svgz
AddType image/jpg .jpg
AddType image/gif .gif
AddType image/x-icon .ico
AddType image/webp .webp
# Audio
AddType audio/ogg .oga
AddType audio/webm .webma
AddType audio/flac .flac
AddType audio/opus .opus
AddType audio/mpeg .mp3
AddType audio/mp4 .m4a
AddType audio/wav .wav
# Videos
AddType video/mp4 .f4v .f4p .m4v .mp4
AddType video/ogg .ogv
AddType video/webm .webm .webmv
AddType video/x-flv .flv
# Fonts
AddType application/font-woff .woff
AddType application/font-woff2 .woff2
AddType application/vnd.ms-fontobject .eot
AddType application/x-font-ttf .ttc .ttf
AddType font/opentype .otf
# Manifest
AddType application/x-web-app-manifest+json .webapp
# Others
AddType application/x-xpinstall .xpi
AddType text/vcard .vcard .vcf
</IfModule>
<IfModule mod_deflate.c>
<IfModule mod_filter.c>
AddOutputFilterByType DEFLATE \
"application/atom+xml" \
"application/javascript" \
"application/json" \
"application/manifest+json" \
"application/rdf+xml" \
"application/rss+xml" \
"application/schema+json" \
"application/x-font-ttf" \
"application/x-javascript" \
"application/x-web-app-manifest+json" \
"application/xhtml+xml" \
"application/xml" \
"image/svg+xml" \
"text/css" \
"text/html" \
"text/javascript" \
"text/plain" \
"text/vcard" \
"text/xml"
</IfModule>
</IfModule>
# https://httpd.apache.org/docs/current/mod/mod_expires.html
<IfModule mod_expires.c>
ExpiresActive on
ExpiresDefault "access plus 1 day"
# HTML
ExpiresByType text/html "access plus 60 seconds"
ExpiresByType text/html+xml "access plus 60 seconds"
ExpiresByType text/xhtml "access plus 60 seconds"
# CSS
ExpiresByType text/css "access plus 1 year"
# Data interchange
ExpiresByType application/atom+xml "access plus 1 hour"
ExpiresByType application/rdf+xml "access plus 1 hour"
ExpiresByType application/rss+xml "access plus 1 hour"
ExpiresByType application/json "access plus 0 seconds"
ExpiresByType application/schema+json "access plus 0 seconds"
ExpiresByType application/xml "access plus 0 seconds"
ExpiresByType text/xml "access plus 0 seconds"
# Favicon (cannot be renamed!) and cursor images
ExpiresByType image/x-icon "access plus 2 month"
# JavaScript
ExpiresByType application/javascript "access plus 1 month"
ExpiresByType application/x-javascript "access plus 1 month"
ExpiresByType text/javascript "access plus 1 month"
# Manifest files
ExpiresByType application/manifest+json "access plus 2 month"
# Images
ExpiresByType image/bmp "access plus 1 month"
ExpiresByType image/gif "access plus 1 month"
ExpiresByType image/jpeg "access plus 1 month"
ExpiresByType image/jpg "access plus 1 month"
ExpiresByType image/png "access plus 1 month"
ExpiresByType image/svg+xml "access plus 1 month"
ExpiresByType image/webp "access plus 1 month"
ExpiresByType image/xcf "access plus 1 month"
# Audio
ExpiresByType audio/ogg "access plus 1 month"
ExpiresByType audio/webm "access plus 1 month"
ExpiresByType audio/vorbis "access plus 1 month"
ExpiresByType audio/opus "access plus 1 month"
ExpiresByType audio/flac "access plus 1 month"
ExpiresByType audio/mp3 "access plus 1 month"
ExpiresByType audio/aac "access plus 1 month"
# Videos
ExpiresByType video/ogg "access plus 1 month"
ExpiresByType video/webm "access plus 1 month"
ExpiresByType video/mkv "access plus 1 month"
ExpiresByType video/mp4 "access plus 1 month"
ExpiresByType video/flv "access plus 1 month"
</IfModule>
IndexIgnore .htaccess .htpasswd Thumbs.db __MACOSX __OSX .DS_Store *~ *.bak *.backup *.save *.autosave *#
IndexOptions XHTML
/*
* Web Device Information
* Copyright (C) 2014, Spanti Nicola (also known as RyDroid) (rydroid_dev@yahoo.com)
* Copyright (C) 2014, Nicola Spanti (also known as RyDroid) <dev@nicola-spanti.info>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
......
/*
* Web Device Information
* Copyright (C) 2014, Spanti Nicola (also known as RyDroid) (rydroid_dev@yahoo.com)
* Copyright (C) 2014, Nicola Spanti (also known as RyDroid) <dev@nicola-spanti.info>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
......
......@@ -2,7 +2,7 @@
<html>
<!--
Web Device Information
Copyright (C) 2014, Spanti Nicola (also known as RyDroid) (rydroid_dev@yahoo.com)
Copyright (C) 2014 Nicola Spanti (RyDroid) <dev@nicola-spanti.info>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
......@@ -24,6 +24,7 @@
<link rel="stylesheet" media="all" type="text/css" href="../css/style.css" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="HandheldFriendly" content="true" />
<link rel="icon" type="image/x-icon" href="../favicon.ico" />
<link rel="shortcut icon" type="image/x-icon" href="../favicon.ico" />
......@@ -38,7 +39,7 @@
<h1>Audio</h1>
</header>
<main role="main">
<main>
<noscript>
<p>
<a href="https://en.wikipedia.org/wiki/JavaScript">JavaScript</a> is not supported or disabled.
......@@ -47,8 +48,8 @@
</noscript>
</main>
<script type="text/javascript" src="../js/string-functions.js"></script>
<script type="text/javascript" src="../js/list-compatibility.js"></script>
<script type="text/javascript" src="../js/audio.js"></script>
<script type="text/javascript" src="../js/utils/string-functions.js"></script>
<script type="text/javascript" src="../js/specific/list-compatibility.js"></script>
<script type="text/javascript" src="../js/specific/audio.js"></script>
</body>
</html>
......@@ -2,7 +2,7 @@
<html>
<!--
Web Device Information
Copyright (C) 2014, Spanti Nicola (also known as RyDroid) (rydroid_dev@yahoo.com)
Copyright (C) 2014-2015 Nicola Spanti (RyDroid) <dev@nicola-spanti.info>