Spaces:
Running
Running
Update index.html
Browse files- index.html +20 -1
index.html
CHANGED
|
@@ -219,7 +219,7 @@
|
|
| 219 |
|
| 220 |
|
| 221 |
<div id="sa-launcher" style="position:fixed;bottom:32px;right:32px;z-index:2147483647;">
|
| 222 |
-
<button
|
| 223 |
style="width:72px;height:72px;border-radius:50%;border:none;cursor:pointer;
|
| 224 |
background:linear-gradient(145deg,#5856D6,#007AFF);
|
| 225 |
box-shadow:0 8px 32px rgba(88,86,214,.5);
|
|
@@ -232,5 +232,24 @@
|
|
| 232 |
AI ์ด๊ธฐ
|
| 233 |
</div>
|
| 234 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 235 |
</body>
|
| 236 |
</html>
|
|
|
|
| 219 |
|
| 220 |
|
| 221 |
<div id="sa-launcher" style="position:fixed;bottom:32px;right:32px;z-index:2147483647;">
|
| 222 |
+
<button id="sa-open-btn"
|
| 223 |
style="width:72px;height:72px;border-radius:50%;border:none;cursor:pointer;
|
| 224 |
background:linear-gradient(145deg,#5856D6,#007AFF);
|
| 225 |
box-shadow:0 8px 32px rgba(88,86,214,.5);
|
|
|
|
| 232 |
AI ์ด๊ธฐ
|
| 233 |
</div>
|
| 234 |
</div>
|
| 235 |
+
<script>
|
| 236 |
+
document.getElementById('sa-open-btn').addEventListener('click', function(){
|
| 237 |
+
// SA ์คํฌ๋ฆฝํธ๊ฐ ๋ก๋๋ ๋๊น์ง ํด๋ง
|
| 238 |
+
var tries = 0;
|
| 239 |
+
function tryOpen(){
|
| 240 |
+
if(window.__sa_panel_open){
|
| 241 |
+
window.__sa_panel_open();
|
| 242 |
+
} else if(document.getElementById('__sa_F')){
|
| 243 |
+
document.getElementById('__sa_F').click();
|
| 244 |
+
} else if(tries < 20){
|
| 245 |
+
tries++;
|
| 246 |
+
setTimeout(tryOpen, 300);
|
| 247 |
+
} else {
|
| 248 |
+
alert('SiteAgent ์คํฌ๋ฆฝํธ ๋ก๋ ์ค์
๋๋ค. ์ ์ ํ ๋ค์ ํด๋ฆญํ์ธ์.');
|
| 249 |
+
}
|
| 250 |
+
}
|
| 251 |
+
tryOpen();
|
| 252 |
+
});
|
| 253 |
+
</script>
|
| 254 |
</body>
|
| 255 |
</html>
|