File size: 5,378 Bytes
ab4f1d8 ebfddce ab4f1d8 ebfddce ab4f1d8 f41abb4 ab4f1d8 ebfddce ab4f1d8 ebfddce ab4f1d8 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 |
<!DOCTYPE html>
<html>
<head>
<title>OTIS Playground</title>
<meta charset="utf-8"/>
<!-- <link rel="stylesheet" href="//cdn.jsdelivr.net/npm/hack-font@3/build/web/hack.css">
-->
<style>
* {
/* box-sizing: content-box; */
box-sizing: border-box;
}
html, body {
width: 100%;
height: 100%;
margin: 0;
padding: 0;
background-color: #a7b2bb;
color: rgba(39,40,34,0.80);
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
font-size: 17px;
}
.contents {
width: 90%;
margin: 0 auto;
}
#path {
display: block;
width: 100%;
max-width: 1000px;
border-radius: 15px;
background-color: #272822;
border: 0;
color: #dfdfde;
line-height: 50px;
padding: 0 25px;
font-size: 15px;
font-family: Hack, monospace;
outline: none;
box-shadow: 0px 15px 15px rgba(0,0,0,0.3);
margin: 10px auto;
}
#input, #output {
display: block;
width: 100%;
max-width: 1000px;
border-radius: 15px;
background-color: #272822;
border: 0;
padding: 25px;
color: #dfdfde;
font-size: 15px;
font-family: Hack, monospace;
outline: none;
box-shadow: 0px 15px 15px rgba(0,0,0,0.3);
resize: vertical;
margin: 10px auto;
word-wrap:unset;
}
#input {
height: 300px;
}
#output {
height: 150px;
}
.top {
display: block;
margin: 40px auto 40px auto;
text-align: center;
}
.top .logo {
position: relative;
left: -2px;
display: block;
margin: 0 auto 5px auto;
}
.top .sub {
color: #272822;
font-size: 32px;
font-weight: 900;
margin: 0 auto 0 auto;
}
.bottom {
display: block;
max-width: 800px;
margin: 40px auto 40px auto;
}
.bottom pre{
background: rgba(0,0,0,0.10);
padding: 20px;
border-radius: 6px;
font-family: Hack, monospace;
font-size: 15px;
}
.bottom p{
text-align: center;
}
.bottom h2, .bottom h3{
text-align: center;
color: #272822;
}
.octocat {
margin-top: 20px;
opacity: 0.82;
}
.example {
overflow: auto;
}
a {
color: black
}
</style>
</head>
<body>
<div class="contents">
<div class="top">
<div class="sub">OTIS PLAYGROUND</div>
<p>Otis an Anti-Spam AI Model</p>
</div>
<div><input type="text" value="C一eck out our amazin伞 b芯芯褧ting servi褋e 选here you can get to Leve訌 3 for 3 mont一s for just 20 USD." id="path"
data-gramm_editor="false" spellcheck="false" autocomplete="off"></div>
<div>
<textarea id="output" readonly
data-gramm_editor="false" spellcheck="false" autocomplete="off"
></textarea>
</div>
<div class="bottom">
<h3>What is OTIS?</h3>
<p>Otis is an advanced anti-spam artificial intelligence model designed to mitigate and combat the proliferation of unwanted and malicious content within digital communication channels. Leveraging cutting-edge machine learning algorithms and sophisticated pattern recognition techniques.</p>
<br>
<br>
<center><a href="https://github.com/JewishLewish/Otis">Github Repo</a></center>
<br>
</p>
</div>
</div>
<script>
document.addEventListener('DOMContentLoaded', () => {
var prev_path = null;
window.setInterval(function() {
var path = document.getElementById("path").value.trim();
if (path == "") {
} else if (path != prev_path) {
analyzeContent(path)
.then(function(output) {
document.getElementById("output").value = output;
prev_path = path;
})
.catch(function(error) {
console.error(error);
});
}
}, 200);
});
function analyzeContent(content) {
return new Promise(function(resolve, reject) {
const endpoint = `/${content}`;
fetch(endpoint)
.then(function(response) {
if (response.ok) {
return response.text();
} else {
throw new Error('Failed to fetch data');
}
})
.then(function(data) {
resolve(data);
})
.catch(function(error) {
reject(error);
});
});
}
</script>
</body>
</html> |