|
| 1 | +<!DOCTYPE html> |
| 2 | +<html> |
| 3 | +<head> |
| 4 | + <meta charset="utf-8"> |
| 5 | + <meta name="viewport" content="width=device-width, initial-scale=1.0" /> |
| 6 | + <meta name="apple-mobile-web-app-capable" content="yes"/> |
| 7 | + <link rel="apple-touch-icon" href="https://guyotjs.github.io/duckclear2.png"> |
| 8 | + <title>Guyot</title> |
| 9 | + <link rel="icon" type="image/x-icon" href="https://guyotjs.github.io/duckclear2.png"/> |
| 10 | + <link rel="stylesheet" href="https://guyotjs.github.io/bcss/bc.css"> |
| 11 | + <link rel="stylesheet" href="https://guyotjs.github.io/bcss/bc-colors.css"> |
| 12 | + <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"> |
| 13 | + <link rel="stylesheet" href="./main.css"> |
| 14 | +</head> |
| 15 | +<body data='{view:0,toSearch:"",showSearch:""}' id="body"> |
| 16 | + |
| 17 | + <div class="p-m"> |
| 18 | + <a href="https://github.com/guyotjs/"><i class="fa-lg white fa m-m fa-github"></i></a> |
| 19 | + <a href="https://x.com/westonschnee"><i class="fa-lg white fa m-m fa-twitter"></i></a> |
| 20 | + </div> |
| 21 | + |
| 22 | + <br><br> |
| 23 | + |
| 24 | + <div class="text-center m-m"> |
| 25 | + <p class="f-xxl karla fw-strong bold"><span class="grad fw-strong karla prevent-select">Guyot</span></p><br/> |
| 26 | + </div> |
| 27 | + |
| 28 | + <br> |
| 29 | + |
| 30 | + <div class="text-center m-m scale" computer> |
| 31 | + <fieldset class="left-center border-light p r bg-blur grid-2"> |
| 32 | + <legend class="plr-m"><i onclick="$('view=0;')" class="fa absolute true-pos z-top fa-gamepad m gray fa-lg"></i></legend> |
| 33 | + <div class="border-right-light"> |
| 34 | + <div if="view==0"><div class="incl" incl="./mode/noselect.html"></div></div> |
| 35 | + <div if="view==1"><div class="incl" incl="./mode/n64.html"></div></div> |
| 36 | + <div if="view==2"><div class="incl" incl="./mode/snes.html"></div></div> |
| 37 | + <div if="view==3"><div class="incl" incl="./mode/gba.html"></div></div> |
| 38 | + <div if="view==4"><div class="incl" incl="./mode/flash.html"></div></div> |
| 39 | + </div> |
| 40 | + <div class="plr-l p-m"> |
| 41 | + <span onclick="$('view=1;')" class="grad point hover-fw-strong hover-f-m karla">N64</span><br> |
| 42 | + <span onclick="$('view=2;')" class="grad point hover-fw-strong hover-f-m karla">SNES</span><br> |
| 43 | + <span onclick="$('view=3;')" class="grad point hover-fw-strong hover-f-m karla">GBA</span><br> |
| 44 | + <span onclick="$('view=4;')" class="grad point hover-fw-strong hover-f-m karla">FLASH</span><br> |
| 45 | + </div> |
| 46 | + <div style="margin-bottom: 0px;"></div> |
| 47 | + </fieldset> |
| 48 | + </div> |
| 49 | + <br><br><br><br><br><br><br><br><br> |
| 50 | + <div class="text-center m-m scale" computer> |
| 51 | + <fieldset class="left-center border-light p r bg-blur grid-2 plr-l"> |
| 52 | + <legend class="plr-m"><i onclick="$('view=0;')" class="fa absolute true-pos-search z-top fa-search m gray fa-lg"></i></legend> |
| 53 | + <input type="text" class="plr-m m-m bg-blur no-bg border-light r karla p white" bind="toSearch" id="updateElement" placeholder="Search for a game!"/><br> |
| 54 | + <div id="links"></div> |
| 55 | + </fieldset> |
| 56 | + </div> |
| 57 | + |
| 58 | + <!-- <canvas id="myCanvas"></canvas> |
| 59 | + <script src="./moss.js"></script> |
| 60 | + <script src="./snow.js"></script> --> |
| 61 | + |
| 62 | + <script src="./games.js"></script> |
| 63 | + <script src="./crystalErrorBind.js"></script> |
| 64 | + <script> |
| 65 | + let isPresent; |
| 66 | + let toShow; |
| 67 | + let ljks = document.getElementById("links"); |
| 68 | + function search(){ |
| 69 | + isPresent = games.filter(([name, _]) => name.toLowerCase().includes(data.toSearch.toLowerCase())); |
| 70 | + // console.log(isPresent) |
| 71 | + toShow = "" |
| 72 | + if(data.toSearch!=""){ |
| 73 | + for(let i=0;i<isPresent.length;i++){ |
| 74 | + toShow += `<a href="${isPresent[i][1]}" class="grad-bottom">${isPresent[i][0]}</a><br/>` |
| 75 | + } |
| 76 | + ljks.innerHTML = toShow; |
| 77 | + }else{ |
| 78 | + toShow = ""; |
| 79 | + ljks.innerHTML = "" |
| 80 | + } |
| 81 | + if(isPresent!=-1){ |
| 82 | + data.showSearch = `<a href="${games[isPresent][1]}" class="grad-bottom">${games[isPresent][0]}</a>` |
| 83 | + }else if(data.showSearch!=""){ |
| 84 | + data.showSearch = ""; |
| 85 | + } |
| 86 | + } |
| 87 | + document.getElementById("updateElement").addEventListener('input',function(evt){ |
| 88 | + setTimeout(()=>{ |
| 89 | + search(); |
| 90 | + },0); |
| 91 | + }) |
| 92 | + </script> |
| 93 | +</body> |
| 94 | +</html> |
0 commit comments