Browse Source

Review by Anthony: better variable naming

master
David Larlet 4 years ago
parent
commit
e7d7e250fc

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

toggleTheme(chosenColorScheme) 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

toggleTheme(chosenColorScheme) 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

toggleTheme(chosenColorScheme) 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

toggleTheme(chosenColorScheme) 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

toggleTheme(chosenColorScheme) 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

toggleTheme(chosenColorScheme) 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

toggleTheme(chosenColorScheme) 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

toggleTheme(chosenColorScheme) 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

toggleTheme(chosenColorScheme) 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

toggleTheme(chosenColorScheme) 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

toggleTheme(chosenColorScheme) 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

toggleTheme(chosenColorScheme) 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

toggleTheme(chosenColorScheme) 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

toggleTheme(chosenColorScheme) 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

toggleTheme(chosenColorScheme) 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

toggleTheme(chosenColorScheme) 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

toggleTheme(chosenColorScheme) 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

toggleTheme(chosenColorScheme) 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

toggleTheme(chosenColorScheme) 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

toggleTheme(chosenColorScheme) 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

toggleTheme(chosenColorScheme) 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

toggleTheme(chosenColorScheme) 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

toggleTheme(chosenColorScheme) 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

toggleTheme(chosenColorScheme) 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

toggleTheme(chosenColorScheme) 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

toggleTheme(chosenColorScheme) 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

toggleTheme(chosenColorScheme) 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

toggleTheme(chosenColorScheme) 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