Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added .DS_Store
Binary file not shown.
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@

modules/form-grid/.DS_Store
.DS_Store
.DS_Store
modules/.DS_Store
Binary file added assets/.DS_Store
Binary file not shown.
2 changes: 1 addition & 1 deletion backend.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
<!----------------------------------------------->
<script app code>
//---------------------------------------------
$VmAPI={};$vm.ver=[0.17,0.04]; $vm['jquery-ui-min-js']=1;
$VmAPI={};$vm.ver=[0.19,0.04]; $vm['jquery-ui-min-js']=1;
$vm.flexindex=new FlexSearch({ doc: {id: "id",field: ["title","contents"]} });
$vm.hosting_path=window.location.href.substring(0, window.location.href.split('?')[0].lastIndexOf('/'));
//---------------------------------------------
Expand Down
12 changes: 11 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,11 @@ <h1>
</p>
</div>
</div>
<div class="text-info e-hero-text-info">
<div class="text-info e-hero-text-info" >
<p>You are invited to take part in an online research study using a new smartphone application that aims to improve your sleep and cognitive function.</p>
<p>
<iframe class="youtube-video" width="600" height="400" src="https://www.youtube-nocookie.com/embed/sPID0VCyWK0" frameborder="1" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen></iframe>
</p>
</div>
</div>
</section>
Expand Down Expand Up @@ -158,6 +161,9 @@ <h2>Screening Questionnaires</h2>
<img src="assets/images/e-img-1.png" alt="image description" />
</div>
<p>This research will project has been approved by the Sydney Local Health District (SLHD) Health Research Ethics Committee (HREC) – Reference X21-0434</p>



</div>
</div>
</div>
Expand Down Expand Up @@ -193,3 +199,7 @@ <h2>Screening Questionnaires</h2>
<script defer src="assets/js/app.js"></script>
</body>
</html>
<style>

</style>

Binary file added modules/.DS_Store
Binary file not shown.
Binary file added modules/form-grid/.DS_Store
Binary file not shown.
126 changes: 82 additions & 44 deletions modules/form-grid/backend/send-email-form.html

Large diffs are not rendered by default.

