Co-author visualization: Change cursor type when hovering over link

This commit is contained in:
gneissone 2019-10-21 16:07:52 -06:00 committed by Andrew Woods
parent e80efb863a
commit 6481558597
2 changed files with 6 additions and 2 deletions

View file

@ -201,12 +201,14 @@ $(document).ready(function(){
if (opacity > .5) {
var chordInfoDiv = d3.select('#chord-info-div');
chordInfoDiv.style('display', 'none');
$('#chord').css('cursor', 'default');
} else {
var hoverEvent = d3.event;
var topPos = hoverEvent.pageY - 60;
var leftPos = hoverEvent.pageX + 10;
var chord = d3.select('#chord').node();
$('#chord').css('cursor', 'pointer');
var chordInfoDiv = d3.select('#chord-info-div');
var hoverMsg = labels[i] + "<br/>";
if (i > 0) {
@ -241,7 +243,7 @@ $(document).ready(function(){
function chord_click() {
return function (g, i) {
if (i > 0) {
if (i >= 0) {
window.location.href = getWellFormedURLs(uris[i], "profile");
}
};

View file

@ -205,12 +205,14 @@ $(document).ready(function(){
if (opacity > .5) {
var chordInfoDiv = d3.select('#chord-info-div');
chordInfoDiv.style('display', 'none');
$('#chord').css('cursor', 'default');
} else {
var hoverEvent = d3.event;
var topPos = hoverEvent.pageY - 60;
var leftPos = hoverEvent.pageX + 10;
var chord = d3.select('#chord').node();
$('#chord').css('cursor', 'pointer');
var chordInfoDiv = d3.select('#chord-info-div');
var hoverMsg = labels[i] + "<br/>";
if (i > 0) {
@ -245,7 +247,7 @@ $(document).ready(function(){
function chord_click() {
return function (g, i) {
if (i > 0) {
if (i >= 0) {
window.location.href = getWellFormedURLs(uris[i], "profile");
}
};