-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
1029 lines (939 loc) · 45.5 KB
/
Copy pathindex.html
File metadata and controls
1029 lines (939 loc) · 45.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
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Five Types of Wealth Assessment</title>
<style>
body {
font-family: Arial, sans-serif;
max-width: 800px;
margin: 0 auto;
padding: 20px;
background-color: #f5f5f5;
}
.container {
background-color: white;
padding: 30px;
border-radius: 10px;
box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
h1 {
text-align: center;
color: #333;
margin-bottom: 30px;
}
.wealth-category {
margin-bottom: 40px;
padding: 20px;
border: 2px solid #e0e0e0;
border-radius: 8px;
background-color: #fafafa;
}
.wealth-category h2 {
color: #2c3e50;
margin-bottom: 20px;
border-bottom: 2px solid #3498db;
padding-bottom: 10px;
}
.statement {
margin-bottom: 20px;
padding: 15px;
background-color: white;
border-radius: 5px;
border-left: 4px solid #3498db;
}
.statement-text {
font-weight: 500;
margin-bottom: 10px;
color: #2c3e50;
}
.rating-scale {
display: flex;
justify-content: space-between;
align-items: center;
max-width: 300px;
}
.rating-scale label {
display: flex;
flex-direction: column;
align-items: center;
cursor: pointer;
padding: 5px;
}
.rating-scale input[type="radio"] {
margin-bottom: 5px;
}
.scale-labels {
display: flex;
justify-content: space-between;
max-width: 300px;
font-size: 12px;
color: #666;
margin-top: 5px;
}
.results {
margin-top: 30px;
padding: 20px;
background-color: #e8f5e8;
border-radius: 8px;
border: 2px solid #27ae60;
}
.results h3 {
color: #27ae60;
margin-bottom: 15px;
}
.score-item {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 10px;
padding: 8px;
background-color: white;
border-radius: 4px;
}
.score-bar {
width: 200px;
height: 20px;
background-color: #ecf0f1;
border-radius: 10px;
overflow: hidden;
margin-left: 10px;
}
.score-fill {
height: 100%;
background-color: #3498db;
transition: width 0.3s ease;
}
.calculate-btn {
display: block;
width: 200px;
margin: 20px auto;
padding: 12px 24px;
background-color: #3498db;
color: white;
border: none;
border-radius: 6px;
font-size: 16px;
cursor: pointer;
transition: background-color 0.3s ease;
}
.calculate-btn:hover {
background-color: #2980b9;
}
.total-score {
text-align: center;
font-size: 24px;
font-weight: bold;
color: #2c3e50;
margin-top: 20px;
padding: 15px;
background-color: #f8f9fa;
border-radius: 8px;
}
.nav-buttons {
display: flex;
justify-content: center;
gap: 20px;
margin-bottom: 30px;
}
.nav-btn {
padding: 10px 20px;
background-color: #34495e;
color: white;
border: none;
border-radius: 6px;
cursor: pointer;
font-size: 14px;
transition: background-color 0.3s ease;
}
.nav-btn:hover {
background-color: #2c3e50;
}
.nav-btn.active {
background-color: #3498db;
}
.history-view {
display: none;
}
.history-item {
margin-bottom: 30px;
padding: 20px;
background-color: #f8f9fa;
border-radius: 8px;
border: 1px solid #dee2e6;
}
.history-date {
font-size: 18px;
font-weight: bold;
color: #2c3e50;
margin-bottom: 15px;
}
.history-scores {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 15px;
margin-bottom: 15px;
}
.history-score-item {
display: flex;
justify-content: space-between;
align-items: center;
padding: 8px 12px;
background-color: white;
border-radius: 4px;
font-size: 14px;
}
.history-total {
text-align: center;
font-size: 16px;
font-weight: bold;
color: #27ae60;
padding: 10px;
background-color: white;
border-radius: 4px;
margin-top: 10px;
}
.delete-btn {
background-color: #e74c3c;
color: white;
border: none;
border-radius: 4px;
padding: 5px 10px;
cursor: pointer;
font-size: 12px;
margin-top: 10px;
}
.delete-btn:hover {
background-color: #c0392b;
}
.save-results {
display: none;
text-align: center;
margin-top: 20px;
}
.save-btn {
background-color: #27ae60;
color: white;
border: none;
border-radius: 6px;
padding: 10px 20px;
cursor: pointer;
font-size: 14px;
margin-right: 10px;
}
.save-btn:hover {
background-color: #229954;
}
.no-history {
text-align: center;
color: #666;
font-style: italic;
padding: 40px;
}
.coaching-section {
margin-top: 20px;
padding: 15px;
background-color: #f0f8ff;
border-radius: 8px;
border: 1px solid #3498db;
}
.coaching-btn {
background-color: #9b59b6;
color: white;
border: none;
border-radius: 6px;
padding: 10px 20px;
cursor: pointer;
font-size: 14px;
margin-right: 10px;
}
.coaching-btn:hover {
background-color: #8e44ad;
}
.coaching-prompt {
display: none;
margin-top: 15px;
}
.prompt-textarea {
width: 100%;
height: 200px;
padding: 10px;
border: 1px solid #ddd;
border-radius: 4px;
font-family: Arial, sans-serif;
font-size: 14px;
resize: vertical;
}
.copy-btn {
background-color: #f39c12;
color: white;
border: none;
border-radius: 4px;
padding: 8px 16px;
cursor: pointer;
font-size: 12px;
margin-top: 10px;
}
.copy-btn:hover {
background-color: #e67e22;
}
</style>
</head>
<body>
<div class="container">
<h1>Five Types of Wealth Assessment</h1>
<div class="nav-buttons">
<button class="nav-btn active" onclick="showAssessment()">Take Assessment</button>
<button class="nav-btn" onclick="showHistory()">View History</button>
</div>
<div id="assessmentView">
<form id="wealthForm">
<!-- Time Wealth -->
<div class="wealth-category">
<h2>1. Time Wealth</h2>
<div class="statement">
<div class="statement-text">I'm in control of my calendar and priorities.</div>
<div class="rating-scale">
<label><input type="radio" name="time1" value="1"> 1</label>
<label><input type="radio" name="time1" value="2"> 2</label>
<label><input type="radio" name="time1" value="3"> 3</label>
<label><input type="radio" name="time1" value="4"> 4</label>
<label><input type="radio" name="time1" value="5"> 5</label>
</div>
<div class="scale-labels">
<span>Strongly Disagree</span>
<span>Strongly Agree</span>
</div>
</div>
<div class="statement">
<div class="statement-text">I have a clear understanding of the 2-3 most important priorities in my personal and professional lives.</div>
<div class="rating-scale">
<label><input type="radio" name="time2" value="1"> 1</label>
<label><input type="radio" name="time2" value="2"> 2</label>
<label><input type="radio" name="time2" value="3"> 3</label>
<label><input type="radio" name="time2" value="4"> 4</label>
<label><input type="radio" name="time2" value="5"> 5</label>
</div>
<div class="scale-labels">
<span>Strongly Disagree</span>
<span>Strongly Agree</span>
</div>
</div>
<div class="statement">
<div class="statement-text">I am able to consistently direct attention and focus to the important priorities that I have identified.</div>
<div class="rating-scale">
<label><input type="radio" name="time3" value="1"> 1</label>
<label><input type="radio" name="time3" value="2"> 2</label>
<label><input type="radio" name="time3" value="3"> 3</label>
<label><input type="radio" name="time3" value="4"> 4</label>
<label><input type="radio" name="time3" value="5"> 5</label>
</div>
<div class="scale-labels">
<span>Strongly Disagree</span>
<span>Strongly Agree</span>
</div>
</div>
<div class="statement">
<div class="statement-text">I rarely feel too busy or scattered to spend time on the most important priorities.</div>
<div class="rating-scale">
<label><input type="radio" name="time4" value="1"> 1</label>
<label><input type="radio" name="time4" value="2"> 2</label>
<label><input type="radio" name="time4" value="3"> 3</label>
<label><input type="radio" name="time4" value="4"> 4</label>
<label><input type="radio" name="time4" value="5"> 5</label>
</div>
<div class="scale-labels">
<span>Strongly Disagree</span>
<span>Strongly Agree</span>
</div>
</div>
<div class="statement">
<div class="statement-text">I have a deep awareness of the finite, impermanent nature of my time and its importance as my most precious asset.</div>
<div class="rating-scale">
<label><input type="radio" name="time5" value="1"> 1</label>
<label><input type="radio" name="time5" value="2"> 2</label>
<label><input type="radio" name="time5" value="3"> 3</label>
<label><input type="radio" name="time5" value="4"> 4</label>
<label><input type="radio" name="time5" value="5"> 5</label>
</div>
<div class="scale-labels">
<span>Strongly Disagree</span>
<span>Strongly Agree</span>
</div>
</div>
</div>
<!-- Social Wealth -->
<div class="wealth-category">
<h2>2. Social Wealth</h2>
<div class="statement">
<div class="statement-text">I have a core set of deep, loving, supportive relationships.</div>
<div class="rating-scale">
<label><input type="radio" name="social1" value="1"> 1</label>
<label><input type="radio" name="social1" value="2"> 2</label>
<label><input type="radio" name="social1" value="3"> 3</label>
<label><input type="radio" name="social1" value="4"> 4</label>
<label><input type="radio" name="social1" value="5"> 5</label>
</div>
<div class="scale-labels">
<span>Strongly Disagree</span>
<span>Strongly Agree</span>
</div>
</div>
<div class="statement">
<div class="statement-text">I am consistently able to be the partner, parent, family member, and friend that I would want to have.</div>
<div class="rating-scale">
<label><input type="radio" name="social2" value="1"> 1</label>
<label><input type="radio" name="social2" value="2"> 2</label>
<label><input type="radio" name="social2" value="3"> 3</label>
<label><input type="radio" name="social2" value="4"> 4</label>
<label><input type="radio" name="social2" value="5"> 5</label>
</div>
<div class="scale-labels">
<span>Strongly Disagree</span>
<span>Strongly Agree</span>
</div>
</div>
<div class="statement">
<div class="statement-text">I have a network of loose relationships I can learn from and build on.</div>
<div class="rating-scale">
<label><input type="radio" name="social3" value="1"> 1</label>
<label><input type="radio" name="social3" value="2"> 2</label>
<label><input type="radio" name="social3" value="3"> 3</label>
<label><input type="radio" name="social3" value="4"> 4</label>
<label><input type="radio" name="social3" value="5"> 5</label>
</div>
<div class="scale-labels">
<span>Strongly Disagree</span>
<span>Strongly Agree</span>
</div>
</div>
<div class="statement">
<div class="statement-text">I have a deep feeling of connection to a community (local, regional, national, spiritual, and so on) or to something bigger than myself.</div>
<div class="rating-scale">
<label><input type="radio" name="social4" value="1"> 1</label>
<label><input type="radio" name="social4" value="2"> 2</label>
<label><input type="radio" name="social4" value="3"> 3</label>
<label><input type="radio" name="social4" value="4"> 4</label>
<label><input type="radio" name="social4" value="5"> 5</label>
</div>
<div class="scale-labels">
<span>Strongly Disagree</span>
<span>Strongly Agree</span>
</div>
</div>
<div class="statement">
<div class="statement-text">I do not attempt to achieve status, respect, or admiration through material purchases.</div>
<div class="rating-scale">
<label><input type="radio" name="social5" value="1"> 1</label>
<label><input type="radio" name="social5" value="2"> 2</label>
<label><input type="radio" name="social5" value="3"> 3</label>
<label><input type="radio" name="social5" value="4"> 4</label>
<label><input type="radio" name="social5" value="5"> 5</label>
</div>
<div class="scale-labels">
<span>Strongly Disagree</span>
<span>Strongly Agree</span>
</div>
</div>
</div>
<!-- Mental Wealth -->
<div class="wealth-category">
<h2>3. Mental Wealth</h2>
<div class="statement">
<div class="statement-text">I regularly embrace a childlike curiosity.</div>
<div class="rating-scale">
<label><input type="radio" name="mental1" value="1"> 1</label>
<label><input type="radio" name="mental1" value="2"> 2</label>
<label><input type="radio" name="mental1" value="3"> 3</label>
<label><input type="radio" name="mental1" value="4"> 4</label>
<label><input type="radio" name="mental1" value="5"> 5</label>
</div>
<div class="scale-labels">
<span>Strongly Disagree</span>
<span>Strongly Agree</span>
</div>
</div>
<div class="statement">
<div class="statement-text">I have a clear purpose that provides daily meaning and aligns short and long-term decision making.</div>
<div class="rating-scale">
<label><input type="radio" name="mental2" value="1"> 1</label>
<label><input type="radio" name="mental2" value="2"> 2</label>
<label><input type="radio" name="mental2" value="3"> 3</label>
<label><input type="radio" name="mental2" value="4"> 4</label>
<label><input type="radio" name="mental2" value="5"> 5</label>
</div>
<div class="scale-labels">
<span>Strongly Disagree</span>
<span>Strongly Agree</span>
</div>
</div>
<div class="statement">
<div class="statement-text">I pursue growth and consistently chase my full potential.</div>
<div class="rating-scale">
<label><input type="radio" name="mental3" value="1"> 1</label>
<label><input type="radio" name="mental3" value="2"> 2</label>
<label><input type="radio" name="mental3" value="3"> 3</label>
<label><input type="radio" name="mental3" value="4"> 4</label>
<label><input type="radio" name="mental3" value="5"> 5</label>
</div>
<div class="scale-labels">
<span>Strongly Disagree</span>
<span>Strongly Agree</span>
</div>
</div>
<div class="statement">
<div class="statement-text">I have a fundamental belief that I am able to continuously change, develop, and adapt.</div>
<div class="rating-scale">
<label><input type="radio" name="mental4" value="1"> 1</label>
<label><input type="radio" name="mental4" value="2"> 2</label>
<label><input type="radio" name="mental4" value="3"> 3</label>
<label><input type="radio" name="mental4" value="4"> 4</label>
<label><input type="radio" name="mental4" value="5"> 5</label>
</div>
<div class="scale-labels">
<span>Strongly Disagree</span>
<span>Strongly Agree</span>
</div>
</div>
<div class="statement">
<div class="statement-text">I have regular rituals that allow me to create space to think, reset, wrestle with questions, and recharge.</div>
<div class="rating-scale">
<label><input type="radio" name="mental5" value="1"> 1</label>
<label><input type="radio" name="mental5" value="2"> 2</label>
<label><input type="radio" name="mental5" value="3"> 3</label>
<label><input type="radio" name="mental5" value="4"> 4</label>
<label><input type="radio" name="mental5" value="5"> 5</label>
</div>
<div class="scale-labels">
<span>Strongly Disagree</span>
<span>Strongly Agree</span>
</div>
</div>
</div>
<!-- Physical Wealth -->
<div class="wealth-category">
<h2>4. Physical Wealth</h2>
<div class="statement">
<div class="statement-text">I feel strong, healthy, and vital for my age.</div>
<div class="rating-scale">
<label><input type="radio" name="physical1" value="1"> 1</label>
<label><input type="radio" name="physical1" value="2"> 2</label>
<label><input type="radio" name="physical1" value="3"> 3</label>
<label><input type="radio" name="physical1" value="4"> 4</label>
<label><input type="radio" name="physical1" value="5"> 5</label>
</div>
<div class="scale-labels">
<span>Strongly Disagree</span>
<span>Strongly Agree</span>
</div>
</div>
<div class="statement">
<div class="statement-text">I move my body regularly through a structured routine and have an active lifestyle.</div>
<div class="rating-scale">
<label><input type="radio" name="physical2" value="1"> 1</label>
<label><input type="radio" name="physical2" value="2"> 2</label>
<label><input type="radio" name="physical2" value="3"> 3</label>
<label><input type="radio" name="physical2" value="4"> 4</label>
<label><input type="radio" name="physical2" value="5"> 5</label>
</div>
<div class="scale-labels">
<span>Strongly Disagree</span>
<span>Strongly Agree</span>
</div>
</div>
<div class="statement">
<div class="statement-text">I eat primarily whole, unprocessed foods.</div>
<div class="rating-scale">
<label><input type="radio" name="physical3" value="1"> 1</label>
<label><input type="radio" name="physical3" value="2"> 2</label>
<label><input type="radio" name="physical3" value="3"> 3</label>
<label><input type="radio" name="physical3" value="4"> 4</label>
<label><input type="radio" name="physical3" value="5"> 5</label>
</div>
<div class="scale-labels">
<span>Strongly Disagree</span>
<span>Strongly Agree</span>
</div>
</div>
<div class="statement">
<div class="statement-text">I sleep 7 or more hours per night on a regular basis and feel rested and recovered.</div>
<div class="rating-scale">
<label><input type="radio" name="physical4" value="1"> 1</label>
<label><input type="radio" name="physical4" value="2"> 2</label>
<label><input type="radio" name="physical4" value="3"> 3</label>
<label><input type="radio" name="physical4" value="4"> 4</label>
<label><input type="radio" name="physical4" value="5"> 5</label>
</div>
<div class="scale-labels">
<span>Strongly Disagree</span>
<span>Strongly Agree</span>
</div>
</div>
<div class="statement">
<div class="statement-text">I have a clear plan in place to allow me to physically thrive into my later years.</div>
<div class="rating-scale">
<label><input type="radio" name="physical5" value="1"> 1</label>
<label><input type="radio" name="physical5" value="2"> 2</label>
<label><input type="radio" name="physical5" value="3"> 3</label>
<label><input type="radio" name="physical5" value="4"> 4</label>
<label><input type="radio" name="physical5" value="5"> 5</label>
</div>
<div class="scale-labels">
<span>Strongly Disagree</span>
<span>Strongly Agree</span>
</div>
</div>
</div>
<!-- Financial Wealth -->
<div class="wealth-category">
<h2>5. Financial Wealth</h2>
<div class="statement">
<div class="statement-text">I have a clear definition of what it means to have enough financially.</div>
<div class="rating-scale">
<label><input type="radio" name="financial1" value="1"> 1</label>
<label><input type="radio" name="financial1" value="2"> 2</label>
<label><input type="radio" name="financial1" value="3"> 3</label>
<label><input type="radio" name="financial1" value="4"> 4</label>
<label><input type="radio" name="financial1" value="5"> 5</label>
</div>
<div class="scale-labels">
<span>Strongly Disagree</span>
<span>Strongly Agree</span>
</div>
</div>
<div class="statement">
<div class="statement-text">I have income that is steadily growing alongside my skills and expertise.</div>
<div class="rating-scale">
<label><input type="radio" name="financial2" value="1"> 1</label>
<label><input type="radio" name="financial2" value="2"> 2</label>
<label><input type="radio" name="financial2" value="3"> 3</label>
<label><input type="radio" name="financial2" value="4"> 4</label>
<label><input type="radio" name="financial2" value="5"> 5</label>
</div>
<div class="scale-labels">
<span>Strongly Disagree</span>
<span>Strongly Agree</span>
</div>
</div>
<div class="statement">
<div class="statement-text">I manage my monthly expenses so that they are reliably below my income.</div>
<div class="rating-scale">
<label><input type="radio" name="financial3" value="1"> 1</label>
<label><input type="radio" name="financial3" value="2"> 2</label>
<label><input type="radio" name="financial3" value="3"> 3</label>
<label><input type="radio" name="financial3" value="4"> 4</label>
<label><input type="radio" name="financial3" value="5"> 5</label>
</div>
<div class="scale-labels">
<span>Strongly Disagree</span>
<span>Strongly Agree</span>
</div>
</div>
<div class="statement">
<div class="statement-text">I have a clear process for investing excess monthly income for long-term compounding.</div>
<div class="rating-scale">
<label><input type="radio" name="financial4" value="1"> 1</label>
<label><input type="radio" name="financial4" value="2"> 2</label>
<label><input type="radio" name="financial4" value="3"> 3</label>
<label><input type="radio" name="financial4" value="4"> 4</label>
<label><input type="radio" name="financial4" value="5"> 5</label>
</div>
<div class="scale-labels">
<span>Strongly Disagree</span>
<span>Strongly Agree</span>
</div>
</div>
<div class="statement">
<div class="statement-text">I use my financial wealth as a tool to build other types of wealth.</div>
<div class="rating-scale">
<label><input type="radio" name="financial5" value="1"> 1</label>
<label><input type="radio" name="financial5" value="2"> 2</label>
<label><input type="radio" name="financial5" value="3"> 3</label>
<label><input type="radio" name="financial5" value="4"> 4</label>
<label><input type="radio" name="financial5" value="5"> 5</label>
</div>
<div class="scale-labels">
<span>Strongly Disagree</span>
<span>Strongly Agree</span>
</div>
</div>
</div>
</form>
<button type="button" class="calculate-btn" onclick="calculateScores()">Calculate My Wealth Scores</button>
<div id="results" class="results" style="display: none;">
<h3>Your Wealth Assessment Results</h3>
<div id="scoreDetails"></div>
<div id="totalScore" class="total-score"></div>
<div class="save-results" id="saveResults">
<button class="save-btn" onclick="saveResults()">Save These Results</button>
<span id="saveMessage" style="color: #27ae60; margin-left: 10px;"></span>
</div>
<div class="coaching-section" id="coachingSection" style="display: none;">
<h4 style="color: #9b59b6; margin-bottom: 10px;">🎯 Get AI Coaching</h4>
<p style="font-size: 14px; margin-bottom: 15px;">Generate a personalized coaching prompt based on your results to use with Claude or other AI assistants.</p>
<button class="coaching-btn" onclick="generateCoachingPrompt()">Generate Coaching Prompt</button>
<div class="coaching-prompt" id="coachingPrompt">
<h5 style="margin-bottom: 10px;">Copy this prompt and paste it into Claude:</h5>
<textarea class="prompt-textarea" id="promptText" readonly></textarea>
<button class="copy-btn" onclick="copyPrompt()">Copy to Clipboard</button>
<span id="copyMessage" style="color: #27ae60; margin-left: 10px; font-size: 12px;"></span>
</div>
</div>
</div>
</div>
<div id="historyView" class="history-view">
<h2>Assessment History</h2>
<div id="historyContent"></div>
</div>
</div>
<script>
let currentScores = null;
let currentTotalScore = 0;
function calculateScores() {
const categories = ['time', 'social', 'mental', 'physical', 'financial'];
const categoryNames = ['Time Wealth', 'Social Wealth', 'Mental Wealth', 'Physical Wealth', 'Financial Wealth'];
let totalScore = 0;
let allAnswered = true;
let scores = {};
// Calculate scores for each category
categories.forEach((category, index) => {
let categoryScore = 0;
let categoryAnswered = true;
for (let i = 1; i <= 5; i++) {
const radios = document.getElementsByName(category + i);
let answered = false;
for (let radio of radios) {
if (radio.checked) {
categoryScore += parseInt(radio.value);
answered = true;
break;
}
}
if (!answered) {
categoryAnswered = false;
allAnswered = false;
}
}
scores[category] = {
name: categoryNames[index],
score: categoryScore,
answered: categoryAnswered
};
if (categoryAnswered) {
totalScore += categoryScore;
}
});
if (!allAnswered) {
alert('Please answer all questions before calculating your scores.');
return;
}
// Store current results
currentScores = scores;
currentTotalScore = totalScore;
// Display results
displayResults(scores, totalScore);
}
function displayResults(scores, totalScore) {
const resultsDiv = document.getElementById('results');
const scoreDetailsDiv = document.getElementById('scoreDetails');
const totalScoreDiv = document.getElementById('totalScore');
// Clear previous results
scoreDetailsDiv.innerHTML = '';
// Create score display for each category
Object.keys(scores).forEach(category => {
const score = scores[category];
const percentage = (score.score / 25) * 100;
const scoreItem = document.createElement('div');
scoreItem.className = 'score-item';
scoreItem.innerHTML = `
<span><strong>${score.name}:</strong> ${score.score}/25</span>
<div class="score-bar">
<div class="score-fill" style="width: ${percentage}%"></div>
</div>
<span>${percentage.toFixed(0)}%</span>
`;
scoreDetailsDiv.appendChild(scoreItem);
});
// Display total score
const totalPercentage = (totalScore / 125) * 100;
totalScoreDiv.innerHTML = `
<div>Total Wealth Score: ${totalScore}/125</div>
<div style="font-size: 18px; margin-top: 10px;">Overall Wealth Level: ${totalPercentage.toFixed(1)}%</div>
`;
// Show results, save option, and coaching section
resultsDiv.style.display = 'block';
document.getElementById('saveResults').style.display = 'block';
document.getElementById('coachingSection').style.display = 'block';
resultsDiv.scrollIntoView({ behavior: 'smooth' });
}
function saveResults() {
if (!currentScores || currentTotalScore === 0) {
alert('No results to save. Please take the assessment first.');
return;
}
const today = new Date();
const dateString = today.toLocaleDateString('en-US', {
year: 'numeric',
month: 'long',
day: 'numeric'
});
const result = {
date: dateString,
timestamp: today.getTime(),
scores: currentScores,
totalScore: currentTotalScore
};
// Get existing results from localStorage
let savedResults = JSON.parse(localStorage.getItem('wealthAssessmentHistory') || '[]');
// Add new result
savedResults.push(result);
// Sort by timestamp (newest first)
savedResults.sort((a, b) => b.timestamp - a.timestamp);
// Save back to localStorage
localStorage.setItem('wealthAssessmentHistory', JSON.stringify(savedResults));
// Show confirmation
document.getElementById('saveMessage').textContent = 'Results saved successfully!';
setTimeout(() => {
document.getElementById('saveMessage').textContent = '';
}, 3000);
}
function showAssessment() {
document.getElementById('assessmentView').style.display = 'block';
document.getElementById('historyView').style.display = 'none';
// Update nav buttons
document.querySelectorAll('.nav-btn').forEach(btn => btn.classList.remove('active'));
event.target.classList.add('active');
}
function showHistory() {
document.getElementById('assessmentView').style.display = 'none';
document.getElementById('historyView').style.display = 'block';
// Update nav buttons
document.querySelectorAll('.nav-btn').forEach(btn => btn.classList.remove('active'));
event.target.classList.add('active');
// Load and display history
loadHistory();
}
function loadHistory() {
const savedResults = JSON.parse(localStorage.getItem('wealthAssessmentHistory') || '[]');
const historyContent = document.getElementById('historyContent');
if (savedResults.length === 0) {
historyContent.innerHTML = '<div class="no-history">No assessment history found. Take your first assessment to start tracking your progress!</div>';
return;
}
historyContent.innerHTML = '';
savedResults.forEach((result, index) => {
const historyItem = document.createElement('div');
historyItem.className = 'history-item';
let scoresHTML = '';
Object.keys(result.scores).forEach(category => {
const score = result.scores[category];
const percentage = (score.score / 25) * 100;
scoresHTML += `
<div class="history-score-item">
<span><strong>${score.name}:</strong></span>
<span>${score.score}/25 (${percentage.toFixed(0)}%)</span>
</div>
`;
});
const totalPercentage = (result.totalScore / 125) * 100;
historyItem.innerHTML = `
<div class="history-date">${result.date}</div>
<div class="history-scores">
${scoresHTML}
</div>
<div class="history-total">
Total: ${result.totalScore}/125 (${totalPercentage.toFixed(1)}%)
</div>
<button class="delete-btn" onclick="deleteResult(${index})">Delete This Result</button>
`;
historyContent.appendChild(historyItem);
});
}
function deleteResult(index) {
if (confirm('Are you sure you want to delete this assessment result?')) {
let savedResults = JSON.parse(localStorage.getItem('wealthAssessmentHistory') || '[]');
savedResults.splice(index, 1);
localStorage.setItem('wealthAssessmentHistory', JSON.stringify(savedResults));
loadHistory(); // Refresh the history display
}
}
function generateCoachingPrompt() {
if (!currentScores || currentTotalScore === 0) {
alert('No results available. Please take the assessment first.');
return;
}
// Calculate strengths and growth areas
let strengths = [];
let growthAreas = [];
Object.keys(currentScores).forEach(category => {
const score = currentScores[category];
const percentage = (score.score / 25) * 100;
if (percentage >= 70) {
strengths.push(`${score.name}: ${score.score}/25 (${percentage.toFixed(0)}%)`);
} else if (percentage < 60) {
growthAreas.push(`${score.name}: ${score.score}/25 (${percentage.toFixed(0)}%)`);
}
});
const totalPercentage = (currentTotalScore / 125) * 100;
const today = new Date().toLocaleDateString('en-US', {
year: 'numeric',
month: 'long',
day: 'numeric'
});
const prompt = `I just completed a Five Types of Wealth assessment on ${today}. Please provide me with a personalized coaching report that highlights my successes and gives me actionable recommendations for improvement over the next 3-6 months.
Here are my results:
**Overall Score:** ${currentTotalScore}/125 (${totalPercentage.toFixed(1)}%)
**Individual Scores:**
${Object.keys(currentScores).map(category => {
const score = currentScores[category];
const percentage = (score.score / 25) * 100;
return `• ${score.name}: ${score.score}/25 (${percentage.toFixed(0)}%)`;
}).join('\n')}
**Areas of Strength:**
${strengths.length > 0 ? strengths.map(s => `• ${s}`).join('\n') : '• No areas currently scoring above 70%'}
**Areas for Growth:**
${growthAreas.length > 0 ? growthAreas.map(g => `• ${g}`).join('\n') : '• All areas are performing reasonably well'}
**The Five Types of Wealth Framework:**
1. **Time Wealth** - Control over calendar and priorities, focus on important tasks
2. **Social Wealth** - Deep relationships, community connection, authentic connections
3. **Mental Wealth** - Curiosity, purpose, growth mindset, regular reflection
4. **Physical Wealth** - Health, vitality, structured movement, nutrition, sleep
5. **Financial Wealth** - Clear financial goals, growing income, expense management, investing
Please provide:
1. **Celebration of Strengths** - What am I doing well? What should I continue?
2. **Growth Recommendations** - Specific, actionable steps I can take in the next 3-6 months
3. **Priority Focus** - Which 1-2 areas should I focus on first for maximum impact?
4. **Practical Next Steps** - Concrete actions I can implement starting this week
Please be encouraging, specific, and practical in your recommendations.`;
document.getElementById('promptText').value = prompt;
document.getElementById('coachingPrompt').style.display = 'block';
}