Milouze14
Fondateur

![[TOUTES VERSIONS] Afficher la réponse rapide façon Facebbok au clic Empty](https://2img.net/i/empty.gif) | Sujet: [TOUTES VERSIONS] Afficher la réponse rapide façon Facebbok au clic Mar 3 Avr 2018 - 8:10 | |
| Hello les ami(e)s, tout d'abord merci à @hamesashek (wehba) pour m'avoir donné l'astuce via ma messagerie privée  . Cette astuce permet au clic sur l'éditeur de la réponse rapide ( et seulement sur cet éditeur) d'afficher un fond sombre façon Facebook. Les aperçus imagés: ![[TOUTES VERSIONS] Afficher la réponse rapide façon Facebbok au clic 1160](https://i.servimg.com/u/f62/11/26/21/37/1160.jpg) Modules/ HTML JAVASCRIPT/ Gestion des codes JavascriptCréer un nouveau javascriptMettez un titre explicite.Cochez sur les sujets.Déposez ceci: - Code:
-
var overlay = function () { //2018 var g, e, a = document.createElement('div'), b = ' background: rgba(0, 0, 0, 0.5); -webkit-background-size: cover;position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 999; pointer-events:none;display:none', c = document.body, d = document.forms.post.message, f = $(d).sceditor('instance'); c.appendChild(a); a.style.cssText = b; a.id = 'overlay'; f.focus(function (e) { e = document.getElementById('quick_reply'); g = document.getElementById('overlay'); a.style.display = 'block'; e.style.zIndex = '1000'; e.style.position = 'relative'; f.blur(function () { g.style.display = 'none'; }); document.addEventListener('keyup', function (e) { if (e.keyCode === 27) { f.blur(); }; }, false); }); }; $(function () { $(function () { document.location.pathname.match(/\/t(\d+)/g) && $.sceditor && overlay(); }); });
Pensez a cliquer sur le bouton ValiderVous désirez avoir un fond plus sombre ? : Dans le script, recherchez ceci: - Code:
-
background: rgba(0, 0, 0, 0.5); Augmentez progressivement la dernière partie 0.5
Dernière édition par Milouze14 le Lun 29 Nov 2021 - 16:47, édité 3 fois | ThunderTB aime ce message |
|
Invité Invité

![[TOUTES VERSIONS] Afficher la réponse rapide façon Facebbok au clic Empty](https://2img.net/i/empty.gif) | Sujet: Re: [TOUTES VERSIONS] Afficher la réponse rapide façon Facebbok au clic Ven 6 Avr 2018 - 21:35 | |
| Merci  |
|
Invité Invité

![[TOUTES VERSIONS] Afficher la réponse rapide façon Facebbok au clic Empty](https://2img.net/i/empty.gif) | Sujet: Re: [TOUTES VERSIONS] Afficher la réponse rapide façon Facebbok au clic Sam 12 Mai 2018 - 17:07 | |
| Merci Philippe  |
|
Kaeyla
Milouzien

![[TOUTES VERSIONS] Afficher la réponse rapide façon Facebbok au clic Empty](https://2img.net/i/empty.gif) | Sujet: Re: [TOUTES VERSIONS] Afficher la réponse rapide façon Facebbok au clic Dim 10 Juin 2018 - 11:51 | |
| | |
|
petitefeuille
Milouzien

![[TOUTES VERSIONS] Afficher la réponse rapide façon Facebbok au clic Empty](https://2img.net/i/empty.gif) | Sujet: Re: [TOUTES VERSIONS] Afficher la réponse rapide façon Facebbok au clic Dim 10 Juin 2018 - 12:04 | |
| merci pour cet astuce  à voir :) | |
|
Invité Invité

![[TOUTES VERSIONS] Afficher la réponse rapide façon Facebbok au clic Empty](https://2img.net/i/empty.gif) | Sujet: Re: [TOUTES VERSIONS] Afficher la réponse rapide façon Facebbok au clic Mer 25 Juil 2018 - 2:26 | |
| marche super mais comment faire pour avoir un peu plus sombre merci |
|
Milouze14
Fondateur

![[TOUTES VERSIONS] Afficher la réponse rapide façon Facebbok au clic Empty](https://2img.net/i/empty.gif) | Sujet: Re: [TOUTES VERSIONS] Afficher la réponse rapide façon Facebbok au clic Mer 25 Juil 2018 - 3:52 | |
| Hello Fagu, j'ai édité l'astuce afin de le mentionner  . | |
|
Invité Invité

![[TOUTES VERSIONS] Afficher la réponse rapide façon Facebbok au clic Empty](https://2img.net/i/empty.gif) | |
Contenu sponsorisé
![[TOUTES VERSIONS] Afficher la réponse rapide façon Facebbok au clic Empty](https://2img.net/i/empty.gif) | Sujet: Re: [TOUTES VERSIONS] Afficher la réponse rapide façon Facebbok au clic ![[TOUTES VERSIONS] Afficher la réponse rapide façon Facebbok au clic Empty](https://2img.net/i/empty.gif) | |
| |
|