Skip to content

Commit

Permalink
Replaces jquery ui bubble popup with newer tooltip API. Preliminary e…
Browse files Browse the repository at this point in the history
…fforts were made to use bootstrap's tooltip but bootstrap and jquery ui don't place nice and override each other's functionality. There is likely a way offset the bad effects but it also seems hazardous at the moment as we just want to replicate tooltip functionality. Also removes jQuery 1.5.1 imports
  • Loading branch information
iccole committed Jan 22, 2025
1 parent 6ecbdb1 commit d577ab9
Show file tree
Hide file tree
Showing 15 changed files with 18 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
</title>
<link rel="stylesheet" href="/css/custom-theme/jquery-ui-1.14.1.min.css" type="text/css" media="screen" title="no title" charset="utf-8">
<link rel="stylesheet" href="/css/custom-theme/jquery-ui-dul-theme-shim.css" type="text/css" media="screen" title="no title" charset="utf-8">
<script src="/js/jquery-1.5.1.min.js" type="text/javascript" charset="utf-8"></script>
<script src="/js/jquery-3.7.1.min.js" type="text/javascript" charset="utf-8"></script>
<script src="/js/jquery-migrate-3.5.2.min.js" type="text/javascript" charset="utf-8"></script>
<script src="/js/jquery-ui-1.14.1.min.js" type="text/javascript" charset="utf-8"></script>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
= Trismegistos <a href="http://www.trismegistos.org/text/8311">8311</a></title>
<link rel="stylesheet" href="/css/custom-theme/jquery-ui-1.14.1.min.css" type="text/css" media="screen" title="no title" charset="utf-8">
<link rel="stylesheet" href="/css/custom-theme/jquery-ui-dul-theme-shim.css" type="text/css" media="screen" title="no title" charset="utf-8">
<script src="/js/jquery-1.5.1.min.js" type="text/javascript" charset="utf-8"></script>
<script src="/js/jquery-3.7.1.min.js" type="text/javascript" charset="utf-8"></script>
<script src="/js/jquery-migrate-3.5.2.min.js" type="text/javascript" charset="utf-8"></script>
<script src="/js/jquery-ui-1.14.1.min.js" type="text/javascript" charset="utf-8"></script>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
</title>
<link rel="stylesheet" href="/css/custom-theme/jquery-ui-1.14.1.min.css" type="text/css" media="screen" title="no title" charset="utf-8">
<link rel="stylesheet" href="/css/custom-theme/jquery-ui-dul-theme-shim.css" type="text/css" media="screen" title="no title" charset="utf-8">
<script src="/js/jquery-1.5.1.min.js" type="text/javascript" charset="utf-8"></script>
<script src="/js/jquery-3.7.1.min.js" type="text/javascript" charset="utf-8"></script>
<script src="/js/jquery-migrate-3.5.2.min.js" type="text/javascript" charset="utf-8"></script>
<script src="/js/jquery-ui-1.14.1.min.js" type="text/javascript" charset="utf-8"></script>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
= Trismegistos <a href="http://www.trismegistos.org/text/78225">78225</a></title>
<link rel="stylesheet" href="/css/custom-theme/jquery-ui-1.14.1.min.css" type="text/css" media="screen" title="no title" charset="utf-8">
<link rel="stylesheet" href="/css/custom-theme/jquery-ui-dul-theme-shim.css" type="text/css" media="screen" title="no title" charset="utf-8">
<script src="/js/jquery-1.5.1.min.js" type="text/javascript" charset="utf-8"></script>
<script src="/js/jquery-3.7.1.min.js" type="text/javascript" charset="utf-8"></script>
<script src="/js/jquery-migrate-3.5.2.min.js" type="text/javascript" charset="utf-8"></script>
<script src="/js/jquery-ui-1.14.1.min.js" type="text/javascript" charset="utf-8"></script>
Expand Down
1 change: 0 additions & 1 deletion pn-dispatcher/src/test/resources/biblio/2/1234.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
<title>1234</title>
<link rel="stylesheet" href="/css/custom-theme/jquery-ui-1.14.1.min.css" type="text/css" media="screen" title="no title" charset="utf-8">
<link rel="stylesheet" href="/css/custom-theme/jquery-ui-dul-theme-shim.css" type="text/css" media="screen" title="no title" charset="utf-8">
<script src="/js/jquery-1.5.1.min.js" type="text/javascript" charset="utf-8"></script>
<script src="/js/jquery-3.7.1.min.js" type="text/javascript" charset="utf-8"></script>
<script src="/js/jquery-migrate-3.5.2.min.js" type="text/javascript" charset="utf-8"></script>
<script src="/js/jquery-ui-1.14.1.min.js" type="text/javascript" charset="utf-8"></script>
Expand Down
1 change: 0 additions & 1 deletion pn-site/authorbrowse.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
<link rel="stylesheet" href="/css/master.css" type="text/css" media="screen" title="no title" charset="utf-8">
<link rel="stylesheet" href="/css/custom-theme/jquery-ui-1.14.1.min.css" type="text/css" media="screen" title="no title" charset="utf-8">
<link rel="stylesheet" href="/css/custom-theme/jquery-ui-dul-theme-shim.css" type="text/css" media="screen" title="no title" charset="utf-8">
<script src="/js/jquery-1.5.1.min.js" type="text/javascript" charset="utf-8"></script>
<script src="/js/jquery-3.7.1.min.js" type="text/javascript" charset="utf-8"></script>
<script src="/js/jquery-migrate-3.5.2.min.js" type="text/javascript" charset="utf-8"></script>
<script src="/js/jquery-ui-1.14.1.min.js" type="text/javascript" charset="utf-8"></script>
Expand Down
1 change: 0 additions & 1 deletion pn-site/bibliosearch.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
<link rel="stylesheet" href="/css/master.css" type="text/css" media="screen" title="no title" charset="utf-8">
<link rel="stylesheet" href="/css/custom-theme/jquery-ui-1.14.1.min.css" type="text/css" media="screen" title="no title" charset="utf-8">
<link rel="stylesheet" href="/css/custom-theme/jquery-ui-dul-theme-shim.css" type="text/css" media="screen" title="no title" charset="utf-8">
<script src="/js/jquery-1.5.1.min.js" type="text/javascript" charset="utf-8"></script>
<script src="/js/jquery-3.7.1.min.js" type="text/javascript" charset="utf-8"></script>
<script src="/js/jquery-migrate-3.5.2.min.js" type="text/javascript" charset="utf-8"></script>
<script src="/js/jquery-ui-1.14.1.min.js" type="text/javascript" charset="utf-8"></script>
Expand Down
1 change: 0 additions & 1 deletion pn-site/browse.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
<link rel="stylesheet" href="/css/master.css" type="text/css" media="screen" title="no title" charset="utf-8">
<link rel="stylesheet" href="/css/custom-theme/jquery-ui-1.14.1.min.css" type="text/css" media="screen" title="no title" charset="utf-8">
<link rel="stylesheet" href="/css/custom-theme/jquery-ui-dul-theme-shim.css" type="text/css" media="screen" title="no title" charset="utf-8">
<script src="/js/jquery-1.5.1.min.js" type="text/javascript" charset="utf-8"></script>
<script src="/js/jquery-3.7.1.min.js" type="text/javascript" charset="utf-8"></script>
<script src="/js/jquery-migrate-3.5.2.min.js" type="text/javascript" charset="utf-8"></script>
<script src="/js/jquery-ui-1.14.1.min.js" type="text/javascript" charset="utf-8"></script>
Expand Down
1 change: 0 additions & 1 deletion pn-site/conventions.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
charset="utf-8" >
<link rel="stylesheet" href="/css/custom-theme/jquery-ui-1.14.1.min.css" type="text/css" media="screen" title="no title" charset="utf-8">
<link rel="stylesheet" href="/css/custom-theme/jquery-ui-dul-theme-shim.css" type="text/css" media="screen" title="no title" charset="utf-8">
<script src="/js/jquery-1.5.1.min.js" type="text/javascript" charset="utf-8"></script>
<script src="/js/jquery-3.7.1.min.js" type="text/javascript" charset="utf-8"></script>
<script src="/js/jquery-migrate-3.5.2.min.js" type="text/javascript" charset="utf-8"></script>
<script src="/js/jquery-ui-1.14.1.min.js" type="text/javascript" charset="utf-8"></script>
Expand Down
6 changes: 5 additions & 1 deletion pn-site/css/custom-theme/jquery-ui-dul-theme-shim.css
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,8 @@ div.content.search {
.search-closed .facet-widget.date-facet-widget { display: none }
.facet-widget.date-facet-widget input.custom-combobox-input { width: auto }
#id-selector-wrapper input.custom-combobox-input { width: auto }
}
}

.tooltip-dul-custom {
opacity: 95%;
}
1 change: 0 additions & 1 deletion pn-site/feedback.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
<link rel="stylesheet" href="css/master.css" type="text/css" media="screen" title="no title" charset="utf-8">
<link rel="stylesheet" href="/css/custom-theme/jquery-ui-1.14.1.min.css" type="text/css" media="screen" title="no title" charset="utf-8">
<link rel="stylesheet" href="/css/custom-theme/jquery-ui-dul-theme-shim.css" type="text/css" media="screen" title="no title" charset="utf-8">
<script src="/js/jquery-1.5.1.min.js" type="text/javascript" charset="utf-8"></script>
<script src="/js/jquery-3.7.1.min.js" type="text/javascript" charset="utf-8"></script>
<script src="/js/jquery-migrate-3.5.2.min.js" type="text/javascript" charset="utf-8"></script>
<script src="/js/jquery-ui-1.14.1.min.js" type="text/javascript" charset="utf-8"></script>
Expand Down
1 change: 0 additions & 1 deletion pn-site/force-graph.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
<link rel="stylesheet" href="/css/master.css" type="text/css" media="screen" title="no title" charset="utf-8">
<link rel="stylesheet" href="/css/custom-theme/jquery-ui-1.14.1.min.css" type="text/css" media="screen" title="no title" charset="utf-8">
<link rel="stylesheet" href="/css/custom-theme/jquery-ui-dul-theme-shim.css" type="text/css" media="screen" title="no title" charset="utf-8">
<script src="/js/jquery-1.5.1.min.js" type="text/javascript" charset="utf-8"></script>
<script src="/js/jquery-3.7.1.min.js" type="text/javascript" charset="utf-8"></script>
<script src="/js/jquery-migrate-3.5.2.min.js" type="text/javascript" charset="utf-8"></script>
<script src="/js/jquery-ui-1.14.1.min.js" type="text/javascript" charset="utf-8"></script>
Expand Down
13 changes: 13 additions & 0 deletions pn-site/js/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,19 @@ function init() {
}
alignRTL();
jQuery("#tmgo").button();
jQuery("span.term").each( function (i, elt) {
const htmlContent = $(elt).find("span.gloss").html();
if (htmlContent) {
$(elt).tooltip({
content: innerContent,
position: {
my: "center bottom",
at: "center top",
},
classes: 'tooltip-dul-custom'
});
}
});
jQuery.ajax({
type: "GET",
url: "/editor/user/info",
Expand Down
1 change: 0 additions & 1 deletion pn-site/template.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
<link rel="stylesheet" href="/css/master.css" type="text/css" media="screen" title="no title" charset="utf-8">
<link rel="stylesheet" href="/css/custom-theme/jquery-ui-1.14.1.min.css" type="text/css" media="screen" title="no title" charset="utf-8">
<link rel="stylesheet" href="/css/custom-theme/jquery-ui-dul-theme-shim.css" type="text/css" media="screen" title="no title" charset="utf-8">
<script src="/js/jquery-1.5.1.min.js" type="text/javascript" charset="utf-8"></script>
<script src="/js/jquery-3.7.1.min.js" type="text/javascript" charset="utf-8"></script>
<script src="/js/jquery-migrate-3.5.2.min.js" type="text/javascript" charset="utf-8"></script>
<script src="/js/jquery-ui-1.14.1.min.js" type="text/javascript" charset="utf-8"></script>
Expand Down
1 change: 0 additions & 1 deletion pn-xslt/Biblio2HTML.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
<title><xsl:value-of select="t:bibl/t:idno[@type='pi']"/></title>
<link rel="stylesheet" href="/css/custom-theme/jquery-ui-1.14.1.min.css" type="text/css" media="screen" title="no title" charset="utf-8" />
<link rel="stylesheet" href="/css/custom-theme/jquery-ui-dul-theme-shim.css" type="text/css" media="screen" title="no title" charset="utf-8" />
<script src="/js/jquery-1.5.1.min.js" type="text/javascript" charset="utf-8"></script>
<script src="/js/jquery-3.7.1.min.js" type="text/javascript" charset="utf-8"></script>
<script src="/js/jquery-migrate-3.5.2.min.js" type="text/javascript" charset="utf-8"></script>
<script src="/js/jquery-ui-1.14.1.min.js" type="text/javascript" charset="utf-8"></script>
Expand Down

0 comments on commit d577ab9

Please sign in to comment.