updates
diff --git a/www/404.html b/www/404.html
index 5277691..c25030d 100644
--- a/www/404.html
+++ b/www/404.html
@@ -1,338 +1,338 @@
-<!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>
-
+<!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/demo/index.html b/www/demo/index.html
index 75381e6..982de87 100644
--- a/www/demo/index.html
+++ b/www/demo/index.html
@@ -1,72 +1,72 @@
-<!DOCTYPE html>
-<html lang="en">
-
-<head>
- <link dtps="true" rel="shortcut icon" href="https://powerplus.app/favicon.png" type="image/png">
- <meta dtps="true" name="viewport" content="width=device-width, initial-scale=1">
- <meta dtps="true" charset="utf-8">
- <title dtps="true">Power+ Demo</title>
- <meta dtps="true" name="description" content="Power+ demonstration website">
- <meta dtps="true" name="author" content="jottocraft">
- <script dtps="true">window.dtpsPreLoader = true; window.dtpsBaseURL = "https://powerplus.app";</script>
- <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js" dtps="true"></script>
- <script src="https://powerplus.app/scripts/lms/demo.js" dtps="true"></script>
-</head>
-
-
-<body>
- <div dtps="true" 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 dtps="true" style="height: 100px; margin-top: 132px;" src="https://i.imgur.com/7dDUVh2.png" />
- <br dtps="true" />
- <div dtps="true" class="progress">
- <div dtps="true" class="indeterminate"></div>
- </div>
- <style dtps="true">
- body {
- background-color: #151515;
- overflow: hidden;
- }
-
- *,
- :after,
- :before {
- box-sizing: border-box
- }
-
- .progress {
- position: relative;
- width: 600px;
- height: 5px;
- overflow: hidden;
- border-radius: 12px;
- background: #262626;
- 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%
- }
- }
- </style>
- </div>
-</body>
-
+<!DOCTYPE html>
+<html lang="en">
+
+<head>
+ <link dtps="true" rel="shortcut icon" href="https://powerplus.app/favicon.png" type="image/png">
+ <meta dtps="true" name="viewport" content="width=device-width, initial-scale=1">
+ <meta dtps="true" charset="utf-8">
+ <title dtps="true">Power+ Demo</title>
+ <meta dtps="true" name="description" content="Power+ demonstration website">
+ <meta dtps="true" name="author" content="jottocraft">
+ <script dtps="true">window.dtpsPreLoader = true; window.dtpsBaseURL = "https://powerplus.app";</script>
+ <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js" dtps="true"></script>
+ <script src="https://powerplus.app/scripts/lms/demo.js" dtps="true"></script>
+</head>
+
+
+<body>
+ <div dtps="true" 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 dtps="true" style="height: 100px; margin-top: 132px;" src="https://i.imgur.com/7dDUVh2.png" />
+ <br dtps="true" />
+ <div dtps="true" class="progress">
+ <div dtps="true" class="indeterminate"></div>
+ </div>
+ <style dtps="true">
+ body {
+ background-color: #151515;
+ overflow: hidden;
+ }
+
+ *,
+ :after,
+ :before {
+ box-sizing: border-box
+ }
+
+ .progress {
+ position: relative;
+ width: 600px;
+ height: 5px;
+ overflow: hidden;
+ border-radius: 12px;
+ background: #262626;
+ 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%
+ }
+ }
+ </style>
+ </div>
+</body>
+
</html>
\ No newline at end of file
diff --git a/www/dev/index.html b/www/dev/index.html
index c563c48..ba8526f 100644
--- a/www/dev/index.html
+++ b/www/dev/index.html
@@ -1,166 +1,166 @@
-<!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>Feature freeze - v3.1.0 (scheduled for stable release in January 2021)</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-2020. All rights reserved. <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>
-
+<!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>Feature freeze - v3.1.0 (scheduled for stable release in January 2021)</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-2020. All rights reserved. <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/icon.svg b/www/icon.svg
index 79d1ecc..e5ec872 100644
--- a/www/icon.svg
+++ b/www/icon.svg
@@ -1,89 +1,89 @@
-<?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" 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>
diff --git a/www/index.html b/www/index.html
index 8bab87e..d114847 100644
--- a/www/index.html
+++ b/www/index.html
@@ -1,197 +1,197 @@
-<!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;
- margin-bottom: 125px;
- 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>
-
- <script>
- $(document).ready(() => {
- if (navigator.userAgent.toLowerCase().indexOf('firefox') > -1) {
- if ($("#dtpsInstallBtn").text().includes("extension")) {
- $("#dtpsInstallBtn").attr("onclick", "window.location.href = 'https://powerplus.app/firefox.xpi';");
- }
- }
- })
- </script>
-
- <div id="header">
- <div class="content">
- <div class="title">
- <img src="/icon.svg" />
- <h1>Power+</h1>
- </div>
- <div class="row">
- <button id="dtpsInstallBtn"
- onclick="window.location.href = 'https://chrome.google.com/webstore/detail/power%20/pakgdifknldaiglefmpkkgfjndemfapo';"
- class="btn"><i class="material-icons">extension</i> Add the extension</button>
- <button class="btn outline" onclick="window.location.href = '/demo';"><i
- class="material-icons">exit_to_app</i> Demo</button>
- <button class="btn outline" onclick="window.location.href = 'https://github.com/jottocraft/dtps';"><i
- class="material-icons">code</i> Source code</button>
- </div>
- </div>
- </div>
-
- <div class="container">
- <div class="row">
- <div class="block small six columns">
- <img src="assets/todo.svg" />
- <div class="description">
- <h3>Manage your coursework</h3>
- <p>Power+ shows you upcoming assignments, a calendar, and updates at a glance</p>
- </div>
- </div>
-
- <div class="block small six columns">
- <img src="assets/calculator.svg" />
- <div class="description">
- <h3>Grade Calculation</h3>
- <p>Power+ calculates your CBL class grades and lets you test what-if grades</p>
- </div>
- </div>
- </div>
-
- <div class="block left">
- <img src="assets/server.svg" />
- <div class="description">
- <h3>Privacy</h3>
- <ul>
- <li>Power+ does not collect any personal information</li>
- <li>Power+ gets data directly from Canvas to your computer without being processed by a Power+
- server or a 3rd party</li>
- <li>Grades are calculated on-device</li>
- <li>Prefrences and grade history are stored on-device</li>
- <li>Power+'s code is open-source and hosted directly from <a
- href="https://github.com/jottocraft/dtps">GitHub</a></li>
- </ul>
- </div>
- </div>
- </div>
-
- <br /><br /><br /><br />
- <div style="text-align: center; padding: 50px 0px;">
- <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-2020. All rights reserved. <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>
-
+<!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;
+ margin-bottom: 125px;
+ 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>
+
+ <script>
+ $(document).ready(() => {
+ if (navigator.userAgent.toLowerCase().indexOf('firefox') > -1) {
+ if ($("#dtpsInstallBtn").text().includes("extension")) {
+ $("#dtpsInstallBtn").attr("onclick", "window.location.href = 'https://powerplus.app/firefox.xpi';");
+ }
+ }
+ })
+ </script>
+
+ <div id="header">
+ <div class="content">
+ <div class="title">
+ <img src="/icon.svg" />
+ <h1>Power+</h1>
+ </div>
+ <div class="row">
+ <button id="dtpsInstallBtn"
+ onclick="window.location.href = 'https://chrome.google.com/webstore/detail/power%20/pakgdifknldaiglefmpkkgfjndemfapo';"
+ class="btn"><i class="material-icons">extension</i> Add the extension</button>
+ <button class="btn outline" onclick="window.location.href = '/demo';"><i
+ class="material-icons">exit_to_app</i> Demo</button>
+ <button class="btn outline" onclick="window.location.href = 'https://github.com/jottocraft/dtps';"><i
+ class="material-icons">code</i> Source code</button>
+ </div>
+ </div>
+ </div>
+
+ <div class="container">
+ <div class="row">
+ <div class="block small six columns">
+ <img src="assets/todo.svg" />
+ <div class="description">
+ <h3>Manage your coursework</h3>
+ <p>Power+ shows you upcoming assignments, a calendar, and updates at a glance</p>
+ </div>
+ </div>
+
+ <div class="block small six columns">
+ <img src="assets/calculator.svg" />
+ <div class="description">
+ <h3>Grade Calculation</h3>
+ <p>Power+ calculates your CBL class grades and lets you test what-if grades</p>
+ </div>
+ </div>
+ </div>
+
+ <div class="block left">
+ <img src="assets/server.svg" />
+ <div class="description">
+ <h3>Privacy</h3>
+ <ul>
+ <li>Power+ does not collect any personal information</li>
+ <li>Power+ gets data directly from Canvas to your computer without being processed by a Power+
+ server or a 3rd party</li>
+ <li>Grades are calculated on-device</li>
+ <li>Prefrences and grade history are stored on-device</li>
+ <li>Power+'s code is open-source and hosted directly from <a
+ href="https://github.com/jottocraft/dtps">GitHub</a></li>
+ </ul>
+ </div>
+ </div>
+ </div>
+
+ <br /><br /><br /><br />
+ <div style="text-align: center; padding: 50px 0px;">
+ <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-2020. All rights reserved. <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