-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscript.js
More file actions
132 lines (126 loc) · 6.2 KB
/
script.js
File metadata and controls
132 lines (126 loc) · 6.2 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
const zodiacSigns = [
"Capricorn", "Aquarius", "Pisces", "Aries", "Taurus", "Gemini",
"Cancer", "Leo", "Virgo", "Libra", "Scorpio", "Sagittarius"
];
const compliments = [
"You have a great sense of humor.",
"Your smile lights up the room.",
"You bring out the best in people.",
"You're an incredibly thoughtful person.",
"You have a heart of gold.",
"Your creativity is inspiring.",
"You're a fantastic problem-solver.",
"Your kindness is contagious.",
"You have an amazing ability to connect with others.",
"You're so knowledgeable about so many things.",
"Your determination is admirable.",
"You're a great listener.",
"You make the world a better place.",
"Your positivity is infectious.",
"You have an eye for detail.",
"You're always so helpful and considerate.",
"You have a natural talent for leadership.",
"Your courage is inspiring.",
"You're an amazing friend.",
"You have a unique perspective that is refreshing.",
"Your energy brightens everyone’s day.",
"You're incredibly resourceful.",
"You have a wonderful way with words.",
"You're a ray of sunshine on a cloudy day.",
"Your hard work is paying off.",
"You're so reliable and trustworthy.",
"You have a fantastic sense of style.",
"Your confidence is inspiring.",
"You're a great mentor and teacher.",
"Your dedication is remarkable.",
"You make everyone feel valued and respected."
];
const victimCardCompliments = [
"You always do good for others, but they don't appreciate it.",
"You give so much, but rarely get anything in return.",
"Your kindness often goes unnoticed, but it’s truly remarkable.",
"You always put others first, even when they don’t deserve it.",
"You sacrifice so much, yet people rarely acknowledge it.",
"You have a heart of gold, but others take it for granted.",
"You’re always there for everyone, but they’re not always there for you.",
"You work so hard, yet your efforts often go unrecognized.",
"You care deeply, even when others don’t reciprocate.",
"You forgive so easily, even when people don’t deserve it.",
"You give people the benefit of the doubt, but they rarely do the same for you.",
"You stand by people in their tough times, but they forget you in yours.",
"You always try to make peace, even when others blame you.",
"You handle so much pressure, yet no one sees your struggles.",
"You give so much love, but people don’t value it enough.",
"You’re always honest, yet people misunderstand your intentions.",
"You go out of your way for others, but they don’t return the favor.",
"You share everything you have, but people still ask for more.",
"You’re a true friend, even when others don’t treat you the same.",
"You keep helping others, even when they don’t say thank you."
];
const recommendations = [
"Feed a street dog and spread kindness.",
"Plant a tree and nurture it.",
"Volunteer at a local shelter or community center.",
"Start your day with meditation for a peaceful mind.",
"Write down three things you’re grateful for daily.",
"Spend time with your family and cherish those moments.",
"Help someone in need, even in small ways.",
"Read a book that inspires you to grow.",
"Exercise regularly to keep your body healthy.",
"Donate clothes you don’t wear to charity.",
"Cook a meal for someone and share the joy of food.",
"Smile at strangers and brighten their day.",
"Learn a new skill or hobby that excites you.",
"Reduce your plastic use to help the environment.",
"Disconnect from social media for a day and enjoy the moment.",
"Start a journal to document your thoughts and dreams.",
"Spend time in nature and appreciate its beauty.",
"Compliment someone genuinely and make their day.",
"Clean your room or workspace to feel more organized.",
"Drink more water and prioritize your health.",
"Write a letter to your future self.",
"Support a local business or artisan.",
"Listen to someone without interrupting.",
"Practice random acts of kindness every day.",
"Save a small amount of money weekly for future goals.",
"Make a vision board to stay motivated.",
"Adopt an eco-friendly habit like cycling or walking more.",
"Spend time with children and learn from their innocence.",
"Call an old friend and reconnect.",
"Learn to say no to things that don’t serve your happiness."
];
const predictions = [
"You will become a crorepati!",
"Success is just around the corner for you.",
"Your dream job is closer than you think.",
"Expect the unexpected—great things are coming.",
"You will travel the world in the next few years.",
"A big opportunity will knock on your door soon.",
"Your hard work will pay off in ways you can't imagine.",
"You will make a difference in someone's life.",
"A surprising adventure is coming your way.",
"Great things come to those who wait—your time is coming.",
"Your creativity will lead to great success.",
"A life-changing moment is just ahead.",
"Get ready for some exciting news soon.",
"A financial breakthrough is in your future.",
"You will find happiness in the smallest things.",
"Your patience will lead to big rewards.",
"A new friendship will change your life.",
"Prepare for a future full of opportunities.",
"A career breakthrough is on the horizon.",
"You will leave a legacy of inspiration."
];
const form = document.getElementById('astroForm')
form.addEventListener('submit', (e)=>{
e.preventDefault();
const name = document.getElementById('name').value
const surname = document.getElementById('surname').value
const day = parseInt(document.getElementById('day').value)
const month = parseInt(document.getElementById('month').value)
const year = parseInt(document.getElementById('year').value)
const text = `Hi ${name} ${surname}, Your Zodiac sign is ${zodiacSigns[month-1]}.
${compliments[day-1]}. ${victimCardCompliments[year%20]}. ${recommendations[(day*month)%30]},
${predictions[(name.length * surname.length)%20]}`;
document.getElementById('result').textContent = text;
})