Spaces:
Running
Running
Update index.html
Browse files- index.html +10 -16
index.html
CHANGED
|
@@ -215,8 +215,6 @@
|
|
| 215 |
</footer>
|
| 216 |
|
| 217 |
<!-- β
SiteAgent μ½μ
(λ¨ ν μ€) β
-->
|
| 218 |
-
<script src="https://ginigen-ai-siteagent.hf.space/secure-pageagent.extend.js"></script>
|
| 219 |
-
|
| 220 |
|
| 221 |
<div id="sa-launcher" style="position:fixed;bottom:32px;right:32px;z-index:2147483647;">
|
| 222 |
<button id="sa-open-btn"
|
|
@@ -233,22 +231,18 @@
|
|
| 233 |
</div>
|
| 234 |
</div>
|
| 235 |
<script>
|
|
|
|
| 236 |
document.getElementById('sa-open-btn').addEventListener('click', function(){
|
| 237 |
-
|
| 238 |
-
|
| 239 |
-
|
| 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 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 252 |
});
|
| 253 |
</script>
|
| 254 |
</body>
|
|
|
|
| 215 |
</footer>
|
| 216 |
|
| 217 |
<!-- β
SiteAgent μ½μ
(λ¨ ν μ€) β
-->
|
|
|
|
|
|
|
| 218 |
|
| 219 |
<div id="sa-launcher" style="position:fixed;bottom:32px;right:32px;z-index:2147483647;">
|
| 220 |
<button id="sa-open-btn"
|
|
|
|
| 231 |
</div>
|
| 232 |
</div>
|
| 233 |
<script>
|
| 234 |
+
var _saLoaded = false;
|
| 235 |
document.getElementById('sa-open-btn').addEventListener('click', function(){
|
| 236 |
+
if(_saLoaded){
|
| 237 |
+
if(window.__sa_panel_open) window.__sa_panel_open();
|
| 238 |
+
return;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 239 |
}
|
| 240 |
+
_saLoaded = true;
|
| 241 |
+
// λ²νΌ ν΄λ¦ μμ μ μ€ν¬λ¦½νΈ λμ λ‘λ
|
| 242 |
+
// μ€ν¬λ¦½νΈ λμ openP()κ° μμ΄μ λ‘λ μλ£ μ μλμΌλ‘ ν¨λμ΄ μ΄λ¦Ό
|
| 243 |
+
var s = document.createElement('script');
|
| 244 |
+
s.src = 'https://ginigen-ai-siteagent.hf.space/secure-pageagent.extend.js?t=' + Date.now();
|
| 245 |
+
document.body.appendChild(s);
|
| 246 |
});
|
| 247 |
</script>
|
| 248 |
</body>
|