commit 2023/05/29 version.

This commit is contained in:
Yoshihiro OKUMURA 2023-05-29 17:07:25 +09:00
parent 0be2e13e33
commit 0fdd85e745
3 changed files with 40 additions and 27 deletions

1
.gitignore vendored
View File

@ -3,3 +3,4 @@
.orig
.org
s/
embed/

View File

@ -78,11 +78,11 @@
<div class="cbs-dsp-section">
<h1 class="w3-text-orange">CBS Data Sharing Platform</h1>
<p class="w3-large w3-text-white">We aim to achieve an analysis platform for the open neuroscience data to expand the research field for each individual in CBS. CBS-DSP provides comprehensive data collection, which allows CBS scientists to generate and stimulate data-driven cross-modal neuroscience. We also plan to expand the platform for all RIKEN, which we expect for CBS researchers to broaden their research field beyond neuroscience.</p>
<div class="w3-row-padding w3-center">
<div class="w3-row-padding w3-center">
<div class="w3-col l3 m3 w3-margin-bottom">
<a href="https://neurodata.riken.jp/mdrs/manager/">
<div class="w3-card w3-white w3-centered">
<br>
<br />
<i class="fas fa-upload w3-margin-bottom w3-jumbo"></i>
<h2>Upload data set</h2>
</div>
@ -106,39 +106,49 @@
</a>
</div>
<div class="w3-col l3 m3 w3-margin-bottom">
<div class="w3-card w3-white">
<br />
<i class="fas fa-file-alt w3-margin-bottom w3-jumbo"></i>
<h2>Data for papers</h2>
</div>
<a href="https://neurodata.riken.jp/id/">
<div class="w3-card w3-white">
<br />
<i class="fas fa-file-alt w3-margin-bottom w3-jumbo"></i>
<h2>Data for papers</h2>
</div>
</a>
</div>
</div>
<div class="w3-row-padding">
<div class="w3-col l4 m4 w3-margin-bottom">
<div class="w3-col l4 w3-margin-bottom">
<div class="w3-card w3-white">
<div class="w3-container">
<div class="w3-left"><h2 class="w3-section w3-margin-right"><i class="fas fa-chart-bar"></i> Data Volume </h2></div>
<div class="w3-right"><h2 class="w3-section"><span id="vol"></span></h2></div>
<div class="w3-left"><h4 class="w3-section"><i class="fas fa-chart-bar"></i> Data Volume </h4></div>
<div class="w3-right"><h4 class="w3-section"><span id="volume_bytes"></span></h4></div>
</div>
</div>
</div>
<div class="w3-col l4 m4 w3-margin-bottom">
<div class="w3-col l3 w3-margin-bottom">
<div class="w3-card w3-white">
<div class="w3-container">
<div class="w3-left"><h2 class="w3-section w3-margin-right"><i class="fas fa-folder"></i> Folders </h2></div>
<div class="w3-right"><h2 class="w3-section"><span id="dir"></span></h2></div>
<div class="w3-left"><h4 class="w3-section"><i class="fas fa-folder"></i> Folders </h4></div>
<div class="w3-right"><h4 class="w3-section"><span id="dir_num"></span></h4></div>
</div>
</div>
</div>
<div class="w3-col l4 m4 w3-margin-bottom">
<div class="w3-col l3 w3-margin-bottom">
<div class="w3-card w3-white">
<div class="w3-container">
<div class="w3-left"><h2 class="w3-section"><i class="fas fa-users"></i> Users </h2></div>
<div class="w3-right"><h2 class="w3-section"><span id="user"></span></h2></div>
<div class="w3-left"><h4 class="w3-section"><i class="fas fa-file"></i> Files </h4></div>
<div class="w3-right"><h4 class="w3-section"><span id="file_num"></span></h4></div>
</div>
</div>
</div>
</div>
<div class="w3-col l2 w3-margin-bottom">
<div class="w3-card w3-white">
<div class="w3-container">
<div class="w3-left"><h4 class="w3-section"><i class="fas fa-users"></i> Users </h4></div>
<div class="w3-right"><h4 class="w3-section"><span id="user_num"></span></h4></div>
</div>
</div>
</div>
</div>
</div>
</section>
@ -232,14 +242,16 @@
<script src="https://unpkg.com/axios/dist/axios.min.js"></script>
<script>
function getSummary() {
axios.get('https://neurodata.riken.jp/api/v2/statistics/summary/' , { mode: 'no-cors' })
axios.get('https://neurodata.riken.jp/api/v2/summary/top/' , { mode: 'no-cors' })
.then(res => {
const vol = document.getElementById('vol');
vol.textContent = formatBytes(res.data.summary.volume_bytes);
const dir = document.getElementById('dir');
dir.textContent = addComma(res.data.summary.dir_num);
const user = document.getElementById('user');
user.textContent = addComma(res.data.summary.user_num);
const volumeBytes = document.getElementById('volume_bytes');
volumeBytes.textContent = formatBytes(res.data.volume_bytes);
const dirNum = document.getElementById('dir_num');
dirNum.textContent = addComma(res.data.dir_num);
const fileNum = document.getElementById('file_num');
fileNum.textContent = addComma(res.data.file_num);
const userNum = document.getElementById('user_num');
userNum.textContent = addComma(res.data.user_num);
})
.catch(err => console.error(err))
}

View File

@ -21,10 +21,10 @@
gtag('config', 'G-21LPSWHRKT');
</script>
</head>
<body>
<!-- General Policies -->
<!-- General Policies -->
<section class="w3-display-container cbs-dsp-section" id="generalpolicies">
<h1 class="w3-center">General Policies</h1>
<h2>General Policies (2022 Apr)</h2>