-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
526 lines (377 loc) · 24.5 KB
/
index.html
File metadata and controls
526 lines (377 loc) · 24.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />
<meta http-equiv="Cache-Control" content="no-cache" />
<meta name="keywords"
content="CBT journal,open source mental health app,free journal app,cognitive reframing,CBT self help,web-based journal,local storage journal,JavaScript journal app,depression journal,anxiety journal,gratitude journal,thought record CBT,mental health tools,cognitive behavioral therapy,self care journal,no account journal app,emotional health app,free therapy tools,browser journal,journaling benefits" />
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.8.2/css/all.min.css" rel="stylesheet" />
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.8.2/css/brands.css" rel="stylesheet" />
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.8.2/css/solid.css" rel="stylesheet" />
<!-- Bootstrap CSS-->
<link href="https://bootswatch.com/5/spacelab/bootstrap.css" rel="stylesheet" id="themedStyle">
<link rel="stylesheet" href="https://aaronrs2002.github.io/black-jack/css/animate.min.css" />
<link rel="stylesheet" href="https://unpkg.com/js-datepicker/dist/datepicker.min.css" />
<link href="https://aaronrs2002.github.io/black-jack/css/shared.css" data-version="css" rel="stylesheet">
<link href="css/style.css" rel="stylesheet" data-version="css">
<title>I have thoughts</title>
</head>
<body class="wLogo">
<nav class="navbar navbar-expand-sm navbar-dark bg-dark" id="top">
<div class="container-fluid">
<a class="navbar-brand" href="#top" target="_blank">Open Source</a>
<button class="navbar-toggler collapsed" onClick="toggleMobileNav('mobileNav')">
<span class="navbar-toggler-icon"></span>
</button>
<div class="navbar-collapse collapse">
<ul class="navbar-nav me-auto mb-2 ml-5 mb-sm-0" id="navLinkTarget">
</ul>
</div>
</div>
</nav>
<div class="container">
<div class="row">
<div class="col-md-12 pt-2">
<h1 id="activeTitleTarget">Thought Journal</h1>
<p data-instructions="top"></p>
<hr />
</div>
<div class="col-md-12" data-section="Journal">
<h3>How are youy feeling on a scale from 1 - 10</h3>
<i>1 means you are currently terrible. 10 means you're doing great.</i>
<select class="form-control" id="mood" name="mood">
<option value="1">1</option>
</select>
</div>
<div class="col-md-12 py-5 hide" data-section="Analytics">
<h1>Mood Chart</h1>
<div id="chart">
<div class="loader"></div>
</div>
</div>
</div>
<div class="row pt-5" id="journal" data-section="Journal">
<div class="col-md-12">
<div class="btn-group block" role="group">
<button type="button" class="btn btn-primary active" onClick="javascript:updateCRUD('add')"
data-addeditbt="add">Add</button>
<button type="button" class="btn btn-primary " data-addeditbt="edit"
onClick="javascript:updateCRUD('edit')">Edit</button>
</div>
<div class="py-2">
<label class="hide" data-edit="edit">Edit journal by date selection</label>
<select class="form-control hide" data-edit="edit" name="journalDateList"
onChange="populateForEdit('journalDateList')"></select>
</div>
</div>
<div class="col-md-12">
<h3>Journal Title</h3>
<input type="text" class="form-control" id="journalTitle" placeholder="Journal Title" />
</div>
<div class="col-md-12">
<h3>Journal Thought</h3>
<textarea rows="10" class="form-control" id="journalInput" placeholder="Journal Thought"></textarea>
</div>
<div class="col-md-12 py-3">
<label>Your previous topics</label>
<select class="form-control" id="journalTopicsListTarget" onChange="fillTopic('Journal')"></select>
<small><i>Create searchable topics for future reference.</i></small>
<div class="input-group my-3">
<input type="text" class="form-control" placeholder="Add Search Topic" name="journalTopic">
<button class="btn btn-outline-primary" onClick="addTopic('Journal')">Submit Topic</button>
</div>
<ul class="list-unstyled list-group list-group-horizontal" id="journalTopicsTarget"></ul>
</div>
<div class="col-md-12" data-edit="add">
<button class="form-control btn btn-success" onClick="submitJournalThought('add')">Add
Thought</button>
<hr />
</div>
<div class="col-md-12 hide" data-edit="edit">
<button class="form-control btn btn-success" onClick="submitJournalThought('edit')">Edit
Thought</button>
<hr />
</div>
</div>
<div class="row pt-5" id="thoughtProcess" data-section="CBT Thought Process">
<div class="col-md-12">
<div class="btn-group block" role="group">
<button type="button" class="btn btn-primary active" onClick="javascript:updateCRUD('add')"
data-addeditbt="add">Add</button>
<button type="button" class="btn btn-primary " data-addeditbt="edit"
onClick="javascript:updateCRUD('edit')">Edit</button>
</div>
<div class="py-2">
<label data-edit="edit" class="hide">Edit thought by date selection</label>
<select class="form-control hide" data-edit="edit" name="thoughtObjDateList"
onChange="populateForEdit('thoughtObjDateList')"></select>
</div>
</div>
<div class="col-md-12">
<h3>Automatic thought</h3>
<textarea class="form-control" id="automaticThought" placeholder="Automatic thought"
rows="5"></textarea>
</div>
<div class="col-md-12">
<h3>Cognitive Distortion</h3>
<ul id="cognitiveDistortion" class="list-group"></ul>
<!-- <textarea class="form-control" id="cognitiveDistortion" row="5"></textarea>--->
</div>
<div class="col-md-12 py-3">
<label>Your previous topics</label>
<select class="form-control" id="topicsListTarget" onChange="fillTopic('CBT')"></select>
<small><i>Create searchable topics for future reference.</i></small>
<div class="input-group my-3">
<input type="text" class="form-control" placeholder="Add Search Topic" name="cbtTopic">
<button class="btn btn-outline-primary" onClick="addTopic('CBT')">Submit Topic</button>
</div>
<ul class="list-unstyled list-group list-group-horizontal" id="cbtTopicsTarget"></ul>
</div>
<div class="col-md-12">
<h3>Rational Thought</h3>
<textarea class="form-control" id="rationalThought" placeholder="Rational Thought" rows="10"></textarea>
</div>
<div class="col-md-12">
<button class="form-control btn btn-success" data-edit="add" onClick="submitThought('add')">Add
Thought</button>
<hr />
</div>
<div class="col-md-12 hide" data-edit="edit">
<button class="form-control btn btn-success" onClick="submitThought('edit')">Edit
Thought</button>
<hr />
</div>
</div>
<span class="viewOptionWrapper">
<!--start buttons-->
<div class="row py-3">
<div class="col-md-12">
<div class="btn-group btn-block" role="group">
<button class="btn btn-info pointer" data-option="calendar"
onClick="viewVersion('calendar')">Calendar
View</button>
<button class="btn btn-info pointer" data-option="list" onClick="viewVersion('list')">List
View</button>
</div>
</div>
</div>
<!--end button grouop-->
<!--START CALENDAR-->
<div class="row" id="calendarWrapper">
<h3>Calendar</h3>
<i><small>Select green squares to read that day's submission.</small></i>
<div id="datePickerCalendarTarget" data-section="Journal"></div>
<div id="datePickerCalendarTargetCBT" data-section="CBT Thought Process"></div>
</div>
<ul class="list-group" id="submissionTarget"></ul>
<!--END CALENDAR-->
</span>
<div id="viewListTarget"></div>
<!--CBT Thought Process is hidden so the href window location won't work so I made an empy div with a target ID-->
<div class="row hide" data-section="CBT Thought Process" data-view="list">
<div class="col-md-12">
<h3>Your Thought collection:</h3>
<hr />
<div class="form-control">
<input type="text" class="form-control" name="searchField-CBT Thought Process"
placeholder="Search CBT Thought Process title, date and content"
onKeyUp="runSearch('CBT Thought Process')" />
</div>
</div>
<div class="col-md-12">
<ul id="thoughtTarget" class="list-group"></ul>
</div>
</div>
<div class="row hide" data-section="Journal" data-view="list">
<div class="col-md-12">
<div class="row">
<div class="col-md-12">
<h3>Journal Entries:</h3>
<hr />
<h4>Search</h4>
<input type="text" class="form-control" name="searchField-Journal"
placeholder="Search Journal title, date and content" onKeyUp="runSearch('Journal')" />
</div>
<div class="col-md-12">
<ul class="list-group" id="journalSubmissionsTarget"></ul>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-md-12" id="downloadOption">
<div class="card">
<div class="card-body">
<div class="col-md-12">
<button class="btn btn-info form-control" onClick="downloadData()">Download All
Thoughts</button>
</div>
<div class="col-md-12 py-2">
<button class="btn btn-danger form-control" onClick="toggle('clearData')">Clear
Local
Data</button>
<div data-toggle="clearData" class="hide">
<div>
<p>Are you sure you want to delete all your CBT thoughts?</p>
</div>
<button class="btn btn-secondary p-2" onClick="toggle('default')">No</button>
<button class="btn btn-danger p-2" onClick="clearData()">Yes</button>
</div>
</div>
<div class="col-md-12">
<div class="d-grid gap-2 py-2">
<button id="fileUpload" class="btn btn-success hide"
onClick="javascript:handleOnSubmit(event, 'json','default')"><i
class="fas fa-file-upload"></i>
Upload New Data</button>
</div>
</div>
<div class="col-md-12 py-2">
<div class="d-grid gap-2">
<label class="custom-file-upload btn btn-light">
<input type="file" name="importFile" accept=".json"
onChange="javascript:handleOnChange(event)" />
<i class="fa fa-cloud-upload"></i> Select a "iHaveThoughts.json" file to
upload
</label>
</div>
</div>
</div>
</div>
</div>
<div class="col-md-12 py-5">
<a class="btn btn-secondary form-control" href="#top">Back to Top <i class="fas fa-arrow-up"></i></a>
</div>
<!--start info-->
<div class="col-md-12 py-1">
<div class="d-grid gap-2">
<button class="btn btn-info" onClick="javascript:toggle('rules')" type="button"
data-toggle="defaultInstructions">View Instructions</button>
<button class="btn btn-info hide" onClick="javascript:toggle('defaultInstructions')" type="button"
data-toggle="rules">Hide Instructions</button>
</div>
<div class="card hide" data-toggle="rules">
<div class="card-body">
<h5 class="card-title" alt="Cognitive reframing ">Cognitive reframing:</h5>
<p>Cognitive reframing is a psychological technique that involves changing the way a person
perceives and interprets
events, situations, and experiences. It aims to help individuals identify and challenge
negative or distorted thoughts
and replace them with more positive and realistic perspectives. [1, 2, 3]
Key aspects of cognitive reframing:</p>
<ul class="list-group-numbered">
<li class="list-group-item"> Identifying negative thoughts: The first step involves
identifying automatic negative thoughts that may be causing
distress or limiting beliefs. [4, 5, 6]</li>
<li class="list-group-item"> Challenging negative thoughts: Once identified, these thoughts
are challenged and examined for their validity. [7, 8]</li>
<li class="list-group-item"> Developing alternative thoughts: New, more positive thoughts
are formulated to replace the negative ones. [9, 10, 11]</li>
<li class="list-group-item"> Practicing new thoughts: The goal is to repeatedly practice
these new thoughts in different situations to gradually
shift the individual's perspective. [12, 13]</li>
</ul>
<p>Cognitive reframing is often used in cognitive behavioral therapy (CBT) to help individuals
manage anxiety, depression,
and other mental health conditions. It can also be a helpful tool for improving coping
mechanisms and promoting personal
growth. [14, 15, 16, 17, 18]</p>
<i><small>AI responses may include mistakes.<br />
[1] https://en.wikipedia.org/wiki/Cognitive_reframing
[2] https://upvio.com/cbt/change-the-perspective-the-art-of-cognitive-reframing
[3] https://www.ebsco.com/research-starters/psychology/cognitive-reframing
[4] https://study.com/learn/lesson/cognitive-reframing-examples-techniques.html
[5] https://www.linkedin.com/pulse/conquer-your-fears-power-reframing-lawyers-gary-miles-ounte
[6] https://cogbtherapy.com/cbt-and-automatic-thoughts
[7] https://www.verywellmind.com/reframing-defined-2610419
[8] https://upvio.com/cbt/change-the-perspective-the-art-of-cognitive-reframing
[9] https://www.lifepaththerapy.org/blog/the-power-of-cognitive-reframing-shifting-perspectives-for-personal-growth
[10] https://www.mindspsychology.com/post/cognitive-behavioral-therapy-in-brooklyn
[11] https://www.alisbh.com/blog/how-hopelessness-affects-your-future-goals/
[12] https://www.facebook.com/ConsciousDiscipline/videos/reframing-our-intent-from-negative-to-positive/739858993872228/
[13] https://openresearch.ocadu.ca/2668/1/Peter_Narratives_2018.pdf
[14] https://www.sciencedirect.com/topics/psychology/cognitive-reframing
[15] https://www.everydayhealth.com/stress/study-says-heres-how-to-reframe-stress-to-use-it-to-your-advantage/
[16] https://www.verywellmind.com/reframing-defined-2610419
[17] https://www.aristarecovery.com/blog/how-cbt-helps-in-developing-healthy-coping-mechanisms
[18] https://www.therapytrainings.com/pages/blog/advanced-cognitive-restructuring-strategies-for-complex-cases</small></i>
<hr />
<h5>Journal</h5>
<p>
A journal is a personal record, often written, of experiences, thoughts, and feelings. It
can be a place to explore your
emotions, track your progress, and improve your overall well-being. Benefits include
increased self-awareness, stress
reduction, improved memory, and enhanced creativity. [1, 2, 3]
Here's a more detailed look at the benefits:</p>
<ul class="list-group-numbered">
<li class="list-group-item"> Improved Mental Health: Journaling can help process emotions,
reduce stress and anxiety, and even alleviate symptoms
of depression. [1, 3]</li>
<li class="list-group-item"> Enhanced Self-Awareness: By writing about your experiences, you
can gain a better understanding of your thoughts,
feelings, and behaviors, identifying patterns and triggers. [2]</li>
<li class="list-group-item">Increased Creativity: Journaling can be a great way to
brainstorm ideas, explore your imagination, and even find
solutions to problems. [3, 4]</li>
<li class="list-group-item">Better Memory: Reflecting on past experiences in your journal
can help you remember details and strengthen your
memory. [3]</li>
<li class="list-group-item"> Goal Setting and Achievement: Writing down your goals and
tracking your progress can keep you motivated and focused on
achieving them. [3, 5]</li>
<li class="list-group-item"> Improved Communication Skills: Expressing yourself through
writing can improve your ability to communicate your
thoughts and feelings to others. [4]</li>
<li class="list-group-item"> Reduced Stress and Anxiety: Journaling can be a great way to
release pent-up emotions and reduce stress, especially
when dealing with challenging situations. [4]</li>
<li class="list-group-item"> Boosted Happiness: Some studies suggest journaling can increase
overall happiness and well-being. [6]</li>
<li class="list-group-item">Physical Benefits: There's even research indicating journaling
can have positive physical effects, such as boosting
the immune system. [6]</li>
</ul>
<p>Different types of journaling:</p>
<ul>
<li class="list-group-item"> Daily log: Recording daily events and experiences.</li>
<li class="list-group-item">Thought journal: Capturing and processing thoughts and feelings.
</li>
<li class="list-group-item"> Gratitude journal: Focusing on positive aspects of life.</li>
<li class="list-group-item"> Idea journal: Brainstorming and developing new ideas.</li>
<li class="list-group-item"> Dream journal: Recording and analyzing dreams.</li>
<li class="list-group-item"> Travel journal: Documenting travel experiences. [1, 2, 4, 4, 5,
5, 7, 7, 8, 9, 10, 11]</li>
</ul>
<p>Ultimately, journaling can be a powerful tool for self-discovery, personal growth, and
improved
well-being. [2, 12]</p>
<i><small>AI responses may include mistakes.<br />
[1] https://www.urmc.rochester.edu/encyclopedia/content?ContentTypeID=1&ContentID=4552[2] https://bloomingtonmeadows.com/blog/the-benefits-of-journaling-for-mental-health/[3] https://www.psychologytoday.com/us/blog/modern-minds/202301/10-good-reasons-to-keep-a-journal[4] https://healthy.kaiserpermanente.org/health-wellness/healtharticle.7-benefits-of-keeping-a-journal[5] https://dayoneapp.com/blog/journaling-benefits/[6] https://www.reddit.com/r/Journaling/comments/161q9bj/what_are_the_benefits_of_journaling/[7] https://burampage.com/article/2020/09/30/three-types-of-journaling-that-can-benefit-your-mental-health/[8] https://www.youtube.com/watch?v=ibGHNoMkDCs[9] https://dayoneapp.com/blog/journaling-habit/[10] https://ca.pinterest.com/pin/a-peek-inside-someones-personal-dream-journal--143200463122293097/[11] https://www.archerandolive.com/blogs/news/15-journals-to-keep[12] https://www.quora.com/What-are-the-benefits-of-keeping-a-journal-and-what-is-it-like-to-read-them-later-in-life
Not all images can be exported from Search.</i></small>
</div>
</div>
</div>
</div>
</div>
<div class="hide alert fadeInUp" role="alert" id="globalAlert"></div>
<footer class="footer mt-auto py-3 animated fadeInUp">
<div class="container">
<div class="row">
<div class="col-md-4 my-2"> <select class="form-control" onChange="changeTheme()" id="themes"></select>
</div>
<div class="col-md-4 my-2"></div>
<div class="col-md-4 my-2">
<i><small><a href="https://web-presence.biz/?src=web-presence-games#contact" class="text-primary"
target="_bank"><i class="fas fa-paper-plane"></i> Contact me.</a></small></i>
</div>
</div>
</div>
</footer>
</body>
<script src="https://unpkg.com/js-datepicker"></script>
<script src="https://cdn.jsdelivr.net/npm/apexcharts"></script>
<script src="js/functionality.js" data-version="js"> </script>
<script src="js/calendar.js" data-version="js"></script>
</html>