Skip to content

Commit

Permalink
Merge branch 'main' of github.com:andy-preston/andy-preston.github.io
Browse files Browse the repository at this point in the history
  • Loading branch information
andy-preston committed Nov 5, 2024
2 parents 54a6431 + 8dffb6c commit 4e886b2
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 6 deletions.
10 changes: 9 additions & 1 deletion articles/text/arbitrary-js.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,16 @@ date: "2024-04-21"
---
# Evaluating arbitrary JS inside a scope

Most of the ideas here have been "stolen" from:
## UPDATE

This was just a quick experiment to see if I could do this using some ideas
"stolen" from
[StackOverflow](https://stackoverflow.com/questions/8403108/calling-eval-in-particular-context#25859853).
Since then, I actually started to implement the code for my use case and
there's a better solution
[On my Github](https://github.com/andy-preston/aaa/tree/main/src/context)
and this article will be updated to match that in "the near future".
{class="update"}

--------------------------------------------------------------------------------

Expand Down
1 change: 0 additions & 1 deletion deno.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
"_site",
"cover-pic/choose.ts",
"cover-pic/tsconfig.json",
"bin",
"fixed"
]
}
2 changes: 1 addition & 1 deletion style/_colours.css
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ body {
hr, td, th,
pre code,
figure,
p.boxed {
p.update {
border-color: #035;
}

Expand Down
4 changes: 2 additions & 2 deletions style/_display.css
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,12 @@ table {
border-collapse: collapse;
}

hr, td, th, pre code, figure, p.boxed {
hr, td, th, pre code, figure, p.update {
border-width: 1px;
border-style: solid;
}

td, th, pre code, figure, p.boxed {
td, th, pre code, figure, p.update {
padding: 1em;
margin: 0;
}
Expand Down
2 changes: 1 addition & 1 deletion style/_text.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ body {
font-family: sans-serif;
}

.todo {
.todo, p.update {
font-weight: bold;
}

Expand Down

0 comments on commit 4e886b2

Please sign in to comment.