Resource Center

All
Case Studies
Blog & White Papers
Videos & Webinars
PACE Geography

Keep Up With the Latest CleanFund News


function validate_file(uid, files) {
var file_err = ‘file_err’;
var upload_cv = $(‘#’ + uid);
var file = $(‘#’ + uid)[0].files[0];
if (file == undefined) {
upload_cv.after(‘

Please upload valid (‘ + files + ‘) File

‘);
return false;
} else {
$(“#” + file_err).html(“”);
}
}
(function ($) {
$(document).ready(function () {
$(“#contact-form-78976c1c761a24a3fe5302f897f26c1c”).validate();
var frm = $(‘#contact-form-78976c1c761a24a3fe5302f897f26c1c’);
frm.submit(function (e) {
if (frm.valid()) {
e.preventDefault();
$(“.is_ajax-5c05221a19f8a”).html(‘‘);
$(“.is_ajax-5c05221a19f8a”).hide();
$.ajax({
url: frm.attr(‘action’),
type: “POST”,
data: new FormData(this),
contentType: false,
cache: false,
processData: false,
beforeSend: function () {
//$(“.is_ajax”).fadeOut();
},
success: function (data) {
$(“.contact-form-submit input[type=’submit’]”).prop(‘disabled’, false);
if (data.success) {
$(‘.modal’).modal(‘show’);
$(“.is_ajax-5c05221a19f8a”).hide();
$(“.modal-body”).html(‘Thanks for subscribing! ‘);
$(frm)[0].reset();
}
else {
$(“.is_ajax-5c05221a19f8a”).html(‘Oops something went wrong.’);
}
},
error: function (e) {
$(“.contact-form-submit input[type=’submit’]”).prop(‘disabled’, false);
$(“.is_ajax-5c05221a19f8a”).html(‘Oops something went wrong.’);
}
});
$(“.is_ajax-5c05221a19f8a”).show();
$(“.contact-form-submit input[type=’submit’]”).prop(‘disabled’, true);
}else{
$(“.is_ajax-5c05221a19f8a”).html(‘‘);
$(“.is_ajax-5c05221a19f8a”).hide();
}
});
function gatedSubmit(url) {
// downloadFile(url);
$.AjaxDownloader({
url : ‘https://www.cleanfund.com/wp-admin/admin-ajax.php’,
data : {
action: ‘download_file’,
fileurl: url,
}
});
}
});
})(jQuery);
.modal-backdrop {
z-index: -1;
}
×

Close
var $ = jQuery.noConflict();
function form_submit_action_78976c1c761a24a3fe5302f897f26c1c() {
if( $( “#contact-form-78976c1c761a24a3fe5302f897f26c1c” ).valid() ){
function setLoader() {
jQuery(“.wrap-forms-loader”).show();
}
setLoader();
//console.log(this);
var form = document.querySelector(“#contact-form-78976c1c761a24a3fe5302f897f26c1c”).elements;
var json_obj = {};
for (var i = 0; i < form.length; i++) { //type equal to 'radio button' if (form[i].getAttribute('type') == "radio") { if (form[i].getAttribute('api-form-field')) { if (form[i].checked) { json_obj[form[i].getAttribute('api-form-field')] = form[i].value; } } } //TODO type equal to 'checkbox' else if (form[i].getAttribute('type') == "checkbox") { if (form[i].getAttribute('api-form-field')) { if (form[i].checked) { json_obj[form[i].getAttribute('api-form-field')] = form[i].value; } } } //other form fields else { if (form[i].getAttribute('api-form-field')) { json_obj[form[i].getAttribute('api-form-field')] = form[i].value; } } } jQuery('input[name="data"]').val(JSON.stringify(json_obj)); //setLoader(); //console.log(json_obj); var form_type = json_obj.form_submit_type; // Static Submit if(form_type == 'api_url'){ if (grecaptcha === undefined) { $('.form-message-wrapper').html( "Recaptcha not defined" ); jQuery(".wrap-forms-loader").hide(); return false; } var response = grecaptcha.getResponse(); if (!response) { $('.form-message-wrapper').html( "Coud not get recaptcha response" ); jQuery(".wrap-forms-loader").hide(); return false; } //console.log(form_type); var data_string = JSON.stringify(json_obj); //console.log(data_string); $.ajax({ url: json_obj.form_submit_url, data: data_string, type: 'post', success: function (data) { jQuery(".wrap-forms-loader").hide(); $("#contact-form-78976c1c761a24a3fe5302f897f26c1c")[0].reset(); $('.form-message-wrapper').html( ""+data.success_msg+"" ); }, error: function (data) { }, }); return false; } else{ } } //return console.log(json_obj); } function setLoader() { jQuery(".wrap-forms-loader").show(); } (function ($) { $.fn.exists = function(callback) { var args = [].slice.call(arguments, 1); if (this.length) { callback.call(this, args); } return this; }; $(document).ready(function(){ $('div.fw-flash-messages').exists(function() { $('.form-message-wrapper').append($('div.fw-flash-messages').html()); }); }); })(jQuery); ul.fw-flash-type-success { margin-bottom: 15px; margin-top: -30px; } ul.fw-form-errors { margin-bottom: 15px; margin-top: -30px; }

Blog

Pacific Ethanol 5 MW Solar Energy System: VIDEO CASE STUDY

29 November 2018

CleanFund’s funding of $10-million solar energy improvement delivering more than $1 million in annual operating cost savings to Pacific Ethanol.

Read More

Please Fill Out the Below to Download

Your Name
Email Address
Company

Download

function validateEmail($email) {
var emailReg = /^([w-.]+@([w-]+.)+[w-]{2,4})?$/;
return emailReg.test($email);
}
(function ($, window, document) {
// validation and form submission
var errors = 0;
$(‘#gated_download_btn2821’).click(function (e) {
if (!$.trim($(‘#fname2821’).val())) {
$(‘#fname2821’).addClass(‘warning’);
errors++;
return false;
} else {
errors = 0;
$(‘#fname2821’).removeClass(‘warning’);
}
if (!$.trim($(‘#femail2821’).val())) {
$(‘#femail2821’).addClass(‘warning’);
errors++;
return false;
} else if (!validateEmail($.trim($(‘#femail2821’).val()))) {
$(‘#femail2821’).addClass(‘warning’);
errors++;
return false;
} else {
errors = 0;
$(‘#femail2821’).removeClass(‘warning’);
}
if (!$.trim($(‘#fcompany2821’).val())) {
$(‘#fcompany2821’).addClass(‘warning’);
errors++;
return false;
} else {
errors = 0;
$(‘#fcompany2821’).removeClass(‘warning’);
}
// alert(errors);
if (errors == 0) {
e.preventDefault();
$.fancybox.close();
$.fancybox.open({
src: ‘#description-thankyou2821’,
type: ‘inline’,
opts: {
afterShow: function (instance, current) {
console.info(‘done!’);
}
}
});
$.ajax({
url: ‘https://www.cleanfund.com/wp-admin/admin-ajax.php’,
type: ‘post’,
data: {
action: ‘form_download’,
name: $.trim($(‘#fname2821’).val()),
email: $.trim($(‘#femail2821’).val()),
company: $.trim($(‘#fcompany2821’).val()),
attachment : ”
},
success: function (response) {
//alert(response);
//$(‘.rml_contents’).html(response);
},
error: function (errorThrown) {
console.log(errorThrown);
}
});
}
});
})(jQuery); // or even jQuery.noConflict()

Case Study

Fairfield Inn and Suites in Lakewood, CO

Fairfield Inn and Suites in Lakewood, CO

08 November 2018

Filling a critical gap in project’s capital stack and lowering the overall weighted average cost of capital, the $1.1 MM was disbursed in one lump sum reimbursement to the owner.

Read More

Case Study

Hotel Indigo in Rochester, Minnesota

Hotel Indigo in Rochester, Minnesota

02 November 2018

With CleanFund’s financing enabling a lower cost of capital, the redevelopment project was able to include the ‘green’ attributes that today’s hospitality guests demand.

Read More

Case Study

New Construction of Home2 Suites Hotel

New Construction of Home2 Suites Hotel

24 October 2018

C-PACE as an ideal solution to fill the $4.3 million construction financing gap and lower the weighted average cost of capital.

Read More

Webinar

PACE in the Development Capital Stack

PACE in the Development Capital Stack

23 October 2018

In this 30-minute webinar, CleanFund explains: What is PACE?, PACE terms, structure and how it improves the WACC, Representative PACE development projects and more!

Watch Webinar

Case Study

China Live

China Live

12 October 2018

In addition to energy savings of 24%, C-PACE also helped the owners solve their “split incentive” issue.

Read More

Case Study

Sunrise Country Club

Sunrise Country Club

11 October 2018

The solar improvements will generate over $5.4 Million in projected utility savings over the financing term.

Read More

Load More
// if(2 > 2){
// alert(‘ok’);
// }else{
// alert(‘notok’);
// }
function sameHeights(selector) {
var selector = selector,
query = document.querySelectorAll(selector),
elements = query.length,
max = 0;
if (elements) {
while (elements–) {
var element = query[elements];
if (element.clientHeight > max) {
max = element.clientHeight;
}
}
elements = query.length;
while (elements–) {
var element = query[elements];
element.style.height = max + ‘px’;
}
}
}
(function ($, window, document) {
// Check load more [show/hide button]
function checkLoadMoreButton_base_shortcode_resources_5c05221a1afc7(){
var paged = parseInt($(‘#paged_base_shortcode_resources_5c05221a1afc7’).val()); //alert(paged);
var valMaxPage = parseInt($(‘#maxPage_base_shortcode_resources_5c05221a1afc7’).val()); //alert(valMaxPage);
if (paged > valMaxPage) { //alert(‘hide’);
$(‘.loadMore_base_shortcode_resources_5c05221a1afc7’).hide();
} else {
$(‘.loadMore_base_shortcode_resources_5c05221a1afc7’).show();
}
}
checkLoadMoreButton_base_shortcode_resources_5c05221a1afc7();
$(“.loadMore_base_shortcode_resources_5c05221a1afc7”).on(“click”, function () {
getResourcesData_base_shortcode_resources_5c05221a1afc7(‘click’,’load’);
});
$(“.resource-filters_base_shortcode_resources_5c05221a1afc7 select”).on(“change”, function () {
getResourcesData_base_shortcode_resources_5c05221a1afc7(‘select’,’load’);
getResourcesData_base_shortcode_resources_5c05221a1afc7(‘select’,’maxPage’);
});
function getResourcesData_base_shortcode_resources_5c05221a1afc7(mode,maxPage) {
// We’ll pass this variable to the PHP function example_ajax_request
var atts = {“resource_types”:[“all”],”show_featured”:”1″,”show_default_featured”:””,”display_date”:”post”,”show_filters”:””,”filter_entries”:[],”load_more_text”:”Load More”,”posts_number_per_row”:”3″,”posts_number_per_row_tab”:”2″,”posts_number_per_row_mobile”:”1″,”posts_number_per_page”:”6″,”order_by”:”date”,”order”:”DESC”,”resource_block_type”:”all”};
var paged = parseInt($(‘#paged_base_shortcode_resources_5c05221a1afc7’).val());
//
var valMaxPage = parseInt($(‘#maxPage_base_shortcode_resources_5c05221a1afc7′).val());
var filters = {};
if(mode===’select’) {
var paged = 1;
}
$(“.resource-filters_base_shortcode_resources_5c05221a1afc7 select”).each(function(index){
if ($(this).has(‘option:selected’)){
//console.log(‘Select number ‘ + index + ‘: ‘ + $(this).val());
//console.log($(this).attr(“name”));
filters[‘”‘+$(this).attr(“name”)+'”‘] = $(this).val();
}
});
// This does the ajax request
$.ajax({
url: ‘https://www.cleanfund.com/wp-admin/admin-ajax.php’, // or example_ajax_obj.ajaxurl if using on frontend
type: ‘post’,
data: {
‘action’: ‘get_resources_data’,
‘atts’: atts,
‘featured_id’: 2821,
‘ajax’: true,
‘paged’: paged,
‘filters’: filters,
‘dataType’: maxPage,
},
success: function (data) {
//alert(data);
//alert(mode);
// alert(maxPage);
// This outputs the result of the ajax request
if(data!=0){
if(mode===’select’) {
if(maxPage === ‘maxPage’){
$(“#paged_base_shortcode_resources_5c05221a1afc7”).val(2);
$(“#maxPage_base_shortcode_resources_5c05221a1afc7”).val(data);
checkLoadMoreButton_base_shortcode_resources_5c05221a1afc7();
} else {
$(“.resource-items_base_shortcode_resources_5c05221a1afc7”).html(data);
sameHeights(“.resources-eh a”);
}
} else {
$(“.resource-items_base_shortcode_resources_5c05221a1afc7”).append(data);
sameHeights(“.resources-eh a”);
if (paged >= valMaxPage) {
$(‘.loadMore_base_shortcode_resources_5c05221a1afc7’).hide();
}
$(‘#paged_base_shortcode_resources_5c05221a1afc7’).val(paged + 1);
}
}else{
$(“.resource-items_base_shortcode_resources_5c05221a1afc7”).html(‘No data found’);
$(‘.loadMore_base_shortcode_resources_5c05221a1afc7’).hide();
}
},
error: function (errorThrown) {
console.log(errorThrown);
}
});
}
})(jQuery); // or even jQuery.noConflict()
#base-button-id-5c05221a33452 .base-button {
color:#ffffff;
background-color:#000000;
}

back to top