import Ember from 'ember';

export default Ember.View.extend({
  didInsertElement: function() {
    
	this.$(".dial").attr('data-min', '0')
      .attr('data-max', '10')
      .attr('data-step', '1')
      .attr('data-angleOffset', '-125')
      .attr('data-angleArc', '250')
      .attr('data-width', '150')
      .attr('data-height', '150')
      .knob();

	this.$("#vol").click(function(){
		if ($("#vol").attr("class") == "fa fa-volume-up fa-2x"){
			$("#vol").removeClass("fa fa-volume-up fa-2x").addClass("fa fa-volume-off fa-2x");
			$('.dial').val(0).trigger('change');
			$('#status').text('Enable');
		}
		else{
			$("#vol").removeClass("fa fa-volume-off fa-2x").addClass("fa fa-volume-up fa-2x");
			$(".dial").attr('data-max', '10');
			$('.dial').val(7).trigger('change');		
			$('#status').text('Disable');			
		}
	});

  }

});

@@ -97,24 +97,22 @@
     
-%0A%09
 this.$(
-%22
+'
 .dial
-%22
+'
 ).at
@@ -353,23 +353,25 @@
 ();%0A
-%0A%09
+    
 this.$(
-%22
+'
 #vol
-%22
+'
 ).cl
@@ -388,44 +388,56 @@
 on()
+ 
 %7B%0A
-%09%09if ($(%22
+      if (Ember.$('
 #vol
-%22
+'
 ).attr(
-%22
+'
 class
-%22
+'
 ) ==
- %22
+= '
 fa f
@@ -457,23 +457,34 @@
 a-2x
-%22)%7B%0A%09%09%09$(%22
+')%7B%0A        Ember.$('
 #vol
-%22
+'
 ).re
@@ -485,33 +485,33 @@
 l').removeClass(
-%22
+'
 fa fa-volume-up 
@@ -511,25 +511,25 @@
 ume-up fa-2x
-%22
+'
 ).addClass(%22
@@ -519,33 +519,33 @@
 a-2x').addClass(
-%22
+'
 fa fa-volume-off
@@ -550,23 +550,34 @@
 ff fa-2x
-%22);%0A%09%09%09
+');%0A        Ember.
 $('.dial
@@ -605,19 +605,30 @@
 ange');%0A
-%09%09%09
+        Ember.
 $('#stat
@@ -652,31 +652,45 @@
 ');%0A
-%09%09%7D%0A%09%09
+      %7D 
 else
+ 
 %7B%0A
-%09%09%09$(%22
+        Ember.$('
 #vol
-%22
+'
 ).re
@@ -695,25 +695,25 @@
 removeClass(
-%22
+'
 fa fa-volume
@@ -722,17 +722,17 @@
 ff fa-2x
-%22
+'
 ).addCla
@@ -734,17 +734,17 @@
 ddClass(
-%22
+'
 fa fa-vo
@@ -760,24 +760,35 @@
 a-2x
-%22);%0A%09%09%09$(%22
+');%0A        Ember.$('
 .dial
-%22
+'
 ).at
@@ -809,19 +809,30 @@
  '10');%0A
-%09%09%09
+        Ember.
 $('.dial
@@ -863,14 +863,23 @@
 e');
-%09%09%0A%09%09%09
+%0A        Ember.
 $('#
@@ -907,27 +907,29 @@
 e');
-%09%09%09%0A%09%09%7D%0A%09
+%0A      %7D%0A    
 %7D);%0A
-%0A
   %7D%0A
-%0A
 %7D);%0A

Fix JSHint errors