Spaces:
Running
Running
Update script.js
Browse files
script.js
CHANGED
|
@@ -44,14 +44,14 @@ function formatResponse({ idea, details, tone, format, length, language }) {
|
|
| 44 |
paragraph: `Here’s a ${tone.toLowerCase()} take on your idea. `,
|
| 45 |
bulletsIntro: `Key points:\n`,
|
| 46 |
emailIntro: `Subject: ${idea || 'Your Idea'}\n\nHi there,\n\n`,
|
| 47 |
-
outro: `\n\n—
|
| 48 |
},
|
| 49 |
Urdu: {
|
| 50 |
intro: `آئیڈیا: ${idea || '—'}\nتفصیل: ${details || '—'}\nلہجہ: ${tone} • فارمیٹ: ${format} • طوالت: ${length}\n\n`,
|
| 51 |
paragraph: `یہ آپ کے آئیڈیا پر ایک ${tone} انداز ہے۔ `,
|
| 52 |
bulletsIntro: `اہم نکات:\n`,
|
| 53 |
emailIntro: `موضوع: ${idea || 'آپ کا آئیڈیا'}\n\nالسلام علیکم،\n\n`,
|
| 54 |
-
outro: `\n\n—
|
| 55 |
}
|
| 56 |
}[language];
|
| 57 |
|
|
@@ -70,7 +70,7 @@ function formatResponse({ idea, details, tone, format, length, language }) {
|
|
| 70 |
const contentByFormat = {
|
| 71 |
'Paragraph': `${base.paragraph}${detailsByLength}`,
|
| 72 |
'Bullet Points': `${base.bulletsIntro}- ${detailsByLength}\n- Audience relevance\n- Clear next step`,
|
| 73 |
-
'Email': `${base.emailIntro}${detailsByLength}\n\nBest regards,\
|
| 74 |
}[format];
|
| 75 |
|
| 76 |
return `${base.intro}${contentByFormat}${base.outro}`;
|
|
|
|
| 44 |
paragraph: `Here’s a ${tone.toLowerCase()} take on your idea. `,
|
| 45 |
bulletsIntro: `Key points:\n`,
|
| 46 |
emailIntro: `Subject: ${idea || 'Your Idea'}\n\nHi there,\n\n`,
|
| 47 |
+
outro: `\n\n— generated by coachproai`
|
| 48 |
},
|
| 49 |
Urdu: {
|
| 50 |
intro: `آئیڈیا: ${idea || '—'}\nتفصیل: ${details || '—'}\nلہجہ: ${tone} • فارمیٹ: ${format} • طوالت: ${length}\n\n`,
|
| 51 |
paragraph: `یہ آپ کے آئیڈیا پر ایک ${tone} انداز ہے۔ `,
|
| 52 |
bulletsIntro: `اہم نکات:\n`,
|
| 53 |
emailIntro: `موضوع: ${idea || 'آپ کا آئیڈیا'}\n\nالسلام علیکم،\n\n`,
|
| 54 |
+
outro: `\n\n— coachproai`
|
| 55 |
}
|
| 56 |
}[language];
|
| 57 |
|
|
|
|
| 70 |
const contentByFormat = {
|
| 71 |
'Paragraph': `${base.paragraph}${detailsByLength}`,
|
| 72 |
'Bullet Points': `${base.bulletsIntro}- ${detailsByLength}\n- Audience relevance\n- Clear next step`,
|
| 73 |
+
'Email': `${base.emailIntro}${detailsByLength}\n\nBest regards,\ncoachproai`
|
| 74 |
}[format];
|
| 75 |
|
| 76 |
return `${base.intro}${contentByFormat}${base.outro}`;
|