Browse Source

Iteration on theme selection

master
David Larlet 1 year ago
parent
commit
5ab7a178c2

+ 1
- 2
david/2020/01/03/index.html View File

@@ -138,9 +138,8 @@
})

const selectedTheme = localStorage.getItem('theme')
if (selectedTheme !== 'undefined') {
if (selectedTheme && selectedTheme !== 'undefined') {
form.querySelector(`[value="${selectedTheme}"]`).checked = true
toggleTheme(selectedTheme)
}
}


+ 1
- 2
david/2020/01/06/index.html View File

@@ -156,9 +156,8 @@
})

const selectedTheme = localStorage.getItem('theme')
if (selectedTheme !== 'undefined') {
if (selectedTheme && selectedTheme !== 'undefined') {
form.querySelector(`[value="${selectedTheme}"]`).checked = true
toggleTheme(selectedTheme)
}
}


+ 1
- 2
david/2020/01/10/index.html View File

@@ -154,9 +154,8 @@
})

const selectedTheme = localStorage.getItem('theme')
if (selectedTheme !== 'undefined') {
if (selectedTheme && selectedTheme !== 'undefined') {
form.querySelector(`[value="${selectedTheme}"]`).checked = true
toggleTheme(selectedTheme)
}
}


+ 1
- 2
david/2020/01/15/index.html View File

@@ -156,9 +156,8 @@
})

const selectedTheme = localStorage.getItem('theme')
if (selectedTheme !== 'undefined') {
if (selectedTheme && selectedTheme !== 'undefined') {
form.querySelector(`[value="${selectedTheme}"]`).checked = true
toggleTheme(selectedTheme)
}
}


+ 1
- 2
david/2020/01/17/index.html View File

@@ -150,9 +150,8 @@
})

const selectedTheme = localStorage.getItem('theme')
if (selectedTheme !== 'undefined') {
if (selectedTheme && selectedTheme !== 'undefined') {
form.querySelector(`[value="${selectedTheme}"]`).checked = true
toggleTheme(selectedTheme)
}
}


+ 1
- 2
david/2020/01/22/index.html View File

@@ -170,9 +170,8 @@
})

const selectedTheme = localStorage.getItem('theme')
if (selectedTheme !== 'undefined') {
if (selectedTheme && selectedTheme !== 'undefined') {
form.querySelector(`[value="${selectedTheme}"]`).checked = true
toggleTheme(selectedTheme)
}
}


+ 1
- 2
david/2020/01/29/index.html View File

@@ -194,9 +194,8 @@ Comme un hameau paisible au pied d’une montagne.</p>
})

const selectedTheme = localStorage.getItem('theme')
if (selectedTheme !== 'undefined') {
if (selectedTheme && selectedTheme !== 'undefined') {
form.querySelector(`[value="${selectedTheme}"]`).checked = true
toggleTheme(selectedTheme)
}
}


+ 1
- 2
david/2020/01/31/index.html View File

@@ -158,9 +158,8 @@
})

const selectedTheme = localStorage.getItem('theme')
if (selectedTheme !== 'undefined') {
if (selectedTheme && selectedTheme !== 'undefined') {
form.querySelector(`[value="${selectedTheme}"]`).checked = true
toggleTheme(selectedTheme)
}
}


+ 1
- 2
david/2020/02/07/index.html View File

@@ -258,9 +258,8 @@ On croyait la main du marché invisible, c’est en fait une œillère bien opaq
})

const selectedTheme = localStorage.getItem('theme')
if (selectedTheme !== 'undefined') {
if (selectedTheme && selectedTheme !== 'undefined') {
form.querySelector(`[value="${selectedTheme}"]`).checked = true
toggleTheme(selectedTheme)
}
}


+ 1
- 2
david/2020/02/14/index.html View File

@@ -221,9 +221,8 @@ Ensuite je survole régulièrement et je marque &quot;comme lu&quot; (sans les l
})

const selectedTheme = localStorage.getItem('theme')
if (selectedTheme !== 'undefined') {
if (selectedTheme && selectedTheme !== 'undefined') {
form.querySelector(`[value="${selectedTheme}"]`).checked = true
toggleTheme(selectedTheme)
}
}


+ 1
- 2
david/2020/02/21/index.html View File

@@ -198,9 +198,8 @@ mark::after {
})

const selectedTheme = localStorage.getItem('theme')
if (selectedTheme !== 'undefined') {
if (selectedTheme && selectedTheme !== 'undefined') {
form.querySelector(`[value="${selectedTheme}"]`).checked = true
toggleTheme(selectedTheme)
}
}


+ 1
- 2
david/2020/03/13/index.html View File

@@ -205,9 +205,8 @@
})

const selectedTheme = localStorage.getItem('theme')
if (selectedTheme !== 'undefined') {
if (selectedTheme && selectedTheme !== 'undefined') {
form.querySelector(`[value="${selectedTheme}"]`).checked = true
toggleTheme(selectedTheme)
}
}


+ 1
- 2
david/2020/03/20/index.html View File

@@ -185,9 +185,8 @@ mark::after {
})

const selectedTheme = localStorage.getItem('theme')
if (selectedTheme !== 'undefined') {
if (selectedTheme && selectedTheme !== 'undefined') {
form.querySelector(`[value="${selectedTheme}"]`).checked = true
toggleTheme(selectedTheme)
}
}


+ 1
- 2
david/2020/03/27/index.html View File

@@ -217,9 +217,8 @@
})

const selectedTheme = localStorage.getItem('theme')
if (selectedTheme !== 'undefined') {
if (selectedTheme && selectedTheme !== 'undefined') {
form.querySelector(`[value="${selectedTheme}"]`).checked = true
toggleTheme(selectedTheme)
}
}


+ 1
- 2
david/2020/04/03/index.html View File

@@ -184,9 +184,8 @@
})

const selectedTheme = localStorage.getItem('theme')
if (selectedTheme !== 'undefined') {
if (selectedTheme && selectedTheme !== 'undefined') {
form.querySelector(`[value="${selectedTheme}"]`).checked = true
toggleTheme(selectedTheme)
}
}


+ 1
- 2
david/2020/04/10/index.html View File

@@ -194,9 +194,8 @@
})

const selectedTheme = localStorage.getItem('theme')
if (selectedTheme !== 'undefined') {
if (selectedTheme && selectedTheme !== 'undefined') {
form.querySelector(`[value="${selectedTheme}"]`).checked = true
toggleTheme(selectedTheme)
}
}


+ 1
- 2
david/2020/04/18/index.html View File

@@ -222,9 +222,8 @@
})

const selectedTheme = localStorage.getItem('theme')
if (selectedTheme !== 'undefined') {
if (selectedTheme && selectedTheme !== 'undefined') {
form.querySelector(`[value="${selectedTheme}"]`).checked = true
toggleTheme(selectedTheme)
}
}


+ 1
- 2
david/2020/05/18/index.html View File

@@ -163,9 +163,8 @@
})

const selectedTheme = localStorage.getItem('theme')
if (selectedTheme !== 'undefined') {
if (selectedTheme && selectedTheme !== 'undefined') {
form.querySelector(`[value="${selectedTheme}"]`).checked = true
toggleTheme(selectedTheme)
}
}


+ 1
- 2
david/2020/05/20/index.html View File

@@ -200,9 +200,8 @@
})

const selectedTheme = localStorage.getItem('theme')
if (selectedTheme !== 'undefined') {
if (selectedTheme && selectedTheme !== 'undefined') {
form.querySelector(`[value="${selectedTheme}"]`).checked = true
toggleTheme(selectedTheme)
}
}


+ 1
- 2
david/2020/05/26/index.html View File

@@ -196,9 +196,8 @@
})

const selectedTheme = localStorage.getItem('theme')
if (selectedTheme !== 'undefined') {
if (selectedTheme && selectedTheme !== 'undefined') {
form.querySelector(`[value="${selectedTheme}"]`).checked = true
toggleTheme(selectedTheme)
}
}


+ 1
- 2
david/2020/06/12/index.html View File

@@ -182,9 +182,8 @@
})

const selectedTheme = localStorage.getItem('theme')
if (selectedTheme !== 'undefined') {
if (selectedTheme && selectedTheme !== 'undefined') {
form.querySelector(`[value="${selectedTheme}"]`).checked = true
toggleTheme(selectedTheme)
}
}


+ 1
- 2
david/2020/06/18/index.html View File

@@ -198,9 +198,8 @@ Le trou où la bête panse ses plaies, non le repaire où elle fourbit ses griff
})

const selectedTheme = localStorage.getItem('theme')
if (selectedTheme !== 'undefined') {
if (selectedTheme && selectedTheme !== 'undefined') {
form.querySelector(`[value="${selectedTheme}"]`).checked = true
toggleTheme(selectedTheme)
}
}


+ 1
- 2
david/2020/11/27/index.html View File

@@ -161,9 +161,8 @@
})

const selectedTheme = localStorage.getItem('theme')
if (selectedTheme !== 'undefined') {
if (selectedTheme && selectedTheme !== 'undefined') {
form.querySelector(`[value="${selectedTheme}"]`).checked = true
toggleTheme(selectedTheme)
}
}


+ 1
- 2
david/2020/12/15/index.html View File

@@ -171,9 +171,8 @@
})

const selectedTheme = localStorage.getItem('theme')
if (selectedTheme !== 'undefined') {
if (selectedTheme && selectedTheme !== 'undefined') {
form.querySelector(`[value="${selectedTheme}"]`).checked = true
toggleTheme(selectedTheme)
}
}


+ 1
- 2
david/2020/12/21/index.html View File

@@ -215,9 +215,8 @@ L’alternative c’est l’ermitage.</p>
})

const selectedTheme = localStorage.getItem('theme')
if (selectedTheme !== 'undefined') {
if (selectedTheme && selectedTheme !== 'undefined') {
form.querySelector(`[value="${selectedTheme}"]`).checked = true
toggleTheme(selectedTheme)
}
}


+ 1
- 2
david/2020/index.html View File

@@ -191,9 +191,8 @@
})

const selectedTheme = localStorage.getItem('theme')
if (selectedTheme !== 'undefined') {
if (selectedTheme && selectedTheme !== 'undefined') {
form.querySelector(`[value="${selectedTheme}"]`).checked = true
toggleTheme(selectedTheme)
}
}


+ 1
- 2
david/index.html View File

@@ -184,9 +184,8 @@
})

const selectedTheme = localStorage.getItem('theme')
if (selectedTheme !== 'undefined') {
if (selectedTheme && selectedTheme !== 'undefined') {
form.querySelector(`[value="${selectedTheme}"]`).checked = true
toggleTheme(selectedTheme)
}
}


+ 1
- 2
david/templates/base_2020.html View File

@@ -92,9 +92,8 @@
})

const selectedTheme = localStorage.getItem('theme')
if (selectedTheme !== 'undefined') {
if (selectedTheme && selectedTheme !== 'undefined') {
form.querySelector(`[value="${selectedTheme}"]`).checked = true
toggleTheme(selectedTheme)
}
}


Loading…
Cancel
Save