File: /home/imensosw/www/imenso.co/dev/impactify-it/js/projectDetails.js
$(document).on('click','.expressInterest',function(){
$.ajax({
url:path+'user/expressInterest',
type:"POST",
data:{_token:token,project_id:project_id,product_name:project_name},
success:function(data){
ajax_message(data,'success');
},
error:function(data){
ajax_message(data,'danger');
},
dataType:'json',
});
})
$(document).on('click','.sdg img',function(){
$('.sdg').removeClass('active');
$(this).closest('a').addClass('active');
var self=$(this);
$('.bannerSlider1').slick('slickRemove',true);
var id=self.attr('data-id');
var token = "{{ csrf_token() }}";
$.ajax({
url:path+'site/getSdgProduct',
type:"POST",
data:{_token:token,id:id},
success:function(data){
$('.bannerSlider1').slick('slickAdd',data.data);
},
error:function(data){
},
dataType:'json',
});
});
/*funds_utilization open*/
function funds_utilization(totalApproved,totalReceived,totalUtilized)
{
var chart = new CanvasJS.Chart("chart_funds_utilization", {
animationEnabled: true,
title: {
text: ""
},
legend: {
verticalAlign: "top",
horizontalAlign: "right",
dockInsidePlotArea: false,
fontSize: 12
},
axisX: {
valueFormatString: "MMM YY",
interval:1,
intervalType: "month"
},
axisY: {
title: "",
titleFontColor: "#4F81BC",
suffix: "",
valueFormatString: "₹ #,##0,###.#"
},
data: [
{
indexLabelFontColor: "darkSlateGray",
name: "Approved",
type: "splineArea",
yValueFormatString: "₹ #,##0,###.#",
showInLegend: true,
legendMarkerType: "square",
color: "rgba(0,69,238,.7)",
xValueType: "dateTime",
dataPoints: totalApproved
},
{
indexLabelFontColor: "darkSlateGray",
name: "Disbursed",
type: "splineArea",
yValueFormatString: "₹ #,##0,###.#",
showInLegend: true,
legendMarkerType: "square",
color: "rgba(112,173,71,.7)",
xValueType: "dateTime",
dataPoints: totalReceived
},
{
indexLabelFontColor: "darkSlateGray",
name: "Utilized",
type: "splineArea",
yValueFormatString: "₹ #,##0,###.#",
showInLegend: true,
legendMarkerType: "square",
color: "rgba(255,192,37,.7)",
xValueType: "dateTime",
dataPoints: totalUtilized
}
]
});
chart.render();
// budget_1 end
}
;