hugosoucycc

[ARCHIVED] Another old source code of <hugo.soucy.cc>.
Log | Files | Refs | Submodules

commit 84157a98d7aec67c9336babd25a236190aa55f6c
parent 1ea9d9ad9091403baaf50acca040fa7759e26da4
Author: Hugo Soucy <hugo.soucy@savoirfairelinux.com>
Date:   Wed, 15 Mar 2017 11:35:54 -0400

Add two new notes.

Diffstat:
Acontent/note/2017/03/appnet-is-another-silo-who-is-shutting-down.md | 17+++++++++++++++++
Acontent/note/2017/03/appnet-is-shuttingdown-20170315.jpg | 0
Acontent/note/2017/03/vider-le-filelist-dun-input-type-file.md | 26++++++++++++++++++++++++++
Acontent/note/appnet-is-shuttingdown-20170315.jpg | 2++
4 files changed, 45 insertions(+), 0 deletions(-)

diff --git a/content/note/2017/03/appnet-is-another-silo-who-is-shutting-down.md b/content/note/2017/03/appnet-is-another-silo-who-is-shutting-down.md @@ -0,0 +1,17 @@ +--- +title: App.net is another silo who is shutting down +date: 2017-03-15 +datetime: 11:22:44 +template: note +bridgy: true +keywords: + - silo + - indieweb + - appnet +--- + +[App.net](https://app.net/) is another #silo who is shutting down... Join the #IndieWeb. + +![](appnet-is-shuttingdown-20170315.jpg) + +Via [Aaron Parecki](https://aaronparecki.com/). diff --git a/content/note/2017/03/appnet-is-shuttingdown-20170315.jpg b/content/note/2017/03/appnet-is-shuttingdown-20170315.jpg Binary files differ. diff --git a/content/note/2017/03/vider-le-filelist-dun-input-type-file.md b/content/note/2017/03/vider-le-filelist-dun-input-type-file.md @@ -0,0 +1,26 @@ +--- +title: Vider le FileList d'un input[type='file'] +date: 2017-03-15 +datetime: 10:27:25 +template: note +bridgy: true +keywords: + - HTML + - DOM + - webdev +--- + +Voici comment vider le `FileList` d'un `input[type='file']`: + +``` +document.querySelector('button').addEventListener('click', function() { + document.getElementById("fileInput").value = ''; +}); + +``` + +Avec disons ce HTML : +``` +<input type="file" id="fileInput" /><br/> +<button id="resetFileInput">Vider la liste des fichiers à téléverser</button> +``` diff --git a/content/note/appnet-is-shuttingdown-20170315.jpg b/content/note/appnet-is-shuttingdown-20170315.jpg @@ -0,0 +1 @@ +2017/03/appnet-is-shuttingdown-20170315.jpg+ \ No newline at end of file