Skip to content

Commit

Permalink
forget about dynamic opengraph tags and message previews
Browse files Browse the repository at this point in the history
linked blocks
  • Loading branch information
nico pr committed May 6, 2024
1 parent f559481 commit cdf4015
Show file tree
Hide file tree
Showing 7 changed files with 599 additions and 241 deletions.
26 changes: 16 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,24 +4,30 @@
- run and share HTML CSS JS
- no account, no cookies, no database

### tests
[try it](https://nicopowa.github.io/snippets/)

### about

- code is stored into localStorage or URL #hash, never sent to server
- don't forget to export a backup before clearing browser cache
- or use a URL shortener service and bookmark snippets share links
- first JS code block is main, runs last

### examples

- [helloworld](https://nicopowa.github.io/snippets/#H4sIAAAAAAAAClWPQQrCMBBFryJ/pTC4cDkepe2itmPTOkkkSZFSendJqoK7x3/M/JkVCQwjqv7w8kF7EAJ4hWutgDFFENLyzBxmB4KRcTAJfCHcfL+A761GIXTeRa8CTmEWwuiihPSzUwRXDaGLH9DRPcAVTLKKPW82gu3ByC05LlQmMuQV35az+uFY73fXOF1r9y/KK1lgewPwkYV24gAAAA==)
- [sudoku](https://nicopowa.github.io/snippets/#H4sIAAAAAAAACn1YW2/bNhT+K2csFsg148iS7Ujy1D1sBfbQAgO6t8gYFImOldKUS9G5tE1++8CLKFJ2FiI2da7f+Q4pUf6BBMpQd6zbr0eEEUfZD8TKPUEZuu8QRuL5IOf8yBBGO9Lc7QTK5kuMbtv6GWWCHwlGVcu6lpL+smEd4QJl25J2BMs42c0Go6ozE9qwryi7QTuxp0jLNy8Y7WuUIZlFitVMeahM8KNghaha2vIM3iXqby1FddMdaPmcwZaSJyUpaXPHLhtB9l0GFWGCcCW/P3ai2T5fVi0ThAlH91KwgonylhKd5rblNeGXVUtpeehIBv1sPWgziA5P0LW0qR08OhLPmNhdVruG1kE8wTASrSZemttWiHafmVgy6js/XH0arn47HJct+r9o2vqxqcUugyg8aNZ0ax1BX+bclnnHy2elEuRJXCqaXRKR7jSqaNl18EWtqC8tfSBcZVTtY53gx0q0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/JWfvjJ6Wrv2aiUlO29RK0OLiMMOdUmH5Y/KJ/t/dUsm2WzPzGjYg+s0j5t+QAwrtIdgb1w4mFjKZxvhFG6LZmxZH0tKkxPzzmnV06cpDr0HbWQUtG2ZO/q50hG2+5SoDGwIQFbMMInNmyeTOecIusD1p4t2Kwo5tF0UHPKPIavjVmjuxO0xSQOKtJez2n6r/i+xiq4xnRKDstlURQFh5TxkOfMoTzikRnxFrWODpEqir+orUOkE7NcjkzVipGI1EisdYOn8ZHocSO2SEEcc8fFa6ExBBzOcu2caJNuuWk0yDZK64QDh740ou73CgmaOrQpUyTxecoWl6zH49A3cd5QnbHxOj2QVVbbxl2HpG8d8WC/1zW6j8Jj0qFdyMBpiMgp21h3I6pdFyHauNNcaavGIIUs/qBMEaH79O3LLTtbDILJRfwoPrQaFxzWonrcOtuQPO+MyskgO2O98bGazDlc/pe8yKU6XE7iQWH1+hvAXcRp/AMAAA==)

### controls
### use

- "new" : create a snippet
- "save" CTRL+S / CMD+S : save snippet
- "run" CTRL+R / CMD+R : run snippet
- "save" || CTRL+S : save snippet
- "run" || CTRL+R : run snippet
- "share" : share snippet
- "dump" : export snippets
- "load" : import snippets

### md

- "@js https://url.to/file.js" : load JS file
- "@css https://url.to/file.css" : load CSS file

Expand Down
171 changes: 131 additions & 40 deletions css/snippets.css
Original file line number Diff line number Diff line change
Expand Up @@ -74,13 +74,13 @@ body {

}

.header > div:not(.space) {
.header > div:not(.spc) {

margin-right: 12px;

}

.header > div:not(.space),
.header > div:not(.spc),
.menutools > div {

cursor: pointer;
Expand All @@ -90,7 +90,7 @@ body {

}

.header .space {
.header .spc {

height: 100%;
flex-basis: 10%;
Expand Down Expand Up @@ -173,47 +173,142 @@ body {

.wrap {

margin-top: .5em;
margin-bottom: 2em;
padding-top: .5em;
padding-bottom: 1em;

}

.lwrap {

margin-top: 1em;
}

.lcode {

}

.ltool {

}

.ltool > div {

padding: 4px;
display: inline-block;

}

.code {

position: relative;

margin-top: 1em;

}

.ctool {

display: flex;
justify-content: space-between;

}

.ctool > div {

padding: 4px;

}

.spc {

flex: 1;

}

.add::after {

content: "+" attr(lang);

}

.code:not(:last-child) .add {

display: none;

}

.code:first-child .rem {

display: none;

}

.rem {

display: flex;
justify-content: space-between;
gap: 2em;

}

.rem::after {

content: "remove";

}

.code:not(:first-child) {
.rem div {

/* DELETE BLOC BTN */
display: none;

}

.rem div:first-child::after {

content: "confirm";

}

.rem div:last-child::after {

content: "cancel";

}

.rem.ask::after {

display: none;

}

.rem.ask div {

display: inline;

}

/* language indicator */
.lang {

position: absolute;
left: 4px;
bottom: 4px;
left: 3px;
bottom: 1px;
pointer-events: none;
font-size: 13px;
z-index: 10;
font-size: 10px;
line-height: 10px;
color: #666666;

}

.lang::after {

content: attr(lang);

}

/* code editor max height */
.prism-live {

/* max-height: 400px; */
padding-bottom: 6px !important;

}

Expand All @@ -225,6 +320,7 @@ pre.prism-live {

textarea.prism-live {

overflow-x: scroll;
overflow-y: hidden;

}
Expand Down Expand Up @@ -253,70 +349,65 @@ textarea.prism-live {

.cmds {

margin: 1em;
margin: .6em;
margin-top: 1.5em;
display: flex;
align-items: center;
justify-content: space-between;
color: #666666;
user-select: none;

}

.cmd {
.cmd,
.ver {

cursor: pointer;
font-size: large;

}

.cmd.more::before {

content: "+code";
font-size: 1em;
color: #666666;

}

.cmd.delete {
.del {

display: flex;
justify-content: space-between;
gap: 2em;

}

.cmd.delete::before {
.del::after {

content: "delete";

}

.cmd.delete.del-yes::before {
.del div {

content: "confirm";
display: none;

}

.cmd.delete .del-space {
.del div:first-child::after {

display: none;
width: 2em;
content: "confirm";

}

.delete .del-no {
.del div:last-child::after {

display: none;
content: "cancel";

}

.cmd.delete.del-yes .del-no,
.cmd.delete.del-yes .del-space {
.del.ask::after {

display: inherit;
display: none;

}

.cmd.delete .del-no::before {
.del.ask div {

content: "cancel";
display: inline;

}

Expand Down Expand Up @@ -465,9 +556,8 @@ textarea.prism-live {

}

.header > div:not(.space),
.header > div:not(.spc),
.menutools > div,
.moretools > div,
.snippet-title {

color: #999999;
Expand All @@ -483,7 +573,8 @@ textarea.prism-live {
.menulist a,
.about,
.lang,
.cmds {
.cmd,
.ver {

color: #999999;

Expand Down
Loading

0 comments on commit cdf4015

Please sign in to comment.