-
Notifications
You must be signed in to change notification settings - Fork 662
/
data-ajax-en.hbs
144 lines (139 loc) · 6.74 KB
/
data-ajax-en.hbs
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
140
141
142
143
144
---
{
"title": "Data Ajax",
"language": "en",
"category": "Plugin",
"description": "A basic AjaxLoader wrapper that inserts AJAXed-in content.",
"tag": "data-ajax",
"parentdir": "data-ajax",
"altLangPrefix": "data-ajax",
"css": ["demo/data-ajax"],
"dateModified": "2014-02-19"
}
---
<p>A basic AjaxLoader wrapper that inserts AJAXed in content.</p>
<section class="wb-prettify all-pre">
<h2>Insert content after an element (data-ajax-after)</h2>
<section>
<h3>Example</h3>
<section data-ajax-after="ajax/data-ajax-extra-en.html" class="original">
<h4>Hello World</h4>
<p>Example text. Example text. Example text. Example text. Example text. Example text. Example text. Example text. Example text. Example text.</p>
</section>
<section data-ajax-after="ajax/data-ajax-extra-2-en.html" class="original">
<h4>Hello World - Part 2</h4>
<p>Different example text. Different example text. Different example text. Different example text. Different example text. Different example text.</p>
</section>
<details>
<summary>View code</summary>
<pre><code><section data-ajax-after="ajax/data-ajax-extra-en.html" class="original">
<h4>Hello World</h4>
<p>Example text. Example text. Example text. Example text. Example text. Example text. Example text. Example text. Example text. Example text.</p>
</section>
<section data-ajax-after="ajax/data-ajax-extra-2-en.html" class="original">
<h4>Hello World - Part 2</h4>
<p>Different example text. Different example text. Different example text. Different example text. Different example text. Different example text.</p>
</section></code></pre>
</details>
</section>
</section>
<section>
<h2>Append content to an element (data-ajax-append)</h2>
<section>
<h3>Example</h3>
<div data-ajax-append="ajax/data-ajax-extra-en.html" class="original">
<p>Example text. Example text. Example text. Example text. Example text. Example text. Example text. Example text. Example text. Example text.</p>
</div>
<div data-ajax-append="ajax/data-ajax-extra-2-en.html" class="original">
<p>Different example text. Different example text. Different example text. Different example text. Different example text. Different example text.</p>
</div>
<details>
<summary>View code</summary>
<pre><code><div data-ajax-append="ajax/data-ajax-extra-en.html" class="original">
<p>Example text. Example text. Example text. Example text. Example text. Example text. Example text. Example text. Example text. Example text.</p>
</div>
<div data-ajax-append="ajax/data-ajax-extra-2-en.html" class="original">
<p>Different example text. Different example text. Different example text. Different example text. Different example text. Different example text.</p>
</div></code></pre>
</details>
</section>
</section>
<section>
<h2>Insert content before an element (data-ajax-before)</h2>
<section>
<h3>Example</h3>
<section data-ajax-before="ajax/data-ajax-extra-en.html" class="original">
<h4>Hello World</h4>
<p>Example text. Example text. Example text. Example text. Example text. Example text. Example text. Example text. Example text. Example text.</p>
</section>
<section data-ajax-before="ajax/data-ajax-extra-2-en.html" class="original">
<h4>Hello World - Part 2</h4>
<p>Different example text. Different example text. Different example text. Different example text. Different example text. Different example text.</p>
</section>
<details>
<summary>View code</summary>
<pre><code><section data-ajax-before="ajax/data-ajax-extra-en.html" class="original">
<h4>Hello World</h4>
<p>Example text. Example text. Example text. Example text. Example text. Example text. Example text. Example text. Example text. Example text.</p>
</section>
<section data-ajax-before="ajax/data-ajax-extra-2-en.html" class="original">
<h4>Hello World - Part 2</h4>
<p>Different example text. Different example text. Different example text. Different example text. Different example text. Different example text.</p>
</section></code></pre>
</details>
</section>
</section>
<section>
<h2>Prepend content to an element (data-ajax-prepend)</h2>
<section>
<h3>Example</h3>
<div data-ajax-prepend="ajax/data-ajax-extra-en.html" class="original">
<p>Example text. Example text. Example text. Example text. Example text. Example text. Example text. Example text. Example text. Example text.</p>
</div>
<div data-ajax-prepend="ajax/data-ajax-extra-2-en.html" class="original">
<p>Different example text. Different example text. Different example text. Different example text. Different example text. Different example text.</p>
</div>
<details>
<summary>View code</summary>
<pre><code><div data-ajax-prepend="ajax/data-ajax-extra-en.html" class="original">
<p>Example text. Example text. Example text. Example text. Example text. Example text. Example text. Example text. Example text. Example text.</p>
</div>
<div data-ajax-prepend="ajax/data-ajax-extra-2-en.html" class="original">
<p>Different example text. Different example text. Different example text. Different example text. Different example text. Different example text.</p>
</div></code></pre>
</details>
</section>
</section>
<section>
<h2>Replaces an element (data-ajax-replace)</h2>
<section>
<h3>Example</h3>
<div data-ajax-replace="ajax/data-ajax-extra-en.html" class="original">
<section>
<h4>Hello World</h4>
<p>Example text. Example text. Example text. Example text. Example text. Example text. Example text. Example text. Example text. Example text.</p>
</section>
</div>
<div data-ajax-replace="ajax/data-ajax-extra-2-en.html" class="original">
<section>
<h4>Hello World - Part 2</h4>
<p>Different example text. Different example text. Different example text. Different example text. Different example text. Different example text.</p>
</section>
</div>
<details>
<summary>View code</summary>
<pre><code><div data-ajax-replace="ajax/data-ajax-extra-en.html" class="original">
<section>
<h4>Hello World</h4>
<p>Example text. Example text. Example text. Example text. Example text. Example text. Example text. Example text. Example text. Example text.</p>
</section>
</div>
<div data-ajax-replace="ajax/data-ajax-extra-2-en.html" class="original">
<section>
<h4>Hello World - Part 2</h4>
<p>Different example text. Different example text. Different example text. Different example text. Different example text. Different example text.</p>
</section>
</div></code></pre>
</details>
</section>
</section>