Skip to content

Commit

Permalink
New code
Browse files Browse the repository at this point in the history
  • Loading branch information
Qulierm committed Jun 28, 2024
1 parent 4c1ab72 commit 3a62503
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ pre {
padding-right: 20px;
padding-top: 20px;
padding-bottom: 0px;
font-size: 24px;
font-size: 26px;
overflow: auto;
white-space: pre-wrap;
margin: 0;
Expand Down Expand Up @@ -328,7 +328,7 @@ select{
.CodeMirror {
z-index: 1 !important;
font-family: 'Geist-Medium', sans-serif !important;
font-size: 24px !important;
font-size: 26px !important;
background-color: #262627 !important;
/* color: #52A8FF !important; */
color: white !important;
Expand Down
6 changes: 2 additions & 4 deletions src/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,14 @@ function closeSettings() {
}

function saveSettings() {
const colorSelector = document.getElementById('colorSelector')
const selectedColor = colorSelector.value
const fontSelector = document.getElementById('fontSelector')
const selectedFont = fontSelector.value

const textarea = document.getElementById('input')
const pre = document.getElementById('code')
textarea.className = '' // Clear all current classes
editor.className = '' // Clear all current classes
pre.className = '' // Clear all current classes
textarea.classList.add(selectedColor) // Add selected class
pre.classList.add(selectedFont)
textarea.classList.add(selectedFont)
editor.classList.add(selectedFont)
}

0 comments on commit 3a62503

Please sign in to comment.