OLD | NEW |
---|---|
1 <html> | 1 <html> |
2 <head> | |
3 <title>{{ test_name }}</title> | |
4 <script> | |
5 function toggleZoom() { | |
6 for (const img of document.getElementsByTagName("img")) { | |
7 if (imgs[i].hasAttribute('style')) { | |
Bernhard Bauer
2017/05/12 14:15:21
That should be |img| now, shouldn't it?
PEConn
2017/05/12 14:18:01
Ah yes, sorry - I had it right on my test page :-S
| |
8 imgs[i].removeAttribute('style'); | |
9 } else { | |
10 imgs[i].style.width = '100%'; | |
11 } | |
12 } | |
13 } | |
14 </script> | |
15 </head> | |
16 <body> | |
2 <table> | 17 <table> |
3 <tr> | 18 <tr> |
4 <th>Failure</th> | 19 <th>Failure</th> |
5 <th>Golden</th> | 20 <th>Golden</th> |
6 <th>Diff</th> | 21 <th>Diff</th> |
7 </tr> | 22 </tr> |
8 <tr> | 23 <tr onclick="toggleZoom()"> |
9 <td><img src="{{ failure_link }}" width="100%"/></td> | 24 <td><img src="{{ failure_link }}" style="width: 100%" /></td> |
10 <td><img src="{{ golden_link }}" width="100%"/></td> | 25 <td><img src="{{ golden_link }}" style="width: 100%" /></td> |
11 <td><img src="{{ diff_link }}" width="100%"/></td> | 26 <td><img src="{{ diff_link }}" style="width: 100%" /></td> |
12 </tr> | 27 </tr> |
13 </table> | 28 </table> |
29 </body> | |
14 </html> | 30 </html> |
OLD | NEW |