Browse Source

audio

master
rdrew 3 weeks ago
parent
commit
e1f7c011dc
  1. 1
      css/components/islandora_mods.css
  2. 2
      js/audio-tooltip.js

1
css/components/islandora_mods.css

@ -2,6 +2,7 @@
.audio-tooltip { .audio-tooltip {
position: absolute; position: absolute;
background: #2d2d2d; background: #2d2d2d;
background: #9a5152;
color: white; color: white;
padding: 8px 12px; padding: 8px 12px;
border-radius: 6px; border-radius: 6px;

2
js/audio-tooltip.js

@ -10,7 +10,7 @@
// Create tooltip // Create tooltip
const tooltip = document.createElement('div'); const tooltip = document.createElement('div');
tooltip.className = 'audio-tooltip'; tooltip.className = 'audio-tooltip';
tooltip.innerHTML = `<a href="${href}" class="audio-tooltip-link">Go to page →</a>`; tooltip.innerHTML = `<a href="${href}" class="audio-tooltip-link">View Transcript →</a>`;
document.body.appendChild(tooltip); document.body.appendChild(tooltip);
let cleanup = null; let cleanup = null;

Loading…
Cancel
Save