Add new entry blog: Web Infra 1 (#3)
* Change blog entry style : titles font weight lighter->normal * Add tmpfs scripts for linux (dev only) Co-authored-by: Corentin <corentin-pro@mail.com> Co-authored-by: Jimmy Vargo <james@ayo.tokyo> Reviewed-on: ayo/website#3
This commit is contained in:
parent
bb2fd54e41
commit
6fdcf4f102
10 changed files with 41 additions and 37 deletions
|
|
@ -38,18 +38,16 @@ class BlogEntryComponent extends Component
|
|||
<img id="image-view"/>
|
||||
</div>,
|
||||
<script>
|
||||
{`const container = document.getElementById("image-container")
|
||||
const image_view = document.getElementById("image-view")
|
||||
|
||||
{`
|
||||
function open_image(src)
|
||||
{
|
||||
image_view.src = src
|
||||
container.style.display = 'flex'
|
||||
document.getElementById("image-view").src = src
|
||||
document.getElementById("image-container").style.display = 'flex'
|
||||
}
|
||||
|
||||
function close_image()
|
||||
{
|
||||
container.style.display = 'none'
|
||||
document.getElementById("image-container").style.display = 'none'
|
||||
}`}
|
||||
</script>
|
||||
]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue