Commit 988345d9 authored by Porter Libby's avatar Porter Libby
Browse files

fix buttons for external links

parent e8a5fd19
{
"name": "datavis",
"version": "0.1.6",
"version": "0.1.9",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "datavis",
"version": "0.1.6",
"version": "0.1.9",
"license": "MIT",
"dependencies": {
"dns": "^0.2.2",
......
{
"name": "datavis",
"version": "0.1.9",
"version": "0.1.10",
"description": "A tool for visualizing the data collected from the IFS Earlham trip",
"main": "datavis.js",
"scripts": {
......
......@@ -15,10 +15,6 @@
font-size: 20px;
text-decoration: underline;
}
.title-links{
font-size: 15px;
padding-left: 10px;
}
#data{
margin-top: 100px;
text-align: center;
......
......@@ -98,6 +98,28 @@ html, body, #viewDiv{
position: relative;
display: inline-block;
}
#meta-links{
position:absolute;
top: 5px;
left: 5px;
}
.meta-link{
border: none;
background: none;
background: var(--theme2);
text-align: center;
vertical-align: middle;
padding-top: 3.5px;
border-radius: 50%;
}
.meta-link:hover{
background: var(--theme4);
}
.meta-link img{
width: 24px;
height: 24px;
}
.tooltip2 .tooltiptext {
visibility: hidden;
......
......@@ -25,6 +25,10 @@ if (process.env.DB_NAME != null && process.env.DB_HOST != null && process.env.DB
password: `${process.env.DB_PASSWORD}`,
port: `${process.env.DB_PORT}`,
})
checkConnection();
}
else{
console.log('DATABASE: connection to database failed, check .ENV file.');
}
......@@ -244,7 +248,7 @@ function checkConnection(){
}
})
}
checkConnection();
module.exports = { // export routes to server side.
getTrips,
......
......@@ -116,11 +116,9 @@
<div id='dataView'>
<div id='title'>
<span id='version-tag' style='font-size:20px;'></span><br><br>
<span class='title-links'><a href='https://code.cs.earlham.edu/field-science/datavis'>Code</a></span>
<br>
<span class='title-links'><a href='https://code.cs.earlham.edu/field-science/datavis/-/wikis/home'>Wiki</a></span>
<span id='version-tag' style='font-size:20px;'></span>
</div>
<div id='data'>
<div class='data-catagory' id='query_type'>
<div class='data-header' style='padding-bottom:15px;''>
......@@ -143,7 +141,18 @@
<div class='data-catagory data-catagory-simple' id='readingdates'></div>
<div class='data-catagory data-catagory-simple' id='reading'></div>
<div id='data-prompt-box'>
<div id='meta-links'>
<div class='tooltip' style='position:absolute; top: 0px; left: 0px;'>
<button class='meta-link' onclick="window.open('https://code.cs.earlham.edu/field-science/datavis','_blank')"><img src="img/git-icon.png"></button>
<span class="tooltiptext">Visit Git Repo</span>
</div>
<div class='tooltip' style='position:absolute; top: 0px; left: 40px;'>
<button class='meta-link' onclick="window.open('https://code.cs.earlham.edu/field-science/datavis/-/wikis/home','_blank')"><img src="img/help-icon.png"></button>
<span class="tooltiptext">Visit Wiki</span>
</div>
</div>
<div id='text'>
<strong id='prompt-text'>
<span id='data-prompt'>Select a data type</span>
......
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