`).text().replace(/\s+/g, ' ').trim(); //-------------------------------- // Set Cookie Expiration //-------------------------------- // if (isNaN(NEW_COOKIE_EXPIRATION)) { // console.log(COOKIE_NAME + ' cookie expiration is set to default 7 days'); } else { COOKIE_EXPIRATION = NEW_COOKIE_EXPIRATION; // console.log(COOKIE_NAME +' cookie expiration is set to ' + NEW_COOKIE_EXPIRATION + ' days'); } //-------------------------------- // Check Cookie //-------------------------------- // checkCookie(COOKIE_NAME); if (getCookie(COOKIE_NAME)) { $alertMsg.hide(); } else { $alertMsg.show(); } //-------------------------------- // Close Message and Set Cookie //-------------------------------- // $alertMsgCloseBtn.click(function () { $alertMsg.hide(); setCookie(COOKIE_NAME, COOKIE_CONTENT, COOKIE_EXPIRATION); checkCookie(COOKIE_NAME); }); //-------------------------------- // Functions //-------------------------------- // function checkCookie(cname) { var match = getCookie(cname); if (match && match[1] !== COOKIE_CONTENT) { deleteCookie(cname); // console.log(cname + ' cookie has been cleared.'); } else if (match) { // console.log(cname + ' cookie is REMEMBERED on this browser.'); } else { // console.log(cname + ' cookie is NOT REMEMBERED on this browser.'); } } function setCookie(cname, cvalue, exdays) { var d = new Date(); d.setTime(d.getTime() + (exdays * 24 * 60 * 60 * 1000)); var expires = "expires=" + d.toUTCString(); document.cookie = cname + "=" + cvalue + ";" + expires + ";path=/"; // console.log(cname + ' cookie was set to "' + cvalue + '", and will be expired on ' + expires); } function deleteCookie(cname) { document.cookie = cname + '=; Path=/; Expires=Thu, 01 Jan 1970 00:00:01 GMT;'; } function getCookie(cname) { return document.cookie.match(new RegExp("(?:^|; )" + cname + "=([^;]*)")); } })(); //----------------------------------------------------------- // // Search // //----------------------------------------------------------- // (function () { var $body = $('body'); var $header = $('#tpl-NO4PTY'); var $menu = $('.header-menu, .mega-menu', $header) var $burger = $('.burger', $header) var $headerSearch = $('.header-search', $header); var $headerSearchBtns = $('.header-search-btn, .header-utility-bar-search-btn', $header); var $headerSearchInput = $('input[name="q"]', $header); var $headerSearchBackdrop = $('.header-search-backdrop', $header); var $headerSearchCloseBtn = $('.header-search-close-btn', $header); $headerSearchBtns.on('click', function (e) { e.preventDefault(); $headerSearch.hasClass('active') ? closeSearchForm() : openSearchForm(); }); $headerSearchBackdrop.on('click', function () { closeSearchForm() }); $menu.on('mouseenter', function () { closeSearchForm(); }); $burger.on('click', function () { closeSearchForm_2(); }); // when esc key is pressed and search form is opened, close search form window.addEventListener('keydown', function (e) { if (e.keyCode === 27 && $headerSearch.hasClass('active')) { closeSearchForm(); // focus on search our website button $headerSearchBtns.focus(); } }); // when $headerSearchCloseBtn is clicked, close search form $headerSearchCloseBtn.on('click', function () { closeSearchForm(); // focus on search our website button $headerSearchBtns.focus(); }); function openSearchForm() { $body.addClass('_overflow-hidden'); $headerSearchBtns.addClass("active"); $headerSearch.addClass("active"); $headerSearch.fadeIn(400); $headerSearchInput.focus(); } function closeSearchForm() { $body.removeClass('_overflow-hidden'); $headerSearchBtns.removeClass("active"); $headerSearch.removeClass("active"); $headerSearch.fadeOut(400); $headerSearchInput.blur(); } function closeSearchForm_2() { $headerSearchBtns.removeClass("active"); $headerSearch.removeClass("active"); $headerSearch.fadeOut(400); $headerSearchInput.blur(); } })(); });

Community Impact – Education

Ensuring education for all individuals is at the heart of a growing, thriving community. For decades, The Dayton Foundation has partnered with others to help launch and fund numerous initiatives and special efforts that are working to support students’ success in Greater Dayton.

Historical Initiatives & Projects

Crayons to Classrooms – In 2006, The Dayton Foundation, Mathile Family Foundation and Goodwill Easterseals Miami Valley launched an initiative to address the growing issue of students going to school without the tools they needed to succeed. As the first teacher resource center of its kind in Dayton, Crayons to Classrooms has distributed basic school and craft supplies, valued at over $29 million, to qualifying teachers for children in need.

Making a Difference Through Scholarship Funds

Last fiscal year, more than $25 million in grants and scholarships was awarded from Dayton Foundation funds to support education. Of this amount, nearly $3 million was awarded in scholarships to aid nearly 1,200 students who are pursuing their dreams. You, too, can inspire students by creating a scholarship fund to support your area of academic interest or alma matter, or to honor the memory of a loved one.