mirror of
https://github.com/BetterSEQTA/BetterSEQTA-Plus.git
synced 2026-06-05 19:24:39 +00:00
feat: placeholder popup & icon
This commit is contained in:
@@ -12,6 +12,7 @@
|
||||
import { closeExtensionPopup } from "@/seqta/utils/Closers/closeExtensionPopup";
|
||||
import { OpenAboutPage } from "@/seqta/utils/Openers/OpenAboutPage";
|
||||
import { OpenWhatsNewPopup } from "@/seqta/utils/Whatsnew";
|
||||
import { OpenMinecraftServerPopup } from "@/seqta/utils/AboutMinecraftServer";
|
||||
|
||||
import ColourPicker from "../components/ColourPicker.svelte";
|
||||
import { settingsPopup } from "../hooks/SettingsPopup";
|
||||
@@ -49,6 +50,11 @@
|
||||
closeExtensionPopup();
|
||||
};
|
||||
|
||||
const openMinecraftServer = () => {
|
||||
OpenMinecraftServerPopup();
|
||||
closeExtensionPopup();
|
||||
};
|
||||
|
||||
let { standalone } = $props<{ standalone?: boolean }>();
|
||||
let showColourPicker = $state<boolean>(false);
|
||||
|
||||
@@ -95,16 +101,36 @@
|
||||
/>
|
||||
|
||||
{#if !standalone}
|
||||
<button
|
||||
onclick={openChangelog}
|
||||
class="absolute top-1 right-1 w-8 h-8 text-lg rounded-xl font-IconFamily bg-zinc-100 dark:bg-zinc-700"
|
||||
>{"\ue929"}</button
|
||||
>
|
||||
<button
|
||||
onclick={openAbout}
|
||||
class="absolute top-1 right-10 w-8 h-8 text-lg rounded-xl font-IconFamily bg-zinc-100 dark:bg-zinc-700"
|
||||
>{"\ueb73"}</button
|
||||
class="absolute top-1 right-[62px] w-8 h-8 text-lg rounded-xl font-IconFamily bg-zinc-100 dark:bg-zinc-700"
|
||||
>
|
||||
{"\ueb73"}
|
||||
</button>
|
||||
|
||||
<button
|
||||
onclick={openChangelog}
|
||||
class="absolute top-1 right-10 w-8 h-8 text-lg rounded-xl font-IconFamily bg-zinc-100 dark:bg-zinc-700"
|
||||
>
|
||||
{"\ue929"}
|
||||
</button>
|
||||
|
||||
<button
|
||||
onclick={openMinecraftServer}
|
||||
class="absolute top-1 right-1 w-8 h-8 bg-zinc-100 dark:bg-zinc-700 rounded-xl p-1"
|
||||
aria-label="Open Minecraft Server"
|
||||
>
|
||||
<svg
|
||||
fill="#FFFFFF"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
viewBox="0 0 48 48"
|
||||
width="16px"
|
||||
height="16px"
|
||||
><path
|
||||
d="M 23.962891 3.0058594 A 1.50015 1.50015 0 0 0 23.314453 3.171875 L 5.8144531 12.166016 A 1.50015 1.50015 0 0 0 5 13.5 L 5 35.5 A 1.50015 1.50015 0 0 0 5.8144531 36.833984 L 23.314453 45.824219 A 1.50015 1.50015 0 0 0 24.685547 45.824219 L 42.185547 36.833984 A 1.50015 1.50015 0 0 0 43 35.5 L 43 13.5 A 1.50015 1.50015 0 0 0 42.185547 12.166016 L 24.685547 3.171875 A 1.50015 1.50015 0 0 0 23.962891 3.0058594 z M 24 6.1933594 L 40 14.416016 L 40 19.210938 L 37.279297 20.480469 C 37.103297 20.562469 36.990234 20.740547 36.990234 20.935547 L 36.992188 22.867188 C 36.992188 23.057188 36.885797 23.231406 36.716797 23.316406 L 35.505859 23.921875 C 35.173859 24.087875 34.78125 23.846609 34.78125 23.474609 L 34.78125 20.978516 C 34.78125 20.804516 34.691969 20.643734 34.542969 20.552734 C 34.395969 20.462734 34.209688 20.45325 34.054688 20.53125 L 32.283203 21.431641 C 32.115203 21.516641 32.011719 21.690906 32.011719 21.878906 L 32.011719 26.837891 C 32.011719 27.027891 31.904375 27.200156 31.734375 27.285156 L 30.693359 27.804688 C 30.361359 27.969687 29.972703 27.727422 29.970703 27.357422 L 29.960938 24.953125 C 29.960938 24.781125 29.871609 24.62125 29.724609 24.53125 C 29.578609 24.44025 29.393234 24.430813 29.240234 24.507812 L 27.28125 25.478516 C 27.11225 25.562516 27.004906 25.734828 27.003906 25.923828 L 26.992188 27.888672 C 26.991187 28.072672 26.887609 28.240172 26.724609 28.326172 L 25.234375 29.113281 C 24.900375 29.288281 24.5 29.045922 24.5 28.669922 L 24.5 27.15625 C 24.5 26.97025 24.396422 26.801844 24.232422 26.714844 L 20.746094 24.875 C 20.591094 24.793 20.405859 24.797672 20.255859 24.888672 C 20.105859 24.978672 20.012719 25.139453 20.011719 25.314453 L 20.003906 26.898438 C 20.001906 27.266437 19.616156 27.506703 19.285156 27.345703 L 18.287109 26.861328 C 18.116109 26.778328 18.007859 26.604062 18.005859 26.414062 L 17.996094 25.128906 C 17.995094 24.942906 17.890609 24.7725 17.724609 24.6875 L 15.988281 23.796875 L 15.988281 22.488281 C 15.988281 22.298281 15.880938 22.123062 15.710938 22.039062 L 12.705078 20.548828 C 12.551078 20.471828 12.368703 20.479313 12.220703 20.570312 C 12.073703 20.661313 11.984375 20.823094 11.984375 20.996094 L 11.984375 22.896484 C 11.984375 23.266484 11.595672 23.508703 11.263672 23.345703 L 10.115234 22.78125 C 9.9442344 22.69725 9.8359375 22.521078 9.8359375 22.330078 L 9.8359375 21.685547 C 9.8359375 21.492547 9.7247812 21.315422 9.5507812 21.232422 L 8 20.496094 L 8 14.416016 L 24 6.1933594 z M 37.542969 26.007812 C 37.625344 26.013687 37.706797 26.039938 37.779297 26.085938 C 37.922297 26.177937 38.009766 26.334859 38.009766 26.505859 L 38.009766 28.451172 L 38.007812 28.451172 C 38.007812 28.639172 37.902328 28.810484 37.736328 28.896484 L 35.728516 29.927734 C 35.656516 29.964734 35.579 29.982422 35.5 29.982422 C 35.41 29.982422 35.319234 29.958156 35.240234 29.910156 C 35.092234 29.820156 35.002 29.660328 35 29.486328 L 34.984375 27.4375 C 34.983375 27.2405 35.098344 27.060516 35.277344 26.978516 L 37.300781 26.050781 C 37.377781 26.015281 37.460594 26.001938 37.542969 26.007812 z M 13.458984 28.021484 C 13.541484 28.015734 13.626125 28.029453 13.703125 28.064453 L 15.726562 28.992188 C 15.905563 29.074188 16.018578 29.255172 16.017578 29.451172 L 16.001953 31.501953 C 16.000953 31.674953 15.910719 31.835781 15.761719 31.925781 C 15.682719 31.973781 15.591953 31.998047 15.501953 31.998047 C 15.423953 31.998047 15.345438 31.979359 15.273438 31.943359 L 13.265625 30.912109 C 13.098625 30.826109 12.994141 30.654797 12.994141 30.466797 L 12.994141 28.519531 C 12.994141 28.349531 13.081609 28.191609 13.224609 28.099609 C 13.296609 28.053609 13.376484 28.027234 13.458984 28.021484 z M 32.546875 30.019531 C 32.629125 30.025281 32.70875 30.053109 32.78125 30.099609 C 32.92425 30.191609 33.011719 30.348531 33.011719 30.519531 L 33.011719 32.466797 C 33.011719 32.654797 32.906234 32.824156 32.740234 32.910156 L 30.732422 33.941406 C 30.660422 33.978406 30.582906 33.996094 30.503906 33.996094 C 30.413906 33.996094 30.323141 33.973781 30.244141 33.925781 C 30.095141 33.835781 30.004906 33.675953 30.003906 33.501953 L 29.988281 31.451172 C 29.987281 31.254172 30.100297 31.074187 30.279297 30.992188 L 32.302734 30.064453 C 32.380234 30.028953 32.464625 30.013781 32.546875 30.019531 z"
|
||||
/></svg
|
||||
>
|
||||
</button>
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
|
||||
@@ -1 +1,357 @@
|
||||
// To do
|
||||
import { settingsState } from "./listeners/SettingsState";
|
||||
import { animate, stagger } from "motion";
|
||||
import stringToHTML from "./stringToHTML";
|
||||
import browser from "webextension-polyfill";
|
||||
import kofi from "@/resources/kofi.png?base64";
|
||||
|
||||
export async function DeleteWhatsNew() {
|
||||
const bkelement = document.getElementById("whatsnewbk");
|
||||
const popup = document.getElementsByClassName("whatsnewContainer")[0];
|
||||
|
||||
if (!settingsState.animations) {
|
||||
bkelement?.remove();
|
||||
return;
|
||||
}
|
||||
|
||||
animate(
|
||||
[popup, bkelement!],
|
||||
{ opacity: [1, 0], scale: [1, 0] },
|
||||
{ ease: [0.22, 0.03, 0.26, 1] },
|
||||
).then(() => {
|
||||
bkelement?.remove();
|
||||
});
|
||||
}
|
||||
|
||||
export function OpenMinecraftServerPopup() {
|
||||
const background = document.createElement("div");
|
||||
background.id = "whatsnewbk";
|
||||
background.classList.add("whatsnewBackground");
|
||||
|
||||
const container = document.createElement("div");
|
||||
container.classList.add("whatsnewContainer");
|
||||
|
||||
var header: any = stringToHTML(
|
||||
/* html */
|
||||
`<div class="whatsnewHeader">
|
||||
<h1>What's New</h1>
|
||||
<p>BetterSEQTA+ V${browser.runtime.getManifest().version}</p>
|
||||
</div>`,
|
||||
).firstChild;
|
||||
|
||||
let imagecont = document.createElement("div");
|
||||
imagecont.classList.add("whatsnewImgContainer");
|
||||
|
||||
let video = document.createElement("video");
|
||||
let source = document.createElement("source");
|
||||
|
||||
source.setAttribute(
|
||||
"src",
|
||||
"https://raw.githubusercontent.com/BetterSEQTA/BetterSEQTA-Plus/main/src/resources/update-video.mp4",
|
||||
);
|
||||
video.autoplay = true;
|
||||
video.muted = true;
|
||||
video.loop = true;
|
||||
video.appendChild(source);
|
||||
video.classList.add("whatsnewImg");
|
||||
imagecont.appendChild(video);
|
||||
|
||||
/* let whatsnewimg = document.createElement("img");
|
||||
//whatsnewimg.src = "https://raw.githubusercontent.com/BetterSEQTA/BetterSEQTA-Plus/main/src/resources/update-image.webp";
|
||||
whatsnewimg.src = browser.runtime.getURL('../../resources/update-image.webp');
|
||||
whatsnewimg.classList.add("whatsnewImg");
|
||||
imagecont.appendChild(whatsnewimg); */
|
||||
|
||||
let textcontainer = document.createElement("div");
|
||||
textcontainer.classList.add("whatsnewTextContainer");
|
||||
|
||||
let text = stringToHTML(/* html */ `
|
||||
<div class="whatsnewTextContainer" style="height: 50%;overflow-y: scroll;">
|
||||
<h1>3.4.8 - Improvements!</h1>
|
||||
<li>Added new assessments kanban overview</li>
|
||||
<li>Added custom profile pictures</li>
|
||||
<li>Added custom shortcut icons</li>
|
||||
<li>Added modern and animated notices on homepage</li>
|
||||
<li>Improved global search performance and bug fixes</li>
|
||||
<li>Fixed sidebar icons reverting to old style after reload</li>
|
||||
<li>Fixed settings popup not appearing on disabled pages</li>
|
||||
<li>Fixed 12-hour time not applying correctly in timetable</li>
|
||||
<li>Fixed background flickering on page load</li>
|
||||
<li>Fixed homepage lessons not properly changing days</li>
|
||||
<li>Performance improvements for global search</li>
|
||||
<li>Performance improvements across the extension</li>
|
||||
<li>Other bug fixes and improvements</li>
|
||||
|
||||
<h1>3.4.7 - Global Search</h1>
|
||||
<li>Added a new global search bar (enable in settings)
|
||||
<span class="beta">beta</span>
|
||||
</li>
|
||||
<li>Fixed news feed not loading</li>
|
||||
<li>Style changes and improvements</li>
|
||||
<li>Other bug fixes</li>
|
||||
|
||||
<h1>3.4.6.1 - Hot patch!</h1>
|
||||
<li>Fixed storage not updating and sometimes being replaced with default values</li>
|
||||
|
||||
<h1>3.4.6 - Massive internal reworks!</h1>
|
||||
<li>Fix SEQTA classes not being applied correctly causing a totally broken experience</li>
|
||||
<li>Reworked internals to function as a plugin system (more on this soon)</li>
|
||||
<li>Rebuilt theme system that is significantly less buggy</li>
|
||||
<li>Performance improvements</li>
|
||||
<li>Other minor bug fixes</li>
|
||||
|
||||
<h1>3.4.5 - News, Bug Fixes, and improvements!</h1>
|
||||
<li>Added alternative news sources</li>
|
||||
<li>Notifications now open direct messages</li>
|
||||
<li>Added Toggle for Letter/Percent Grades</li>
|
||||
<li>Added fullscreen to the theme creator CSS editor</li>
|
||||
<li>Added warning if BetterSEQTA is installed</li>
|
||||
<li>Removed max width from theme creator</li>
|
||||
<li>Fixed discord icon colour in light mode</li>
|
||||
<li>Fixed subject averages not showing up with letter grades</li>
|
||||
<li>Tweaked compose UI</li>
|
||||
|
||||
<h1>3.4.4 - Bug Fixes and Improvements</h1>
|
||||
<li>Added vertical zoom to the timetable</li>
|
||||
<li>Fixed theme importing failing when images were included</li>
|
||||
<li>Removed broken gradients on the backgrounds of certain buttons</li>
|
||||
<li>Fixed timetable quickbar arrow receiving the wrong colour</li>
|
||||
<li>Auto-applied selected theme after saving in theme creator</li>
|
||||
<li>Fixed a bug where timetable was clipped at certain times</li>
|
||||
<li>Fixed custom sidebar layouts not applying on page load</li>
|
||||
<li>Improved spacing of the message editor buttons</li>
|
||||
<li>Added HEX colour input to the theme creator</li>
|
||||
<li>Fixed theme application in the creator</li>
|
||||
<li>Performance improvements</li>
|
||||
<li>Other minor bug fixes</li>
|
||||
|
||||
<h1>3.4.3 - Minor Bug Fixes</h1>
|
||||
<li>Fixed a bug where timetable colours couldn't be changed</li>
|
||||
<li>Other minor bug fixes</li>
|
||||
|
||||
<h1>3.4.2 - Minor Bug Fixes</h1>
|
||||
<li>Fixed a bug where Assessment Average wasn't enabled by default</li>
|
||||
<li>Fixed floating menus would sometimes be placed behind other elements</li>
|
||||
|
||||
<h1>3.4.1 - Bug Fixes and Performance Improvements</h1>
|
||||
<li>Added a new "Subject Average" section to the assessments page</li>
|
||||
<li>Fixed a bug where animations wouldn't play correctly</li>
|
||||
<li>Added loading animations to the home page</li>
|
||||
<li>Under the hood performance improvements</li>
|
||||
<li>Improved animation performance</li>
|
||||
<li>Better Animations!</li>
|
||||
<li>Minor style tweaks</li>
|
||||
|
||||
<h1>3.4.0 - Major Performance Update</h1>
|
||||
<li>Completely rebuilt the extension popup using Svelte for dramatically improved performance</li>
|
||||
<li>Added a brand new background store with search functionality and downloadable backgrounds</li>
|
||||
<li>Significant code cleanup and optimization across the extension</li>
|
||||
<li>Improved overall responsiveness and load times</li>
|
||||
<li>Smoother animations and improved scrolling</li>
|
||||
<li>Fixed Firefox compatibility issues</li>
|
||||
<li>Other minor bug fixes and under the hood improvements</li>
|
||||
|
||||
<h1>3.3.1 - Hot Fix</h1>
|
||||
<li>Fixed assessments not loading when no notices are available</li>
|
||||
|
||||
<h1>3.3.0 - Overhauled Theming System</h1>
|
||||
<li>Added a theme store!</li>
|
||||
<li>Added the new theme creator!</li>
|
||||
<li>Fixed Notices not working on home page</li>
|
||||
<li>Fixed dark/light button labels inverted</li>
|
||||
<li>Switched to GitHub for hosting the update video</li>
|
||||
<li>Fixed an issue where the settings menu wouldn't change theme</li>
|
||||
<li>Fixed custom shortcuts not allowing ports to be used</li>
|
||||
<li>Fixed occasional flashing when using animations</li>
|
||||
<li>Fixed loading of the tab icon</li>
|
||||
<li>Made animations toggle apply to settings</li>
|
||||
<li>Small styling improvements</li>
|
||||
<li>Other minor bug fixes</li>
|
||||
|
||||
|
||||
<h1>3.2.7 - Minor Improvements</h1>
|
||||
<li>Improved performance!</li>
|
||||
<li>Fixed a bug where the icon wasn't showing up</li>
|
||||
|
||||
<h1>3.2.6 - Bug fixes and performance improvements</h1>
|
||||
<li>Improved contrast for notifications</li>
|
||||
<li>Added 12-hour time format toggle</li>
|
||||
<li>Using external update video to ensure smaller package size</li>
|
||||
<li>Refactored underlying code to improve performance</li>
|
||||
<li>Removed old theme system <span style="font-style: italic;">*revamp coming soon*</span></li>
|
||||
<li>Improved notices contrast</li>
|
||||
<li>Remove Telemetry completely - as we weren't using it too much</li>
|
||||
<li>Added Error handling to settings interface</li>
|
||||
<li>Fixed HTML message editor cursor becoming misaligned</li>
|
||||
<li>Enabled spellcheck inside of direct messages</li>
|
||||
<li>Fixed timetable dates being misaligned</li>
|
||||
<li>Other minor bug fixes and under the hood improvements</li>
|
||||
|
||||
<h1>3.2.5 - More Bug Fixes</h1>
|
||||
<li>New direct message scroll animations</li>
|
||||
<li>Added error message for brave browser shields breaking backgrounds</li>
|
||||
<li>Fixed homepage assessment tooltips being cut off</li>
|
||||
<li>Improved direct message styling</li>
|
||||
<li>Made settings panel auto size to height of screen</li>
|
||||
<li>Fixed timetable dates not visible</li>
|
||||
<li>Other minor bug fixes</li>
|
||||
|
||||
<h1>3.2.4 - Bug Fixes</h1>
|
||||
<li>Added an open changelog button to settings</li>
|
||||
<li>Fixed a memory overflow bug with Education Perfect</li>
|
||||
<li>Fixed a bug where the background wouldn't change instantly</li>
|
||||
<li>Fixed news feed not loading</li>
|
||||
<li>Fixed home items duplicating</li>
|
||||
<li>Fixed Upcoming assessments not showing</li>
|
||||
|
||||
<h1>3.2.2 - Minor Improvements</h1>
|
||||
<li>Added Settings open-close animation</li>
|
||||
<li>Minor Bug Fixes</li>
|
||||
|
||||
<h1>3.2.0 - Custom Themes</h1>
|
||||
<li>Added transparency (blur) effects</li>
|
||||
<li>Added custom themes</li>
|
||||
<li>Added colour picker history</li>
|
||||
<li>Heaps of bug fixes</li>
|
||||
|
||||
<h1>3.1.3 - Custom Backgrounds</h1>
|
||||
<li>Added custom backgrounds with support for images and videos</li>
|
||||
<li>Overhauled topbar</li>
|
||||
<li>New animated hamburger icon</li>
|
||||
<li>Minor bug fixes</li>
|
||||
|
||||
<h1>3.1.2 - New settings menu!</h1>
|
||||
<li>Overhauled the settings menu</li>
|
||||
<li>Added custom gradients</li>
|
||||
<li>Added HEAPS of animations</li>
|
||||
<li>Fixed a bug where shortcuts don't show up</li>
|
||||
<li>Other minor bugs fixed</li>
|
||||
|
||||
<h1>3.1.1 - Minor Bug fixes</h1>
|
||||
<li>Fixed assessments overlapping</li>
|
||||
<li>Fixed houses not displaying if they aren't a specific color</li>
|
||||
<li>Fixed Chrome Webstore Link</li>
|
||||
|
||||
<h1>3.1.0 - Design Improvements</h1>
|
||||
<li>Minor UI improvements</li>
|
||||
<li>Added Animation Speed Slider</li>
|
||||
<li>Animation now enables and disables without reloading SEQTA</li>
|
||||
<li>Changed logo</li>
|
||||
|
||||
<h1>3.0.0 - BetterSEQTA+ *Complete Overhaul*</h1>
|
||||
<li>Redesigned appearance</li>
|
||||
<li>Upgraded to manifest V3 (longer support)</li>
|
||||
<li>Fixed transitional glitches</li>
|
||||
<li>Under the hood improvements</li>
|
||||
<li>Fixed News Feed</li>
|
||||
|
||||
<h1>2.0.7 - Added support to other domains + Minor bug fixes</h1>
|
||||
<li>Fixed BetterSEQTA+ not loading on some pages</li>
|
||||
<li>Fixed text colour of notices being unreadable</li>
|
||||
<li>Fixed pages not reloading when saving changes</li>
|
||||
|
||||
<h1>2.0.2 - Minor bug fixes</h1>
|
||||
<li>Fixed indicator for current lesson</li>
|
||||
<li>Fixed text colour for DM messages list in Light mode</li>
|
||||
<li>Fixed user info text colour</li>
|
||||
|
||||
<h1>Sleek New Layout</h1>
|
||||
<li>Updated with a new font and presentation, BetterSEQTA+ has never looked better.</li>
|
||||
|
||||
<h1>New Updated Sidebar</h1>
|
||||
<li>Condensed appearance with new updated icons.</li>
|
||||
|
||||
<h1>Independent Light Mode and Dark Mode</h1>
|
||||
<li>Dark mode and Light mode are now available to pick alongside your chosen Theme Colour. Your Theme Colour will now become an accent colour for the page.
|
||||
Light/Dark mode can be toggled with the new button, found in the top-right of the menu bar.</li>
|
||||
|
||||
<h1>Create Custom Shortcuts</h1>
|
||||
<li>Found in the BetterSEQTA+ Settings menu, custom shortcuts can now be created with a name and URL of your choice.</li>
|
||||
</div>
|
||||
`).firstChild;
|
||||
|
||||
let footer = stringToHTML(/* html */ `
|
||||
<div class="whatsnewFooter">
|
||||
<div>
|
||||
Resources and Feedback:
|
||||
<a class="socials" href="https://betterseqta.org" style="background: none !important; margin: 0 5px; padding: 0; display: flex; align-items: center;">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="25" height="25" viewBox="0 0 658 656" version="1.1">
|
||||
<path d="M 300.500 148.106 C 261.812 152.166, 225.171 169.425, 197.296 196.717 C 171.447 222.025, 154.115 255.340, 147.986 291.500 C 146.044 302.958, 145.844 306.932, 146.301 325 C 147.060 355.042, 151.117 371.665, 163.998 397.500 C 187.801 445.243, 230.082 477.905, 283.388 489.727 L 295.500 492.414 411.250 492.742 L 527 493.071 527 469.536 L 527 446 482.433 446 L 437.866 446 445.596 437.554 C 457.097 424.987, 465.208 413.133, 473.002 397.500 C 485.883 371.665, 489.940 355.042, 490.699 325 C 491.154 307.015, 490.951 302.933, 489.050 291.729 C 473.693 201.254, 391.395 138.565, 300.500 148.106 M 304.500 195.620 C 270.564 200.792, 243.575 215.251, 223.612 238.956 C 203.303 263.071, 193.650 289.377, 193.690 320.500 C 193.770 381.750, 237.341 433.004, 298.364 443.631 C 311.912 445.990, 335.206 445.075, 348.221 441.672 C 361.455 438.211, 373.637 433.094, 383.671 426.781 C 413.787 407.833, 433.890 379.189, 441.066 345 C 443.682 332.536, 444.161 311.707, 442.101 300 C 434.241 255.323, 402.917 217.681, 361 202.541 C 347.818 197.780, 337.607 195.947, 322 195.540 C 314.025 195.333, 306.150 195.369, 304.500 195.620" fill="#141414" fill-rule="evenodd"/>
|
||||
<path d="M 296 6.079 C 222.099 14.147, 156.177 44.962, 103.631 96 C 75.901 122.933, 55.863 150.195, 39.039 183.877 C 6.713 248.596, -2.990 322.811, 11.567 394 C 24.458 457.036, 54.499 512.622, 100.472 558.501 C 152.711 610.633, 218.648 642.109, 294.500 651.123 C 308.578 652.796, 349.167 652.807, 363.500 651.143 C 457.686 640.203, 538.776 592.815, 592.980 517.037 C 642.593 447.677, 662.695 361.034, 648.904 276 C 633.968 183.904, 580.183 103.524, 499.640 52.932 C 470.832 34.836, 435.045 20.244, 400.531 12.522 C 375.717 6.970, 364.646 5.804, 333.500 5.466 C 317.550 5.293, 300.675 5.568, 296 6.079 M 300.500 148.106 C 261.812 152.166, 225.171 169.425, 197.296 196.717 C 171.447 222.025, 154.115 255.340, 147.986 291.500 C 146.044 302.958, 145.844 306.932, 146.301 325 C 147.060 355.042, 151.117 371.665, 163.998 397.500 C 187.801 445.243, 230.082 477.905, 283.388 489.727 L 295.500 492.414 411.250 492.742 L 527 493.071 527 469.536 L 527 446 482.433 446 L 437.866 446 445.596 437.554 C 457.097 424.987, 465.208 413.133, 473.002 397.500 C 485.883 371.665, 489.940 355.042, 490.699 325 C 491.154 307.015, 490.951 302.933, 489.050 291.729 C 473.693 201.254, 391.395 138.565, 300.500 148.106 M 304.500 195.620 C 270.564 200.792, 243.575 215.251, 223.612 238.956 C 203.303 263.071, 193.650 289.377, 193.690 320.500 C 193.770 381.750, 237.341 433.004, 298.364 443.631 C 311.912 445.990, 335.206 445.075, 348.221 441.672 C 361.455 438.211, 373.637 433.094, 383.671 426.781 C 413.787 407.833, 433.890 379.189, 441.066 345 C 443.682 332.536, 444.161 311.707, 442.101 300 C 434.241 255.323, 402.917 217.681, 361 202.541 C 347.818 197.780, 337.607 195.947, 322 195.540 C 314.025 195.333, 306.150 195.369, 304.500 195.620" fill="#fbfbfb" fill-rule="evenodd"/>
|
||||
</svg>
|
||||
</a>
|
||||
<a class="socials" href="https://github.com/BetterSEQTA/BetterSEQTA-Plus" style="background: none !important; margin: 0 5px; padding: 0; display: flex; align-items: center;">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="25px" height="25px" viewBox="0 0 256 250" preserveAspectRatio="xMidYMid" style="vertical-align: middle;">
|
||||
<g><path d="M128.00106,0 C57.3172926,0 0,57.3066942 0,128.00106 C0,184.555281 36.6761997,232.535542 87.534937,249.460899 C93.9320223,250.645779 96.280588,246.684165 96.280588,243.303333 C96.280588,240.251045 96.1618878,230.167899 96.106777,219.472176 C60.4967585,227.215235 52.9826207,204.369712 52.9826207,204.369712 C47.1599584,189.574598 38.770408,185.640538 38.770408,185.640538 C27.1568785,177.696113 39.6458206,177.859325 39.6458206,177.859325 C52.4993419,178.762293 59.267365,191.04987 59.267365,191.04987 C70.6837675,210.618423 89.2115753,204.961093 96.5158685,201.690482 C97.6647155,193.417512 100.981959,187.77078 104.642583,184.574357 C76.211799,181.33766 46.324819,170.362144 46.324819,121.315702 C46.324819,107.340889 51.3250588,95.9223682 59.5132437,86.9583937 C58.1842268,83.7344152 53.8029229,70.715562 60.7532354,53.0843636 C60.7532354,53.0843636 71.5019501,49.6441813 95.9626412,66.2049595 C106.172967,63.368876 117.123047,61.9465949 128.00106,61.8978432 C138.879073,61.9465949 149.837632,63.368876 160.067033,66.2049595 C184.49805,49.6441813 195.231926,53.0843636 195.231926,53.0843636 C202.199197,70.715562 197.815773,83.7344152 196.486756,86.9583937 C204.694018,95.9223682 209.660343,107.340889 209.660343,121.315702 C209.660343,170.478725 179.716133,181.303747 151.213281,184.472614 C155.80443,188.444828 159.895342,196.234518 159.895342,208.176593 C159.895342,225.303317 159.746968,239.087361 159.746968,243.303333 C159.746968,246.709601 162.05102,250.70089 168.53925,249.443941 C219.370432,232.499507 256,184.536204 256,128.00106 C256,57.3066942 198.691187,0 128.00106,0 Z M47.9405593,182.340212 C47.6586465,182.976105 46.6581745,183.166873 45.7467277,182.730227 C44.8183235,182.312656 44.2968914,181.445722 44.5978808,180.80771 C44.8734344,180.152739 45.876026,179.97045 46.8023103,180.409216 C47.7328342,180.826786 48.2627451,181.702199 47.9405593,182.340212 Z M54.2367892,187.958254 C53.6263318,188.524199 52.4329723,188.261363 51.6232682,187.366874 C50.7860088,186.474504 50.6291553,185.281144 51.2480912,184.70672 C51.8776254,184.140775 53.0349512,184.405731 53.8743302,185.298101 C54.7115892,186.201069 54.8748019,187.38595 54.2367892,187.958254 Z M58.5562413,195.146347 C57.7719732,195.691096 56.4895886,195.180261 55.6968417,194.042013 C54.9125733,192.903764 54.9125733,191.538713 55.713799,190.991845 C56.5086651,190.444977 57.7719732,190.936735 58.5753181,192.066505 C59.3574669,193.22383 59.3574669,194.58888 58.5562413,195.146347 Z M65.8613592,203.471174 C65.1597571,204.244846 63.6654083,204.03712 62.5716717,202.981538 C61.4524999,201.94927 61.1409122,200.484596 61.8446341,199.710926 C62.5547146,198.935137 64.0575422,199.15346 65.1597571,200.200564 C66.2704506,201.230712 66.6095936,202.705984 65.8613592,203.471174 Z M75.3025151,206.281542 C74.9930474,207.284134 73.553809,207.739857 72.1039724,207.313809 C70.6562556,206.875043 69.7087748,205.700761 70.0012857,204.687571 C70.302275,203.678621 71.7478721,203.20382 73.2083069,203.659543 C74.6539041,204.09619 75.6035048,205.261994 75.3025151,206.281542 Z M86.046947,207.473627 C86.0829806,208.529209 84.8535871,209.404622 83.3316829,209.4237 C81.8013,209.457614 80.563428,208.603398 80.5464708,207.564772 C80.5464708,206.498591 81.7483088,205.631657 83.2786917,205.606221 C84.8005962,205.576546 86.046947,206.424403 86.046947,207.473627 Z M96.6021471,207.069023 C96.7844366,208.099171 95.7267341,209.156872 94.215428,209.438785 C92.7295577,209.710099 91.3539086,209.074206 91.1652603,208.052538 C90.9808515,206.996955 92.0576306,205.939253 93.5413813,205.66582 C95.054807,205.402984 96.4092596,206.021919 96.6021471,207.069023 Z" fill="currentColor" /></g>
|
||||
</svg>
|
||||
</a>
|
||||
<a class="socials" href="https://discord.gg/YzmbnCDkat" style="background: none !important; margin: 0 5px; padding: 0; display: flex; align-items: center;">
|
||||
<svg style="width: 25px; height: 25px; vertical-align: middle;" viewBox="0 0 16 16">
|
||||
<path d="M13.545 2.907a13.2 13.2 0 0 0-3.257-1.011.05.05 0 0 0-.052.025c-.141.25-.297.577-.406.833a12.2 12.2 0 0 0-3.658 0 8 8 0 0 0-.412-.833.05.05 0 0 0-.052-.025c-1.125.194-2.22.534-3.257 1.011a.04.04 0 0 0-.021.018C.356 6.024-.213 9.047.066 12.032q.003.022.021.037a13.3 13.3 0 0 0 3.995 2.02.05.05 0 0 0 .056-.019q.463-.63.818-1.329a.05.05 0 0 0-.01-.059l-.018-.011a9 9 0 0 1-1.248-.595.05.05 0 0 1-.02-.066l.015-.019q.127-.095.248-.195a.05.05 0 0 1 .051-.007c2.619 1.196 5.454 1.196 8.041 0a.05.05 0 0 1 .053.007q.121.1.248.195a.05.05 0 0 1-.004.085 8 8 0 0 1-1.249.594.05.05 0 0 0-.03.03.05.05 0 0 0 .003.041c.24.465.515.909.817 1.329a.05.05 0 0 0 .056.019 13.2 13.2 0 0 0 4.001-2.02.05.05 0 0 0 .021-.037c.334-3.451-.559-6.449-2.366-9.106a.03.03 0 0 0-.02-.019m-8.198 7.307c-.789 0-1.438-.724-1.438-1.612s.637-1.613 1.438-1.613c.807 0 1.45.73 1.438 1.613 0 .888-.637 1.612-1.438 1.612m5.316 0c-.788 0-1.438-.724-1.438-1.612s.637-1.613 1.438-1.613c.807 0 1.451.73 1.438 1.613 0 .888-.631 1.612-1.438 1.612" fill="currentColor"/>
|
||||
</svg>
|
||||
<a class="socials" href="https://chromewebstore.google.com/detail/betterseqta+/afdgaoaclhkhemfkkkonemoapeinchel" style="background: none !important; margin: 0 5px; padding: 0; display: flex; align-items: center;">
|
||||
<svg style="width:25px; height:25px; vertical-align: middle;" viewBox="0 0 24 24">
|
||||
<path fill="currentColor" d="M12,20L15.46,14H15.45C15.79,13.4 16,12.73 16,12C16,10.8 15.46,9.73 14.62,9H19.41C19.79,9.93 20,10.94 20,12A8,8 0 0,1 12,20M4,12C4,10.54 4.39,9.18 5.07,8L8.54,14H8.55C9.24,15.19 10.5,16 12,16C12.45,16 12.88,15.91 13.29,15.77L10.89,19.91C7,19.37 4,16.04 4,12M15,12A3,3 0 0,1 12,15A3,3 0 0,1 9,12A3,3 0 0,1 12,9A3,3 0 0,1 15,12M12,4C14.96,4 17.54,5.61 18.92,8H12C10.06,8 8.45,9.38 8.08,11.21L5.7,7.08C7.16,5.21 9.44,4 12,4M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z" />
|
||||
</svg>
|
||||
</a>
|
||||
</div>
|
||||
<div>
|
||||
<a href="https://ko-fi.com/sethburkart" target="_blank" style="background: none !important; margin:0;margin-left:6px; padding:0; display: flex; align-items: center;">
|
||||
<img height="25" style="border:0px; height:25px; margin-right: -6px;" src="${kofi}" border="0" alt="Buy Me a Coffee at ko-fi.com" />
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
`).firstChild;
|
||||
|
||||
let exitbutton = document.createElement("div");
|
||||
exitbutton.id = "whatsnewclosebutton";
|
||||
|
||||
container.append(header);
|
||||
container.append(imagecont);
|
||||
container.append(textcontainer);
|
||||
container.append(text as ChildNode);
|
||||
container.append(footer as ChildNode);
|
||||
container.append(exitbutton);
|
||||
|
||||
background.append(container);
|
||||
|
||||
document.getElementById("container")!.append(background);
|
||||
|
||||
let bkelement = document.getElementById("whatsnewbk");
|
||||
let popup = document.getElementsByClassName("whatsnewContainer")[0];
|
||||
|
||||
if (settingsState.animations) {
|
||||
animate(
|
||||
[popup, bkelement as HTMLElement],
|
||||
{ scale: [0, 1] },
|
||||
{
|
||||
type: "spring",
|
||||
stiffness: 220,
|
||||
damping: 18,
|
||||
},
|
||||
);
|
||||
|
||||
animate(
|
||||
".whatsnewTextContainer *",
|
||||
{ opacity: [0, 1], y: [10, 0] },
|
||||
{
|
||||
delay: stagger(0.05, { startDelay: 0.1 }),
|
||||
duration: 0.5,
|
||||
ease: [0.22, 0.03, 0.26, 1],
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
delete settingsState.justupdated;
|
||||
|
||||
bkelement!.addEventListener("click", function (event) {
|
||||
// Check if the click event originated from the element itself and not any of its children
|
||||
if (event.target === bkelement) {
|
||||
DeleteWhatsNew();
|
||||
}
|
||||
});
|
||||
|
||||
var closeelement = document.getElementById("whatsnewclosebutton");
|
||||
closeelement!.addEventListener("click", function () {
|
||||
DeleteWhatsNew();
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user