enabled default theme to White
This commit is contained in:
2
node_modules/.cache/.eslintcache
generated
vendored
2
node_modules/.cache/.eslintcache
generated
vendored
@@ -1 +1 @@
|
|||||||
[{"/home/seanedmunds/dev/home-page/src/index.js":"1"},{"size":27677,"mtime":1639779365084,"results":"2","hashOfConfig":"3"},{"filePath":"4","messages":"5","errorCount":0,"fatalErrorCount":0,"warningCount":4,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},"ikqo75","/home/seanedmunds/dev/home-page/src/index.js",["6","7","8","9"],{"ruleId":"10","severity":1,"message":"11","line":1,"column":10,"nodeType":"12","messageId":"13","endLine":1,"endColumn":16},{"ruleId":"10","severity":1,"message":"14","line":167,"column":10,"nodeType":"12","messageId":"13","endLine":167,"endColumn":19},{"ruleId":"15","severity":1,"message":"16","line":184,"column":11,"nodeType":"17","endLine":184,"endColumn":61},{"ruleId":"18","severity":1,"message":"19","line":885,"column":1,"nodeType":"20","messageId":"21","endLine":888,"endColumn":2},"no-unused-vars","'render' is defined but never used.","Identifier","unusedVar","'ModalMenu' is defined but never used.","jsx-a11y/anchor-is-valid","The href attribute requires a valid value to be accessible. Provide a valid, navigable address as the href value. If you cannot provide a valid href, but still need the element to resemble a link, use a button and change it with appropriate styles. Learn more: https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/blob/HEAD/docs/rules/anchor-is-valid.md","JSXOpeningElement","no-extend-native","String prototype is read only, properties should not be added.","AssignmentExpression","unexpected"]
|
[{"/home/seanedmunds/dev/home-page/src/index.js":"1"},{"size":28103,"mtime":1639780387588,"results":"2","hashOfConfig":"3"},{"filePath":"4","messages":"5","errorCount":0,"fatalErrorCount":0,"warningCount":4,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},"ikqo75","/home/seanedmunds/dev/home-page/src/index.js",["6","7","8","9"],{"ruleId":"10","severity":1,"message":"11","line":1,"column":10,"nodeType":"12","messageId":"13","endLine":1,"endColumn":16},{"ruleId":"10","severity":1,"message":"14","line":167,"column":10,"nodeType":"12","messageId":"13","endLine":167,"endColumn":19},{"ruleId":"15","severity":1,"message":"16","line":184,"column":11,"nodeType":"17","endLine":184,"endColumn":61},{"ruleId":"18","severity":1,"message":"19","line":895,"column":1,"nodeType":"20","messageId":"21","endLine":898,"endColumn":2},"no-unused-vars","'render' is defined but never used.","Identifier","unusedVar","'ModalMenu' is defined but never used.","jsx-a11y/anchor-is-valid","The href attribute requires a valid value to be accessible. Provide a valid, navigable address as the href value. If you cannot provide a valid href, but still need the element to resemble a link, use a button and change it with appropriate styles. Learn more: https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/blob/HEAD/docs/rules/anchor-is-valid.md","JSXOpeningElement","no-extend-native","String prototype is read only, properties should not be added.","AssignmentExpression","unexpected"]
|
||||||
24
src/index.js
24
src/index.js
@@ -679,13 +679,23 @@ function updateTheme(e) {
|
|||||||
setTheme();
|
setTheme();
|
||||||
}
|
}
|
||||||
function setTheme() {
|
function setTheme() {
|
||||||
setValueFromLocalStorage('image-background');
|
if(localStorage.getItem("color-background") === null) {
|
||||||
setValueFromLocalStorage('color-background');
|
localStorage.setItem("image-background", "");
|
||||||
setValueFromLocalStorage('color-search-background');
|
localStorage.setItem("color-background", "#ffffff");
|
||||||
setValueFromLocalStorage('color-text-pri');
|
localStorage.setItem("color-search-background", "#22222220");
|
||||||
setValueFromLocalStorage('color-text-acc');
|
localStorage.setItem("color-text-pri", "#222222");
|
||||||
setValueFromLocalStorage('color-border');
|
localStorage.setItem("color-text-acc", "#dddddd");
|
||||||
setValueFromLocalStorage('content-display');
|
localStorage.setItem("color-border", "#dddddd");
|
||||||
|
} else {
|
||||||
|
setValueFromLocalStorage('image-background');
|
||||||
|
setValueFromLocalStorage('color-background');
|
||||||
|
setValueFromLocalStorage('color-search-background');
|
||||||
|
setValueFromLocalStorage('color-text-pri');
|
||||||
|
setValueFromLocalStorage('color-text-acc');
|
||||||
|
setValueFromLocalStorage('color-border');
|
||||||
|
setValueFromLocalStorage('content-display');
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
function handleKeyPress(e) {
|
function handleKeyPress(e) {
|
||||||
var sindex = 0;
|
var sindex = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user