-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
81 lines (76 loc) · 2.71 KB
/
index.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
<!DOCTYPE html>
<html>
<head>
<title>Concealed.js</title>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="description" content="Tired of Lorem Ipsum? Use dummy text blocks.">
<meta name="author" content="Leonardo Kewitz">
<meta name="keywords" content="Leonardo Kewitz, Software Engineer, JavaScript">
<meta property="og:description" content="Tired of Lorem Ipsum? Use dummy text blocks.">
<meta property="og:title" content="Concealed.js">
<link href="styles/style.css" rel="stylesheet">
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet" integrity="sha384-wvfXpqpZZVQGK6TAh5PVlGOfQNHSoD2xbE+QkPxCAFlNEevoEH3Sl0sibVcOQVnN" crossorigin="anonymous">
<script src="concealed.js"></script>
<!-- Highlight.JS -->
<link rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/styles/color-brewer.min.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/highlight.min.js"></script>
<script>hljs.initHighlightingOnLoad();</script>
</head>
<body>
<header>
<div class="content">
<h1 data-conceal="2"></h1>
<div class="summary" data-conceal="10"></div>
</div>
</header>
<section>
<div class="content">
<h1 data-conceal="3"></h1>
<div class="summary" data-conceal="15"></div>
<pre><code class="html"><head>
...
<script src="concealed.js"></script>
</head>
<body>
...
<h1 data-conceal="3"></h1>
<div class="summary" data-conceal="15"></div>
...
<script>
Conceal()
</script>
</body></code></pre>
<div class="summary" data-conceal="15"></div>
<pre><code class="js">import conceal from "concealed";
import React from "react";
import ReactDOM from "react-dom";
const App = () => (
<div>
<div className="content">
<h1 data-conceal="2" />
</div>
<div className="content">
<h2 data-conceal="4" />
<div className="summary" data-conceal="50" />
</div>
<div className="content">
<h2 data-conceal="3" />
<div className="summary" data-conceal="30" />
</div>
<div className="content">
<h2 data-conceal="2" />
<div className="summary" data-conceal="20" />
</div>
</div>
);
ReactDOM.render(<App />, document.body);
conceal();</code></pre>
</div>
</section>
<script>
Conceal()
</script>
</body>
</html>