|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119 |
-
- <head><title>Azure.com Various</title></head>
- <style>
- body {
- font-family: 'Segoe UI', Arial;
- background-color: #aaa;
- padding: 0;
- margin: 0;
- }
- .bg0 {
- background-image: url("../_tools/background.png")
- }
- .bg1 {
- background-color: #333;
- }
- .bg2 {
- background-color: #fff;
- }
- .imgbox img {
- width: 10.5rem;
- height: 10.5rem;
- object-fit: contain;
- cursor: pointer;
- }
- .imgbox {
- margin: 0.6rem;
- padding: 0.5rem;
- text-align: center;
- width: 12rem;
- height: 12rem;
- background-color: #e0e0e0;
- }
- h1 {
- font-size: 2.6rem;
- }
- .find, .find input {
- font-size: 1.5rem;
- }
- .top {
- position: -webkit-sticky;
- position: sticky;
- top: 0;
- background-color: #aaa;
- padding: 1rem;
- padding-top: 0;
- box-shadow: 0px 5px 18px 3px rgba(0,0,0,0.59);
- }
- .top button {
- float: right;
- position: relative;
- top: -2rem;
- font-size: 1.5rem;
- }
- .label {
- height: 2.5em;
- line-height: 1em;
- overflow: hidden;
- font-size: 0.9rem;
- }
- .grid {
- display: flex;
- flex-wrap: wrap;
- width: 100%;
- }
- </style>
- <body>
- <div class="top">
- <h1>Azure.com Various</h1>
- <span class="find">Finder: <input onkeyup="search()" id="finder"><br></span>
- <button onclick="toggleBg()">Change Background</button>
- </div>
- <div class="grid">
- <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>
- <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>
- <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>
- <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>
- <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>
- <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>
- <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>
- <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>
- <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>
- <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>
- <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>
-
- </div>
- <script>
- var bg = 0;
- function toggleBg() {
- bg++
- if(bg > 2) bg = 0;
- for(let img of document.getElementsByTagName("img")) {
- img.className = `bg${bg}`;
- }
- }
-
- function search() {
- let q = document.getElementById('finder').value.trim().toLowerCase()
- if(q.length <= 0) {
- for(let imgbox of document.getElementsByClassName("imgbox")) {
- imgbox.style.display = "inline-block"
- }
- }
- for(let imgbox of document.getElementsByClassName("imgbox")) {
- imgbox.style.display = "inline-block"
- if(!imgbox.id.includes(q)) {
- imgbox.style.display = "none"
- }
- }
- }
-
- function download(f) {
- let a = document.createElement('a')
- a.href = f
- a.download = f
- console.log(a)
- a.click()
- }
- </script>
- </body></html>
|