-
Notifications
You must be signed in to change notification settings - Fork 286
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Display Bootstrap-like tooltips for menu items #1249
Open
vanithaak
wants to merge
20
commits into
publiclab:main
Choose a base branch
from
vanithaak:tooltip
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
87f5076
detect key from longer URL
vanithaak f6225c3
Merge branch 'main' of https://github.com/vanithaak/Leaflet.Distortab…
vanithaak 4976617
Merge branch 'publiclab:main' into main
vanithaak c71fc06
Merge branch 'publiclab:main' into main
vanithaak 8db3a8e
Merge branch 'publiclab:main' into main
vanithaak 1dca9e3
Merge branch 'publiclab:main' into main
vanithaak 7cbcb80
fixes
vanithaak 24df784
Merge branch 'main' of https://github.com/vanithaak/Leaflet.Distortab…
vanithaak 47f1aa2
Merge branch 'publiclab:main' into main
vanithaak 07c7e94
Merge branch 'publiclab:main' into main
vanithaak 773c2fe
Merge branch 'publiclab:main' into main
vanithaak 13c6402
Merge branch 'publiclab:main' into main
vanithaak 67b2862
updates
vanithaak 54b59a3
Merge branch 'publiclab:main' into main
vanithaak 439e1f3
Merge branch 'publiclab:main' into main
vanithaak 5af6baf
bootstrap tooltip
vanithaak 8a74edb
error fixes
vanithaak bae479d
Merge branch 'main' into tooltip
vanithaak 87ab889
data-bs-toggle: tooltip, instead of top
vanithaak bee6134
Merge branch 'main' into tooltip
vanithaak File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,13 +10,16 @@ | |
<link rel="stylesheet" href="../dist/vendor.css"> | ||
<link rel="stylesheet" href="../dist/leaflet.distortableimage.css" media="screen" title="no title"> | ||
<link rel="stylesheet" href="https://unpkg.com/leaflet-control-geocoder/dist/Control.Geocoder.css" /> | ||
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-Zenh87qX5JnK2Jl0vWa8Ck2rdkQ2Bzep5IDxbcnCeuOxjzrPF/et3URy9Bv1WTRi" crossorigin="anonymous"> | ||
|
||
<script src="../node_modules/leaflet/dist/leaflet.js" type="text/javascript" charset="utf-8"></script> | ||
<script src="../dist/vendor.js"></script> | ||
<script src="../dist/leaflet.distortableimage.js"></script> | ||
<script src="./js/index.js" defer></script> | ||
<script src="https://maps.googleapis.com/maps/api/js?key=<key>&libraries=places"></script> | ||
<script src="https://unpkg.com/leaflet-control-geocoder/dist/Control.Geocoder.js"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/@popperjs/[email protected]/dist/umd/popper.min.js" integrity="sha384-oBqDVmMz9ATKxIep9tiCxS/Z9fNfEXiDAYTujMAeBAsjFuCZSmKbSSUnQlmh/jp3" crossorigin="anonymous"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.min.js" integrity="sha384-IDwe1+LCz02ROU9k972gdyvl+AESN10+x7tBKgc9I5HFtuNz0wWnPclzo6p9vxnk" crossorigin="anonymous"></script> | ||
</head> | ||
<body style="margin:0;"> | ||
<form id="test_form"> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So, here is I think the issue.
tooltipTriggerList
evaluates to an empty NodeList. I think we're running this code too early. If you want to run it AFTER page JS activity is complete, we can put it under the(function() {
line. That defers execution until the page is ready. Can we do that? We may need to define it with global scope above, then set it once the page is ready.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi, I tried what you suggested
This is how it looks like now. I'm still not able to see the tooltip : (