New logo & brand updates (RRS-6)
diff --git a/README.md b/README.md
index 99fb954..bd769c8 100644
--- a/README.md
+++ b/README.md
@@ -1,6 +1,4 @@
-
-
-<br />
+
<a href="https://bugs.jottocraft.com/issues?q=project:%20RRS%20product:%20dtps%20rollout:%20released%20sort%20by:%20%7Bversion%20code%7D%20desc&fields=summary,description,idReadable,customFields(projectCustomField(field(name)),value(name))&$top=1"><img src="https://img.shields.io/badge/releases-view%20at%20bugs.jottocraft.com-blue" /></a>
<a href="https://powerplus.app"><img src="https://img.shields.io/website/https/powerplus.app.svg?label=server%20status" /></a>
diff --git a/chrome/128.png b/chrome/128.png
index ae1443d..697a0fe 100644
--- a/chrome/128.png
+++ b/chrome/128.png
Binary files differ
diff --git a/chrome/16.png b/chrome/16.png
index 65d66f8..19fe724 100644
--- a/chrome/16.png
+++ b/chrome/16.png
Binary files differ
diff --git a/chrome/32.png b/chrome/32.png
index 6837324..19da383 100644
--- a/chrome/32.png
+++ b/chrome/32.png
Binary files differ
diff --git a/chrome/48.png b/chrome/48.png
index 5c8f7fa..480e3a0 100644
--- a/chrome/48.png
+++ b/chrome/48.png
Binary files differ
diff --git a/chrome/icon.png b/chrome/icon.png
index 2a7c40b..5f15c85 100644
--- a/chrome/icon.png
+++ b/chrome/icon.png
Binary files differ
diff --git a/chrome/loader.js b/chrome/loader.js
index c50f26f..a3a0ce0 100644
--- a/chrome/loader.js
+++ b/chrome/loader.js
@@ -36,6 +36,8 @@
let guuid;
const useClassicDTPS = window.location.search && window.location.search.includes("classicEdition=true");
+ if (useClassicDTPS) light = false;
+
const observer = new MutationObserver(mutations => {
mutations.forEach(({ addedNodes }) => {
addedNodes.forEach(node => {
@@ -43,7 +45,7 @@
if (node.nodeType === 1 && node.tagName === 'BODY') {
node.insertAdjacentHTML("afterbegin", /*html*/`
<div dtps="true" id="dtpsNativeOverlay" style="background-color: inherit; position: fixed; top: 0px; left: 0px; width: 100%; height: 100vh; z-index: 99;text-align: center;z-index: 999;transition: opacity 0.2s;">
- <img dtps="true" style="height: 100px; margin-top: 132px;" src="${useClassicDTPS ? "https://i.imgur.com/fqqPF9i.png" : (light ? "https://i.imgur.com/0WzWwb1.png" : "https://i.imgur.com/7dDUVh2.png")}" />
+ <img dtps="true" style="height: 90px; margin-top: 132px;" src="${useClassicDTPS ? "https://i.imgur.com/fqqPF9i.png" : (light ? "https://i.imgur.com/bZHcHoE.png" : "https://i.imgur.com/NrjqsVI.png")}" />
<br dtps="true" />
<div dtps="true" class="progress"><div id="dtpsLoadingScreenBar" dtps="true" class="indeterminate"></div></div>
<style dtps="true">body {background-color: ${light ? "white" : "#151515"}; --crxElements: ${light ? "#ececec" : "#2b2b2b"}; --crxText: ${light ? "#333" : "#efefef"}; overflow: hidden;}*,:after,:before{box-sizing:border-box}.progress{background:var(--crxElements);position:relative;width:600px;height:5px;overflow:hidden;border-radius:12px;backdrop-filter:opacity(.4);display:inline-block;margin-top:75px}.progress .indeterminate{position:absolute;background:#e3ba4b;height:5px;animation:indeterminate 1.4s infinite;animation-timing-function:linear}@keyframes indeterminate{0%{width:5%;left:-15%}to{width:100%;left:110%}}p{font-family:BlinkMacSystemFont,-apple-system,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Fira Sans","Droid Sans","Helvetica Neue",Helvetica,Arial,sans-serif;color: var(--crxText);margin-top: 24px;}</style>
@@ -154,7 +156,9 @@
<li class="menu-item ic-app-header__menu-list-item ">
<a id="global_nav_dtps_link" role="button" href="/power+/" class="ic-app-header__menu-list-link">
<div class="menu-item-icon-container" aria-hidden="true">
- <svg xmlns="http://www.w3.org/2000/svg" class="ic-icon-svg ic-icon-svg--dtps" version="1.1" viewBox="0 0 48 63.999"><path d="m5.333 0c-2.946 0-5.333 2.4-5.333 5.333v48c0 2.933 2.388 5.333 5.333 5.333h5.333v5.333l6.667-5.333 6.667 5.333v-5.333h18.667c2.947 0 5.333-2.4 5.333-5.333v-2.667c0 2.933-2.387 5.333-5.333 5.333h-18.667v-5.333h-13.333v5.333h-4c-2.209 0-4-1.867-4-4 0-2.4 1.791-4 4-4h36c2.947 0 5.333-2.4 5.333-5.333v-37.333c0-2.933-2.387-5.333-5.333-5.333h-37.333z"/></svg>
+ <svg class="ic-icon-svg ic-icon-svg--dtps" version="1.1" viewBox="0 0 23.122 29" xmlns="http://www.w3.org/2000/svg">
+ <path d="m0 2c0-1.1046 0.89543-2 2-2h18.5c1.3807 0 2.5 1.1193 2.5 2.5v23.5h-20.5c-0.27614 0-0.5 0.2239-0.5 0.5s0.22386 0.5 0.5 0.5h20.622l-0.2356 0.6666c-0.2744 0.7761-1.0145 1.3334-1.8861 1.3334h-19c-1.1046 0-2-0.8954-2-2zm20.645 22 1.3553-1.3553v-3.5858l-4.9411 4.9411zm-16.645-21.941v3.5858l4.6447-4.6447h-3.5858zm6.0589-1.0589-6.0589 6.0589v3.5858l9.6447-9.6447zm5 0-11.059 11.059v3.5858l14.645-14.645zm5 0-16.059 16.059v3.5858l18-18v-0.1447c0-0.82843-0.6716-1.5-1.5-1.5zm1.9411 3.0589-18 18v1.9411h1.6447l16.355-16.355zm0 5-14.941 14.941h3.5858l11.355-11.355zm0 5-9.9411 9.9411h3.5858l6.3553-6.3553z" />
+ </svg>
</div>
<div class="menu-item__text">${releaseType || "Power+"}</div>
</a>
diff --git a/chrome/manifest.json b/chrome/manifest.json
index f157de0..299a994 100644
--- a/chrome/manifest.json
+++ b/chrome/manifest.json
@@ -2,7 +2,7 @@
"manifest_version": 3,
"name": "Power+",
"description": "A better UI for Canvas LMS",
- "version": "3.1.2",
+ "version": "3.2.0",
"content_scripts": [
{
"run_at": "document_start",
@@ -29,5 +29,10 @@
"32": "32.png",
"48": "48.png",
"128": "128.png"
+ },
+ "browser_specific_settings": {
+ "gecko": {
+ "id": "{45a61d8d-6de3-4718-b422-a8a777f2d8aa}"
+ }
}
}
\ No newline at end of file
diff --git a/chrome/promo1.png b/chrome/promo1.png
index 347b361..78902d2 100644
--- a/chrome/promo1.png
+++ b/chrome/promo1.png
Binary files differ
diff --git a/chrome/promo2.png b/chrome/promo2.png
index 51d3b88..be24678 100644
--- a/chrome/promo2.png
+++ b/chrome/promo2.png
Binary files differ
diff --git a/chrome/promo3.png b/chrome/promo3.png
index addc039..db0dee8 100644
--- a/chrome/promo3.png
+++ b/chrome/promo3.png
Binary files differ
diff --git a/chrome/promo4.png b/chrome/promo4.png
deleted file mode 100644
index 0548c1b..0000000
--- a/chrome/promo4.png
+++ /dev/null
Binary files differ
diff --git a/chrome/promo5.png b/chrome/promo5.png
deleted file mode 100644
index cebadf9..0000000
--- a/chrome/promo5.png
+++ /dev/null
Binary files differ
diff --git a/scripts/core.js b/scripts/core.js
index f413058..64617bf 100644
--- a/scripts/core.js
+++ b/scripts/core.js
@@ -1,7 +1,7 @@
/**
* @file DTPS Core functions and module loader
* @author jottocraft
- * @version v3.8.0
+ * @version v3.9.0
*
* @copyright Copyright (c) 2018-2023 jottocraft
* @license MIT
@@ -38,8 +38,8 @@
* @property {string} cblSpec A URL to the CBL specification document used by dangerous Power+ CBL features
*/
var dtps = {
- ver: 380,
- readableVer: "v3.8.0",
+ ver: 390,
+ readableVer: "v3.9.0",
env: new URL(window.dtpsBaseURL || "https://powerplus.app").hostname == "localhost" ? "dev" : window.jottocraftSatEnv || "prod",
classes: [],
baseURL: window.dtpsBaseURL || "https://powerplus.app",
@@ -2174,7 +2174,7 @@
</div>
<div class="card" style="padding: 10px 20px; box-shadow: none !important; border: 2px solid var(--elements); margin-top: 20px;">
- <img src="${dtpsLMS.logo}" style="height: 50px; margin-right: 10px; vertical-align: middle; margin-top: 20px; border-radius: 50%; background: #ee5034;" />
+ <img src="${dtpsLMS.logo}" style="height: 50px; margin-right: 10px; vertical-align: middle; margin-top: 20px; border-radius: 50%;" />
<div style="display: inline-block; vertical-align: middle;">
<h4 style="font-weight: bold; font-size: 32px; margin-bottom: 0px;">${dtpsLMS.name}</h4>
diff --git a/ui/fluid.css b/ui/fluid.css
index d22c980..5d2277f 100644
--- a/ui/fluid.css
+++ b/ui/fluid.css
@@ -31,7 +31,7 @@
/* Core Styles */
-@import url('https://fonts.googleapis.com/css2?family=Public+Sans:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
+@import url('https://fonts.googleapis.com/css2?family=Public+Sans:[email protected]&display=swap');
:root {
--elementRadius: 15px;
@@ -1351,7 +1351,7 @@
width: 32px;
margin: 3.5px;
vertical-align: middle;
- margin-right: 10px;
+ margin-right: 4px;
}
.navbar h4 {
@@ -1360,7 +1360,7 @@
margin-top: 0px;
margin-bottom: 0px;
font-size: 24px;
- font-weight: bold;
+ font-weight: 600;
}
.navbar .items {
diff --git a/ui/fluid.js b/ui/fluid.js
index 6754ddf..035abe0 100644
--- a/ui/fluid.js
+++ b/ui/fluid.js
@@ -986,18 +986,6 @@
window.requestAnimationFrame(checkReady);
})();
-fluid.tcoh = function () {
- fluid.theme("light", true);
- $("body").addClass("pizzapizza");
- $('img').attr('src', 'https://i.imgur.com/uhZT30E.png');
- var link = document.querySelector("link[rel*='icon']") || document.createElement('link');
- link.type = 'image/png';
- link.rel = 'shortcut icon';
- link.href = 'https://i.imgur.com/uhZT30E.png';
- document.getElementsByTagName('head')[0].appendChild(link);
- document.title = "LITTLE CESERS HOT N READY FOR ONLY FIVE DOLALARS EXTRA MOST BESTEST IS ONLY SIX FOR EXTRA CHEESE AND PEPERONI AND THE NATIONS BEST PRICE"
-}
-
//Fluid UI commands
var allowedKeys = {
38: 'up',
@@ -1013,8 +1001,6 @@
var darkOverridePosition = 0;
var imageOverride = ['up', 'up', 'down', 'down', 'f9'];
var imageOverridePosition = 0;
-var konamiCode = ['up', 'up', 'down', 'down', 'left', 'right', 'left', 'right', 'b', 'a'];
-var konamiCodePos = 0;
document.addEventListener('keydown', function (e) {
var key = allowedKeys[e.keyCode];
var requiredKey = darkOverride[darkOverridePosition];
@@ -1044,16 +1030,4 @@
} else {
imageOverridePosition = 0;
}
-
- var requiredKey = konamiCode[konamiCodePos];
- if (key == requiredKey) {
- konamiCodePos++;
- if (konamiCodePos == konamiCode.length) {
- fluid.tcoh();
- konamiCodePos = 0;
- e.preventDefault();
- }
- } else {
- konamiCodePos = 0;
- }
});
\ No newline at end of file
diff --git a/www/404.html b/www/404.html
deleted file mode 100644
index c25030d..0000000
--- a/www/404.html
+++ /dev/null
@@ -1,338 +0,0 @@
-<!DOCTYPE html>
-<html>
-
-<head>
- <link type="text/css" rel="stylesheet" href="https://cdn.jottocraft.com/fluid/v5.min.css"
- media="screen,projection" />
- <script>
- var info = {
- title: "404",
- description: "The requested URL was not found",
- status: "fail",
- brand: {
- name: "Power+",
- image: "https://cdn.jottocraft.com/images/dtpsBitmap.png",
- favicon: "/favicon.png",
- color: "#e3ba4b"
- }
- }
- document.title = info.title + ((info.brand && (" | " + info.brand.name)) || "");
- if (info.brand && info.brand.image) document.documentElement.style.setProperty('--brandImage', "url('" + info.brand.image + "')");
- if (info.brand && info.brand.color) document.documentElement.style.setProperty('--brandColor', info.brand.color);
- </script>
- <script>document.write(`<link rel="shortcut icon" href="${info.brand && info.brand.favicon}" type="image/png">`)</script>
- <style>
- h1 {
- margin-top: 0px;
- font-size: 68px;
- text-shadow: 0px 0px 4px var(--secText);
- }
-
- h1 span {
- font-weight: bold;
- vertical-align: middle;
- }
-
- div.status {
- vertical-align: middle;
- display: inline-block;
- width: 40px;
- height: 40px;
- border-radius: 50%;
- margin-right: 5px;
- }
-
- div.status.fail {
- border: 3px solid #792020;
- background: #e83434ba;
- box-shadow: 0 0px 20px rgb(255 60 60 / 32%);
- }
-
- div.status.success {
- border: 3px solid #185f27;
- background: #23b542ad;
- box-shadow: 0 0px 20px #3cff5952;
- }
-
- div.status.game {
- border: 3px solid #211467;
- background: #391ece8f;
- box-shadow: 0 0px 20px rgb(74 48 191 / 32%);
- }
-
- i.fail::before {
- content: "lens";
- color: #c44848;
- font-size: 32px;
- }
-
- i.success::before {
- content: "lens";
- color: #48c45d;
- font-size: 32px;
- }
-
- #background {
- background-image: var(--brandImage, url('https://cdn.jottocraft.com/images/bitmap.png'));
- opacity: 0.5;
- bottom: 80px;
- position: fixed;
- z-index: -1;
- width: 100%;
- height: 50%;
- background-position: bottom;
- background-size: auto min(50%, 600px);
- background-repeat-y: no-repeat;
- }
- </style>
-</head>
-
-
-<body>
- <div class="container center">
- <h1>
- <script>document.write(`<div id="pageStatus" class="status ${info.status}"></div>`)</script>
- <span id="pageTitle"><script>document.write(info.title)</script></span>
- <h5 id="pageDescription">
- <script>document.write(info.description)</script>
- </h5>
- </h1>
-
- <canvas style="margin-top: 40px; display: none;" width="788" height="500" id="game"></canvas>
- </div>
- <div id="background"></div>
-
- <script>
- const canvas = document.getElementById('game');
- const context = canvas.getContext('2d');
-
- const level1 = [
- [],
- [],
- [],
- [],
- ['O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O'],
- ['O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O'],
- ['O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O'],
- ['G', 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G'],
- ['G', 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G'],
- ['G', 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G'],
- ['Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y'],
- ['Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y'],
- ['Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y']
- ];
-
- // create a mapping between color short code (R, O, G, Y) and color name
- const colorMap = {
- //'R': '#27d69c',
- 'O': getComputedStyle(document.body).getPropertyValue('--brandColor') || '#505ae0',
- 'G': getComputedStyle(document.body).getPropertyValue('--brandColor') || '#4487cd',
- 'Y': getComputedStyle(document.body).getPropertyValue('--brandColor') || '#56acbe'
- };
-
- // use a 2px gap between each brick
- const brickGap = 2;
- const brickWidth = 44;
- const brickHeight = 12;
-
- // the wall width takes up the remaining space of the canvas width. with 14 bricks
- // and 13 2px gaps between them, thats: 400 - (14 * 25 + 2 * 13) = 24px. so each
- // wall will be 12px
- const wallSize = 4;
- const bricks = [];
- var score = 0;
-
- // create the level by looping over each row and column in the level1 array
- // and creating an object with the bricks position (x, y) and color
- for (let row = 0; row < level1.length; row++) {
- for (let col = 0; col < level1[row].length; col++) {
- const colorCode = level1[row][col];
-
- bricks.push({
- x: wallSize + (brickWidth + brickGap) * col,
- y: wallSize + (brickHeight + brickGap) * row,
- color: colorMap[colorCode],
- width: brickWidth,
- height: brickHeight
- });
- }
- }
-
- const paddle = {
- // place the paddle horizontally in the middle of the screen
- x: canvas.width / 2 - brickWidth / 2,
- y: 440,
- width: brickWidth * 3,
- height: brickHeight,
-
- // paddle x velocity
- dx: 0
- };
-
- const ball = {
- x: 130,
- y: 260,
- width: 8,
- height: 8,
-
- // how fast the ball should go in either the x or y direction
- speed: 2,
-
- // ball velocity
- dx: 0,
- dy: 0
- };
-
- // check for collision between two objects using axis-aligned bounding box (AABB)
- // @see https://developer.mozilla.org/en-US/docs/Games/Techniques/2D_collision_detection
- function collides(obj1, obj2) {
- return obj1.x < obj2.x + obj2.width &&
- obj1.x + obj1.width > obj2.x &&
- obj1.y < obj2.y + obj2.height &&
- obj1.y + obj1.height > obj2.y;
- }
-
- // game loop
- function loop() {
- requestAnimationFrame(loop);
- context.clearRect(0, 0, canvas.width, canvas.height);
-
- // move paddle by it's velocity
- paddle.x += paddle.dx;
-
- // prevent paddle from going through walls
- if (paddle.x < wallSize) {
- paddle.x = wallSize
- }
- else if (paddle.x + (brickWidth * 3) > canvas.width - wallSize) {
- paddle.x = canvas.width - wallSize - (brickWidth * 3);
- }
-
- // move ball by it's velocity
- ball.x += ball.dx;
- ball.y += ball.dy;
-
- // prevent ball from going through walls by changing its velocity
- // left & right walls
- if (ball.x < wallSize) {
- ball.x = wallSize;
- ball.dx *= -1;
- }
- else if (ball.x + ball.width > canvas.width - wallSize) {
- ball.x = canvas.width - wallSize - ball.width;
- ball.dx *= -1;
- }
- // top wall
- if (ball.y < wallSize) {
- ball.y = wallSize;
- ball.dy *= -1;
- }
-
- // reset ball if it goes below the screen
- if (ball.y > canvas.height) {
- ball.x = 130;
- ball.y = 260;
- ball.dx = 0;
- ball.dy = 0;
- }
-
- // check to see if ball collides with paddle. if they do change y velocity
- if (collides(ball, paddle)) {
- ball.dy *= -1;
-
- // move ball above the paddle otherwise the collision will happen again
- // in the next frame
- ball.y = paddle.y - ball.height;
- }
-
- // check to see if ball collides with a brick. if it does, remove the brick
- // and change the ball velocity based on the side the brick was hit on
- for (let i = 0; i < bricks.length; i++) {
- const brick = bricks[i];
-
- if (collides(ball, brick)) {
- // remove brick from the bricks array
- bricks.splice(i, 1);
- score++;
- document.getElementById("pageDescription").innerText = "Score: " + score;
-
- // ball is above or below the brick, change y velocity
- // account for the balls speed since it will be inside the brick when it
- // collides
- if (ball.y + ball.height - ball.speed <= brick.y ||
- ball.y >= brick.y + brick.height - ball.speed) {
- ball.dy *= -1;
- }
- // ball is on either side of the brick, change x velocity
- else {
- ball.dx *= -1;
- }
-
- break;
- }
- }
-
- // draw walls
- context.fillStyle = getComputedStyle(document.body).getPropertyValue('--elements');
- context.fillRect(0, 0, canvas.width, wallSize);
- context.fillRect(0, 0, wallSize, canvas.height);
- context.fillRect(canvas.width - wallSize, 0, wallSize, canvas.height);
-
- // draw ball if it's moving
- context.fillStyle = getComputedStyle(document.body).getPropertyValue('--text');
- if (ball.dx || ball.dy) {
- context.fillRect(ball.x, ball.y, ball.width, ball.height);
- }
-
- // draw bricks
- bricks.forEach(function (brick) {
- context.fillStyle = brick.color;
- context.fillRect(brick.x, brick.y, brick.width, brick.height);
- });
-
- // draw paddle
- context.fillStyle = getComputedStyle(document.body).getPropertyValue('--theme');
- context.fillRect(paddle.x, paddle.y, paddle.width, paddle.height);
- }
-
- // listen to keyboard events to move the paddle
- document.addEventListener('keydown', function (e) {
- // left arrow key
- if (e.which === 37) {
- paddle.dx = -3;
- }
- // right arrow key
- else if (e.which === 39) {
- paddle.dx = 3;
- }
-
- // space key
- // if they ball is not moving, we can launch the ball using the space key. ball
- // will move towards the bottom right to start
- if (ball.dx === 0 && ball.dy === 0 && e.which === 32) {
- ball.dx = ball.speed;
- ball.dy = ball.speed;
- }
-
- if (e.which === 32) {
- document.getElementById("game").style.display = "";
- document.getElementById("background").style.display = "none";
- document.getElementById("pageStatus").classList.add("game");
- document.getElementById("pageTitle").innerText = "302";
- document.getElementById("pageDescription").innerText = "Score: " + score;
- }
- });
-
- // listen to keyboard events to stop the paddle if key is released
- document.addEventListener('keyup', function (e) {
- if (((e.which === 37) && (paddle.dx == -3)) || ((e.which === 39) && (paddle.dx == 3))) {
- paddle.dx = 0;
- }
- });
-
- // start the game
- requestAnimationFrame(loop);
- </script>
-</body>
-
-</html>
\ No newline at end of file
diff --git a/www/README.png b/www/README.png
new file mode 100644
index 0000000..caeb972
--- /dev/null
+++ b/www/README.png
Binary files differ
diff --git a/www/banner.png b/www/banner.png
new file mode 100644
index 0000000..ba86f6f
--- /dev/null
+++ b/www/banner.png
Binary files differ
diff --git a/www/demo/index.html b/www/demo/index.html
index 1b151f6..35fb931 100644
--- a/www/demo/index.html
+++ b/www/demo/index.html
@@ -2,7 +2,7 @@
<html lang="en">
<head>
- <link rel="shortcut icon" href="https://powerplus.app/favicon.png" type="image/png">
+ <link rel="shortcut icon" href="/favicon.png" type="image/png">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta charset="utf-8">
<title>Power+ Demo</title>
@@ -17,7 +17,7 @@
<body>
<div id="dtpsNativeOverlay"
style="background-color: #151515; position: fixed; top: 0px; left: 0px; width: 100%; height: 100vh; z-index: 99;text-align: center;z-index: 999;transition: opacity 0.2s;">
- <img style="height: 100px; margin-top: 132px;" src="https://i.imgur.com/7dDUVh2.png" />
+ <img style="height: 90px; margin-top: 132px;" src="https://i.imgur.com/NrjqsVI.png" />
<br />
<div class="progress">
<div class="indeterminate"></div>
diff --git a/www/dev/favicon.png b/www/dev/favicon.png
deleted file mode 100644
index a721446..0000000
--- a/www/dev/favicon.png
+++ /dev/null
Binary files differ
diff --git a/www/dev/icon.png b/www/dev/icon.png
deleted file mode 100644
index 438390f..0000000
--- a/www/dev/icon.png
+++ /dev/null
Binary files differ
diff --git a/www/dev/icon.svg b/www/dev/icon.svg
deleted file mode 100644
index ed4c55c..0000000
--- a/www/dev/icon.svg
+++ /dev/null
@@ -1,156 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<svg
- xmlns:dc="http://purl.org/dc/elements/1.1/"
- xmlns:cc="http://creativecommons.org/ns#"
- xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
- xmlns:svg="http://www.w3.org/2000/svg"
- xmlns="http://www.w3.org/2000/svg"
- xmlns:xlink="http://www.w3.org/1999/xlink"
- xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
- xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
- fill="#1a1a1a"
- version="1.1"
- viewBox="8 0 65.539238 65.539238"
- x="0px"
- y="0px"
- id="svg6"
- sodipodi:docname="icon.svg"
- width="65.539238"
- height="65.539238"
- inkscape:version="1.0.1 (3bc2e813f5, 2020-09-07)">
- <metadata
- id="metadata12">
- <rdf:RDF>
- <cc:Work
- rdf:about="">
- <dc:format>image/svg+xml</dc:format>
- <dc:type
- rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
- <dc:title>book-bookmark</dc:title>
- </cc:Work>
- </rdf:RDF>
- </metadata>
- <defs
- id="defs10">
- <linearGradient
- inkscape:collect="always"
- id="linearGradient841">
- <stop
- style="stop-color:#e3ba4b;stop-opacity:1"
- offset="0"
- id="stop837" />
- <stop
- style="stop-color:#f5c669;stop-opacity:1"
- offset="1"
- id="stop839" />
- </linearGradient>
- <linearGradient
- inkscape:collect="always"
- xlink:href="#linearGradient841"
- id="linearGradient843"
- x1="7.0668874"
- y1="-1.5925453"
- x2="57.066414"
- y2="65.191643"
- gradientUnits="userSpaceOnUse"
- gradientTransform="translate(0.5,0.5)" />
- <filter
- inkscape:collect="always"
- style="color-interpolation-filters:sRGB"
- id="filter868"
- x="-3.0945816e-05"
- width="1.0000619"
- y="-7.1521802e-05"
- height="1.000143">
- <feGaussianBlur
- inkscape:collect="always"
- stdDeviation="0.000380943"
- id="feGaussianBlur870" />
- </filter>
- <filter
- style="color-interpolation-filters:sRGB;"
- inkscape:label="Drop Shadow"
- id="filter1067">
- <feFlood
- flood-opacity="0.101961"
- flood-color="rgb(0,0,0)"
- result="flood"
- id="feFlood1057" />
- <feComposite
- in="flood"
- in2="SourceGraphic"
- operator="in"
- result="composite1"
- id="feComposite1059" />
- <feGaussianBlur
- in="composite1"
- stdDeviation="5"
- result="blur"
- id="feGaussianBlur1061" />
- <feOffset
- dx="0"
- dy="0"
- result="offset"
- id="feOffset1063" />
- <feComposite
- in="SourceGraphic"
- in2="offset"
- operator="over"
- result="composite2"
- id="feComposite1065" />
- </filter>
- </defs>
- <sodipodi:namedview
- inkscape:document-rotation="0"
- pagecolor="#ffffff"
- bordercolor="#666666"
- borderopacity="1"
- objecttolerance="10"
- gridtolerance="10"
- guidetolerance="10"
- inkscape:pageopacity="0"
- inkscape:pageshadow="2"
- inkscape:window-width="1368"
- inkscape:window-height="850"
- id="namedview8"
- showgrid="false"
- fit-margin-top="0"
- fit-margin-left="0"
- fit-margin-right="0"
- fit-margin-bottom="0"
- inkscape:zoom="7.501776"
- inkscape:cx="44.202617"
- inkscape:cy="29.114264"
- inkscape:window-x="-6"
- inkscape:window-y="-6"
- inkscape:window-maximized="1"
- inkscape:current-layer="svg6" />
- <title
- id="title2">book-bookmark</title>
- <path
- d="M 13.833,0.5 C 10.887,0.5 8.5,2.9 8.5,5.833 v 48 c 0,2.933 2.388,5.333 5.333,5.333 h 5.333 v 5.333 l 6.667,-5.333 6.667,5.333 v -5.333 h 18.667 c 2.947,0 5.333,-2.4 5.333,-5.333 v -2.667 c 0,2.933 -2.387,5.333 -5.333,5.333 H 32.5 V 51.166 H 19.167 v 5.333 h -4 c -2.209,0 -4,-1.867 -4,-4 0,-2.4 1.791,-4 4,-4 h 36 c 2.947,0 5.333,-2.4 5.333,-5.333 V 5.833 C 56.5,2.9 54.113,0.5 51.167,0.5 H 13.834 Z"
- id="path4"
- style="fill:url(#linearGradient843);fill-opacity:1;stroke:#daaf3c;stroke-opacity:1" />
- <g
- id="g1055"
- transform="translate(-0.65899277,2.9839058)"
- style="filter:url(#filter1067)">
- <rect
- style="fill:#e0983c;fill-opacity:1;fill-rule:evenodd;stroke:#d18b33;stroke-width:1;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
- id="rect27"
- width="44.584309"
- height="21.302441"
- x="29.113922"
- y="19.134493"
- rx="4" />
- <g
- style="fill:#000000;filter:url(#filter868)"
- id="g25"
- transform="matrix(1.3966078,0,0,1.3966078,103.70934,34.232945)">
- <path
- d="m -47.428217,-9.57581 -4.545,5.682 c -0.332,0.414 -0.332,1.005 0,1.419 l 4.545,5.682 1.775,-1.421 -3.978,-4.971 3.978,-4.972 z m 19.956,0 -1.775,1.419 3.978,4.972 -3.978,4.972 1.775,1.419 4.545,-5.682 c 0.332,-0.414 0.332,-1.005 0,-1.419 z m -7.544,0.124 -6.82,11.362 1.949,1.169 6.819,-11.362 z"
- id="path14"
- style="fill:#ffffff;fill-opacity:1" />
- </g>
- </g>
-</svg>
diff --git a/www/dev/index.html b/www/dev/index.html
deleted file mode 100644
index 4c8d9ea..0000000
--- a/www/dev/index.html
+++ /dev/null
@@ -1,166 +0,0 @@
-<!DOCTYPE html>
-<html lang="en">
-
-<head>
-
- <link rel="shortcut icon" href="/favicon.png" type="image/png">
-
- <link href="https://fonts.googleapis.com/icon?family=Material+Icons+Extended" rel="stylesheet">
- <link type="text/css" rel="stylesheet" href="https://cdn.jottocraft.com/fluid/v4.min.css"
- media="screen,projection" />
-
- <!--OpenGraph -->
- <meta property="og:url" content="https://powerplus.app" />
- <meta property="og:title" content="Power+" />
- <meta property="og:description" content="A better UI for Canvas LMS" />
- <meta property="og:image" content="https://powerplus.app/logo.png" />
-
- <title>Power+</title>
-
- <meta charset="utf-8">
- <meta name="description" content="A better UI for Canvas LMS">
- <meta name="author" content="jottocraft">
- <meta name="viewport" content="width=device-width, initial-scale=1.0" />
-
- <script async src="https://cdn.jottocraft.com/fluid/assets/tinycolor.js"></script>
- <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
- <script src="https://cdn.jottocraft.com/fluid/v4.min.js"></script>
-
- <style>
- /* Header */
- #header {
- color: var(--elementText);
- padding: 100px;
- padding-bottom: 120px;
- text-align: center;
- }
-
- #header h1 {
- display: inline-block;
- vertical-align: middle;
- }
-
- .title img {
- height: 98px;
- vertical-align: middle;
- margin-right: 22px;
- }
-
- #header .title {
- margin-bottom: 40px;
- }
-
- /* Content Blocks */
- .block {
- overflow: hidden;
- margin-bottom: 200px;
- }
-
- .container .block .description>*:nth-child(1) {
- margin-top: 0px;
- }
-
- .container .block .description>*:nth-last-child(1) {
- margin-bottom: 0px;
- }
-
- .container .block .description p {
- font-size: 20px;
- color: var(--lightText);
- }
-
- /* Large content blocks */
- .container .block:not(.small)>img {
- width: 28%;
- max-width: 250px;
- }
-
- .container .block:not(.small)>.description {
- overflow: hidden;
- }
-
- .container .block:not(.small):nth-child(odd)>img,
- .container .block.left:not(.small):nth-child(even)>img {
- float: left;
- margin-right: 48px;
- margin-left: 0;
- }
-
- .container .block:not(.small):nth-child(even)>img,
- .container .block.right:not(.small):nth-child(odd)>img {
- float: right;
- margin-left: 48px;
- margin-right: 0;
- }
-
- .container .block:not(.small) .description h3 {
- font-size: 2.6rem;
- }
-
- /* Small content blocks */
- .container .block.small .description h3 {
- font-size: 2.2rem;
- }
-
- .container .block.small {
- text-align: center;
- display: inline-block;
- }
-
- .container .block.small img {
- height: 150px;
- margin-bottom: 20px;
- }
- </style>
-</head>
-
-
-<body>
- <div id="header">
- <div class="content">
- <div class="title">
- <img src="/icon.svg" />
- <h1>Power+ (dev)</h1>
- </div>
- <div class="row">
- <button
- onclick="fluid.alert('Send Feedback', 'Email [email protected] to send feedback about Power+ (dev)', 'email')"
- class="btn"><i class="material-icons">feedback</i> Send Feedback</button>
- <button onclick="window.location.href = 'https://github.com/jottocraft/dtps/issues/new';" class="btn"><i
- class="material-icons">bug_report</i> Report a bug</button>
- <button onclick="window.location.href = '/docs';" class="btn outline"><i
- class="material-icons">article</i> Documentation</button>
- <button class="btn outline"
- onclick="window.location.href = 'https://github.com/jottocraft/dtps/tree/dev';"><i
- class="material-icons">code</i> Source code</button>
- </div>
- </div>
- </div>
-
- <div class="container">
- <div style="background: var(--elements); padding: 40px; border-radius: var(--cardRadius);" class="block left">
- <img src="assets/dev.svg" />
- <div class="description">
- <h3>Development Status</h3>
- <p>Power+ (dev) has been deactivated</p>
- <span>To start using the dev version of Power+, visit Settings -> About -> Advanced Options and
- select "Test prerelease versions". Then, navigate to Settings -> Prerelease testing and select
- "Dev". Once you've done that, just reload Power+ to load the dev version. Keep in mind that the
- dev version uses the latest, often untested, code and can completely break. Use the dev version
- at your own risk.</span>
- </div>
- </div>
- </div>
-
- <div style="text-align: center; padding-bottom: 50px;">
- <img style="height: 45px; margin-right: 20px; vertical-align: middle;"
- src="https://cdn.jottocraft.com/images/footerImage.png" />
- <h5 style="display: inline-block; vertical-align: middle;">jottocraft</h5>
- <p>(c) jottocraft 2018-2023 <a href="https://github.com/jottocraft/dtps">source
- code</a> <a href="https://github.com/jottocraft/dtps/blob/main/LICENSE">license</a></p>
- </div>
-
-
-</body>
-
-</html>
\ No newline at end of file
diff --git a/www/dev/logo.png b/www/dev/logo.png
deleted file mode 100644
index 30085fe..0000000
--- a/www/dev/logo.png
+++ /dev/null
Binary files differ
diff --git a/www/favicon.png b/www/favicon.png
index 6091930..09b0061 100644
--- a/www/favicon.png
+++ b/www/favicon.png
Binary files differ
diff --git a/www/icon.png b/www/icon.png
index aa955f2..2ed065c 100644
--- a/www/icon.png
+++ b/www/icon.png
Binary files differ
diff --git a/www/icon.svg b/www/icon.svg
index e5ec872..ddc5f7c 100644
--- a/www/icon.svg
+++ b/www/icon.svg
@@ -1,89 +1,60 @@
-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<svg
- xmlns:dc="http://purl.org/dc/elements/1.1/"
- xmlns:cc="http://creativecommons.org/ns#"
- xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
- xmlns:svg="http://www.w3.org/2000/svg"
- xmlns="http://www.w3.org/2000/svg"
- xmlns:xlink="http://www.w3.org/1999/xlink"
- xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
- xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
- fill="#1a1a1a"
- version="1.1"
- viewBox="8 0 49 65.539238"
- x="0px"
- y="0px"
- id="svg6"
- sodipodi:docname="new power+ prototype.svg"
- width="49"
- height="65.539238"
- inkscape:version="1.0 (4035a4fb49, 2020-05-01)">
- <metadata
- id="metadata12">
- <rdf:RDF>
- <cc:Work
- rdf:about="">
- <dc:format>image/svg+xml</dc:format>
- <dc:type
- rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
- <dc:title>book-bookmark</dc:title>
- </cc:Work>
- </rdf:RDF>
- </metadata>
- <defs
- id="defs10">
- <linearGradient
- inkscape:collect="always"
- id="linearGradient841">
- <stop
- style="stop-color:#e3ba4b;stop-opacity:1"
- offset="0"
- id="stop837" />
- <stop
- style="stop-color:#f5c669;stop-opacity:1"
- offset="1"
- id="stop839" />
- </linearGradient>
- <linearGradient
- inkscape:collect="always"
- xlink:href="#linearGradient841"
- id="linearGradient843"
- x1="7.0668874"
- y1="-1.5925453"
- x2="57.066414"
- y2="65.191643"
- gradientUnits="userSpaceOnUse"
- gradientTransform="translate(0.5,0.5)" />
- </defs>
- <sodipodi:namedview
- inkscape:document-rotation="0"
- pagecolor="#ffffff"
- bordercolor="#666666"
- borderopacity="1"
- objecttolerance="10"
- gridtolerance="10"
- guidetolerance="10"
- inkscape:pageopacity="0"
- inkscape:pageshadow="2"
- inkscape:window-width="1368"
- inkscape:window-height="850"
- id="namedview8"
- showgrid="false"
- fit-margin-top="0"
- fit-margin-left="0"
- fit-margin-right="0"
- fit-margin-bottom="0"
- inkscape:zoom="7.501776"
- inkscape:cx="24.96859"
- inkscape:cy="35.965696"
- inkscape:window-x="-6"
- inkscape:window-y="-6"
- inkscape:window-maximized="1"
- inkscape:current-layer="svg6" />
- <title
- id="title2">book-bookmark</title>
- <path
- d="M 13.833,0.5 C 10.887,0.5 8.5,2.9 8.5,5.833 v 48 c 0,2.933 2.388,5.333 5.333,5.333 h 5.333 v 5.333 l 6.667,-5.333 6.667,5.333 v -5.333 h 18.667 c 2.947,0 5.333,-2.4 5.333,-5.333 v -2.667 c 0,2.933 -2.387,5.333 -5.333,5.333 H 32.5 V 51.166 H 19.167 v 5.333 h -4 c -2.209,0 -4,-1.867 -4,-4 0,-2.4 1.791,-4 4,-4 h 36 c 2.947,0 5.333,-2.4 5.333,-5.333 V 5.833 C 56.5,2.9 54.113,0.5 51.167,0.5 H 13.834 Z"
- id="path4"
- style="fill:url(#linearGradient843);fill-opacity:1;stroke:#daaf3c;stroke-opacity:1" />
-</svg>
+<?xml version="1.0" encoding="UTF-8"?>
+<svg fill="none" version="1.1" viewBox="0 0 22 28.1" xmlns="http://www.w3.org/2000/svg">
+ <g transform="translate(-5 -1.684)" filter="url(#a)">
+ <path d="M6.625 1.684H25a2 2 0 0 1 2 2v22H6.625Z" fill="url(#b)"/>
+ <path d="M6.625 1.684H25a2 2 0 0 1 2 2v22H6.625Z" fill="url(#c)"/>
+ </g>
+ <path d="M.5 24.5H22V27h-.5l-.5.5H.5Z" fill="url(#d)"/>
+ <path d="M.5 24.5H22V27h-.5l-.5.5H.5Z" fill="url(#e)"/>
+ <path d="M1.5 0A1.5 1.5 0 0 0 0 1.5V26h1a1 1 0 0 1 1-1h1V0Z" fill="url(#f)"/>
+ <g transform="translate(-5 -1.684)" filter="url(#g)">
+ <path d="M6.5 25.684a1.5 1.5 0 0 0-1.5 1.5v1a1.5 1.5 0 0 0 1.5 1.5h19.408c.653 0 1.092-.334 1.092-1H7a1 1 0 1 1 0-2h20v-1z" fill="url(#h)"/>
+ </g>
+ <defs>
+ <linearGradient id="b" x1="17.5" x2="17.5" y1="1.684" y2="25.684" gradientUnits="userSpaceOnUse">
+ <stop stop-color="#e6b72e" offset="0"/>
+ <stop stop-color="#e3972f" offset="1"/>
+ </linearGradient>
+ <linearGradient id="c" x1="27.156" x2="25.188" y1="5.215" y2="5.497" gradientUnits="userSpaceOnUse">
+ <stop stop-color="#ffe465" offset=".014"/>
+ <stop stop-color="#f6be45" stop-opacity="0" offset="1"/>
+ </linearGradient>
+ <linearGradient id="d" x1="6.721" x2="26.819" y1="28.1" y2="28.1" gradientTransform="translate(-5 -1.684)" gradientUnits="userSpaceOnUse">
+ <stop stop-color="#D5BCEB" offset="0"/>
+ <stop stop-color="#DCCCED" offset="1"/>
+ <stop stop-color="#E3D3F2" offset="1"/>
+ </linearGradient>
+ <linearGradient id="e" x1="16.25" x2="16.25" y1="26.422" y2="27.842" gradientTransform="translate(-5 -1.684)" gradientUnits="userSpaceOnUse">
+ <stop stop-color="#9F84AE" offset="0"/>
+ <stop stop-color="#C5B1D6" stop-opacity="0" offset="1"/>
+ </linearGradient>
+ <linearGradient id="f" x1="5.205" x2="7.563" y1="16.422" y2="16.434" gradientTransform="translate(-5 -1.684)" gradientUnits="userSpaceOnUse">
+ <stop stop-color="#be542c" offset="0"/>
+ <stop stop-color="#c87742" offset="1"/>
+ </linearGradient>
+ <linearGradient id="h" x1="6.431" x2="27" y1="28.648" y2="28.616" gradientUnits="userSpaceOnUse">
+ <stop stop-color="#b4501c" offset="0"/>
+ <stop stop-color="#c6732b" offset="1"/>
+ </linearGradient>
+ <filter id="a" x="6.625" y="1.684" width="20.375" height="24.1" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse">
+ <feFlood flood-opacity="0" result="BackgroundImageFix"/>
+ <feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/>
+ <feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"/>
+ <feOffset dy=".1"/>
+ <feGaussianBlur stdDeviation=".25"/>
+ <feComposite in2="hardAlpha" k2="-1" k3="1" operator="arithmetic"/>
+ <feColorMatrix values="0 0 0 0 0.839216 0 0 0 0 0.384314 0 0 0 0 0.0745098 0 0 0 1 0"/>
+ <feBlend in2="shape" result="effect1_innerShadow_18_20839"/>
+ </filter>
+ <filter id="g" x="5" y="25.684" width="22" height="4.1" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse">
+ <feFlood flood-opacity="0" result="BackgroundImageFix"/>
+ <feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/>
+ <feColorMatrix in="SourceAlpha" result="hardAlpha" values="0.0000000 0.0000000 0.0000000 0.0000000 0.0000000 0.0000000 0.0000000 0.0000000 0.0000000 0.0000000 0.0000000 0.0000000 0.0000000 0.0000000 0.0000000 0.0000000 0.0000000 0.0000000 127.00000 0.0000000 "/>
+ <feOffset dy=".1"/>
+ <feGaussianBlur stdDeviation=".15"/>
+ <feComposite in2="hardAlpha" k2="-1" k3="1" operator="arithmetic"/>
+ <feColorMatrix values="0.0000000 0.0000000 0.0000000 0.0000000 0.64000000 0.0000000 0.0000000 0.0000000 0.0000000 0.30000000 0.0000000 0.0000000 0.0000000 0.0000000 0.24000000 0.0000000 0.0000000 0.0000000 1.0000000 0.0000000 "/>
+ <feBlend in2="shape" result="effect1_innerShadow_18_20839"/>
+ </filter>
+ </defs>
+</svg>
diff --git a/www/logo.png b/www/logo.png
index d124210..c7dc36b 100644
--- a/www/logo.png
+++ b/www/logo.png
Binary files differ
diff --git a/www/word_black.png b/www/word_black.png
new file mode 100644
index 0000000..c002de2
--- /dev/null
+++ b/www/word_black.png
Binary files differ
diff --git a/www/word_white.png b/www/word_white.png
new file mode 100644
index 0000000..398827b
--- /dev/null
+++ b/www/word_white.png
Binary files differ