user_profile/static/js/awesome-forms.js   A
last analyzed

Complexity

Total Complexity 3
Complexity/F 1.5

Size

Lines of Code 14
Function Count 2

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 0
c 1
b 0
f 0
dl 0
loc 14
rs 10
wmc 3
nc 1
mnd 1
bc 4
fnc 2
bpm 2
cpm 1.5
noi 0
1
$(function(){
2
3
  $('.awesome-form .label-group input').focusout(function(){
4
    var text_value = $(this).val();
5
6
    if(text_value === ""){
7
      $(this).removeClass('has-value');
8
    }else{
9
      $(this).addClass('has-value');
10
    }
11
12
  });
13
14
});
15