mirror of
https://github.com/agdamsbo/FreesearchR.git
synced 2026-06-19 04:27:30 +02:00
This commit is contained in:
parent
f9fd4c806b
commit
2ba0fd60b3
22 changed files with 1759 additions and 714 deletions
1
app_docker/www/images/da.svg
Executable file
1
app_docker/www/images/da.svg
Executable file
|
|
@ -0,0 +1 @@
|
|||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 36 36"><path fill="#C60C30" d="M32 5H15v11h21V9c0-2.209-1.791-4-4-4zM15 31h17c2.209 0 4-1.791 4-4.5V20H15v11zM0 20v6.5C0 29.209 1.791 31 4 31h7V20H0zM11 5H4C1.791 5 0 6.791 0 9v7h11V5z"/><path fill="#EEE" d="M15 5h-4v11H0v4h11v11h4V20h21v-4H15z"/></svg>
|
||||
|
After Width: | Height: | Size: 306 B |
1
app_docker/www/images/en.svg
Executable file
1
app_docker/www/images/en.svg
Executable file
|
|
@ -0,0 +1 @@
|
|||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 36 36"><path fill="#00247D" d="M0 9.059V13h5.628zM4.664 31H13v-5.837zM23 25.164V31h8.335zM0 23v3.941L5.63 23zM31.337 5H23v5.837zM36 26.942V23h-5.631zM36 13V9.059L30.371 13zM13 5H4.664L13 10.837z"/><path fill="#CF1B2B" d="M25.14 23l9.712 6.801c.471-.479.808-1.082.99-1.749L28.627 23H25.14zM13 23h-2.141l-9.711 6.8c.521.53 1.189.909 1.938 1.085L13 23.943V23zm10-10h2.141l9.711-6.8c-.521-.53-1.188-.909-1.937-1.085L23 12.057V13zm-12.141 0L1.148 6.2C.677 6.68.34 7.282.157 7.949L7.372 13h3.487z"/><path fill="#EEE" d="M36 21H21v10h2v-5.836L31.335 31H32c1.117 0 2.126-.461 2.852-1.199L25.14 23h3.487l7.215 5.052c.093-.337.158-.686.158-1.052v-.058L30.369 23H36v-2zM0 21v2h5.63L0 26.941V27c0 1.091.439 2.078 1.148 2.8l9.711-6.8H13v.943l-9.914 6.941c.294.07.598.116.914.116h.664L13 25.163V31h2V21H0zM36 9c0-1.091-.439-2.078-1.148-2.8L25.141 13H23v-.943l9.915-6.942C32.62 5.046 32.316 5 32 5h-.663L23 10.837V5h-2v10h15v-2h-5.629L36 9.059V9zM13 5v5.837L4.664 5H4c-1.118 0-2.126.461-2.852 1.2l9.711 6.8H7.372L.157 7.949C.065 8.286 0 8.634 0 9v.059L5.628 13H0v2h15V5h-2z"/><path fill="#CF1B2B" d="M21 15V5h-6v10H0v6h15v10h6V21h15v-6z"/></svg>
|
||||
|
After Width: | Height: | Size: 1.2 KiB |
1
app_docker/www/images/sw.svg
Executable file
1
app_docker/www/images/sw.svg
Executable file
|
|
@ -0,0 +1 @@
|
|||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 36 36"><path fill="#1EB53A" d="M4 5C1.791 5 0 6.791 0 9v15.627L26.456 5H4z"/><path fill="#00A3DD" d="M32 31c2.209 0 4-1.791 4-4V11.33L9.479 31H32z"/><path fill="#141414" d="M32 5h-2.532L0 26.638V27c0 2.209 1.791 4 4 4h2.467L36 9.318V9c0-2.209-1.791-4-4-4z"/><path fill="#FBD035" d="M26.456 5L0 24.627v2.011L29.468 5zM9.479 31L36 11.33V9.318L6.467 31z"/></svg>
|
||||
|
After Width: | Height: | Size: 413 B |
File diff suppressed because one or more lines are too long
|
|
@ -1,3 +1,7 @@
|
|||
---
|
||||
output: html_fragment
|
||||
---
|
||||
|
||||
# Welcome <img src="FreesearchR-logo.png" style="float: right;"/>
|
||||
|
||||
This is the ***FreesearchR*** data analysis tool, a free tool for basic data evaluation and analysis. If you need more advanced tools, start with ***FreesearchR*** and then you'll probably be better off using *R* or similar directly.
|
||||
|
|
|
|||
34
app_docker/www/intro_da.html
Normal file
34
app_docker/www/intro_da.html
Normal file
File diff suppressed because one or more lines are too long
23
app_docker/www/intro_da.md
Normal file
23
app_docker/www/intro_da.md
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
---
|
||||
output: html_fragment
|
||||
---
|
||||
|
||||
# Velkommen <img src="FreesearchR-logo.png" style="float: right;"/>
|
||||
|
||||
Dette er ***FreesearchR***-værktøjet, et gratis værktøj til databehandling og -analyse. Har du brug for mere avancerede værktøjer, så kan du starte ***FreesearchR*** og senere selv hente *R* og *RStudio* eller lignende.
|
||||
|
||||
Herunder kan du helt kort se, hvad du kan bruge ***FreesearchR*** til:
|
||||
|
||||
1. **Import data** from a spreadsheet/file on your machine, directly from a [REDCap](https://projectredcap.org/ "Read more on the data capture tool REDCap") server, try it with sample data or access data directly [if run in R locally](https://agdamsbo.github.io/FreesearchR//#run-locally-on-your-own-machine "Read about running FreesearchR on your local machine")
|
||||
|
||||
2. **Prepare** data for analysis by filtering data, modifying variables or create new variables
|
||||
|
||||
3. **Evaluate data** using descriptive analyses methods and inspect cross-correlations as well as [missing observations](https://agdamsbo.github.io/FreesearchR/articles/missingness.html "Read more about missing data")
|
||||
|
||||
4. **Visualise data** by [creating simple, clean plots](https://agdamsbo.github.io/FreesearchR/articles/visuals.html "See available plot types") for overview and quick insights
|
||||
|
||||
5. **Create simple regression models** for even more advanced data analyses
|
||||
|
||||
6. **Download** results as a report, get the modified data set and save the code for learning and to reproduce the results later
|
||||
|
||||
The full [project documentation is here](https://agdamsbo.github.io/FreesearchR/) where you'll find detailed descriptions of the app and link to the source code! If you want to [share feedback, please follow this link to a simple survey](https://redcap.au.dk/surveys/?s=JPCLPTXYDKFA8DA8).
|
||||
33
app_docker/www/intro_sw.html
Normal file
33
app_docker/www/intro_sw.html
Normal file
File diff suppressed because one or more lines are too long
23
app_docker/www/intro_sw.md
Normal file
23
app_docker/www/intro_sw.md
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
---
|
||||
output: html_fragment
|
||||
---
|
||||
|
||||
# Karibu <img src="FreesearchR-logo.png" style="float: right;"/>
|
||||
|
||||
This is the ***FreesearchR*** data analysis tool, a free tool for basic data evaluation and analysis. If you need more advanced tools, start with ***FreesearchR*** and then you'll probably be better off using *R* or similar directly.
|
||||
|
||||
With this tool you can:
|
||||
|
||||
1. **Import data** from a spreadsheet/file on your machine, directly from a [REDCap](https://projectredcap.org/ "Read more on the data capture tool REDCap") server, try it with sample data or access data directly [if run in R locally](https://agdamsbo.github.io/FreesearchR//#run-locally-on-your-own-machine "Read about running FreesearchR on your local machine")
|
||||
|
||||
2. **Prepare** data for analysis by filtering data, modifying variables or create new variables
|
||||
|
||||
3. **Evaluate data** using descriptive analyses methods and inspect cross-correlations as well as [missing observations](https://agdamsbo.github.io/FreesearchR/articles/missingness.html "Read more about missing data")
|
||||
|
||||
4. **Visualise data** by [creating simple, clean plots](https://agdamsbo.github.io/FreesearchR/articles/visuals.html "See available plot types") for overview and quick insights
|
||||
|
||||
5. **Create simple regression models** for even more advanced data analyses
|
||||
|
||||
6. **Download** results as a report, get the modified data set and save the code for learning and to reproduce the results later
|
||||
|
||||
The full [project documentation is here](https://agdamsbo.github.io/FreesearchR/) where you'll find detailed descriptions of the app and link to the source code! If you want to [share feedback, please follow this link to a simple survey](https://redcap.au.dk/surveys/?s=JPCLPTXYDKFA8DA8).
|
||||
|
|
@ -1,5 +1,13 @@
|
|||
// Automatically close drop-downs on navigation
|
||||
// Thanks to claude.ai
|
||||
$(document).ready(function() {
|
||||
var language = window.navigator.userLanguage || window.navigator.language || navigator.language;
|
||||
var shortLang = language.split('-')[0];
|
||||
Shiny.onInputChange('browser_lang', shortLang, {priority: 'event'});
|
||||
console.log('Browser language:',language);
|
||||
});
|
||||
|
||||
|
||||
$(document).on('shown.bs.tab', '#main_panel', function(e) {
|
||||
// Close dropdown in this specific navset only
|
||||
$('#main_panel .dropdown-menu').removeClass('show');
|
||||
|
|
@ -8,6 +16,12 @@ $(document).on('shown.bs.tab', '#main_panel', function(e) {
|
|||
|
||||
|
||||
$(document).on('shiny:sessioninitialized', function() {
|
||||
// Function to get browser language
|
||||
// var language = window.navigator.userLanguage || window.navigator.language;
|
||||
// var iso639Language = language.split('-')[0];
|
||||
// Shiny.onInputChange('browser_lang', iso639Language);
|
||||
// console.log('Browser language:',iso639Language);
|
||||
|
||||
// Function to collapse navbar on mobile
|
||||
function collapseNavbar() {
|
||||
var navbar = $('.navbar-collapse');
|
||||
|
|
@ -54,4 +68,26 @@ $(document).on('shiny:sessioninitialized', function() {
|
|||
collapseNavbar();
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
});
|
||||
|
||||
// Flip-down flip-up
|
||||
|
||||
$(document).on('focus', '.smart-dropdown .selectize-control input', function() {
|
||||
var $dropdown = $(this).closest('.selectize-control').find('.selectize-dropdown');
|
||||
var $container = $(this).closest('.smart-dropdown');
|
||||
|
||||
var containerBottom = $container.offset().top + $container.outerHeight();
|
||||
var windowHeight = $(window).height();
|
||||
var scrollTop = $(window).scrollTop();
|
||||
var viewportBottom = scrollTop + windowHeight;
|
||||
|
||||
// If there's not enough space below, flip up
|
||||
if (containerBottom + 200 > viewportBottom) {
|
||||
$container.addClass('flip-up');
|
||||
} else {
|
||||
$container.removeClass('flip-up');
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
|||
|
|
@ -123,3 +123,95 @@
|
|||
background-color: #2E2E2E;
|
||||
color: #FFFFFF;
|
||||
}
|
||||
|
||||
/* Flip-down flip-up */
|
||||
|
||||
.smart-dropdown .selectize-dropdown {
|
||||
position: absolute;
|
||||
}
|
||||
|
||||
/* When near bottom of viewport, flip up */
|
||||
.flip-up .selectize-dropdown {
|
||||
top: auto !important;
|
||||
bottom: 100% !important;
|
||||
margin-bottom: 5px;
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
|
||||
/* Text-like select input */
|
||||
.text-select .control-label {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
.text-select .form-group.shiny-input-container {
|
||||
height: 24px !important;
|
||||
min-height: 24px !important;
|
||||
max-height: 24px !important;
|
||||
margin: 2px !important;
|
||||
padding: 2px !important;
|
||||
display: inline-block;
|
||||
vertical-align: top;
|
||||
overflow: visible;
|
||||
}
|
||||
|
||||
.text-select {
|
||||
display: inline-block;
|
||||
vertical-align: top;
|
||||
position: relative;
|
||||
top: 0;
|
||||
}
|
||||
|
||||
.text-select .selectize-control {
|
||||
margin: 0;
|
||||
width: 140px !important;
|
||||
padding: 0;
|
||||
display: inline-block;
|
||||
vertical-align: top;
|
||||
}
|
||||
|
||||
.text-select .selectize-input {
|
||||
border: none !important;
|
||||
box-shadow: none !important;
|
||||
background: transparent !important;
|
||||
width: 100% !important;
|
||||
min-width: auto !important;
|
||||
padding: 0 18px 0 2px !important;
|
||||
margin: 0 !important;
|
||||
height: 1em !important;
|
||||
line-height: 1em !important;
|
||||
font-size: inherit !important;
|
||||
font-family: inherit !important;
|
||||
color: inherit !important;
|
||||
min-height: 1em !important;
|
||||
max-height: 1em !important;
|
||||
display: inline-block !important;
|
||||
vertical-align: top !important;
|
||||
position: relative;
|
||||
top: 0;
|
||||
}
|
||||
|
||||
.text-select .selectize-input > div {
|
||||
line-height: 1em !important;
|
||||
height: 1em !important;
|
||||
margin: 0 !important;
|
||||
padding: 0 !important;
|
||||
vertical-align: top !important;
|
||||
}
|
||||
|
||||
.text-select .selectize-input::after {
|
||||
content: '▼';
|
||||
position: absolute;
|
||||
right: 3px;
|
||||
top: 0;
|
||||
font-size: 0.8em;
|
||||
color: #666;
|
||||
pointer-events: none;
|
||||
line-height: 1em;
|
||||
}
|
||||
|
||||
.text-select .form-group {
|
||||
margin: 0 !important;
|
||||
display: inline-block;
|
||||
vertical-align: top;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
<script defer src="https://stats.freesearchr.org/script.js" data-website-id="63976000-9836-45bc-90da-37ec5717fb22"></script>
|
||||
<script defer src="https://stats.freesearchr.org/script.js" data-website-id="d1ae5f47-ae9d-497a-961b-b8f4a8224800"></script>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue