Browse Source

Review by Anthony: better variable naming

master
David Larlet 1 year ago
parent
commit
e7d7e250fc

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

@@ -143,10 +143,10 @@
toggleTheme(chosenColorScheme)
})

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


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

@@ -161,10 +161,10 @@
toggleTheme(chosenColorScheme)
})

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


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

@@ -159,10 +159,10 @@
toggleTheme(chosenColorScheme)
})

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


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

@@ -161,10 +161,10 @@
toggleTheme(chosenColorScheme)
})

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


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

@@ -155,10 +155,10 @@
toggleTheme(chosenColorScheme)
})

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


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

@@ -175,10 +175,10 @@
toggleTheme(chosenColorScheme)
})

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


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

@@ -199,10 +199,10 @@ Comme un hameau paisible au pied d’une montagne.</p>
toggleTheme(chosenColorScheme)
})

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


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

@@ -163,10 +163,10 @@
toggleTheme(chosenColorScheme)
})

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


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

@@ -263,10 +263,10 @@ On croyait la main du marché invisible, c’est en fait une œillère bien opaq
toggleTheme(chosenColorScheme)
})

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


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

@@ -226,10 +226,10 @@ Ensuite je survole régulièrement et je marque &quot;comme lu&quot; (sans les l
toggleTheme(chosenColorScheme)
})

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


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

@@ -203,10 +203,10 @@ mark::after {
toggleTheme(chosenColorScheme)
})

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


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

@@ -210,10 +210,10 @@
toggleTheme(chosenColorScheme)
})

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


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

@@ -190,10 +190,10 @@ mark::after {
toggleTheme(chosenColorScheme)
})

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


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

@@ -222,10 +222,10 @@
toggleTheme(chosenColorScheme)
})

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


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

@@ -189,10 +189,10 @@
toggleTheme(chosenColorScheme)
})

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


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

@@ -199,10 +199,10 @@
toggleTheme(chosenColorScheme)
})

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


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

@@ -227,10 +227,10 @@
toggleTheme(chosenColorScheme)
})

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


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

@@ -168,10 +168,10 @@
toggleTheme(chosenColorScheme)
})

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


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

@@ -205,10 +205,10 @@
toggleTheme(chosenColorScheme)
})

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


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

@@ -201,10 +201,10 @@
toggleTheme(chosenColorScheme)
})

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


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

@@ -187,10 +187,10 @@
toggleTheme(chosenColorScheme)
})

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


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

@@ -203,10 +203,10 @@ Le trou où la bête panse ses plaies, non le repaire où elle fourbit ses griff
toggleTheme(chosenColorScheme)
})

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


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

@@ -166,10 +166,10 @@
toggleTheme(chosenColorScheme)
})

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


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

@@ -176,10 +176,10 @@
toggleTheme(chosenColorScheme)
})

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


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

@@ -220,10 +220,10 @@ L’alternative c’est l’ermitage.</p>
toggleTheme(chosenColorScheme)
})

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


+ 4
- 4
david/2020/index.html View File

@@ -196,10 +196,10 @@
toggleTheme(chosenColorScheme)
})

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


+ 4
- 4
david/index.html View File

@@ -189,10 +189,10 @@
toggleTheme(chosenColorScheme)
})

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


+ 4
- 4
david/templates/base_2020.html View File

@@ -97,10 +97,10 @@
toggleTheme(chosenColorScheme)
})

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


Loading…
Cancel
Save