2023-10-18 23:58:51 +00:00
|
|
|
<!DOCTYPE html>
|
2023-10-18 21:23:22 +00:00
|
|
|
<html lang="">
|
|
|
|
<head>
|
|
|
|
<meta charset="utf-8" />
|
2023-10-18 23:11:03 +00:00
|
|
|
<title>WIP: Obsiview</title>
|
2023-10-19 10:41:35 +00:00
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
2023-10-19 12:56:08 +00:00
|
|
|
<style>
|
|
|
|
@import "style/light.css";
|
|
|
|
@import "style/dark.css";
|
|
|
|
|
2023-10-21 22:37:05 +00:00
|
|
|
:root {
|
|
|
|
--color-background: #ffffff;
|
|
|
|
--color-foreground: #000000;
|
|
|
|
--color-accent: #ff7f00;
|
|
|
|
|
|
|
|
--color-gray: #7E7E7E;
|
|
|
|
--color-red: #FB464C;
|
|
|
|
--color-orange: #E9973F;
|
|
|
|
--color-yellow: #E0DE71;
|
|
|
|
--color-green: #44CF6E;
|
|
|
|
--color-blue: #53DFDD;
|
|
|
|
--color-purple: #A882FF;
|
|
|
|
|
|
|
|
--edge-width: 2px;
|
|
|
|
--node-group-border-width: 2px;
|
|
|
|
--node-file-border-width: 2px;
|
|
|
|
}
|
|
|
|
|
2023-10-19 12:56:08 +00:00
|
|
|
body {
|
2023-10-20 01:44:56 +00:00
|
|
|
margin: 0;
|
|
|
|
|
2023-10-19 12:56:08 +00:00
|
|
|
background-color: var(--color-background);
|
|
|
|
color: var(--color-foreground);
|
|
|
|
}
|
|
|
|
</style>
|
2023-10-18 23:58:51 +00:00
|
|
|
<script src="https://cdn.jsdelivr.net/npm/marked/marked.min.js"></script>
|
2023-10-18 21:23:22 +00:00
|
|
|
<script type="module" src="src/index.mjs"></script>
|
2023-10-21 22:37:05 +00:00
|
|
|
<template id="template-display">
|
|
|
|
<slot name="display-container"></slot>
|
|
|
|
</template>
|
|
|
|
<template id="template-node-group">
|
2023-10-18 21:23:22 +00:00
|
|
|
<style>
|
2023-10-21 22:37:05 +00:00
|
|
|
.node-group {
|
2023-10-20 01:44:56 +00:00
|
|
|
position: absolute;
|
|
|
|
box-sizing: border-box;
|
2023-10-21 22:37:05 +00:00
|
|
|
|
|
|
|
--color-node: var(--color-gray);
|
|
|
|
outline: var(--node-group-border-width) solid var(--color-node);
|
|
|
|
background-color: color-mix(in srgb, var(--color-node) 20%, var(--color-background));
|
|
|
|
border-radius: 0 8px 8px 8px;
|
|
|
|
padding: 12px;
|
|
|
|
|
|
|
|
overflow-x: visible;
|
|
|
|
overflow-y: visible;
|
2023-10-20 01:44:56 +00:00
|
|
|
}
|
|
|
|
|
2023-10-21 22:37:05 +00:00
|
|
|
.node-group-label {
|
|
|
|
position: relative;
|
|
|
|
bottom: 14px;
|
|
|
|
left: -12px;
|
|
|
|
transform: translateY(-100%);
|
|
|
|
|
|
|
|
display: inline-block;
|
|
|
|
|
|
|
|
outline: var(--node-group-border-width) solid var(--color-node);
|
|
|
|
background-color: color-mix(in srgb, var(--color-node) 20%, var(--color-background));
|
|
|
|
border-radius: 8px 8px 0 0;
|
|
|
|
padding: 12px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.node-group-label h1 {
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
<section class="node-group">
|
|
|
|
<aside class="node-group-label">
|
|
|
|
<h1><slot name="node-label">{Group label}</slot></h1>
|
|
|
|
</aside>
|
|
|
|
<slot name="node-contents">{Node contents}</slot>
|
|
|
|
</section>
|
|
|
|
</template>
|
|
|
|
<template id="template-node-file">
|
|
|
|
<style>
|
2023-10-20 01:44:56 +00:00
|
|
|
.node-file {
|
2023-10-21 22:37:05 +00:00
|
|
|
position: absolute;
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
|
|
|
--color-node: var(--color-gray);
|
|
|
|
outline: var(--node-file-border-width) solid var(--color-node);
|
|
|
|
background-color: color-mix(in srgb, var(--color-node) 10%, var(--color-background));
|
2023-10-18 23:58:51 +00:00
|
|
|
border-radius: 8px;
|
|
|
|
padding: 12px;
|
2023-10-20 01:44:56 +00:00
|
|
|
|
|
|
|
overflow-x: clip;
|
|
|
|
overflow-y: scroll;
|
|
|
|
}
|
2023-10-18 21:23:22 +00:00
|
|
|
</style>
|
2023-10-21 22:37:05 +00:00
|
|
|
<article class="node-file">
|
2023-10-18 21:23:22 +00:00
|
|
|
<h1>
|
2023-10-21 22:37:05 +00:00
|
|
|
<slot name="node-title">{Node title}</slot>
|
2023-10-18 21:23:22 +00:00
|
|
|
</h1>
|
2023-10-21 22:37:05 +00:00
|
|
|
<slot name="node-contents">{Node contents}</slot>
|
2023-10-20 01:44:56 +00:00
|
|
|
</article>
|
|
|
|
</template>
|
2023-10-21 22:37:05 +00:00
|
|
|
<template id="template-node-text">
|
2023-10-20 01:44:56 +00:00
|
|
|
<style>
|
2023-10-21 22:37:05 +00:00
|
|
|
.node-text {
|
|
|
|
position: absolute;
|
|
|
|
box-sizing: border-box;
|
2023-10-20 01:44:56 +00:00
|
|
|
|
2023-10-21 22:37:05 +00:00
|
|
|
--color-node: var(--color-gray);
|
|
|
|
outline: var(--node-file-border-width) solid var(--color-node);
|
|
|
|
background-color: color-mix(in srgb, var(--color-node) 10%, var(--color-background));
|
|
|
|
border-radius: 8px;
|
|
|
|
padding: 12px;
|
|
|
|
|
|
|
|
overflow-x: clip;
|
|
|
|
overflow-y: scroll;
|
2023-10-20 01:44:56 +00:00
|
|
|
}
|
|
|
|
</style>
|
2023-10-21 22:37:05 +00:00
|
|
|
<article class="node-text">
|
|
|
|
<slot name="node-contents">{Node contents}</slot>
|
|
|
|
</article>
|
|
|
|
</template>
|
|
|
|
<template id="template-edge">
|
|
|
|
<slot name="edge-svg">{Edge SVG}</slot>
|
|
|
|
</template>
|
|
|
|
<template id="template-markdown">
|
|
|
|
<slot name="markdown-contents">{Markdown text}</slot>
|
|
|
|
</template>
|
|
|
|
<template id="template-canvas">
|
|
|
|
<slot name="canvas-contents">{Canvas}</slot>
|
2023-10-18 21:23:22 +00:00
|
|
|
</template>
|
2023-10-19 12:56:08 +00:00
|
|
|
<template id="template-wikilink">
|
|
|
|
<style>
|
|
|
|
.wikilink {
|
2023-10-20 01:44:56 +00:00
|
|
|
color: var(--color-accent);
|
|
|
|
text-decoration: underline 1px solid currentColor;
|
|
|
|
cursor: pointer;
|
2023-10-19 12:56:08 +00:00
|
|
|
}
|
|
|
|
</style>
|
2023-10-21 22:37:05 +00:00
|
|
|
<a class="wikilink"><slot name="wikilink-text">{Wikilink text}</slot></a>
|
2023-10-19 12:56:08 +00:00
|
|
|
</template>
|
|
|
|
<template id="template-hashtag">
|
|
|
|
<style>
|
|
|
|
.hashtag {
|
2023-10-20 01:44:56 +00:00
|
|
|
background-color: color-mix(in srgb, var(--color-accent) 20%, transparent);
|
|
|
|
color: var(--color-accent);
|
2023-10-19 12:56:08 +00:00
|
|
|
}
|
|
|
|
</style>
|
2023-10-21 22:37:05 +00:00
|
|
|
<span class="hashtag"><slot name="hashtag-text">{#Hashtag}</slot></span>
|
2023-10-19 12:56:08 +00:00
|
|
|
</template>
|
2023-10-20 01:44:56 +00:00
|
|
|
</head>
|
|
|
|
<body>
|
2023-10-21 22:37:05 +00:00
|
|
|
<x-display root vref="https://raw.githubusercontent.com/Steffo99/appunti-magistrali/main/" wref="8 - Crittografia applicata/1 - Concetti/3 - Casualità ed entropia/★ mappa concettuale.canvas"/>
|
2023-10-18 21:23:22 +00:00
|
|
|
</body>
|
|
|
|
</html>
|