A search interface for the Performing Patents Otherwise publication as part of the Politics of Patents case study (part of Copim WP6): this parses data from the archive of RTF files and provides additional data from the European Patent Office OPS API. https://patents.copim.ac.uk
Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

56 Zeilen
1.8KB

  1. {% extends "base.html" %}
  2. {% block body %}
  3. <body id="random-img-page">
  4. {% endblock %}
  5. {% block content %}
  6. <div class="action">
  7. <button onClick="refresh(this)" type="button" value="Refresh" title="new iteration">↻</button>
  8. <span class="info" style="display: none;">
  9. <span class="operations">↝ new display of random images from dataset;</span>
  10. </span>
  11. <button onclick="addRandomImage()" title="add one">+</button>
  12. <span class="info" style="display: none;">
  13. <span class="operations">↝ add a random image from dataset;</span>
  14. </span>
  15. <button onclick="removeRandomImage()" title="remove one">-</button>
  16. <span class="info" style="display: none;">
  17. <span class="operations">↝ remove a random image from page;</span>
  18. </span>
  19. <button id="notes-operations" onclick="hideShowInfo()">?</button>
  20. <a href="{{ url_for('main.index') }}" class="arrow-back h1 text-left contrast" style="color: var(--color-lightyellow) !important;" title="back to index"> ⇽ </a>
  21. </div>
  22. <div class="row">
  23. <div class="col m-5">
  24. <p class="h1 text-center contrast">a Scattering of Images</p>
  25. </div>
  26. </div>
  27. <div id="image_container" class="container-fluid compare">
  28. {% for image in images %}
  29. <img class="img-fluid" src="data:image/jpg;base64,{{ image['image'] }}" alt="Drawing accompanying patent for {{ image['id'] }}" />
  30. {% endfor %}
  31. </div>
  32. <script type="text/javascript">
  33. var images = {{ additional_images|tojson }};
  34. x = 0;
  35. function addRandomImage(){
  36. var record_array = images[x];
  37. document.querySelector('#image_container').innerHTML += "<img class='img-fluid' src='data:image/jpg;base64," + record_array['image'] + "' alt='Drawing accompanying patent for " + record_array['id'] + "' />";
  38. x++;
  39. window.scrollTo(0, document.body.scrollHeight);
  40. }
  41. </script>
  42. {% endblock %}