Commit af17101b authored by Porter Libby's avatar Porter Libby
Browse files

add test data for all second page objects, remove old data

parent d46b7474
This diff is collapsed.
......@@ -2,8 +2,45 @@ var dictionary = {
"first_year_advising": "This is placeholder information for the FIRST YEAR ADVISING block.",
"career_exploration": "This is placeholder information for the CAREER EXPLORATION block.",
"career_community": "This is placeholder information for the CAREER COMMUNITY block.",
"campus_life": [
"campus life example 1",
"campus life example 2"
],
"community_engagement": [
"community engagement 1",
"community engagement 2"
],
"major_selection": [
"Computer Science",
"Mathematics",
"Biology",
"Geology",
"Chemistry",
"German",
"English",
"Music"
],
"research": [
"research option 1",
"research option 2",
"research option 3"
],
"internship": [
"internship option 1",
"internship option 2",
"internship option 3"
],
"off_campus_study": [
"offcampus study 1",
"offcampus study 2",
"offcampus study 3"
],
"career": [
"Web Developer",
"Manager",
"Accountant",
"Salesman",
"Dentist"
],
}
\ No newline at end of file
var first_year_advising = [
"Fake Seminar 1",
"Fake Seminar 2",
"Fake Seminar 3",
"Fake Seminar 4"
]
\ No newline at end of file
African and African American Studies
Ancient and Classical Studies
Archaeology
Art
Athletics Wellness and Physical Education
Biochemistry
Biology
Chemistry
Chinese Languages
Chinese Studies
Comparative Languages and Linguistics
Computer Science
East Asian Studies
Economics
English
Environmental Sustainability
Film Studies
French and Francophone Studies
Geology
German Language and Literature
Global Management
History
Human Development and Social Relations
International Studies
Japanese Language and Linguistics
Japanese Studies
Jewish Studies
Languages and Cultures
Master of Arts in Teaching
Master of Education
Mathematics
Museum Studies
Music
Neuroscience
Peace and Global Studies
Philosophy
Physics and Astronomy
Politics
Psychology
Public Health
Public Policy
Religion
Sociology and Anthropology
Spanish and Hispanic Studies
Teaching English to Speakers of Other Languages
Theatre Arts
Women's Gender Sexuality Studies
......@@ -47,7 +47,7 @@
<span class='box-header'>Research</span></br>
<span class='box-prompt'></span>
</div>
<div class="box div5" onclick='openDetails("Internship", this)'>
<div class="box div5" onclick='openDetails("internship", this)'>
<span class='box-header'>Internship</span></br>
<span class='box-prompt'></span>
</div>
......@@ -89,8 +89,14 @@
var text = dictionary[key];
newDiv.innerHTML += '</br><span>' + text + '</span>';
}
else if (key == 'career'){
createSearchBar(newDiv);
else if ((key == 'campus_life') ||
(key == 'community_engagement') ||
(key == 'major_selection') ||
(key == 'research') ||
(key == 'internship') ||
(key == 'off_campus_study') ||
(key == 'career')) {
createSearchBar(newDiv, key);
}
......@@ -121,6 +127,7 @@
document.getElementById('slide-button').innerHTML = 'Next';
}
});
closeDetails()
</script>
</body>
</html>
\ No newline at end of file
console.log(first_year_advising); // show json structure from 'data/careers-data.js'
var container_name = 'First Year Advising';
var container = document.getElementById(container_name);
\ No newline at end of file
......@@ -2,26 +2,26 @@
// Porter Libby 2019
function createSearchBar(container){
function createSearchBar(container, key){
//create search obj
var search_container = document.createElement("div");
search_container.id = 'career-search-container';
search_container.id = key + '-search-container';
var search = document.createElement("INPUT");
search.id = 'searchbar'
search.setAttribute("type", "text");
search.setAttribute("value", "");
prompt = document.createElement('span');
prompt.innerHTML = 'Search for Careers:';
prompt.innerHTML = 'Search for ' + key + ':';
search_container.appendChild(prompt);
search_container.appendChild(search);
container.appendChild(search_container);
names_for_search = [];
for(x=0;x<careers.length;x++){
names_for_search.push(careers[x]);
for(x=0;x<dictionary[key].length;x++){
names_for_search.push(dictionary[key][x]);
}
autocomplete(document.getElementById("searchbar"), names_for_search);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment