PageSourceSearch

https://app.iplusliving.com/js/custom-fermax.js?v=4.1

js iplusliving.com collected 2026-10-06 17:47:47 UTC 6,300 bytes, 227 lines download raw bytes

1// Setting 
2
3jQuery('#settingMenu').on('hide.bs.dropdown', function (e) {
4  if (e.clickEvent) {
5    e.preventDefault();
6  }
7});
8// file upload 
9// Code By Webdevtrick ( https://webdevtrick.com )
10function readFile(input) {
11if (input.files && input.files[0]) {
12  var reader = new FileReader();
13 
14  reader.onload = function(e) {
15  var htmlPreview =
16    '<img width="200" src="' + e.target.result + '" />' +
17    '<p>' + input.files[0].name + '</p>';
18  var wrapperZone = jQuery(input).parent();
19  var previewZone = jQuery(input).parent().parent().find('.preview-zone');
20  var boxZone = jQuery(input).parent().parent().find('.preview-zone').find('.box').find('.box-body');
21 
22  wrapperZone.removeClass('dragover');
23  previewZone.removeClass('hidden');
24  boxZone.empty();
25  boxZone.append(htmlPreview);
26  };
27 
28  reader.readAsDataURL(input.files[0]);
29}
30}
31 
32function reset(e) {
33e.wrap('<form>').closest('form').get(0).reset();
34e.unwrap();
35}
36 
37jQuery(".dropzone").change(function() {
38readFile(this);
39});
40 
41jQuery('.dropzone-wrapper').on('dragover', function(e) {
42e.preventDefault();
43e.stopPropagation();
44jQuery(this).addClass('dragover');
45});
46 
47jQuery('.dropzone-wrapper').on('dragleave', function(e) {
48e.preventDefault();
49e.stopPropagation();
50jQuery(this).removeClass('dragover');
51});
52 
53jQuery('.remove-preview').on('click', function() {
54var boxZone = $(this).parents('.preview-zone').find('.box-body');
55var previewZone = $(this).parents('.preview-zone');
56var dropzone = $(this).parents('.form-group').find('.dropzone');
57boxZone.empty();
58previewZone.addClass('hidden');
59reset(dropzone);
60});
61
62// End file upload 
63
64
65//   All Modalbox
66// select user
67jQuery(document).on('click', '#selectusers', function() {
68$('#selectUsers').modal('show');
69});
70
71// Polls views
72
73jQuery(document).on('click', '#viewvotes', function() {
74$('#viewVotes').modal('show');
75});
76
77
78// Polls details
79
80jQuery(document).on('click', '#polldetail', function() {
81$('#pollDetail').modal('show');
82});
83
84// Polls details view
85
86jQuery(document).on('click', '#polldetailview', function() {
87$('#pollDetailview').modal('show');
88});
89
90
91//Select dropdown Options
92function custom_select_box()
93{
94  $('.custom_select_box').each(function () {
95
96      var $this = $(this);
97
98      numberOfOptions = $(this).children('option').length;
99
100      $this.addClass('s-hidden');
101
102      if ($(this).parent('.select').length)
103      {
104          var $styledSelect = $this.next('div.styledSelect');
105
106          //$styledSelect.text($this.children('option').eq(0).text());
107          $styledSelect.text($(this).find('option:selected').text());
108
109          var $list = $this.siblings('.options');
110
111          $list.find('li').remove();
112
113          //Insert a list item into the unordered list for each select option
114          for (var i = 0; i < numberOfOptions; i++) {
115              $('<li />', {
116                  text: $this.children('option').eq(i).text(),
117                  rel: $this.children('option').eq(i).val()
118              }).appendTo($list);
119          }
120
121          // Cache the list items
122          var $listItems = $list.children('li');
123
124          $listItems.on("click",function (e) {
125              e.stopPropagation();
126              $styledSelect.text($(this).text()).removeClass('active');
127              $this.val($(this).attr('rel'));
128              $list.hide();
129              //alert($this.val()); //Uncomment this for demonstration!
130              $this.trigger('change');
131          });
132      } else
133      {
134          $this.wrap('<div class="select"></div>');
135
136          $this.after('<div class="styledSelect"></div>');
137
138          var $styledSelect = $this.next('div.styledSelect');
139
140          //$styledSelect.text($this.children('option').eq(0).text());
141          $styledSelect.text($(this).find('option:selected').text());
142
143          var $list = $('<ul />', {
144              'class': 'options'
145          }).insertAfter($styledSelect);
146
147          // Insert a list item into the unordered list for each select option
148          for (var i = 0; i < numberOfOptions; i++) {
149              $('<li />', {
150                  text: $this.children('option').eq(i).text(),
151                  rel: $this.children('option').eq(i).val()
152              }).appendTo($list);
153          }
154
155          // Cache the list items
156          var $listItems = $list.children('li');
157
158
159          $styledSelect.on("click" , function (e) {
160              e.stopPropagation();
161              if ($(this).hasClass('active'))
162              {
163                  $(this).toggleClass('active').next('ul.options').toggle();
164              } else
165              {
166                  $('div.styledSelect.active').each(function () {
167                      $(this).removeClass('active').next('ul.options').hide();
168                  });
169
170                  if ($this.is(':enabled'))
171                  {
172                      $(this).toggleClass('active').next('ul.options').toggle();
173                  }
174              }
175          });
176
177
178          $listItems.on("click" ,function (e) {
179              e.stopPropagation();
180              $styledSelect.text($(this).text()).removeClass('active');
181              $this.val($(this).attr('rel'));
182              $list.hide();
183              //alert($this.val()); //Uncomment this for demonstration!
184              $this.trigger('change');
185          });
186
187          // Hides the unordered list when clicking outside of it
188          $(document).on("click" ,function () {
189              $styledSelect.removeClass('active');
190              $list.hide();
191          });
192      }
193  });
194}
195
196custom_select_box();
197
198
199// text field floating label
200
201function float() {
202var group = $('[data-floating-group]');
203
204group.each(function() {
205  var that = $(this),
206      input = that.find('[data-floating-input]');
207  
208  input.on('focus', function(){
209    that.addClass('label-up focus');
210  });
211  
212  input.on('blur', function() {
213    that.removeClass('focus');
214    if(!$(this).val()) {
215      that.removeClass('label-up');
216    }
217  });
218
219  
220      
221});
222}
223
224float();
225
226// Adjust the zoom level
227// document.body.style.zoom = "100%"; // You can set the desired zoom level (e.g., 80% for zoomed out).

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.