-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathchapter.js
30 lines (27 loc) · 1.58 KB
/
chapter.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/*=====================================================================*/
/* serrano/diffusion/talk/pliss23/chapter.js */
/* ------------------------------------------------------------- */
/* Author : Manuel Serrano */
/* Creation : Sun Oct 18 17:00:13 2015 */
/* Last change : Tue Aug 22 10:27:31 2023 (serrano) */
/* Copyright : 2015-23 Manuel Serrano */
/* ------------------------------------------------------------- */
/* chapter */
/*=====================================================================*/
"use hopscript";
/*---------------------------------------------------------------------*/
/* imports */
/*---------------------------------------------------------------------*/
import * as impress from "hopimpress-0.6.*.hz";
import * as config from "./config.js";
export { CHAPTER };
/*---------------------------------------------------------------------*/
/* chapter ... */
/*---------------------------------------------------------------------*/
function CHAPTER(attrs, ... nodes) {
return <impress.slide title=${"== " + attrs.title + " =="} class="chapter">
${ attrs.number ? <div class="number">Chapter ${attrs.number}</div> : "" }
<div class="title">${attrs.title}</div>
<div class="legend">${ nodes }</div>
</impress.slide>;
}