ginipick commited on
Commit
acfd54e
ยท
verified ยท
1 Parent(s): 7044fa5

Update index.html

Browse files
Files changed (1) hide show
  1. 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 onclick="(function(){if(window.__sa_panel_open){window.__sa_panel_open();}else{var f=document.getElementById('__sa_F');if(f){f.click();}}})()"
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>