Llewellyn van der Merwe
d9f5a1aebc
- Add modal implementation with automatic detection for four specific libraries. - Introduce inline tooltips with library compatibility. - Implement a default stand-alone fallback for environments without supported libraries.
43 lines
1.6 KiB
HTML
43 lines
1.6 KiB
HTML
<!DOCTYPE html>
|
|
<html class="no-js" lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta http-equiv="x-ua-compatible" content="ie=edge">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
|
|
<title>Foundation Tooltips Test | GetBible</title>
|
|
|
|
<!-- Compressed CSS -->
|
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/foundation-sites@6.8.1/dist/css/foundation.min.css"
|
|
crossorigin="anonymous">
|
|
|
|
<!-- getBible JS -->
|
|
<script src="../dist/js/getBible.js"></script>
|
|
|
|
</head>
|
|
<body>
|
|
<h1>Scripture References</h1>
|
|
|
|
<p>Hover over the references to see the scripture text:</p>
|
|
|
|
<ul>
|
|
<li class="getBible" data-translation="kjv;aov" data-show-translation="1" data-show-language="1"
|
|
data-format="tooltip">John 3:16,19
|
|
</li>
|
|
<li class="getBible" data-show-abbreviation="1" data-format="modal">John 3:16-17; 1 John 3:16-19,22</li>
|
|
<li class="getBible" data-translation="kjv;codex" data-show-language="1" data-format="modal">Genesis 1:1</li>
|
|
<li class="getBible" data-translation="kjv;codex" data-show-language="1" data-format="tooltip">Psalms 23:1-4</li>
|
|
<li class="getBible">Romans 8:28,31-39</li>
|
|
</ul>
|
|
|
|
<!-- Compressed JavaScript -->
|
|
<script src="https://code.jquery.com/jquery-3.7.1.min.js"></script>
|
|
<!-- Compressed JavaScript -->
|
|
<script src="https://cdn.jsdelivr.net/npm/foundation-sites@6.8.1/dist/js/foundation.min.js"
|
|
crossorigin="anonymous"></script>
|
|
<script>
|
|
$(document).foundation();
|
|
</script>
|
|
<h3>Please help us!!! We are not getting this to work, because of jQuery, or so it seems.</h3>
|
|
</body>
|
|
</html>
|