Blame view

js/tabs.js 3.17 KB
42868d70   andryeyev   Создал GIT
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
  $(document).ready(function() {
  
  
  
  });
  $(document).ready(function() {
  
          //Default Action
          $(".tab_content2").hide(); //Hide all content
          $("ul#list2 li:first").addClass("active").show(); //Activate first tab
          $(".tab_content2:first").show(); //Show first tab content
  
          //On Click Event
          $("ul#list2 li").click(function() {
                  $("ul#list2 li").removeClass("active"); //Remove any "active" class
                  $(this).addClass("active"); //Add "active" class to selected tab
                  $(".tab_content2").hide(); //Hide all tab content
                  var activeTab = $(this).find("a").attr("href"); //Find the rel attribute value to identify the active tab + content
                  $(activeTab).fadeIn(); //Fade in the active content
                  return false;
          });
  
  });
  $(document).ready(function() {
  
          //Default Action
          $(".tab_content3").hide(); //Hide all content
          $("ul#list3 li:first").addClass("active").show(); //Activate first tab
          $(".tab_content3:first").show(); //Show first tab content
  
          //On Click Event
          $("ul#list3 li").click(function() {
                  $("ul#list3 li").removeClass("active"); //Remove any "active" class
                  $(this).addClass("active"); //Add "active" class to selected tab
                  $(".tab_content3").hide(); //Hide all tab content
                  var activeTab = $(this).find("a").attr("href"); //Find the rel attribute value to identify the active tab + content
                  $(activeTab).fadeIn(); //Fade in the active content
                  return false;
          });
  
  });
  $(document).ready(function() {
  
          //Default Action
          $(".tab_content4").hide(); //Hide all content
          $("ul#list4 li#tab32").addClass("active").show(); //Activate first tab
          $("#etab32").show(); //Show first tab content
  
          //On Click Event
          $("ul#list4 li").click(function() {
                  $("ul#list4 li").removeClass("active"); //Remove any "active" class
                  $(this).addClass("active"); //Add "active" class to selected tab
                  $(".tab_content4").hide(); //Hide all tab content
                  var activeTab = $(this).find("a").attr("href"); //Find the rel attribute value to identify the active tab + content
                  $(activeTab).fadeIn(); //Fade in the active content
                  return false;
          });
  
  });
  $(document).ready(function() {
  
          //Default Action
          $(".tab_content5").hide(); //Hide all content
          $("ul#list5 li:first").addClass("active").show(); //Activate first tab
          $(".tab_content5:first").show(); //Show first tab content
  
          //On Click Event
          $("ul#list5 li").click(function() {
                  $("ul#list5 li").removeClass("active"); //Remove any "active" class
                  $(this).addClass("active"); //Add "active" class to selected tab
                  $(".tab_content5").hide(); //Hide all tab content
                  var activeTab = $(this).find("a").attr("href"); //Find the rel attribute value to identify the active tab + content
                  $(activeTab).fadeIn(); //Fade in the active content
                  return false;
          });
  
  });