Comparer les révisions
| Auteur | SHA1 | Date | |
|---|---|---|---|
|
|
d4be91584b | ||
|
|
feea718cab | ||
|
|
f87031975a | ||
|
|
cc0f7cf685 |
No files matched your search
@@ -509,6 +509,65 @@
|
||||
revealBar(event);
|
||||
});
|
||||
|
||||
// Sur écran tactile, agrandir la zone active de l'encoche :
|
||||
// le doigt ne doit jamais déclencher un lien situé juste dessous.
|
||||
const isTouchLayout = window.matchMedia(
|
||||
"(max-width: 600px), (pointer: coarse)"
|
||||
).matches;
|
||||
|
||||
if (isTouchLayout) {
|
||||
tab.style.width = "64px";
|
||||
tab.style.height = "24px";
|
||||
tab.style.bottom = "-23px";
|
||||
tab.style.touchAction = "manipulation";
|
||||
|
||||
// Un balayage vers le bas depuis le haut de la page ouvre le bandeau
|
||||
// et annule le geste natif de rechargement (pull-to-refresh).
|
||||
let touchStartY = null;
|
||||
let pullGestureHandled = false;
|
||||
|
||||
document.addEventListener("touchstart", event => {
|
||||
if (event.touches.length !== 1 || dialog.dataset.open === "true") {
|
||||
touchStartY = null;
|
||||
pullGestureHandled = false;
|
||||
return;
|
||||
}
|
||||
|
||||
touchStartY = event.touches[0].clientY;
|
||||
pullGestureHandled = false;
|
||||
}, { capture: true, passive: true });
|
||||
|
||||
document.addEventListener("touchmove", event => {
|
||||
if (
|
||||
touchStartY === null ||
|
||||
pullGestureHandled ||
|
||||
event.touches.length !== 1 ||
|
||||
window.scrollY > 0
|
||||
) {
|
||||
return;
|
||||
}
|
||||
|
||||
const deltaY = event.touches[0].clientY - touchStartY;
|
||||
|
||||
// Seuil volontairement court pour intervenir avant le rechargement.
|
||||
if (deltaY >= 14) {
|
||||
pullGestureHandled = true;
|
||||
clearAutoCollapse();
|
||||
bar.dataset.collapsed = "false";
|
||||
event.preventDefault();
|
||||
event.stopPropagation();
|
||||
}
|
||||
}, { capture: true, passive: false });
|
||||
|
||||
const resetTouchGesture = () => {
|
||||
touchStartY = null;
|
||||
pullGestureHandled = false;
|
||||
};
|
||||
|
||||
document.addEventListener("touchend", resetTouchGesture, { capture: true, passive: true });
|
||||
document.addEventListener("touchcancel", resetTouchGesture, { capture: true, passive: true });
|
||||
}
|
||||
|
||||
function render(state) {
|
||||
|
||||
bar.dataset.state = state.status;
|
||||
|
||||
Fichier binaire non affiché.
|
Après Largeur: | Hauteur: | Taille: 12 KiB |
Fichier binaire non affiché.
|
Après Largeur: | Hauteur: | Taille: 20 KiB |
Fichier binaire non affiché.
|
Après Largeur: | Hauteur: | Taille: 10 KiB |
+57
-17
@@ -1,34 +1,74 @@
|
||||
{
|
||||
"manifest_version": 3,
|
||||
"name": "SKYNET SSO",
|
||||
"version": "0.0.2",
|
||||
"version": "0.0.6",
|
||||
"description": "Affiche l'état de la session SSO Zoraxy et permet une déconnexion.",
|
||||
"browser_specific_settings": {
|
||||
"gecko": {
|
||||
"id": "skynet-sso@celjim.fr",
|
||||
"strict_min_version": "128.0"
|
||||
"strict_min_version": "128.0",
|
||||
" ": {
|
||||
"required": [
|
||||
"none"
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"permissions": ["storage", "tabs"],
|
||||
"host_permissions": ["http://*/*", "https://*/*"],
|
||||
"permissions": [
|
||||
"storage",
|
||||
"tabs"
|
||||
],
|
||||
"host_permissions": [
|
||||
"http://*/*",
|
||||
"https://*/*"
|
||||
],
|
||||
"web_accessible_resources": [
|
||||
{
|
||||
"resources": ["icons/skynet.png"],
|
||||
"matches": ["http://*/*", "https://*/*"]
|
||||
"resources": [
|
||||
"icons/skynet.png"
|
||||
],
|
||||
"matches": [
|
||||
"http://*/*",
|
||||
"https://*/*"
|
||||
]
|
||||
}
|
||||
],
|
||||
"icons": { "128": "icons/logoSkynet.png" },
|
||||
"background": { "scripts": ["background.js"] },
|
||||
"content_scripts": [{
|
||||
"matches": ["http://*/*", "https://*/*"],
|
||||
"js": ["content.js"],
|
||||
"css": ["skynet.css"],
|
||||
"run_at": "document_idle"
|
||||
}],
|
||||
"options_ui": { "page": "options.html", "open_in_tab": true },
|
||||
"icons": {
|
||||
"96": "icons/logoSkynet96.png",
|
||||
"128": "icons/logoSkynet128.png",
|
||||
"256": "icons/logoSkynet256.png"
|
||||
},
|
||||
"background": {
|
||||
"scripts": [
|
||||
"background.js"
|
||||
]
|
||||
},
|
||||
"content_scripts": [
|
||||
{
|
||||
"matches": [
|
||||
"http://*/*",
|
||||
"https://*/*"
|
||||
],
|
||||
"js": [
|
||||
"content.js"
|
||||
],
|
||||
"css": [
|
||||
"skynet.css"
|
||||
],
|
||||
"run_at": "document_idle"
|
||||
}
|
||||
],
|
||||
"options_ui": {
|
||||
"page": "options.html",
|
||||
"open_in_tab": true
|
||||
},
|
||||
"action": {
|
||||
"default_title": "SKYNET SSO",
|
||||
"default_popup": "popup.html",
|
||||
"default_icon": { "128": "icons/logoSkynet.png" }
|
||||
"default_icon": {
|
||||
"96": "icons/logoSkynet96.png",
|
||||
"128": "icons/logoSkynet128.png",
|
||||
"256": "icons/logoSkynet256.png"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Référencer dans un nouveau ticket
Bloquer un utilisateur