import popper.js
Signed-off-by: Nico Schottelius <nico@nico-notebook.schottelius.org>
This commit is contained in:
parent
615dc56d16
commit
16fb2bb919
241 changed files with 34099 additions and 0 deletions
38
assets/u/static/popper.js-1.16.0/docs/_includes/example40.html
Executable file
38
assets/u/static/popper.js-1.16.0/docs/_includes/example40.html
Executable file
|
|
@ -0,0 +1,38 @@
|
|||
<div class="rel" id="example4reference1">
|
||||
<p class="bold">Reference</p>
|
||||
</div>
|
||||
|
||||
<div class="popper" id="example4popper1">
|
||||
<p class="bold">Shifted popper</p>
|
||||
<p class="thin">on start</p>
|
||||
<div class="popper__arrow" x-arrow></div>
|
||||
</div>
|
||||
|
||||
<div class="popper" id="example4popper2">
|
||||
<p class="bold">Shifted popper</p>
|
||||
<p class="thin">on end</p>
|
||||
<div class="popper__arrow" x-arrow></div>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
document.addEventListener('DOMContentLoaded', function(){
|
||||
var shiftStart = new Popper(example4reference1, example4popper1, {
|
||||
placement: 'left-start',
|
||||
});
|
||||
|
||||
var shiftEnd = new Popper(example4reference1, example4popper2, {
|
||||
placement: 'bottom-end',
|
||||
});
|
||||
|
||||
}, false);
|
||||
</script>
|
||||
|
||||
<style>
|
||||
#example4popper1,
|
||||
#example4popper2 {
|
||||
width: 100px;
|
||||
}
|
||||
#example4popper1 {
|
||||
height: 150px;
|
||||
}
|
||||
</style>
|
||||
Loading…
Add table
Add a link
Reference in a new issue