Skip to content

Commit

Permalink
eRA testing
Browse files Browse the repository at this point in the history
  • Loading branch information
bkop-ds committed Oct 26, 2023
1 parent 392f3d9 commit 785f58c
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 6 deletions.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@
rel="noopener"
target="_blank"
href="https://github.com/episphere/dataplatform/issues"
title="BCRPP github issues"
title="Dataplatform github issues"
>
Report issue
</a>
Expand Down
2 changes: 1 addition & 1 deletion src/components/navBarMenuItems.js
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ export function pageNavBar(page, activeTab, ...pageHeaders) {
link.href = `#${page}/description`;
if (activeTab === "description") link.classList.add("active");
}
if (header === "Scientific Committee") {
if (header === "DACC Members") {
link.href = `#${page}/contact`;
if (activeTab === "contact") link.classList.add("active");
}
Expand Down
2 changes: 1 addition & 1 deletion src/pages/about.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export const aboutConfluence = (activeTab, showDescripton) => {
${navBarItems}
<!---<button class="sub-menu-btn"><a class="nav-link ${
activeTab === "contact" ? "active" : ""
} black-font font-size-14" href="#contact"> <strong> Scientific Committee</strong></a></button>--->
} black-font font-size-14" href="#contact"> <strong> DACC Members</strong></a></button>--->
</div>
</div>
Expand Down
6 changes: 3 additions & 3 deletions src/pages/contact.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,19 @@ export const confluenceContactPage = () => {
<div class="body-min-height">
<div class="main-summary-row">
<div class="align-left">
<h1 class="page-header">Scientific Committee</h1>
<h1 class="page-header">DACC Members</h1>
</div>
</div>
<div class="main-summary-row confluence-resources white-bg div-border font-size-18">
<div class="col">
<span>For questions about the Breast Cancer Risk Prediction Project</span></br>
<span>send mail to: Pete Kraft at </strong> <a href="">[email protected]</a></span></br>
<span>send mail to: Pete Kraft at </strong> <a href="">[email protected]</a></span></br>
</br></br>
<div class="row">
<div class="col">
<table class="table table-bordered table-responsive w-100 d-block d-md-table">
<thead>
<tr><th>Member</th><th>Affiliation</th></tr>
<tr><th>Member</th><th>Con</th></tr>
</thead>
<tbody>
<tr>
Expand Down
9 changes: 9 additions & 0 deletions src/pages/uploaddata.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import {csv2Json, csv2JsonTest, uploadFile, uploadFileAny, uploadWordFile, json2other, uploadTSV, createFolder, getFolderItems, descFolder, dataPlatformFolder, publicDataFolder, descFile, showAnimation, hideAnimation} from "./../shared.js";
import { config } from "./../config.js";

export const uploadData = () => {
let template = `
Expand Down Expand Up @@ -40,6 +41,11 @@ export const dataUploadForm = async () => {
"-" +
("0" + (dateToday.getMonth() + 1)).slice(-2);
let template = `
<div class="input-group input-group2">
<button class="nav-link nav-menu-links custom-btn" title="Login ERa" id="loginERa">
Login ERa
</button>
</div>
<form class="contact-form" id="regForm">
<div class="tab">
<h3><b>Data Sharing Plan</b></h3>
Expand Down Expand Up @@ -131,6 +137,9 @@ export const dataUploadForm = async () => {
</form>
`
document.getElementById("uploadFormView").innerHTML = template;
document.getElementById("loginERa").addEventListener("click", async function () {
location.href = `https://stsstg.nih.gov/auth/oauth/v2/authorize?response_type=code&client_id=ff775e46-ec74-46a3-b19f-ee2c60e8cf11&redirect_uri=https://episphere.github.io/dataplatform/&state=${config.iniAppLocal.stateIni}`
});
var currentTab = 0;
showTab(currentTab);
//console.log(currentTab);
Expand Down

0 comments on commit 785f58c

Please sign in to comment.