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.
 
 
 

196 lines
12 KiB

  1. <head><title>Logos & Brands</title>
  2. <script src="http://pablojs.com/downloads/pablo.min.js"></script>
  3. </head>
  4. <style>
  5. body {
  6. font-family: 'Segoe UI', Arial;
  7. background-color: #aaa;
  8. padding: 0;
  9. margin: 0;
  10. }
  11. .bg0 {
  12. background-image: url("https://github.com/benc-uk/icon-collection/raw/master/_tools/background.png")
  13. }
  14. .bg1 {
  15. background-color: #333;
  16. }
  17. .bg2 {
  18. background-color: #fff;
  19. }
  20. .imgbox img {
  21. width: 10.5rem;
  22. height: 10.5rem;
  23. object-fit: contain;
  24. cursor: pointer;
  25. }
  26. .imgbox {
  27. margin: 0.6rem;
  28. padding: 0.5rem;
  29. text-align: center;
  30. width: 12rem;
  31. height: 12rem;
  32. background-color: #e0e0e0;
  33. }
  34. h1 {
  35. font-size: 2.6rem;
  36. }
  37. .find, .find input {
  38. font-size: 1.5rem;
  39. }
  40. .top {
  41. position: -webkit-sticky;
  42. position: sticky;
  43. top: 0;
  44. background-color: #aaa;
  45. padding: 1rem;
  46. padding-top: 0;
  47. box-shadow: 0px 5px 18px 3px rgba(0,0,0,0.59);
  48. }
  49. .top button {
  50. float: right;
  51. position: relative;
  52. top: -2rem;
  53. font-size: 1.5rem;
  54. }
  55. .pngbox {
  56. position: absolute;
  57. top: 2rem;
  58. right: 1rem;
  59. font-size: 1.5rem;
  60. }
  61. input[type="checkbox"] {
  62. width: 1.6em;
  63. height: 1.6em;
  64. }
  65. .label {
  66. height: 2.5em;
  67. line-height: 1em;
  68. overflow: hidden;
  69. font-size: 0.9rem;
  70. }
  71. .grid {
  72. display: flex;
  73. flex-wrap: wrap;
  74. width: 100%;
  75. }
  76. </style>
  77. <body>
  78. <div class="top">
  79. <h1>Logos & Brands</h1>
  80. <span class="find">Finder: <input onkeyup="search()" id="finder"><br></span>
  81. <div class="pngbox"><input type="checkbox" id="pngcheck"><label for="pngcheck">Download as PNG</label></div>
  82. <button onclick="toggleBg()">Change Background</button>
  83. </div>
  84. <div class="grid">
  85. <div id="android.svg" class="imgbox"><img src="android.svg" class="bg0" onclick="download('android.svg', this)"/><div class="label">android.svg</div></div>
  86. <div id="angular.svg" class="imgbox"><img src="angular.svg" class="bg0" onclick="download('angular.svg', this)"/><div class="label">angular.svg</div></div>
  87. <div id="ansible.svg" class="imgbox"><img src="ansible.svg" class="bg0" onclick="download('ansible.svg', this)"/><div class="label">ansible.svg</div></div>
  88. <div id="apache.svg" class="imgbox"><img src="apache.svg" class="bg0" onclick="download('apache.svg', this)"/><div class="label">apache.svg</div></div>
  89. <div id="azure-logo.svg" class="imgbox"><img src="azure-logo.svg" class="bg0" onclick="download('azure-logo.svg', this)"/><div class="label">azure-logo.svg</div></div>
  90. <div id="azure-offical.svg" class="imgbox"><img src="azure-offical.svg" class="bg0" onclick="download('azure-offical.svg', this)"/><div class="label">azure-offical.svg</div></div>
  91. <div id="bash.svg" class="imgbox"><img src="bash.svg" class="bg0" onclick="download('bash.svg', this)"/><div class="label">bash.svg</div></div>
  92. <div id="bit-bucket.svg" class="imgbox"><img src="bit-bucket.svg" class="bg0" onclick="download('bit-bucket.svg', this)"/><div class="label">bit-bucket.svg</div></div>
  93. <div id="chef-logo.svg" class="imgbox"><img src="chef-logo.svg" class="bg0" onclick="download('chef-logo.svg', this)"/><div class="label">chef-logo.svg</div></div>
  94. <div id="chef.svg" class="imgbox"><img src="chef.svg" class="bg0" onclick="download('chef.svg', this)"/><div class="label">chef.svg</div></div>
  95. <div id="csharp.svg" class="imgbox"><img src="csharp.svg" class="bg0" onclick="download('csharp.svg', this)"/><div class="label">csharp.svg</div></div>
  96. <div id="docker-icon-wh.svg" class="imgbox"><img src="docker-icon-wh.svg" class="bg0" onclick="download('docker-icon-wh.svg', this)"/><div class="label">docker-icon-wh.svg</div></div>
  97. <div id="docker-icon.svg" class="imgbox"><img src="docker-icon.svg" class="bg0" onclick="download('docker-icon.svg', this)"/><div class="label">docker-icon.svg</div></div>
  98. <div id="docker-mono.svg" class="imgbox"><img src="docker-mono.svg" class="bg0" onclick="download('docker-mono.svg', this)"/><div class="label">docker-mono.svg</div></div>
  99. <div id="docker-whale.svg" class="imgbox"><img src="docker-whale.svg" class="bg0" onclick="download('docker-whale.svg', this)"/><div class="label">docker-whale.svg</div></div>
  100. <div id="dotnetcore.svg" class="imgbox"><img src="dotnetcore.svg" class="bg0" onclick="download('dotnetcore.svg', this)"/><div class="label">dotnetcore.svg</div></div>
  101. <div id="dynamics.svg" class="imgbox"><img src="dynamics.svg" class="bg0" onclick="download('dynamics.svg', this)"/><div class="label">dynamics.svg</div></div>
  102. <div id="eclipse.svg" class="imgbox"><img src="eclipse.svg" class="bg0" onclick="download('eclipse.svg', this)"/><div class="label">eclipse.svg</div></div>
  103. <div id="flask.svg" class="imgbox"><img src="flask.svg" class="bg0" onclick="download('flask.svg', this)"/><div class="label">flask.svg</div></div>
  104. <div id="git.svg" class="imgbox"><img src="git.svg" class="bg0" onclick="download('git.svg', this)"/><div class="label">git.svg</div></div>
  105. <div id="github.svg" class="imgbox"><img src="github.svg" class="bg0" onclick="download('github.svg', this)"/><div class="label">github.svg</div></div>
  106. <div id="gradle.svg" class="imgbox"><img src="gradle.svg" class="bg0" onclick="download('gradle.svg', this)"/><div class="label">gradle.svg</div></div>
  107. <div id="helm-logo.svg" class="imgbox"><img src="helm-logo.svg" class="bg0" onclick="download('helm-logo.svg', this)"/><div class="label">helm-logo.svg</div></div>
  108. <div id="java.svg" class="imgbox"><img src="java.svg" class="bg0" onclick="download('java.svg', this)"/><div class="label">java.svg</div></div>
  109. <div id="jenkins.svg" class="imgbox"><img src="jenkins.svg" class="bg0" onclick="download('jenkins.svg', this)"/><div class="label">jenkins.svg</div></div>
  110. <div id="jfrog.svg" class="imgbox"><img src="jfrog.svg" class="bg0" onclick="download('jfrog.svg', this)"/><div class="label">jfrog.svg</div></div>
  111. <div id="kube.svg" class="imgbox"><img src="kube.svg" class="bg0" onclick="download('kube.svg', this)"/><div class="label">kube.svg</div></div>
  112. <div id="linkedin.svg" class="imgbox"><img src="linkedin.svg" class="bg0" onclick="download('linkedin.svg', this)"/><div class="label">linkedin.svg</div></div>
  113. <div id="linux-tux-colour.svg" class="imgbox"><img src="linux-tux-colour.svg" class="bg0" onclick="download('linux-tux-colour.svg', this)"/><div class="label">linux-tux-colour.svg</div></div>
  114. <div id="linux-tux-mono.svg" class="imgbox"><img src="linux-tux-mono.svg" class="bg0" onclick="download('linux-tux-mono.svg', this)"/><div class="label">linux-tux-mono.svg</div></div>
  115. <div id="microsoft-logo.svg" class="imgbox"><img src="microsoft-logo.svg" class="bg0" onclick="download('microsoft-logo.svg', this)"/><div class="label">microsoft-logo.svg</div></div>
  116. <div id="microsoft.svg" class="imgbox"><img src="microsoft.svg" class="bg0" onclick="download('microsoft.svg', this)"/><div class="label">microsoft.svg</div></div>
  117. <div id="ms-sq.svg" class="imgbox"><img src="ms-sq.svg" class="bg0" onclick="download('ms-sq.svg', this)"/><div class="label">ms-sq.svg</div></div>
  118. <div id="ms.svg" class="imgbox"><img src="ms.svg" class="bg0" onclick="download('ms.svg', this)"/><div class="label">ms.svg</div></div>
  119. <div id="nodejs-2.svg" class="imgbox"><img src="nodejs-2.svg" class="bg0" onclick="download('nodejs-2.svg', this)"/><div class="label">nodejs-2.svg</div></div>
  120. <div id="nodejs-3.svg" class="imgbox"><img src="nodejs-3.svg" class="bg0" onclick="download('nodejs-3.svg', this)"/><div class="label">nodejs-3.svg</div></div>
  121. <div id="nodejs.svg" class="imgbox"><img src="nodejs.svg" class="bg0" onclick="download('nodejs.svg', this)"/><div class="label">nodejs.svg</div></div>
  122. <div id="octopus-deploy.svg" class="imgbox"><img src="octopus-deploy.svg" class="bg0" onclick="download('octopus-deploy.svg', this)"/><div class="label">octopus-deploy.svg</div></div>
  123. <div id="powerbi-mono-black.svg" class="imgbox"><img src="powerbi-mono-black.svg" class="bg0" onclick="download('powerbi-mono-black.svg', this)"/><div class="label">powerbi-mono-black.svg</div></div>
  124. <div id="puppet.svg" class="imgbox"><img src="puppet.svg" class="bg0" onclick="download('puppet.svg', this)"/><div class="label">puppet.svg</div></div>
  125. <div id="python-colour.svg" class="imgbox"><img src="python-colour.svg" class="bg0" onclick="download('python-colour.svg', this)"/><div class="label">python-colour.svg</div></div>
  126. <div id="python-mono.svg" class="imgbox"><img src="python-mono.svg" class="bg0" onclick="download('python-mono.svg', this)"/><div class="label">python-mono.svg</div></div>
  127. <div id="red-hat.svg" class="imgbox"><img src="red-hat.svg" class="bg0" onclick="download('red-hat.svg', this)"/><div class="label">red-hat.svg</div></div>
  128. <div id="ruby mono.svg" class="imgbox"><img src="ruby mono.svg" class="bg0" onclick="download('ruby mono.svg', this)"/><div class="label">ruby mono.svg</div></div>
  129. <div id="ruby.svg" class="imgbox"><img src="ruby.svg" class="bg0" onclick="download('ruby.svg', this)"/><div class="label">ruby.svg</div></div>
  130. <div id="saltstack.svg" class="imgbox"><img src="saltstack.svg" class="bg0" onclick="download('saltstack.svg', this)"/><div class="label">saltstack.svg</div></div>
  131. <div id="sap.svg" class="imgbox"><img src="sap.svg" class="bg0" onclick="download('sap.svg', this)"/><div class="label">sap.svg</div></div>
  132. <div id="slack.svg" class="imgbox"><img src="slack.svg" class="bg0" onclick="download('slack.svg', this)"/><div class="label">slack.svg</div></div>
  133. <div id="suse.svg" class="imgbox"><img src="suse.svg" class="bg0" onclick="download('suse.svg', this)"/><div class="label">suse.svg</div></div>
  134. <div id="terraform.svg" class="imgbox"><img src="terraform.svg" class="bg0" onclick="download('terraform.svg', this)"/><div class="label">terraform.svg</div></div>
  135. <div id="trello.svg" class="imgbox"><img src="trello.svg" class="bg0" onclick="download('trello.svg', this)"/><div class="label">trello.svg</div></div>
  136. <div id="twitter-square.svg" class="imgbox"><img src="twitter-square.svg" class="bg0" onclick="download('twitter-square.svg', this)"/><div class="label">twitter-square.svg</div></div>
  137. <div id="ubuntu.svg" class="imgbox"><img src="ubuntu.svg" class="bg0" onclick="download('ubuntu.svg', this)"/><div class="label">ubuntu.svg</div></div>
  138. <div id="vuejs.svg" class="imgbox"><img src="vuejs.svg" class="bg0" onclick="download('vuejs.svg', this)"/><div class="label">vuejs.svg</div></div>
  139. <div id="windows.svg" class="imgbox"><img src="windows.svg" class="bg0" onclick="download('windows.svg', this)"/><div class="label">windows.svg</div></div>
  140. <div id="youtube.svg" class="imgbox"><img src="youtube.svg" class="bg0" onclick="download('youtube.svg', this)"/><div class="label">youtube.svg</div></div>
  141. </div>
  142. <script>
  143. var bg = 0;
  144. function toggleBg() {
  145. bg++
  146. if(bg > 2) bg = 0;
  147. for(let img of document.getElementsByTagName("img")) {
  148. img.className = `bg${bg}`;
  149. }
  150. }
  151. function search() {
  152. let q = document.getElementById('finder').value.trim().toLowerCase()
  153. if(q.length <= 0) {
  154. for(let imgbox of document.getElementsByClassName("imgbox")) {
  155. imgbox.style.display = "inline-block"
  156. }
  157. }
  158. for(let imgbox of document.getElementsByClassName("imgbox")) {
  159. imgbox.style.display = "inline-block"
  160. if(!imgbox.id.includes(q)) {
  161. imgbox.style.display = "none"
  162. }
  163. }
  164. }
  165. function download(f, e) {
  166. var downloadPNG = document.getElementById("pngcheck").checked;
  167. if(downloadPNG) {
  168. var data = getBase64Image(e);
  169. let a = document.createElement('a')
  170. a.href = "data:application/octet-stream;base64," + data
  171. a.download = f.replace('.svg', '.png')
  172. a.click()
  173. } else {
  174. let a = document.createElement('a')
  175. a.href = f
  176. a.download = f
  177. a.click()
  178. }
  179. }
  180. function getBase64Image(img) {
  181. var canvas = document.createElement("canvas");
  182. canvas.width = img.naturalWidth;
  183. canvas.height = img.naturalHeight;
  184. console.log(canvas.width , canvas.height)
  185. var ctx = canvas.getContext("2d");
  186. ctx.drawImage(img, 0, 0);
  187. var dataURL = canvas.toDataURL("image/png");
  188. return dataURL.replace(/^data:image\/(png|jpg);base64,/, "");
  189. }
  190. </script>
  191. </body></html>