You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

133 lines
6.1 KiB

  1. <head><title>Other Icons</title></head>
  2. <style>
  3. body {
  4. font-family: 'Segoe UI', Arial;
  5. background-color: #aaa;
  6. padding: 0;
  7. margin: 0;
  8. }
  9. .bg0 {
  10. background-image: url("../_tools/background.png")
  11. }
  12. .bg1 {
  13. background-color: #333;
  14. }
  15. .bg2 {
  16. background-color: #fff;
  17. }
  18. .imgbox img {
  19. width: 10.5rem;
  20. height: 10.5rem;
  21. object-fit: contain;
  22. cursor: pointer;
  23. }
  24. .imgbox {
  25. margin: 0.6rem;
  26. padding: 0.5rem;
  27. text-align: center;
  28. width: 12rem;
  29. height: 12rem;
  30. background-color: #e0e0e0;
  31. }
  32. h1 {
  33. font-size: 2.6rem;
  34. }
  35. .find, .find input {
  36. font-size: 1.5rem;
  37. }
  38. .top {
  39. position: -webkit-sticky;
  40. position: sticky;
  41. top: 0;
  42. background-color: #aaa;
  43. padding: 1rem;
  44. padding-top: 0;
  45. box-shadow: 0px 5px 18px 3px rgba(0,0,0,0.59);
  46. }
  47. .top button {
  48. float: right;
  49. position: relative;
  50. top: -2rem;
  51. font-size: 1.5rem;
  52. }
  53. .label {
  54. height: 2.5em;
  55. line-height: 1em;
  56. overflow: hidden;
  57. font-size: 0.9rem;
  58. }
  59. .grid {
  60. display: flex;
  61. flex-wrap: wrap;
  62. width: 100%;
  63. }
  64. </style>
  65. <body>
  66. <div class="top">
  67. <h1>Other Icons</h1>
  68. <span class="find">Finder: <input onkeyup="search()" id="finder"><br></span>
  69. <button onclick="toggleBg()">Change Background</button>
  70. </div>
  71. <div class="grid">
  72. <div id="Kudu.svg" class="imgbox"><a href="Kudu.svg" download><img src="Kudu.svg" class="bg0"/></a><div class="label">Kudu.svg</div></div>
  73. <div id="aks-blue.svg" class="imgbox"><a href="aks-blue.svg" download><img src="aks-blue.svg" class="bg0"/></a><div class="label">aks-blue.svg</div></div>
  74. <div id="app-center-colour.svg" class="imgbox"><a href="app-center-colour.svg" download><img src="app-center-colour.svg" class="bg0"/></a><div class="label">app-center-colour.svg</div></div>
  75. <div id="app-center.svg" class="imgbox"><a href="app-center.svg" download><img src="app-center.svg" class="bg0"/></a><div class="label">app-center.svg</div></div>
  76. <div id="azure ml.svg" class="imgbox"><a href="azure ml.svg" download><img src="azure ml.svg" class="bg0"/></a><div class="label">azure ml.svg</div></div>
  77. <div id="cloud-security.svg" class="imgbox"><a href="cloud-security.svg" download><img src="cloud-security.svg" class="bg0"/></a><div class="label">cloud-security.svg</div></div>
  78. <div id="connector.svg" class="imgbox"><a href="connector.svg" download><img src="connector.svg" class="bg0"/></a><div class="label">connector.svg</div></div>
  79. <div id="container-insights.svg" class="imgbox"><a href="container-insights.svg" download><img src="container-insights.svg" class="bg0"/></a><div class="label">container-insights.svg</div></div>
  80. <div id="container-mon.svg" class="imgbox"><a href="container-mon.svg" download><img src="container-mon.svg" class="bg0"/></a><div class="label">container-mon.svg</div></div>
  81. <div id="container.svg" class="imgbox"><a href="container.svg" download><img src="container.svg" class="bg0"/></a><div class="label">container.svg</div></div>
  82. <div id="containerinstances-mono.svg" class="imgbox"><a href="containerinstances-mono.svg" download><img src="containerinstances-mono.svg" class="bg0"/></a><div class="label">containerinstances-mono.svg</div></div>
  83. <div id="cubes.svg" class="imgbox"><a href="cubes.svg" download><img src="cubes.svg" class="bg0"/></a><div class="label">cubes.svg</div></div>
  84. <div id="designer.svg" class="imgbox"><a href="designer.svg" download><img src="designer.svg" class="bg0"/></a><div class="label">designer.svg</div></div>
  85. <div id="devops-boards.svg" class="imgbox"><a href="devops-boards.svg" download><img src="devops-boards.svg" class="bg0"/></a><div class="label">devops-boards.svg</div></div>
  86. <div id="devops-pipelines.svg" class="imgbox"><a href="devops-pipelines.svg" download><img src="devops-pipelines.svg" class="bg0"/></a><div class="label">devops-pipelines.svg</div></div>
  87. <div id="devops-repos.svg" class="imgbox"><a href="devops-repos.svg" download><img src="devops-repos.svg" class="bg0"/></a><div class="label">devops-repos.svg</div></div>
  88. <div id="devops-testplans.svg" class="imgbox"><a href="devops-testplans.svg" download><img src="devops-testplans.svg" class="bg0"/></a><div class="label">devops-testplans.svg</div></div>
  89. <div id="devopsiconartifacts96.svg" class="imgbox"><a href="devopsiconartifacts96.svg" download><img src="devopsiconartifacts96.svg" class="bg0"/></a><div class="label">devopsiconartifacts96.svg</div></div>
  90. <div id="event-grid-topic.svg" class="imgbox"><a href="event-grid-topic.svg" download><img src="event-grid-topic.svg" class="bg0"/></a><div class="label">event-grid-topic.svg</div></div>
  91. <div id="machine-learning-diagram.svg" class="imgbox"><a href="machine-learning-diagram.svg" download><img src="machine-learning-diagram.svg" class="bg0"/></a><div class="label">machine-learning-diagram.svg</div></div>
  92. <div id="pickle.svg" class="imgbox"><a href="pickle.svg" download><img src="pickle.svg" class="bg0"/></a><div class="label">pickle.svg</div></div>
  93. <div id="resource-explorer.svg" class="imgbox"><a href="resource-explorer.svg" download><img src="resource-explorer.svg" class="bg0"/></a><div class="label">resource-explorer.svg</div></div>
  94. <div id="rss.svg" class="imgbox"><a href="rss.svg" download><img src="rss.svg" class="bg0"/></a><div class="label">rss.svg</div></div>
  95. <div id="shield.svg" class="imgbox"><a href="shield.svg" download><img src="shield.svg" class="bg0"/></a><div class="label">shield.svg</div></div>
  96. <div id="xcode.svg" class="imgbox"><a href="xcode.svg" download><img src="xcode.svg" class="bg0"/></a><div class="label">xcode.svg</div></div>
  97. </div>
  98. <script>
  99. var bg = 0;
  100. function toggleBg() {
  101. bg++
  102. if(bg > 2) bg = 0;
  103. for(let img of document.getElementsByTagName("img")) {
  104. img.className = `bg${bg}`;
  105. }
  106. }
  107. function search() {
  108. let q = document.getElementById('finder').value.trim().toLowerCase()
  109. if(q.length <= 0) {
  110. for(let imgbox of document.getElementsByClassName("imgbox")) {
  111. imgbox.style.display = "inline-block"
  112. }
  113. }
  114. for(let imgbox of document.getElementsByClassName("imgbox")) {
  115. imgbox.style.display = "inline-block"
  116. if(!imgbox.id.includes(q)) {
  117. imgbox.style.display = "none"
  118. }
  119. }
  120. }
  121. function download(f) {
  122. let a = document.createElement('a')
  123. a.href = f
  124. a.download = f
  125. console.log(a)
  126. a.click()
  127. }
  128. </script>
  129. </body></html>