Merge pull request 'Adds a data list to show serach suggestions + reformatting' (#2) from feature-search-suggestions into main

Reviewed-on: lab-cat/YourChinaScienceInvestigation#2
This commit is contained in:
procrastimax 2022-06-26 13:16:50 +02:00
commit 5f57ec35c2
10 changed files with 214 additions and 200 deletions

View file

@ -117,7 +117,6 @@ Heinrich Hertz Institute
University of Hildesheim University of Hildesheim
Mitsubishi Heavy Industries Mitsubishi Heavy Industries
Hamburg University of Applied Sciences Hamburg University of Applied Sciences
"Bauhaus University, Weimar"
University of Paris University of Paris
Potsdam Institute for Climate Impact Research Potsdam Institute for Climate Impact Research
Institute for Geosciences and Natural Resources Institute for Geosciences and Natural Resources
@ -153,7 +152,6 @@ National Autonomous University of Mexico
Catholic University of Eichstätt-Ingolstadt Catholic University of Eichstätt-Ingolstadt
Ifo Institute for Economic Research Ifo Institute for Economic Research
Frankfurt Institute for Advanced Studies Frankfurt Institute for Advanced Studies
"University of Maryland, College Park"
German Primate Center German Primate Center
Furtwangen University Furtwangen University
National University of Singapore National University of Singapore
@ -232,9 +230,7 @@ Mitsubishi
Institut national de la recherche agronomique Institut national de la recherche agronomique
University of Buenos Aires University of Buenos Aires
Leibniz Institute for Astrophysics Potsdam Leibniz Institute for Astrophysics Potsdam
"Wuppertal Institute for Climate, Environment and Energy"
Ostwestfalen-Lippe University of Applied Sciences Ostwestfalen-Lippe University of Applied Sciences
"University of Education, Winneba"
Vilnius University Vilnius University
Bremen Institute for Applied Beam Technology Bremen Institute for Applied Beam Technology
Heinrich Pette Institute Heinrich Pette Institute
@ -297,7 +293,6 @@ Hochschule Wismar
Instituto Politécnico Nacional Instituto Politécnico Nacional
EBS University of Business and Law EBS University of Business and Law
Technical University of Applied Sciences Wildau Technical University of Applied Sciences Wildau
"Berlin, Deutschland"
Hasso Plattner Institute Hasso Plattner Institute
Rhine-Waal University of Applied Sciences Rhine-Waal University of Applied Sciences
University of Iceland University of Iceland
@ -308,7 +303,6 @@ Tampere University of Technology
Eastman Chemical Company Eastman Chemical Company
Petersburg Nuclear Physics Institute Petersburg Nuclear Physics Institute
Hochschule der Medien Hochschule der Medien
"University of Applied Sciences, Kaiserslautern"
University of Bucharest University of Bucharest
King Saud University King Saud University
Alpen-Adria-Universität Klagenfurt Alpen-Adria-Universität Klagenfurt
@ -318,7 +312,6 @@ Indian Institutes of Technology
Rolls-Royce Deutschland Rolls-Royce Deutschland
Steinbeis-Hochschule Berlin Steinbeis-Hochschule Berlin
Belarusian State University Belarusian State University
"Monash University, Clayton campus"
University of Oregon University of Oregon
Peace Research Institute Frankfurt Peace Research Institute Frankfurt
Heart and Diabetes Center North Rhine-Westphalia Heart and Diabetes Center North Rhine-Westphalia
@ -337,16 +330,13 @@ Friedrich Ebert Foundation
Schrödinger Schrödinger
Institut für Kristallzüchtung Institut für Kristallzüchtung
Mahidol University Mahidol University
"University of Applied Sciences, Mainz"
Deutsche Bundespost Deutsche Bundespost
Deutsches Museum Deutsches Museum
Chiang Mai University Chiang Mai University
Alcatel-Lucent Alcatel-Lucent
"German University of Administrative Sciences, Speyer"
University of Tromsø University of Tromsø
Media Research Center Media Research Center
Leibniz Center for Tropical Marine Ecology Leibniz Center for Tropical Marine Ecology
"International University, Cambodia"
International Institute of Minnesota International Institute of Minnesota
Konstanz University of Applied Sciences Konstanz University of Applied Sciences
Addis Ababa University Addis Ababa University
@ -358,10 +348,8 @@ Smithsonian Tropical Research Institute
Social Science Research Center Berlin Social Science Research Center Berlin
Tumor Immunology Tumor Immunology
University of Costa Rica University of Costa Rica
"Fraunhofer Institute for High-Speed Dynamics, Ernst-Mach-Institut"
Catholic University of Leuven Catholic University of Leuven
ZEW Leibniz Centre for European Economic Research ZEW Leibniz Centre for European Economic Research
"University of Agriculture, Faisalabad"
German Criminal Police Office German Criminal Police Office
Protein Sciences Protein Sciences
University of Los Andes University of Los Andes
@ -402,7 +390,6 @@ University of Cyprus
University of Maribor University of Maribor
Osram Opto Semiconductors GmbH Osram Opto Semiconductors GmbH
Universitätsklinikum Hamburg-Eppendorf Universitätsklinikum Hamburg-Eppendorf
"München, Deutschland"
IAV IAV
Technical University of Cluj-Napoca Technical University of Cluj-Napoca
University of Karachi University of Karachi
@ -412,7 +399,6 @@ Lviv University
Erwin L. Hahn Institute for Magnetic Resonance Imaging Erwin L. Hahn Institute for Magnetic Resonance Imaging
Epigenomics AG Epigenomics AG
Fraunhofer Institute for Open Communication Systems Fraunhofer Institute for Open Communication Systems
"Hamburg, Deutschland"
MESA+ Institute for Nanotechnology MESA+ Institute for Nanotechnology
National Cheng Kung University National Cheng Kung University
Beiersdorf Beiersdorf
@ -430,7 +416,6 @@ Niels Bohr Institute
Ludwigshafen University of Applied Sciences Ludwigshafen University of Applied Sciences
University of Dschang University of Dschang
Weingarten Realty Investors Weingarten Realty Investors
"Agency for Science, Technology and Research"
University of Ibadan University of Ibadan
University of Niš University of Niš
Japan Atomic Energy Research Institute Japan Atomic Energy Research Institute
@ -444,7 +429,6 @@ National University of Science and Technology
Infection and Cancer Infection and Cancer
Federal University of Ceará Federal University of Ceará
Ladenburg Thalmann Ladenburg Thalmann
"Berlin, Germany"
University of Khartoum University of Khartoum
Faurecia Faurecia
Ivoclar Vivadent Ivoclar Vivadent
@ -461,7 +445,6 @@ Slovak University of Technology in Bratislava
University of Kharkiv University of Kharkiv
Asahi Kasei Asahi Kasei
Bavarian Forest National Park Bavarian Forest National Park
"Köln, Institut für Anorganische Chemie der Universität"
Foundation for Research & Technology Hellas Foundation for Research & Technology Hellas
German Institute of Food Technologies German Institute of Food Technologies
Universitätsklinikum Erlangen Universitätsklinikum Erlangen
@ -493,7 +476,6 @@ German Office for Information Security
Laser Zentrum Hannover e.V. (Germany) Laser Zentrum Hannover e.V. (Germany)
Makerere University Makerere University
Medical Park Medical Park
"Stuttgart, Institut für Anorganische Chemie der Universität"
University of Guadalajara University of Guadalajara
University of the Republic University of the Republic
Ansbach Ansbach
@ -554,12 +536,10 @@ Fraunhofer Institute for Industrial Mathematics
Health Science University Health Science University
Metz Metz
Myriad Genetics Myriad Genetics
"Stuttgart, Deutschland"
University of Split University of Split
Robert Bosch Stiftung Robert Bosch Stiftung
Bangladesh Agricultural University Bangladesh Agricultural University
European Institute European Institute
"Hamburg, Germany"
Hella Hella
Lviv Polytechnic Lviv Polytechnic
Tribhuvan University Tribhuvan University
@ -572,7 +552,6 @@ Universitätsklinikum Ulm
Yerevan Physics Institute Yerevan Physics Institute
Catholic University of Applied Sciences Freiburg Catholic University of Applied Sciences Freiburg
Center for Financial Studies Center for Financial Studies
"College of Health Sciences, Bahrain"
Kaunas University of Technology Kaunas University of Technology
Nokia Nokia
The Cyprus Institute The Cyprus Institute
@ -605,18 +584,15 @@ Yarmouk University
Hashemite University Hashemite University
International Food Policy Research Institute International Food Policy Research Institute
Fachhochschule Potsdam Fachhochschule Potsdam
"Köln, Deutschland"
United Arab Emirates University United Arab Emirates University
University of the Algarve University of the Algarve
Adria Airways Adria Airways
Alexandru Ioan Cuza University Alexandru Ioan Cuza University
Bosch Rexroth Bosch Rexroth
"Central Institute of Mental Health, Mannheim, Germany"
Central University of Venezuela Central University of Venezuela
University of Valle University of Valle
Leibniz Institute of European History Leibniz Institute of European History
Siemens Energy Sector Siemens Energy Sector
"Umwelttechnik BW GmbH, Stuttgart, Deutschland"
Benemérita Universidad Autónoma de Puebla Benemérita Universidad Autónoma de Puebla
National Chemical Laboratory National Chemical Laboratory
Department of Physics Department of Physics
@ -625,13 +601,11 @@ Prince of Songkla University
Springer Science+Business Media Springer Science+Business Media
Technical University of Sofia Technical University of Sofia
University of Dhaka University of Dhaka
"Vietnam National University, Ho Chi Minh City"
King Fahd University of Petroleum and Minerals King Fahd University of Petroleum and Minerals
Obafemi Awolowo University Obafemi Awolowo University
1 and 2 1 and 2
French Alternative Energies and Atomic Energy Commission French Alternative Energies and Atomic Energy Commission
International Trademark Association International Trademark Association
"Karlsruhe, Deutschland"
Georgia Regents University Georgia Regents University
International Centre of Insect Physiology and Ecology International Centre of Insect Physiology and Ecology
Lufthansa Lufthansa
@ -653,8 +627,6 @@ Lithuanian University of Health Sciences
Solvay Solvay
University of Applied Sciences Ravensburg-Weingarten University of Applied Sciences Ravensburg-Weingarten
University of Dar es Salaam University of Dar es Salaam
"University of Engineering and Technology, Lahore"
"University of Nigeria, Nsukka"
Universidad Autónoma de San Luis Potosí Universidad Autónoma de San Luis Potosí
University of Applied Sciences Deggendorf University of Applied Sciences Deggendorf
Berlin-Brandenburg Academy of Sciences and Humanities Berlin-Brandenburg Academy of Sciences and Humanities
@ -663,14 +635,11 @@ Florida State University College of Arts and Sciences
Laboratoires Pierre Fabre Laboratoires Pierre Fabre
Leibniz Institute for Psychology Information Leibniz Institute for Psychology Information
Sanford-Burnham Institute for Medical Research Sanford-Burnham Institute for Medical Research
"Western Springs, USA"
Federal Ministry of Finance (Germany) Federal Ministry of Finance (Germany)
"Ministry of the Environment, Climate Protection and the Energy Sector Baden-Württemberg, Stuttgart, Deutschland"
National University of Benin National University of Benin
Suranaree University of Technology Suranaree University of Technology
VDMA VDMA
Universitätsklinikum Jena Universitätsklinikum Jena
"National Oceanography Centre, Southampton"
Simón Bolívar University Simón Bolívar University
Tunis University Tunis University
Universiti Teknologi MARA Universiti Teknologi MARA
@ -685,27 +654,20 @@ Universidad Miguel Hernández de Elche
Institut der deutschen Wirtschaft Institut der deutschen Wirtschaft
National University of the Littoral National University of the Littoral
SAP SE SAP SE
"Tübingen, Institut für Anorganische Chemie der Universität"
University of Gondar University of Gondar
University of Malta University of Malta
ZF Friedrichshafen ZF Friedrichshafen
Alexander von Humboldt Foundation Alexander von Humboldt Foundation
"Donders Institute for Brain, Cognition and Behaviour, External Organizations"
Fraunhofer Institute for Industrial Engineering Fraunhofer Institute for Industrial Engineering
Indonesian Institute of Sciences Indonesian Institute of Sciences
Istituto di Neuroriabilitazione Motoria San Camillo Istituto di Neuroriabilitazione Motoria San Camillo
Peking Union Medical College Peking Union Medical College
University of Nizwa University of Nizwa
Zurich University of Applied Sciences/ZHAW Zurich University of Applied Sciences/ZHAW
"Center for Language Studies , External Organizations"
"Institut Laue-Langevin, Grenoble, France"
Institute of Pathology Institute of Pathology
Jimma University Jimma University
European Molecular Biology Laboratory European Molecular Biology Laboratory
"First Faculty of Medicine, Charles University in Prague"
"Optical Sciences, College of"
Royal School of Mines Royal School of Mines
"University of Applied Sciences, Worms"
Universitätsklinikum Düsseldorf Universitätsklinikum Düsseldorf
Bundeswehr Institute of Microbiology Bundeswehr Institute of Microbiology
External Organization External Organization
@ -720,14 +682,11 @@ Deutsches Krebsforschungszentrum
International Center for Agricultural Research in the Dry Areas International Center for Agricultural Research in the Dry Areas
University of Yaoundé University of Yaoundé
DESY DESY
"IHP, Im Technologiepark 25, 15236 Frankfurt (Oder), Germany"
IMTEK IMTEK
University of Liechtenstein University of Liechtenstein
University of Ngaoundéré University of Ngaoundéré
Sokoine University of Agriculture Sokoine University of Agriculture
"Aachen, Deutschland"
Cergy-Pontoise University Cergy-Pontoise University
"Department of Internal Medicine III, University Hospital of Ulm, Ulm, Germany"
Singapore Management University Singapore Management University
UNESCO Institute for Lifelong Learning UNESCO Institute for Lifelong Learning
Technical University Technical University
@ -755,7 +714,6 @@ Institute on Taxation and Economic Policy
Universidad Autónoma de Nuevo León Universidad Autónoma de Nuevo León
University of Baghdad University of Baghdad
Blockchain Research Center Blockchain Research Center
"Marburg, Fachbereich Chemie der Universität"
Nürtingen-Geislingen University of Applied Science Nürtingen-Geislingen University of Applied Science
Southern University of Science and Technology Southern University of Science and Technology
Sumy State University Sumy State University
@ -763,29 +721,23 @@ University of Peradeniya
Universität Kaiserslautern Universität Kaiserslautern
Universitätsklinikum Aachen Universitätsklinikum Aachen
Universitätsklinikum Würzburg Universitätsklinikum Würzburg
"GBF-Gesellschaft für Biotechnologische Forschung mbH, Braunschweig, Germany"
National Chung Hsing University National Chung Hsing University
Universitätsklinikum Tübingen Universitätsklinikum Tübingen
Azerbaijan National Academy of Sciences Azerbaijan National Academy of Sciences
Deutsche Gesellschaft für Internationale Zusammenarbeit Deutsche Gesellschaft für Internationale Zusammenarbeit
EA Digital Illusions CE EA Digital Illusions CE
"Heidelberg, Deutschland"
Institute of Electrical and Electronics Engineers Institute of Electrical and Electronics Engineers
Universitätsklinikum des Saarlandes Universitätsklinikum des Saarlandes
Volkswagen Group Volkswagen Group
EnBW EnBW
"Hannover, Deutschland"
Medical University of Łódź Medical University of Łódź
MorphoSys MorphoSys
National Yang-Ming University National Yang-Ming University
Public Health Research Institute Public Health Research Institute
"Universidad del Norte, Colombia"
Universiti Teknologi Malaysia Universiti Teknologi Malaysia
University of Auvergne University of Auvergne
University of Health Sciences Antigua University of Health Sciences Antigua
"Laser Zentrum Hannover e.V., Hollerithallee 8, 30419 Hannover, Germany"
Qatar Airways Qatar Airways
"Bielefeld, Deutschland"
Kennametal Kennametal
Lippincott Williams & Wilkins Lippincott Williams & Wilkins
National Dong Hwa University National Dong Hwa University
@ -814,8 +766,6 @@ Pontifical Catholic University of Valparaíso
University Hospital Essen University Hospital Essen
Albert Einstein Institution Albert Einstein Institution
Association for Information Systems Association for Information Systems
"DESY, Hamburg, Germany"
"Dresden, Deutschland"
FEV GmbH FEV GmbH
Institute for Chemistry and Technology of Materials (6380) Institute for Chemistry and Technology of Materials (6380)
Instituto de Medicina Molecular Instituto de Medicina Molecular
@ -846,11 +796,9 @@ University of Applied Sciences Wedel
Universität Frankfurt Universität Frankfurt
Autonomous University of Baja California Autonomous University of Baja California
Commissariat à l'énergie atomique et aux énergies alternatives Commissariat à l'énergie atomique et aux énergies alternatives
"Deutsches Krebsforschungszentrum, Heidelberg, Germany"
Festo Festo
German Medical Association German Medical Association
Kenyatta University Kenyatta University
"München, Germany"
Rolls-Royce Motor Cars Rolls-Royce Motor Cars
University Hospital Münster University Hospital Münster
Universitätsklinikum Universitätsklinikum
@ -862,18 +810,15 @@ University of Sarajevo
AmeriCorps VISTA AmeriCorps VISTA
BMW AG BMW AG
Balseiro Institute Balseiro Institute
"European Molecular Biology Laboratory, Heidelberg, Germany"
Food and Agriculture Organization Food and Agriculture Organization
George C. Marshall European Center for Security Studies George C. Marshall European Center for Security Studies
Islamic University of Gaza Islamic University of Gaza
KfW KfW
"Leipzig, Deutschland"
University of Natal University of Natal
Ural State University Ural State University
Virtual Vehicle Research GmbH (ViF) (98830) Virtual Vehicle Research GmbH (ViF) (98830)
ARCO ARCO
Astronomy Astronomy
"BASF SE, 67056 Ludwigshafen, Germany"
Department of Electrical Engineering Department of Electrical Engineering
GBF — Gesellschaft für Biotechnologische Forschung mbH GBF — Gesellschaft für Biotechnologische Forschung mbH
Hamburg Institute for Social Research Hamburg Institute for Social Research
@ -882,16 +827,11 @@ Nazarbayev University
Nest Labs Nest Labs
Oeschger Centre for Climate Change Research Oeschger Centre for Climate Change Research
Rohde & Schwarz Rohde & Schwarz
"Universitätsklinikum Schleswig-Holstein, Campus Lübeck"
ANSES ANSES
"Astrophysikalisches Institut Potsdam, An der Sternwarte 16, 14482 Potsdam, Germany"
"BASF SE, Ludwigshafen, Germany"
"GFZ German Research Centre for Geosciences, Telegrafenberg, 14473 Potsdam, Germany"
Plansee SE Plansee SE
University of Sharjah University of Sharjah
Birzeit University Birzeit University
Business and Information Technology School Business and Information Technology School
"Dortmund, Fachbereich Chemie der Universität"
European Centre for Minority Issues European Centre for Minority Issues
Federal Centre for Health Education Federal Centre for Health Education
Friedrich Miescher Institute for Biomedical Research Friedrich Miescher Institute for Biomedical Research
@ -901,7 +841,6 @@ Mexican Social Security Institute
National Institute of Radiological Sciences National Institute of Radiological Sciences
University of Lagos University of Lagos
University of Santo Tomas University of Santo Tomas
"Brown, Boveri & Cie"
Lahore University of Management Sciences Lahore University of Management Sciences
Reykjavík University Reykjavík University
University of Essen University of Essen
@ -916,7 +855,6 @@ University of Sargodha
Universität Bamberg Universität Bamberg
Belarusian State University of Informatics and Radioelectronics Belarusian State University of Informatics and Radioelectronics
Boston Consulting Group Boston Consulting Group
"Frankfurt am Main, Deutschland"
International Water Management Institute International Water Management Institute
Karlshochschule International University Karlshochschule International University
King Mongkut's University of Technology Thonburi King Mongkut's University of Technology Thonburi
@ -926,28 +864,20 @@ Rand Afrikaans University
University of Cape Coast University of Cape Coast
Université du Québec Université du Québec
Vytautas Magnus University Vytautas Magnus University
"Weil, Gotshal & Manges"
Cadi Ayyad University Cadi Ayyad University
Deutsches Herzzentrum Berlin Deutsches Herzzentrum Berlin
Fox Chase Cancer Center Fox Chase Cancer Center
"Göttingen, Germany"
"IHP, Frankfurt (Oder), Germany"
Porsche Automobil Holding SE Porsche Automobil Holding SE
Telefónica Telefónica
Uniklinik Köln Uniklinik Köln
Universitätsmedizin Mainz Universitätsmedizin Mainz
Venezuelan Institute for Scientific Research Venezuelan Institute for Scientific Research
Andrés Bello National University Andrés Bello National University
"Düsseldorf, Deutschland"
"GBF — Gesellschaft für Biotechnologische Forschung mbH, Braunschweig, Germany"
"Institute of Pathology, Klinikum Bayreuth, Bayreuth, Germany"
Munich School of Philosophy Munich School of Philosophy
SAP AG SAP AG
School of Mathematics and Physics School of Mathematics and Physics
Shahjalal University of Science and Technology Shahjalal University of Science and Technology
Technische Univ. Braunschweig (Germany) Technische Univ. Braunschweig (Germany)
"A 1 - Climate Variability and Predictability, Research Area A: Climate Dynamics and Variability, The CliSAP Cluster of Excellence, External Organizations"
"Dortmund, Deutschland"
Institut de recherche pour le développement Institut de recherche pour le développement
Iuliu Hațieganu University of Medicine and Pharmacy Iuliu Hațieganu University of Medicine and Pharmacy
JenLab GmbH (Germany) JenLab GmbH (Germany)
@ -966,7 +896,6 @@ National Space Development Agency of Japan
National University of Rwanda National University of Rwanda
Teacher training college Teacher training college
Universitätsklinikum Köln Universitätsklinikum Köln
"Universitätsklinikum Schleswig-Holstein, Campus Kiel"
Westinghouse Electric Westinghouse Electric
Wintershall Wintershall
Bahauddin Zakariya University Bahauddin Zakariya University
@ -974,13 +903,11 @@ Biology
Center for International Forestry Research Center for International Forestry Research
Department of Photonics Engineering Department of Photonics Engineering
London Research Institute London Research Institute
"MLL Munich Leukemia Laboratory, Munich, Germany"
Saints Cyril and Methodius University of Skopje Saints Cyril and Methodius University of Skopje
Scottish Crop Research Institute Scottish Crop Research Institute
Sick AG Sick AG
Soitec Soitec
Tongji Medical College Tongji Medical College
"Tübingen, Deutschland"
Universidad Técnica Particular de Loja Universidad Técnica Particular de Loja
University of Lomé University of Lomé
Allama Iqbal Open University Allama Iqbal Open University
@ -992,7 +919,6 @@ Institute of Computer Graphics and Knowledge Visualisation (7110)
King Abdulaziz City for Science and Technology King Abdulaziz City for Science and Technology
Klaipėda University Klaipėda University
Maseno University Maseno University
"National Institute of Astrophysics, Optics and Electronics"
National University of San Juan National University of San Juan
Naturalis Naturalis
School of Chemistry School of Chemistry

View file

@ -0,0 +1,12 @@
#!/usr/bin/env sh
echo "Reading entries from lists/canonical_names_of_german_institutions and writing them to web/data.js"
# remove all lines starting with \"
sed '/^\"/d' ../lists/canonical_names_of_german_institutions.txt -i
# creating or overriding a data.js which holds the list of universities in js compatible format
echo "const university_list = " > ../web/data.js
# convert raw list of universities to javascript compatible format
jq -R -s -c 'split("\n")' < ../lists/canonical_names_of_german_institutions.txt >> ../web/data.js

2
web/data.js Normal file

File diff suppressed because one or more lines are too long

View file

@ -1,12 +1,15 @@
<!doctype html> <!doctype html>
<html> <html>
<head> <head>
<title>YourCSI</title> <title>YourCSI</title>
<meta charset='utf-8' /> <meta charset='utf-8' />
<link rel="stylesheet" type="text/css" href="styles.css"> <link rel="stylesheet" type="text/css" href="styles.css">
<link rel="icon" type="image/x-icon" href="assets/pooh.jpg"> <link rel="icon" type="image/x-icon" href="assets/pooh.jpg">
<script type="text/javascript" src="ycsi.js"></script> <script type="text/javascript" src="ycsi.js"></script>
<script type="text/javascript" src="data.js"></script>
</head> </head>
<body> <body>
<div id="landing"> <div id="landing">
@ -21,7 +24,9 @@
<h1>Your #ChinaScienceInvestigation</h1> <h1>Your #ChinaScienceInvestigation</h1>
<h4>Ein Projekt der <a href="http://ag-link.xyz">AG Link</a> </h4> <h4>Ein Projekt der <a href="http://ag-link.xyz">AG Link</a> </h4>
<div id="search"> <div id="search">
<input type="text" placeholder="e. g. Leipzig University" id="uni"> <input type="text" placeholder="e. g. Leipzig University" list="datalist" id="uni"
onkeyup="provide_suggestion(this.value)">
<datalist id="datalist"></datalist>
<select id="risk"> <select id="risk">
<option value="very high"> very high </option> <option value="very high"> very high </option>
@ -86,4 +91,5 @@
</div> </div>
</div> </div>
</body> </body>
</html> </html>

View file

@ -7,11 +7,28 @@ html {
scroll-behavior: smooth; scroll-behavior: smooth;
} }
a {outline:none !important; font-weight:bold; text-decoration:none;} a {
a:link {color:#1e0aff} outline: none !important;
a:visited {color: #180cff} font-weight: bold;
a:hover {color:#606;} text-decoration: none;
a:active {color:#900; outline:none;} }
a:link {
color: #1e0aff
}
a:visited {
color: #180cff
}
a:hover {
color: #606;
}
a:active {
color: #900;
outline: none;
}
h1 { h1 {
font-size: 320%; font-size: 320%;
@ -66,26 +83,41 @@ nav {
min-width: 70%; min-width: 70%;
padding: 1em 0 1em 0; padding: 1em 0 1em 0;
} }
nav ul { nav ul {
display: flex; display: flex;
list-style-type: none; list-style-type: none;
margin: 0; margin: 0;
padding: 0; padding: 0;
} }
nav ul li { nav ul li {
flex: 3; flex: 3;
color: var(--ccp_yellow) color: var(--ccp_yellow)
} }
nav ul li a { nav ul li a {
text-align: center; text-align: center;
display: block; display: block;
padding: 1em; padding: 1em;
background-color: var(--ccp_red); background-color: var(--ccp_red);
} }
nav ul li a:link {color: inherit}
nav ul li a:active {color: inherit} nav ul li a:link {
nav ul li a:visited {color: inherit} color: inherit
nav ul li a:hover {color: inherit} }
nav ul li a:active {
color: inherit
}
nav ul li a:visited {
color: inherit
}
nav ul li a:hover {
color: inherit
}
/* Landing Page*/ /* Landing Page*/
#landing { #landing {
@ -103,6 +135,7 @@ nav ul li a:hover {color: inherit}
display: flex; display: flex;
gap: 10px gap: 10px
} }
#search * { #search * {
text-align: center; text-align: center;
font-size: xx-large; font-size: xx-large;
@ -120,6 +153,7 @@ nav ul li a:hover {color: inherit}
border: 2px solid; border: 2px solid;
border-radius: 2px; border-radius: 2px;
} }
#down-arrow:after { #down-arrow:after {
content: " "; content: " ";
position: absolute; position: absolute;
@ -132,10 +166,22 @@ nav ul li a:hover {color: inherit}
border-radius: 4px; border-radius: 4px;
transform: rotateZ(45deg); transform: rotateZ(45deg);
} }
#down-arrow:link {color: black}
#down-arrow:active {color: black} #down-arrow:link {
#down-arrow:visited {color: black} color: black
#down-arrow:hover {color: black} }
#down-arrow:active {
color: black
}
#down-arrow:visited {
color: black
}
#down-arrow:hover {
color: black
}
/* Text */ /* Text */
#text { #text {
@ -146,6 +192,7 @@ nav ul li a:hover {color: inherit}
margin-left: auto; margin-left: auto;
font-size: 150%; font-size: 150%;
} }
#text h3 { #text h3 {
text-align: center; text-align: center;
} }

View file

@ -25,3 +25,24 @@ function open_link(university, risk_level){
break; break;
} }
}; };
function provide_suggestion(value) {
//setting datalist empty at the start of function
//if we skip this step, same name will be repeated
document.getElementById('datalist').innerHTML = '';
//input query length
for (const uni of university_list) {
//comparing if input string is existing in tags[i] string
if (((uni.toLowerCase()).indexOf(value.toLowerCase())) > -1) {
var node = document.createElement("option");
var val = document.createTextNode(uni);
node.appendChild(val);
//creating and appending new elements in data list
document.getElementById("datalist").appendChild(node);
}
}
}