yzt
2023-05-26 de4278af2fd46705a40bac58ec01122db6b7f3d7
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
jQuery(document).ready(function($) {
  
  $('.dropify').dropify({
      messages: { 'default': 'Click to Upload or Drag n Drop', 'remove':  '<i class="flaticon-close-fill"></i>', 'replace': 'Upload or Drag n Drop' }
  });
 
  // Save notification messagae
  $('#multiple-messages').on('click', function() {
      $.blockUI({
          message: $('.blockui-growl-message'), 
          fadeIn: 700, 
          fadeOut: 700, 
          timeout: 3000, //unblock after 3 seconds
          showOverlay: false, 
          centerY: false, 
          css: { 
              width: '250px',
              backgroundColor: 'transparent',
              top: '80px',
              left: 'auto',
              right: '15px',
              border: 0,
              opacity: .95,
              zIndex: 1200,
          } 
      }); 
  });
 
  setTimeout(function(){ $('.list-group-item.list-group-item-action').last().removeClass('active'); }, 100);
 
});
 
progressBarCount('.progress-range-counter');
 
function progressBarCount($progressCount) {
    var elements = document.querySelectorAll($progressCount);
    for (var i = 0; i < elements.length; i++) {
        elements[i].addEventListener('input', function(event) {
            getValueOfRangeSlider = this.value;
            getParentElement = this.closest(".custom-progress").querySelector('.range-count-number');
 
            setValueOfRangeCountValue = getParentElement.innerHTML = getValueOfRangeSlider;
            setValueOfAttributeValue = getParentElement.setAttribute("data-rangeCountNumber", getValueOfRangeSlider)
        });
    }
}