Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 13 additions & 6 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -131,12 +131,19 @@ <h3>Announcement</h3>
<i class="bi bi-three-dots"></i>
</button>
</div>
<div id="set-type-selector" data-button-select>
<button aria-selected="true" data-value="brackets">&lcub; Brackets &rcub;</button>
<button aria-selected="false" data-value="vector">&lt; Vector &gt;</button>
<button aria-selected="false" data-value="array">&lbrack; Array &rbrack;</button>
<button aria-selected="false" data-value="coordinate">&lpar; Coordinate &rpar;</button>
<button aria-selected="false" data-value="product">&lang; Product &rang;</button>
<div class="row">
<div id="set-type-selector" data-button-select>
<button aria-selected="true" data-value="brackets">&lcub; Brackets &rcub;</button>
<button aria-selected="false" data-value="vector">&lt; Vector &gt;</button>
<button aria-selected="false" data-value="array">&lbrack; Array &rbrack;</button>
<button aria-selected="false" data-value="coordinate">&lpar; Coordinate &rpar;</button>
<button aria-selected="false" data-value="product">&lang; Product &rang;</button>
</div>
<div class="button-grid" style="width: fit-content; margin-left: auto;">
<button data-insert-symbol="40" data-target-input="set-input"></button>
<button data-insert-symbol="41" data-target-input="set-input"></button>
<button data-insert-symbol="42" data-target-input="set-input"></button>
</div>
</div>
<div class="button-grid">
<input type="text" autocomplete="off" id="set-input" data-set-input="1" />
Expand Down
2 changes: 1 addition & 1 deletion src/clicker/clicker.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import storage from "/src/modules/storage.js";
import * as auth from "/src/modules/auth.js";
import * as themes from "/src/themes/themes.js";

import { autocomplete } from "/src/symbols/symbols.js";
import { autocomplete, insertFromIndex } from "/src/symbols/symbols.js";
import { unixToTimeString } from "/src/modules/time.js";
import { getExtendedPeriod } from "/src/periods/periods";
import { convertLatexToAsciiMath, convertLatexToMarkup, renderMathInElement } from "mathlive";
Expand Down
5 changes: 5 additions & 0 deletions src/design.css
Original file line number Diff line number Diff line change
Expand Up @@ -395,6 +395,11 @@ div.ML__keyboard {
width: -webkit-fill-available;
}

.input-group.row {
flex-direction: row;
gap: 0.25em;
}

[square] {
width: 2.25em !important;
min-width: 36px;
Expand Down
2 changes: 1 addition & 1 deletion src/layout.css
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ div.spacer {
width: fit-content;
overflow: hidden;
align-self: center;
position: sticky;
position: fixed;
bottom: 25px;
}

Expand Down
24 changes: 22 additions & 2 deletions src/modules/ui.css
Original file line number Diff line number Diff line change
Expand Up @@ -138,19 +138,19 @@ dialog > button[data-suggestions] {
}

div.modeless {
position: absolute;
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
z-index: 999;

display: flex;
flex-direction: column;
align-items: center;
padding: 1.5rem;
border-radius: 1rem;
box-shadow: 0 0 2rem rgba(0, 0, 0, 0.2);
pointer-events: none;
background: var(--background-color);
}

div.modeless > h2 {
Expand Down Expand Up @@ -538,6 +538,26 @@ body:has(.topbar) {
transition: border-right-width 0.25s ease-in-out;
}

[data-modal-page="store"] .themes-grid .theme-item.suggest-theme {
border: 2px dashed var(--accent-color) !important;
background: transparent !important;
cursor: pointer;
transition: background-color 0.25s ease-in-out;
}

[data-modal-page="store"] .themes-grid .theme-item.suggest-theme:hover {
background: var(--surface-color) !important;
transition: background-color 0.25s ease-in-out;
}

[data-modal-page="store"] .themes-grid .theme-item.suggest-theme i {
position: relative !important;
margin: auto;
padding: 0;
top: 0;
left: 0;
}

[data-modal-page="store"] .themes-grid .theme-item i:not(.hd) {
position: absolute;
bottom: 10px;
Expand Down
7 changes: 6 additions & 1 deletion src/symbols/symbols.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,10 @@
"mu": "μ",
"lambda": "λ",
"gamma": "γ",
"kappa": "κ"
"kappa": "κ",
"omega": "ω",
"omegacap": "Ω",
"ihat": "î",
"jhat": "ĵ",
"khat": "k̂"
}
10 changes: 10 additions & 0 deletions src/themes/themes.js
Original file line number Diff line number Diff line change
Expand Up @@ -404,10 +404,20 @@ export async function renderStore() {
const freeThemesGridText = document.createElement("b");
freeThemesGridText.innerText = 'Free Themes';
store.appendChild(freeThemesGridText);
const freeThemesGridSuggestTheme = document.createElement("div");
freeThemesGridSuggestTheme.classList = 'theme-item suggest-theme';
freeThemesGridSuggestTheme.innerHTML = `<i class="bi bi-plus-lg"></i>`;
freeThemesGridSuggestTheme.onclick = ui.suggestionsModal;
freeThemesGrid.appendChild(freeThemesGridSuggestTheme);
store.appendChild(freeThemesGrid);
const premiumThemesGridText = document.createElement("b");
premiumThemesGridText.innerText = 'Premium Themes';
store.appendChild(premiumThemesGridText);
const premiumThemesGridSuggestTheme = document.createElement("div");
premiumThemesGridSuggestTheme.classList = 'theme-item suggest-theme';
premiumThemesGridSuggestTheme.innerHTML = `<i class="bi bi-plus-lg"></i>`;
premiumThemesGridSuggestTheme.onclick = ui.suggestionsModal;
premiumThemesGrid.appendChild(premiumThemesGridSuggestTheme);
store.appendChild(premiumThemesGrid);
const costInfo = document.createElement("ul");
costInfo.classList = 'cost-info';
Expand Down