whitmanarchive / whitman-LG_1855_variorum

Data Repo for in progress variorum
0 stars 0 forks source link

Update js dealing with prev/next in image comparison viewer #107

Closed nichgray closed 5 years ago

nichgray commented 5 years ago

I added a display:none; to the prev_next class for the image comparison viewer to increase the image space on small screens. At some point we should update the js, rather than just hiding them.

nichgray commented 5 years ago

Removed. Here's code for safekeeping:

// previous and next links / var prev_next = '

'; if (currentSnippetIndex > 0) { var previous = snippets[currentSnippetIndex-1]; prev_next += ('<a href="'+viewerUrl+'?base='+previous["link"]+ '">Previous ('+previous["label"] +')'); } if (currentSnippetIndex < snippets.length-1) { var next = snippets[currentSnippetIndex+1]; prev_next += ('<a href="'+viewerUrl+'?base='+next["link"] +'">Next ('+next["label"] +')'); } prev_next += '
'; nav.innerHTML += prev_next;/