Skip to content

Commit 73623b1

Browse files
committed
Adding working href targets to cluster script. Doesn't work for HTTPS sites yet.
1 parent a7e0548 commit 73623b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

screenshotClustering/cluster.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ def renderClusterHtml(clust,width,height,scopeFile=None):
143143
html=html+'<TR>'
144144
html=html+'<TR><TD><img src="'+siteList[0][0:-4]+'png" width='+str(width)+' height='+str(height)+'/></TD></TR>'
145145
for site in siteList:
146-
html=html+'<TD onmouseout="clearPopup()" onmouseover="popUp(event,\''+site[0:-4]+'png\');"><a href="'+site[0:-4]+'png">'+site[site.rfind('/')+1:site.rfind('-')]+':'+site[site.rfind('-')+1:site.rfind('.')]+'</a></TD>'
146+
html=html+'<TD onmouseout="clearPopup()" onmouseover="popUp(event,\''+site[0:-4]+'png\');"><a href="http://'+site[site.rfind('/')+1:site.rfind('-')]+':'+site[site.rfind('-')+1:site.rfind('.')]+'">'+site[site.rfind('/')+1:site.rfind('-')]+':'+site[site.rfind('-')+1:site.rfind('.')]+'</a></TD>'
147147
html=html+'</TR>'
148148
html=html+'</table>'
149149
footer = '</BODY></HTML>'

0 commit comments

Comments
 (0)