61 changes: 31 additions & 30 deletions modules/form-grid/screening/eligibility-form.html
Original file line number Diff line number Diff line change
Expand Up @@ -243,13 +243,13 @@ <h2>ExCEED Screening Question</h2>
<div class="col-lg-1 col-sm-0 "></div>
</div>
<div id=quest1__ID style='max-width:800px;margin-left:auto;margin-right:auto;' >
<div class="form-group box">
<div class="form-group box">
<div class="row">
<div class="col-sm control-group">
<h3>7. Have you been diagnosed with any one or more of the following medical and/or
psychiatric illnesses/disorders?
</h3>
<h4>Major Depressive Disorder, Heart failure, Epilepsy, Bi-polar disorder, Dementia,
<h4 style="color:black">Major Depressive Disorder, Heart failure, Epilepsy, Bi-polar disorder, Dementia,
Mild Cognitive Impairment</h4>
</div>
</div>
Expand All @@ -264,7 +264,7 @@ <h4>Major Depressive Disorder, Heart failure, Epilepsy, Bi-polar disorder, Demen
</fieldset>
</div>
</div>
<!--<div class="form-group box">
<div class="form-group box">
<div class="row">
<div class="col-sm control-group">
<h3>7. Have you been diagnosed with any one or more of the following sleep disorders?
Expand Down Expand Up @@ -306,7 +306,7 @@ <h4>Prescribed sleep medication (e.g. Temaze, Imovane, Stilnox, Restavit),
<span class="checkmark"></span>No </label>
</fieldset>
</div>
</div>-->
</div>
<div class="form-group box">
<div class="row">
<div class="col-sm control-group">
Expand Down Expand Up @@ -344,7 +344,7 @@ <h3>9. Are you currently receiving or have previously received (within the last
</fieldset>
</div>
</div>
<!--<div class="form-group box">
<!-- <div class="form-group box">
<fieldset class="subquestions">
<h4>Over the last <u>2 weeks</u>, how often have you been bothered by the following problem?</h4>
</fieldset>
Expand All @@ -369,8 +369,8 @@ <h3>10. Thoughts that you would be better off dead or of hurting yourself in som
</label><br>
</fieldset>
</div>
</div>
<div id=phq9__ID>
</div> -->
<!-- <div id=phq9__ID>
<div class="form-group box">
<h4 style='color:red;text-align: center;'>If you are feeling depressed, anxious, or suicidal
please do not hesitate to contact mental wellbeing
Expand All @@ -381,7 +381,7 @@ <h4 style='color:red;text-align: center;'>If you are feeling depressed, anxious,
target=_blank>beyondblue.org.au</a><br>
If you or someone you know needs immediate help, please call 000</h4>
</div>
</div>-->
</div> -->
<div class="box" style="text-align:right">
<div class="box-item">
<button type="submit" d=1 class="btn btn-primary btn-lg">Next</button>
Expand Down Expand Up @@ -1265,7 +1265,7 @@ <h3 class="main_question">To make sure you are not a robot.</h3>
$('#s1q5__ID').hide();
$('#jetlag__ID').removeAttr('required');
$('#s4q1__ID').hide();
//$('#phq9__ID').hide();
$('#phq9__ID').hide();
$('#sleep_attacks__ID').removeAttr('required');
$('#muscle_weakness__ID').removeAttr('required');
$('#hallucinations__ID').removeAttr('required');
Expand Down Expand Up @@ -1390,14 +1390,15 @@ <h3 class="main_question">To make sure you are not a robot.</h3>
}
});
//---------------------------------------
/*$("#D__ID input[name=PHQ_9]").on('change', function () {
if ($("#D__ID input[name=PHQ_9]:checked").val() != '0') {
$('#phq9__ID').show();
}
else {
$('#phq9__ID').hide();
}
});*/
$("#D__ID input[name=PHQ_9]").val()=="0";
// $("#D__ID input[name=PHQ_9]").on('change', function () {
// if ($("#D__ID input[name=PHQ_9]:checked").val() != '0') {
// $('#phq9__ID').show();
// }
// else {
// $('#phq9__ID').hide();
// }
// });
//---------------------------------------
$("#D__ID input[name=CIQ_Q1]").on('change', function () {
if ($("#D__ID input[name=CIQ_Q1]:checked").val() == '1') {
Expand Down Expand Up @@ -1575,12 +1576,14 @@ <h3 class="main_question">To make sure you are not a robot.</h3>
//$("input[name='sleep_disorders']:checked").val() == 'Y' ||
//$("input[name='medications']:checked").val() == 'Y' ||
$("input[name='heavy_machinery']:checked").val() == 'Y' ||
$("input[name='cbt']:checked").val() == 'Y' //||
//$("input[name='PHQ_9']:checked").val() != '0'
){
notelig=current_I;
$('#F__ID *').removeAttr('disabled');
old_submit(event);
$("input[name='cbt']:checked").val() == 'Y')
// $("input[name='cbt']:checked").val() == 'Y' ||

{
// $("input[name='PHQ_9']:checked").val() != '0'){
// notelig=current_I;
// $('#F__ID *').removeAttr('disabled');
// old_submit(event);
// $('#S' + current_I + '__ID').hide();
// $("#captcha__ID").show();
/*
Expand Down Expand Up @@ -1694,7 +1697,7 @@ <h3 class="main_question">To make sure you are not a robot.</h3>
}
//--------------------------------
m.after_insert = function (data,res) {
//console.log(JSON.stringify(res) + " - "+notelig)
// console.log(JSON.stringify(res) + " - "+notelig)
if(registration_ready && notelig>0){
if (m.prefix == undefined) { $vm.load_module('registration-form', '', {rec_id:res.nr._id}); }
else $vm.load_module(m.prefix + 'registration-form', '', {screen_data:res.nr.Data,rec_id:res.nr._id});
Expand All @@ -1713,16 +1716,14 @@ <h3 class="main_question">To make sure you are not a robot.</h3>
}
else if(notelig==2){
if (m.prefix == undefined) {
/*if($("input[name='PHQ_9']:checked").val() != '0') $vm.load_module('not_eligphq9', '', {});
if($("input[name='PHQ_9']:checked").val() != '0') $vm.load_module('not_eligphq9', '', {});
//else if($("input[name='smartphone_type']:checked").val() != 'ios') $vm.load_module('not_eligiosb', '', {});
else $vm.load_module('not_elig1', '', {});*/
$vm.load_module('not_elig1', '', {});
else $vm.load_module('not_elig1', '', {});
}
else{
/*if($("input[name='PHQ_9']:checked").val() != '0') $vm.load_module(m.prefix + 'not_eligphq9', '', {});
if($("input[name='PHQ_9']:checked").val() != '0') $vm.load_module(m.prefix + 'not_eligphq9', '', {});
//else if($("input[name='smartphone_type']:checked").val() != 'ios') $vm.load_module(m.prefix + 'not_eligiosb', '', {});
else $vm.load_module(m.prefix + 'not_elig1', '', {})*/
$vm.load_module(m.prefix + 'not_elig1', '', {});
else $vm.load_module(m.prefix + 'not_elig1', '', {})
}
}
else if(notelig==1){
Expand Down
6 changes: 3 additions & 3 deletions modules/form-grid/screening/registration-form.html
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ <h3>Contact preference</h3>
<div class="form-group box" id="link__ID" style="display:none!important">
<div class="text-center">
Continue ..<br><br>
<i>Click on the link below to continue. Save the link to your favorits so you can easlily find it, if you need to return to the quesstionnaires.</i><br><br>
<i>Click on the link below to continue. Save the link to your favourites so you can easlily find it, if you need to return to the quesstionnaires.</i><br><br>
<a id=exceed_registration__ID target="_blank" style="color:#000;" ><span style='font-size:1.2rem;font-weight:bold;' id=refnum__ID></span></a>
<br><br>
</div>
Expand All @@ -101,7 +101,7 @@ <h3>Contact preference</h3>
<br><br>
Name: Matthew Rahimi<br>
Phone: 0401 615 177<br>
Email: matthew.rahimi@mq.edu.au;<br><br>
Email: matthew.rahimi@mq.edu.au<br><br>
Thanks you for your time and effort,<br>
<b>The ExCEED Research Team</b><br>
</div>
Expand Down Expand Up @@ -144,7 +144,7 @@ <h4 class="modal-title" id="termsLabel">Patient Information sheet</h4>
VmInclude: '__COMPONENT__/f/form.01.js'
//---------------------------------------
$('#D__ID').on('load', function () {
console.log(JSON.stringify(m))
// console.log(JSON.stringify(m))
$('#F__ID input[name=_Password').val($vm.vm_password(8,false));
});
//-------------------------------------
Expand Down
Loading