Skip to content

Commit

Permalink
Minor updates (#1641)
Browse files Browse the repository at this point in the history
* Add debounce to comparison select-controlled updates

* Update full-time description on compare page

* Update "by the numbers" section of homepage
  • Loading branch information
kynetiv committed Sep 28, 2017
1 parent 9b87831 commit 69cbfd1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion _data/glossary.yaml
Expand Up @@ -16,7 +16,7 @@ retention-rate: <strong>Students Who Return After Their First Year</strong> The

earnings-25k: <strong>Threshold Earnings</strong> The share of former students earning more than $25,000, or about the average earnings of a high school graduate aged 25-34, 6 years after they first enroll.

full-time: <strong>Full-time Enrollment</strong> Percent of first-time, full-time students.
full-time: <strong>Full-time Enrollment</strong> Percent of undergraduates who are enrolled on a full-time schedule.

race-eth: <strong>Race/Ethnicity</strong> The specific race/ethnicity categories (including those for foreign students pursuing postsecondary education at an institution within the U.S.) are either required (1997) and/or approved (2007) by the Office of Management and Budget (2007). Only the race/ethnicity groups of students enrolled in this institution are displayed.

Expand Down
2 changes: 1 addition & 1 deletion index.html
Expand Up @@ -73,7 +73,7 @@ <h1>By The Numbers</h1>
<li>
<img src="{{ site.baseurl }}/img/cap.svg" alt="Graduation cap">
Did you know that
<strong>30%</strong>
<strong>40%</strong>
<strong>of college students</strong>
<div class="fact-words">started college at <span>age 25 or older</span>?</div>
</li>
Expand Down
5 changes: 3 additions & 2 deletions js/src/compare.js
Expand Up @@ -438,7 +438,8 @@ module.exports = function compare() {
return this.hasAttribute(dataSelect);
},
{
change: function(e) {
change: picc.debounce(function(e) {
e.preventDefault();
var targetMeter = e.target.getAttribute(dataSelect);
var meters = [].slice.call(document.querySelectorAll('picc-side-meter[data-bind="'+targetMeter+'"]'));
var selectedOption = e.target.value;
Expand All @@ -463,7 +464,7 @@ module.exports = function compare() {
figVal.textContent = formattedValue;
}
}
}
}, 250)
}
);

Expand Down

0 comments on commit 69cbfd1

Please sign in to comment.