forked from stephband/dom
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.template.html
139 lines (122 loc) · 5.08 KB
/
index.template.html
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
<!DOCTYPE html>
<html lang="en">
<head build-fn="fetch:package.json">
<template build-src="/fn/templates.html#head-template"></template>
<script build-remove>
window.DEBUG = true;
</script>
<link rel="stylesheet" href="style.min.css" />
<!--link rel="stylesheet" href="style.css" /-->
</head>
<body class="@3-12-grid grid">
<header class="x-1 3x @1-6x @2-9x @3-x-2 @3-9x" id="header">
<template build-fn="fetch:package.json" build-src="/fn/templates.html#header-template"></template>
</header>
<section class="x-1 3x @1-6x @2-9x @3-x-2 grid" locateable id="functions">
<header class="x-1 3x @1-4x">
<h2 class="doctext-02">Functions</h2>
</header>
<div class="x-1 3x @2-4x">
<p>Import functions:</p>
<pre><code class="language-js">import { closest, matches } from '/dom/module.js';</code></pre>
<p>All functions that take more than one parameter are partially applicable.</p>
</div>
<div class="x-1 3x column-grid grid">
<div class="x-1">
<h4 class="doctext-03">select.</h4>
<template build-fn="docs:
modules/closest.js,
modules/children.js,
modules/find.js,
modules/matches.js,
modules/select.js
filter-function each" build-src="/fn/templates.html#{[type]}-template"></template>
</div>
<div class="x-1">
<h4 class="doctext-03">inspect.</h4>
<template build-fn="docs:
modules/attribute.js,
modules/identify.js,
modules/media.js,
modules/tag.js,
modules/nodes.js
filter-function each" build-src="/fn/templates.html#{[type]}-template"></template>
</div>
<div class="x-1">
<h4 class="doctext-03">mutate.</h4>
<template build-fn="docs:
modules/append.js,
modules/assign.js,
modules/create.js,
modules/clone.js,
modules/prepend.js
filter-function each" build-src="/fn/templates.html#{[type]}-template"></template>
</div>
</div>
<div class="x-1 3x @1-x-4 column-grid grid">
<div class="x-1">
<h4 class="doctext-03">events.</h4>
<template build-fn="docs:
modules/events.js,
modules/gestures.js,
modules/trap-focus.js,
modules/trigger.js,
modules/to-key.js,
modules/event.js
filter-function each" build-src="/fn/templates.html#{[type]}-template"></template>
</div>
<div class="x-1">
<h4 class="doctext-03">style.</h4>
<template build-fn="docs:
modules/classes.js,
modules/offset.js,
modules/prefix.js,
modules/rect.js,
modules/scroll-ratio.js,
modules/scroll.js,
modules/style.js
filter-function each" build-src="/fn/templates.html#{[type]}-template"></template>
</div>
</div>
<div class="x-1 3x @2-x-7 column-grid grid">
<div class="x-1">
<h4 class="doctext-03">animate.</h4>
<template build-fn="docs:
modules/animate.js,
modules/transition.js
filter-function each" build-src="/fn/templates.html#{[type]}-template"></template>
</div>
<div class="x-1">
<h4 class="doctext-03">HTML.</h4>
<template build-fn="docs:
modules/escape.js,
modules/fragments.js,
modules/parse.js
filter-function each" build-src="/fn/templates.html#{[type]}-template"></template>
</div>
<div class="x-1">
<h4 class="doctext-03">communicate.</h4>
<template build-fn="docs:
modules/request.js
filter-function each" build-src="/fn/templates.html#{[type]}-template"></template>
</div>
</div>
</section>
<script build-remove type="module" src="../fn/docs-build.js"></script>
<!-- Document interactivity -->
<script type="module">
import '../bolt/modules/device.js';
import '../bolt/modules/popable.js';
import '../bolt/modules/toggleable.js';
import '../bolt/modules/locateable.js';
import '../bolt/modules/submittable.js';
import '../bolt/modules/switchable.js';
import '../bolt/modules/fullscreenable.js';
import '../bolt/modules/validateable.js';
import '../bolt/components/toggle-block.js';
import * as dom from './module.js';
Object.assign(window, dom);
import gestures from './modules/gestures.new.js';
gestures({ threshold: 1 }, document).each((events) => events.each(console.log));
</script>
</body>