-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html.co
41 lines (35 loc) · 1.28 KB
/
index.html.co
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
#### Retrie web interface and documentation
# Powered by [ckup](http://satyr.github.com/ckup/).
doctype \html
meta charset: \utf-8
title \Retrie
link rel:\stylesheet href:\index.css
link rel:\stylesheet href:\../coco/doc/doc.css
link rel:\icon href:\retrie.png
textarea 'if is in instanceof import' id:\words accesskey:\W
div id: \ctrls, ->
span 'Words ↑'
span 'Regex ↓'
span id: \buttons, ->
button \Exact id:\ex accesskey:\E
button \Prefixes id:\pr accesskey:\P
label 'Seperator: ' for:\sep accesskey:\S, ->
input id:\sep placeholder:\\\s+
textarea id:\regex accesskey:\R
A \https://github.com/satyr/retrie/ -> img do
alt:\fork-me-on-github id:\ribbon
src:\http://s3.amazonaws.com/github/ribbons/forkme_right_gray_6d6d6d.png
script src: \retrie.js
script 'new ' + ->
@[that] = l if l.id for l of document.body.getElementsByTagName \*
for l i of @<[ex pr]> then let
l.onclick = ~>
sp = @sep.getAttribute \placeholder
re = try RegExp @sep.value || sp catch then RegExp @sep.value = sp
@regex.value = Retrie (w if w for w of @words.value.split re), i
void
script "sources = ['retrie', 'index.html']"
script src: \../coco/doc/showdown.js
script src: \../coco/doc/prettify.js
script src: \../coco/doc/lang-co.js
script src: \../coco/doc/doc.js