Skip to content

Commit

Permalink
Template update
Browse files Browse the repository at this point in the history
  • Loading branch information
noqqe committed Nov 2, 2017
1 parent 5ddf3ea commit 9e874a2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions templates.py
Expand Up @@ -144,8 +144,9 @@
var imageDoc = document.createElement('img'); addEvent(imageDoc, "load", function () {
var imageBox = document.createElement('article'); imageBox.appendChild(imageDoc);
var srcSpan = imageBox.appendChild(document.createElement('section')); srcSpan.className = 'src '+ crawler;
var srcA = srcSpan.appendChild(document.createElement('a')); srcA.href = srcA.innerHTML = srcA.innerText = this.src;
if ( typeof onReady == "function" ) { onReady(imageBox); } }); imageDoc.src = threadUri != "None" ? threadUri : uri; };
var srcA = srcSpan.appendChild(document.createElement('a'));
srcA.href = srcA.innerHTML = srcA.innerText = threadUri != "None" ? threadUri : this.src;
if ( typeof onReady == "function" ) { onReady(imageBox); } }); imageDoc.src = uri; };
np._pushImage = function (uri, crawler, threadUri) { if ( this._imageTarget ) {
this._mkImage(uri, crawler, threadUri, function (image) { var add = ( np._state == 0 ); if ( add ) {
np._images.push(image); np._imageTarget.insertBefore(image, np._imageTarget.firstChild);
Expand Down

0 comments on commit 9e874a2

Please sign in to comment.