Skip to content

Commit

Permalink
v1.6.1
Browse files Browse the repository at this point in the history
  • Loading branch information
smccle committed Aug 29, 2023
1 parent 82f165a commit f3a3d18
Show file tree
Hide file tree
Showing 11 changed files with 335 additions and 231 deletions.
Binary file added .DS_Store
Binary file not shown.
3 changes: 3 additions & 0 deletions devlog.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
NEKO Code Editor Devlog
|-----------------------|

Update v1.6.1 08/29/2023:
- Updated styling

Update v1.6.0 08/09/2023:
- Updated in-editor console to be more useful
- Updated window resizing
Expand Down
Binary file added src/.DS_Store
Binary file not shown.
Binary file added src/monaco/.DS_Store
Binary file not shown.
Binary file added src/monaco/node_modules/.DS_Store
Binary file not shown.
10 changes: 6 additions & 4 deletions src/scripts/dashboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ function getImg(id) {
get(id).then((val) => {
if (val.epic !== null && val.epic !== undefined && val.epic !== '') {
document.getElementById(id + '.img').innerHTML =
"<img src='" + val.epic + "' style='width: 390px; height: 410px;'>";
"<img src='" + val.epic + "' style='width: 100%; height: 100%;'>";
} else {
document.getElementById(id + '.img').innerHTML =
'Image Unavailable.<br><br>';
Expand Down Expand Up @@ -108,23 +108,25 @@ if (
newDAP = document.createElement('p');
newLink = document.createElement('a');
newImg = document.createElement('div');
var newSplit1 = document.createElement("hr");
var newSplit2 = document.createElement("hr");

newProject.setAttribute('class', 'pj');
pjs.push(data['editor']);
newLink.setAttribute('class', 'project-btn');
newImg.innerHTML = '...';
newImg.setAttribute('id', data['editor'] + '.img');
getImg(data['editor']);
newLink.style =
'color: blue; text-decoration: underline; font-weight: bold; cursor: pointer; font-family: Arial;';
newLink.innerHTML = data['editor'];
newDAP.setAttribute('id', data['editor']);
newDAP.innerHTML = 'loading...';
loadTimestamp(data['editor']);
newLink.href = './editor.html?id=' + data['editor'];
newDAP.style = 'color: #555555; font-size: 0.6rem;';

newProject.appendChild(newImg);
newProject.appendChild(newSplit1);
newProject.appendChild(newLink);
newProject.appendChild(newSplit2);
newProject.appendChild(newDAP);
document.querySelector('.projects-container').appendChild(newLine);
document.querySelector('.projects-container').appendChild(newProject);
Expand Down
24 changes: 24 additions & 0 deletions src/scripts/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -3136,3 +3136,27 @@ function changeTheme(theme) {
}
}
}

var open = false;

document.querySelector("#nce-btn").onclick = function() {
if (open == false) {
document.getElementById("nce-dropdown").style.display = "block";
open = true;
} else if (open == true) {
document.getElementById("nce-dropdown").style.display = "none";
open = false;
}
}

window.onclick = function(e) {
if (!e.target.matches('#nce-btn') || e.target.matches("#eframe") || e.target.matches("#iframe")) {
document.getElementById("nce-dropdown").style.display = "none";
}
}

document.querySelector(".btn-loie").onclick = function() {
setCookie('li', '', 1);
window.localStorage.setItem('li', '');
window.location = '../../index.html';
}
63 changes: 63 additions & 0 deletions src/styles/scp.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
/* cyrillic-ext */
@font-face {
font-family: 'Source Code Pro';
font-style: normal;
font-weight: 500;
font-display: swap;
src: url(https://fonts.gstatic.com/s/sourcecodepro/v22/HI_diYsKILxRpg3hIP6sJ7fM7PqPMcMnZFqUwX28DP6QtMRrTFcZZJmOpwVS.woff2) format('woff2');
unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
font-family: 'Source Code Pro';
font-style: normal;
font-weight: 500;
font-display: swap;
src: url(https://fonts.gstatic.com/s/sourcecodepro/v22/HI_diYsKILxRpg3hIP6sJ7fM7PqPMcMnZFqUwX28DP6QtM1rTFcZZJmOpwVS.woff2) format('woff2');
unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek-ext */
@font-face {
font-family: 'Source Code Pro';
font-style: normal;
font-weight: 500;
font-display: swap;
src: url(https://fonts.gstatic.com/s/sourcecodepro/v22/HI_diYsKILxRpg3hIP6sJ7fM7PqPMcMnZFqUwX28DP6QtMVrTFcZZJmOpwVS.woff2) format('woff2');
unicode-range: U+1F00-1FFF;
}
/* greek */
@font-face {
font-family: 'Source Code Pro';
font-style: normal;
font-weight: 500;
font-display: swap;
src: url(https://fonts.gstatic.com/s/sourcecodepro/v22/HI_diYsKILxRpg3hIP6sJ7fM7PqPMcMnZFqUwX28DP6QtMprTFcZZJmOpwVS.woff2) format('woff2');
unicode-range: U+0370-03FF;
}
/* vietnamese */
@font-face {
font-family: 'Source Code Pro';
font-style: normal;
font-weight: 500;
font-display: swap;
src: url(https://fonts.gstatic.com/s/sourcecodepro/v22/HI_diYsKILxRpg3hIP6sJ7fM7PqPMcMnZFqUwX28DP6QtMZrTFcZZJmOpwVS.woff2) format('woff2');
unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
font-family: 'Source Code Pro';
font-style: normal;
font-weight: 500;
font-display: swap;
src: url(https://fonts.gstatic.com/s/sourcecodepro/v22/HI_diYsKILxRpg3hIP6sJ7fM7PqPMcMnZFqUwX28DP6QtMdrTFcZZJmOpwVS.woff2) format('woff2');
unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
font-family: 'Source Code Pro';
font-style: normal;
font-weight: 500;
font-display: swap;
src: url(https://fonts.gstatic.com/s/sourcecodepro/v22/HI_diYsKILxRpg3hIP6sJ7fM7PqPMcMnZFqUwX28DP6QtMlrTFcZZJmOpw.woff2) format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
Loading

0 comments on commit f3a3d18

Please sign in to comment.