In this example, a Single HTML source is used for various injections.
-
Place "Rilke" in frame 1 after 2 seconds
<a href="demo/inject-sources.html#pos-1" class="pat-inject">
-
Place "Wilde" in frame 2
<a href="demo/inject-sources.html#pos-2" class="pat-inject">
-
Place "Cocteau" in frame 3
<a href="demo/inject-sources.html#pos-3" class="pat-inject">
-
Place "Cocteau" in frame 1, "Rilke" in frame 2 and
"Wilde" in frame 3
<a href="demo/inject-sources.html" data-pat-inject="#pos-3 #pos-1 &&#pos-1 #pos-2 &&#pos-2 #pos-3" class="pat-inject">
-
Place "Cocteau" in all frames
<a href="demo/inject-sources.html#pos-3" data-pat-inject="source: #pos-3; target: .item article" class="pat-inject">Place "Cocteau" in all frames</a>
-
Autoloads "Wilde" in frame 3 after 2 seconds
Load
<a href="demo/inject-sources.html#pos-2" data-pat-inject="source: #pos-2; target: #pos-3; trigger: autload; delay: 2000" class="pat-inject">Autoloads "Wilde" in frame 3 after a 2 second delay</a>
Click quickly to prevent Wilde and load Rilke instead -
Autoloads "Wilde" in frame 1 after you are idle for 2
seconds
Load
<a href="demo/inject-sources.html#pos-2" data-pat-inject="source: #pos-2; target: #pos-4; trigger: autload; delay: 2000" class="pat-inject">Autoloads "Wilde" in frame 4 after a 2 second delay</a>
-
Place "Wilde" in frame 2 on push (push_marker:
content-updated)
<a href="demo/inject-sources.html#pos-2" class="pat-inject" data-pat-inject="push-marker: content-updated">
-
Trigger an inject that fails. (Puts an error message in
a data attribute on the body tag)
<a href="page-that-doesnt-exist" class="pat-inject">
- Place "Wilde in column 2 when
?
?
?