-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdemo.html
74 lines (70 loc) · 2.73 KB
/
demo.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Include JS (Visual) Tests</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="//fonts.googleapis.com/css?family=Raleway:400,300,600" rel="stylesheet" type="text/css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/3.0.3/normalize.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/skeleton/2.0.4/skeleton.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/prettify/r298/prettify.css">
<script src="//cdnjs.cloudflare.com/ajax/libs/prettify/r298/prettify.js"></script>
<style>
p { line-height: initial; }
iframe { background-color: #EEE; border: 1px solid #AAA; box-shadow: inset 0 0 5px #AAA; height: 250px; width: 100%; }
pre code { font-size: 10px; padding: 10px; }
</style>
</head>
<body class="container">
<h1>Include JS (Visual) Tests</h1>
<h3>Examples</h3>
<div class="row">
<div class="four columns">
<pre><code class="prettyprint"><include src="header.html"></include>
<article>
<p>
We are ACME Inc. We manufacture
<b>everything</b>.
</p>
</article>
<include src="footer.html"></include></code></pre>
</div>
<div class="four columns">
<pre><code class="prettyprint"><ul>
<li><include src="a.html"></include></li>
<li><include src="b.html"></include></li>
</ul></code></pre>
</div>
<div class="four columns">
<pre><code class="prettyprint"><h1>Welcome!</h1>
<p>
Inclusion below displays 404 content.
</p>
<include src="huh.html"></include></code></pre>
</div>
</div>
<div class="row">
<div class="four columns">
<iframe src="simple.html"></iframe>
<p>
Should display a large header "ACME Inc" (in file <code>header.html</code>) and a small footer "Copyright 2016"
(in file <code>footer.html</code>).
</p>
</div>
<div class="four columns">
<iframe src="deep.html"></iframe>
<p>
Should display a cascading set of paragraphs included from each other (seven in total).
</p>
</div>
<div class="four columns">
<iframe src="error.html"></iframe>
<p>
Should display a 404 error. Using CSS we color the content red based on the status. The exact nature of
the 404 content depends on what the server returns.
</p>
</div>
</div>
<script>prettyPrint()</script>
</body>
</html>