Não pode escolher mais do que 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 
 

119 linhas
3.8 KiB

  1. <head><title>Azure.com Various</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>Azure.com Various</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="backup-archive.svg" class="imgbox"><a href="backup-archive.svg" download><img src="backup-archive.svg" class="bg0"/></a><div class="label">backup-archive.svg</div></div>
  73. <div id="blockchain.svg" class="imgbox"><a href="blockchain.svg" download><img src="blockchain.svg" class="bg0"/></a><div class="label">blockchain.svg</div></div>
  74. <div id="digital-marketing.svg" class="imgbox"><a href="digital-marketing.svg" download><img src="digital-marketing.svg" class="bg0"/></a><div class="label">digital-marketing.svg</div></div>
  75. <div id="e-commerce.svg" class="imgbox"><a href="e-commerce.svg" download><img src="e-commerce.svg" class="bg0"/></a><div class="label">e-commerce.svg</div></div>
  76. <div id="high-performance-computing.svg" class="imgbox"><a href="high-performance-computing.svg" download><img src="high-performance-computing.svg" class="bg0"/></a><div class="label">high-performance-computing.svg</div></div>
  77. <div id="hybrid-cloud-app.svg" class="imgbox"><a href="hybrid-cloud-app.svg" download><img src="hybrid-cloud-app.svg" class="bg0"/></a><div class="label">hybrid-cloud-app.svg</div></div>
  78. <div id="internet-of-things.svg" class="imgbox"><a href="internet-of-things.svg" download><img src="internet-of-things.svg" class="bg0"/></a><div class="label">internet-of-things.svg</div></div>
  79. <div id="lob-applications.svg" class="imgbox"><a href="lob-applications.svg" download><img src="lob-applications.svg" class="bg0"/></a><div class="label">lob-applications.svg</div></div>
  80. <div id="saas.svg" class="imgbox"><a href="saas.svg" download><img src="saas.svg" class="bg0"/></a><div class="label">saas.svg</div></div>
  81. <div id="serverless.svg" class="imgbox"><a href="serverless.svg" download><img src="serverless.svg" class="bg0"/></a><div class="label">serverless.svg</div></div>
  82. <div id="solutions.svg" class="imgbox"><a href="solutions.svg" download><img src="solutions.svg" class="bg0"/></a><div class="label">solutions.svg</div></div>
  83. </div>
  84. <script>
  85. var bg = 0;
  86. function toggleBg() {
  87. bg++
  88. if(bg > 2) bg = 0;
  89. for(let img of document.getElementsByTagName("img")) {
  90. img.className = `bg${bg}`;
  91. }
  92. }
  93. function search() {
  94. let q = document.getElementById('finder').value.trim().toLowerCase()
  95. if(q.length <= 0) {
  96. for(let imgbox of document.getElementsByClassName("imgbox")) {
  97. imgbox.style.display = "inline-block"
  98. }
  99. }
  100. for(let imgbox of document.getElementsByClassName("imgbox")) {
  101. imgbox.style.display = "inline-block"
  102. if(!imgbox.id.includes(q)) {
  103. imgbox.style.display = "none"
  104. }
  105. }
  106. }
  107. function download(f) {
  108. let a = document.createElement('a')
  109. a.href = f
  110. a.download = f
  111. console.log(a)
  112. a.click()
  113. }
  114. </script>
  115. </body></html>