digpas commited on
Commit
5b19c4c
·
verified ·
1 Parent(s): c241325

создай логику для каждой кнопки: - Клиенты - Опросы - Настройки - На главную - Follow Up Deployment

Browse files
Files changed (1) hide show
  1. index.html +33 -4
index.html CHANGED
@@ -33,19 +33,19 @@
33
  <i class="fas fa-chart-line"></i>
34
  <span>Статистика</span>
35
  </a>
36
- <a href="#" class="sidebar-item flex items-center space-x-2 p-2 rounded-lg">
37
  <i class="fas fa-users"></i>
38
  <span>Клиенты</span>
39
  </a>
40
- <a href="#" class="sidebar-item flex items-center space-x-2 p-2 rounded-lg">
41
  <i class="fas fa-poll"></i>
42
  <span>Опросы</span>
43
  </a>
44
- <a href="#" class="sidebar-item flex items-center space-x-2 p-2 rounded-lg">
45
  <i class="fas fa-cog"></i>
46
  <span>Настройки</span>
47
  </a>
48
- <a href="index.html" class="sidebar-item flex items-center space-x-2 p-2 rounded-lg">
49
  <i class="fas fa-arrow-left"></i>
50
  <span>На главную</span>
51
  </a>
@@ -452,6 +452,35 @@
452
 
453
  <script>
454
  document.addEventListener('DOMContentLoaded', function() {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
455
  // Rating buttons interaction
456
  const ratingButtons = document.querySelectorAll('.rating-btn');
457
  ratingButtons.forEach(button => {
 
33
  <i class="fas fa-chart-line"></i>
34
  <span>Статистика</span>
35
  </a>
36
+ <a href="#" id="clients-btn" class="sidebar-item flex items-center space-x-2 p-2 rounded-lg">
37
  <i class="fas fa-users"></i>
38
  <span>Клиенты</span>
39
  </a>
40
+ <a href="#" id="surveys-btn" class="sidebar-item flex items-center space-x-2 p-2 rounded-lg">
41
  <i class="fas fa-poll"></i>
42
  <span>Опросы</span>
43
  </a>
44
+ <a href="#" id="settings-btn" class="sidebar-item flex items-center space-x-2 p-2 rounded-lg">
45
  <i class="fas fa-cog"></i>
46
  <span>Настройки</span>
47
  </a>
48
+ <a href="index.html" id="home-btn" class="sidebar-item flex items-center space-x-2 p-2 rounded-lg">
49
  <i class="fas fa-arrow-left"></i>
50
  <span>На главную</span>
51
  </a>
 
452
 
453
  <script>
454
  document.addEventListener('DOMContentLoaded', function() {
455
+ // Sidebar navigation logic
456
+ document.getElementById('clients-btn').addEventListener('click', function(e) {
457
+ e.preventDefault();
458
+ // Here you would typically load clients view via AJAX or show a modal
459
+ console.log('Clients button clicked');
460
+ alert('Loading clients management...');
461
+ // Example: window.location.href = 'clients.html';
462
+ });
463
+
464
+ document.getElementById('surveys-btn').addEventListener('click', function(e) {
465
+ e.preventDefault();
466
+ console.log('Surveys button clicked');
467
+ alert('Loading surveys management...');
468
+ // Example: window.location.href = 'surveys.html';
469
+ });
470
+
471
+ document.getElementById('settings-btn').addEventListener('click', function(e) {
472
+ e.preventDefault();
473
+ console.log('Settings button clicked');
474
+ alert('Loading system settings...');
475
+ // Example: window.location.href = 'settings.html';
476
+ });
477
+
478
+ document.getElementById('home-btn').addEventListener('click', function(e) {
479
+ // No preventDefault() here since we want the link to work normally
480
+ console.log('Navigating to home page');
481
+ // The href="index.html" will handle the navigation
482
+ });
483
+
484
  // Rating buttons interaction
485
  const ratingButtons = document.querySelectorAll('.rating-btn');
486
  ratingButtons.forEach(button => {