Update index.html
Browse files- index.html +122 -117
index.html
CHANGED
|
@@ -4,157 +4,162 @@
|
|
| 4 |
<head>
|
| 5 |
<meta charset="utf-8">
|
| 6 |
<meta name="viewport" content="width=device-width, initial-scale=1">
|
| 7 |
-
<title>PesaSmart 47 -
|
| 8 |
<style>
|
| 9 |
-
*{box-sizing:border-box} body{margin:0;font-family:system-ui;background:linear-gradient(135deg,#0f172a,#
|
| 10 |
-
.header{position:sticky;top:0;z-index:99;background:rgba(15,23,42,0.
|
| 11 |
-
.card{background:white;color:#111;padding:18px;border-radius:26px;max-width:
|
| 12 |
-
.tabs{display:flex;gap:
|
| 13 |
-
.tab{flex:1;padding:10px;
|
| 14 |
-
.tab.active{background:linear-gradient(135deg,#ec4899,#
|
| 15 |
-
input,select,textarea{width:100%;padding:14px;border:2px solid #e2e8f0;border-radius:14px;margin-top:8px;
|
| 16 |
button{width:100%;padding:14px;border:none;border-radius:14px;font-weight:800;margin-top:8px;cursor:pointer}
|
| 17 |
-
.btn-pink{background:linear-gradient(135deg,#ec4899,#
|
| 18 |
-
.box{padding:
|
| 19 |
-
.green{background:#f0fdf4;border-left:
|
| 20 |
-
img.beautiful{width:100%;height:
|
|
|
|
|
|
|
|
|
|
|
|
|
| 21 |
.pochi{background:linear-gradient(135deg,#16a34a,#15803d);color:white;border-radius:18px;padding:16px;text-align:center;margin-top:12px}
|
| 22 |
-
.chat{height:260px;overflow-y:auto;background:#f8fafc;border:2px solid #e2e8f0;border-radius:16px;padding:12px;margin-top:10px}
|
| 23 |
-
.msg{padding:10px 13px;border-radius:14px;margin:8px 0;max-width:85%;font-size:13px;line-height:1.5}
|
| 24 |
-
.msg.user{background:#0f172a;color:white;margin-left:auto}.msg.bot{background:#fdf2f8;color:#111;border:1px solid #fbcfe8}
|
| 25 |
-
.badge{background:#ec4899;color:white;padding:4px 10px;border-radius:20px;font-size:10px;font-weight:800}
|
| 26 |
</style>
|
| 27 |
</head>
|
| 28 |
<body>
|
| 29 |
<div class="header">
|
| 30 |
-
<h2 style="margin:0;color:#
|
| 31 |
-
<p style="margin:
|
| 32 |
</div>
|
| 33 |
|
| 34 |
<div class="card">
|
| 35 |
<div class="tabs">
|
| 36 |
-
<div class="tab active" onclick="openTab('
|
| 37 |
-
<div class="tab" onclick="openTab('
|
| 38 |
-
<div class="tab" onclick="openTab('
|
| 39 |
-
<div class="tab" onclick="openTab('
|
| 40 |
<div class="tab" onclick="openTab('maisha',this)">π§ MAISHA</div>
|
| 41 |
</div>
|
| 42 |
|
| 43 |
-
<!--
|
| 44 |
-
<div id="
|
| 45 |
-
<div style="text-align:center"><span class="badge">π©βπ¦°
|
| 46 |
-
<
|
| 47 |
-
<
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 48 |
<select id="county"></select>
|
| 49 |
-
<
|
| 50 |
-
<button class="btn-pink" onclick="makePlan()">β¨ NIPE PLAN YOTE - Niko Hapa Kukusaidia! π</button>
|
| 51 |
-
<div style="display:flex;gap:6px"><button class="btn-pink" style="flex:1" onclick="speakResult()">π©βπ¦° Amina Aongee - Female Voice</button><button class="btn-dark" style="flex:1" onclick="stopSpeak()">βΉοΈ Stop</button></div>
|
| 52 |
-
<div id="result" style="display:none"></div>
|
| 53 |
-
<div class="pochi"><b>π Pochi La Biashara - Support Hiari</b><br><span style="font-size:10px;">47 Counties FREE! Youth hawatalipa!</span><br><b style="font-size:28px;letter-spacing:1px;">0110400683</b><br><button onclick="navigator.clipboard.writeText('0110400683');alert('Copied 0110400683')" style="background:white;color:#16a34a;width:55%;padding:9px;margin-top:6px;">π Copy 0110400683</button></div>
|
| 54 |
</div>
|
| 55 |
|
| 56 |
-
<!--
|
| 57 |
-
<div id="
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 58 |
|
| 59 |
-
<!--
|
| 60 |
-
<div id="
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 61 |
|
| 62 |
-
<!--
|
| 63 |
-
<div id="
|
| 64 |
-
<h3 style="margin:0;">
|
| 65 |
-
<div class="box
|
| 66 |
-
<
|
| 67 |
-
<
|
| 68 |
-
<
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 69 |
</div>
|
| 70 |
|
| 71 |
-
<!-- MAISHA
|
| 72 |
<div id="maisha" style="display:none"></div>
|
| 73 |
</div>
|
| 74 |
|
| 75 |
<script>
|
| 76 |
const counties=["Mombasa","Kwale","Kilifi","Tana River","Lamu","Taita Taveta","Garissa","Wajir","Mandera","Marsabit","Isiolo","Meru","Tharaka Nithi","Embu","Kitui","Machakos","Makueni","Nyandarua","Nyeri","Kirinyaga","Muranga","Kiambu","Turkana","West Pokot","Samburu","Trans Nzoia","Uasin Gishu - Eldoret","Elgeyo Marakwet","Nandi","Baringo","Laikipia","Nakuru","Narok","Kajiado","Kericho","Bomet","Kakamega","Vihiga","Bungoma","Busia","Siaya","Kisumu","Homa Bay","Migori","Kisii","Nyamira","Nairobi"];
|
| 77 |
-
const
|
| 78 |
-
"
|
| 79 |
-
"
|
| 80 |
-
"
|
| 81 |
-
"
|
| 82 |
-
"
|
| 83 |
-
"
|
| 84 |
-
"
|
| 85 |
-
}
|
| 86 |
-
|
| 87 |
-
|
| 88 |
-
|
| 89 |
-
|
| 90 |
-
|
| 91 |
-
|
| 92 |
-
|
| 93 |
-
|
| 94 |
-
|
| 95 |
-
|
| 96 |
-
|
| 97 |
-
|
| 98 |
-
|
| 99 |
-
|
| 100 |
-
kuku:{name:"13. Kuku Kienyeji + Mayai + Kuku Choma",cap:2500,profit:"Mayai 30 per day @15 = 450 daily, mwezi 13k + kuku!",loss:"Chanjo kwanza! Weka dawa ya kuku",place:"Nyumbani backyard - anza na kuku 5",img:"https://images.unsplash.com/photo-1548550023-2bdb3c5beed7?w=800"},
|
| 101 |
-
mbuzi:{name:"14. Mbuzi + Kondoo + Ngombe Ndogo",cap:3500,profit:"Mbuzi 1 profit 1500, mwezi 4 = 6000",loss:"Daktari wa mifugo, usinunue konda",place:"Garissa Market, Isiolo, Kajiado - soko Juma",img:"https://images.unsplash.com/photo-1527153857715-3908f2bae5e8?w=800"},
|
| 102 |
-
movie:{name:"15. Movie + Photocopy + Cyber + Printing",cap:4000,profit:"100 prints @10 = 1000 + movie 500 = 1500 daily",loss:"Ink ghali, karatasi inaisha",place:"Karibu na shule, college, university",img:"https://images.unsplash.com/photo-1513475382585-d06e58bcb0e0?w=800"},
|
| 103 |
-
mahindi:{name:"16. Mahindi Chemsha + Njugu + Popcorn + Smokie Pasua",cap:400,profit:"100 mahindi profit 600 daily!",loss:"Mvua hainunuliwi",place:"Stage, shule gate 5pm-9pm",img:"https://images.unsplash.com/photo-1582058091505-f87a2e55a40f?w=800"},
|
| 104 |
-
samosa:{name:"17. Samosa + Kebab + Andazi + Mandazi Tamu",cap:600,profit:"100 samosa profit 800 daily",loss:"Mafuta chafu",place:"College gate, stage",img:"https://images.unsplash.com/photo-1606491956689-2ea866880c84?w=800"},
|
| 105 |
-
cake:{name:"18. Cake + Bread + Donut Baking - Order WhatsApp",cap:1200,profit:"Cake 1 profit 500, 3 per day = 1500 daily!",loss:"Oven, ingredients",place:"Nyumbani, order kwa WhatsApp Status",img:"https://images.unsplash.com/photo-1578985545062-69928b1d9587?w=800"},
|
| 106 |
-
carwash:{name:"19. Car Wash + Boda Wash + Shoe Shine",cap:1500,profit:"10 cars @200 = 2000 daily!",loss:"Maji",place:"Stage, town, estate",img:"https://images.unsplash.com/photo-1552930294-6b595f4c2974?w=800"},
|
| 107 |
-
matunda:{name:"20. Avocado + Mango + Pawpaw + Juice Blended",cap:500,profit:"Profit 700 daily, jua kali 1000!",loss:"Haribika haraka",place:"Estate, stage, town",img:"https://images.unsplash.com/photo-1610832958506-aa56368176cf?w=800"}
|
| 108 |
-
};
|
| 109 |
-
|
| 110 |
-
let ads=JSON.parse(localStorage.getItem('pesasmart_ads')||'[]'); let lastSpeech=""; let lastBotReply="";
|
| 111 |
|
| 112 |
function fill(){
|
| 113 |
let h=""; counties.forEach(c=>h+=`<option>${c}</option>`);
|
| 114 |
-
document.getElementById('county').innerHTML=`<option value="">--
|
| 115 |
document.getElementById('sokoCounty').innerHTML=h;
|
| 116 |
-
|
| 117 |
-
document.getElementById('
|
| 118 |
-
document.getElementById('
|
| 119 |
-
|
| 120 |
-
|
| 121 |
-
|
| 122 |
-
|
| 123 |
-
|
| 124 |
-
|
| 125 |
-
function
|
| 126 |
-
|
| 127 |
-
let
|
| 128 |
-
|
| 129 |
-
if(
|
| 130 |
-
|
| 131 |
-
|
|
|
|
| 132 |
}
|
| 133 |
|
| 134 |
-
function
|
| 135 |
-
|
| 136 |
-
|
| 137 |
-
|
| 138 |
-
let
|
| 139 |
-
|
| 140 |
-
document.getElementById('
|
| 141 |
-
document.getElementById('
|
| 142 |
-
<div class="box pink"><b>π©βπ¦° Amina
|
| 143 |
-
<div class="box blue"><span class="badge">
|
| 144 |
-
<div class="box green"><b>π° PROFIT
|
| 145 |
-
<div class="box red"><b>β οΈ LOSS
|
| 146 |
-
<div class="box
|
| 147 |
-
<div class="box
|
| 148 |
`;
|
| 149 |
-
|
| 150 |
-
lastSpeech=`Hi rafiki yangu! Mimi ni Amina, msichana wa miaka ishirini na mbili, niko hapa kukusaidia na kukutia moyo! Hongera sana! Uko county ya ${c}, wewe ni shujaa! Unapata shilingi elfu ${Math.round(e/1000)}. Biashara bora kwako ni ${b.name}. Capital inahitajika ni shilingi ${b.cap} tu, kidogo sana! Mahali pa kuuza ni ${b.place}. Na kwa county yako, enda soko la ${info.soko}. Sababu ya profit ni ${b.profit}. Sababu ya hasara ya kuepuka ni ${b.loss}. Ukipata shida, msaada wako ni ${info.help}. Na unaweza tangaza biashara yako hapa, youth elfu moja wataona duka lako! Kesho amka saa tano asubuhi, anza biashara! Mimi Amina nakuamini sana! Wewe ni smart, wewe ni strong, unaweza kutoka uchumi mbaya! Twende kazi rafiki yangu! I love your energy!`;
|
| 151 |
-
speakResult();
|
| 152 |
}
|
| 153 |
|
| 154 |
-
function
|
|
|
|
| 155 |
function stopSpeak(){speechSynthesis.cancel();}
|
| 156 |
-
function speakLast(){if(!lastBotReply){alert("Uliza swali kwanza!");return;} speechSynthesis.cancel(); let u=new SpeechSynthesisUtterance(lastBotReply); let v=getFemaleVoice(); if(v)u.voice=v; u.lang='sw-KE'; u.rate=0.92; u.pitch=1.25; speechSynthesis.speak(u);}
|
| 157 |
-
|
| 158 |
function showSoko(){
|
| 159 |
-
let c=document.getElementById('sokoCounty').value; let
|
| 160 |
-
document.getElementById('sokoResult').innerHTML=`<d
|
|
|
|
| 4 |
<head>
|
| 5 |
<meta charset="utf-8">
|
| 6 |
<meta name="viewport" content="width=device-width, initial-scale=1">
|
| 7 |
+
<title>PesaSmart 47 - Final Full Beautiful</title>
|
| 8 |
<style>
|
| 9 |
+
*{box-sizing:border-box} body{margin:0;font-family:system-ui;background:linear-gradient(135deg,#0f172a,#312e81,#4c1d95);color:white}
|
| 10 |
+
.header{position:sticky;top:0;z-index:99;background:rgba(15,23,42,0.95);backdrop-filter:blur(16px);padding:12px;text-align:center;border-bottom:3px solid #ec4899}
|
| 11 |
+
.card{background:white;color:#111;padding:18px;border-radius:26px;max-width:650px;margin:14px auto;box-shadow:0 20px 60px rgba(0,0,0,0.5)}
|
| 12 |
+
.tabs{display:flex;gap:4px;background:#f1f5f9;padding:5px;border-radius:14px;overflow-x:auto;margin-bottom:12px}
|
| 13 |
+
.tab{flex:1;padding:10px;border-radius:10px;font-weight:800;font-size:10px;cursor:pointer;text-align:center;white-space:nowrap}
|
| 14 |
+
.tab.active{background:linear-gradient(135deg,#ec4899,#8b5cf6);color:white}
|
| 15 |
+
input,select,textarea{width:100%;padding:14px;border:2px solid #e2e8f0;border-radius:14px;margin-top:8px;background:#f8fafc}
|
| 16 |
button{width:100%;padding:14px;border:none;border-radius:14px;font-weight:800;margin-top:8px;cursor:pointer}
|
| 17 |
+
.btn-pink{background:linear-gradient(135deg,#ec4899,#8b5cf6);color:white;box-shadow:0 8px 18px rgba(236,72,153,0.3)}.btn-green{background:#16a34a;color:white}.btn-dark{background:#0f172a;color:white}.btn-blue{background:#2563eb;color:white}
|
| 18 |
+
.box{padding:14px;border-radius:16px;margin-top:10px;font-size:13px;line-height:1.7}
|
| 19 |
+
.green{background:#f0fdf4;border-left:6px solid #16a34a}.red{background:#fef2f2;border-left:6px solid #ef4444}.blue{background:#eff6ff;border-left:6px solid #3b82f6}.yellow{background:#fefce8;border-left:6px solid #eab308}.purple{background:#f5f3ff;border-left:6px solid #8b5cf6}.pink{background:#fdf2f8;border-left:6px solid #ec4899}.dark{background:#0f172a;color:white}
|
| 20 |
+
img.beautiful{width:100%;height:200px;object-fit:cover;border-radius:16px;margin-top:10px;box-shadow:0 8px 20px rgba(0,0,0,0.15)}
|
| 21 |
+
.grid20{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:10px}
|
| 22 |
+
.jobCard{background:#f8fafc;border:2px solid #e2e8f0;border-radius:14px;padding:10px;text-align:center;cursor:pointer}
|
| 23 |
+
.jobCard.active{border-color:#ec4899;background:#fdf2f8}
|
| 24 |
+
.badge{background:linear-gradient(135deg,#ec4899,#8b5cf6);color:white;padding:4px 10px;border-radius:20px;font-size:10px;font-weight:800}
|
| 25 |
.pochi{background:linear-gradient(135deg,#16a34a,#15803d);color:white;border-radius:18px;padding:16px;text-align:center;margin-top:12px}
|
|
|
|
|
|
|
|
|
|
|
|
|
| 26 |
</style>
|
| 27 |
</head>
|
| 28 |
<body>
|
| 29 |
<div class="header">
|
| 30 |
+
<h2 style="margin:0;color:#f9a8d4;">οΏ½οΏ½οΏ½οΏ½πͺ PesaSmart 47 - FINAL FULL</h2>
|
| 31 |
+
<p style="margin:2px 0 0 0;color:#c4b5fd;font-size:10px;">Beautiful β’ 47 Counties β’ 20 Jobs β’ Speaking Voice β’ Pictures β’ Advertise β’ 30K Users β’ 0110400683</p>
|
| 32 |
</div>
|
| 33 |
|
| 34 |
<div class="card">
|
| 35 |
<div class="tabs">
|
| 36 |
+
<div class="tab active" onclick="openTab('start',this)">1οΈβ£ START</div>
|
| 37 |
+
<div class="tab" onclick="openTab('jobs',this)">2οΈβ£ 20 JOBS</div>
|
| 38 |
+
<div class="tab" onclick="openTab('soko',this)">π 47 COUNTIES</div>
|
| 39 |
+
<div class="tab" onclick="openTab('tangaza',this)">π’ ADVERTISE</div>
|
| 40 |
<div class="tab" onclick="openTab('maisha',this)">π§ MAISHA</div>
|
| 41 |
</div>
|
| 42 |
|
| 43 |
+
<!-- STEP 1 - ASK INCOME, RENT, GOAL -->
|
| 44 |
+
<div id="start">
|
| 45 |
+
<div style="text-align:center"><span class="badge">π©βπ¦° Amina 20yrs - Sauti Nyororo - Will Speak Everything</span></div>
|
| 46 |
+
<div class="box pink"><b>Karibu! Mimi ni Amina! π</b><br>Nitakuuliza maswali 3 tu, halafu nitakuonyesha biashara 20 na counties 47 na nitakuongelesha kwa sauti!</div>
|
| 47 |
+
<label><b>1. How much do you make per month? / Unapata ngapi mwezi?</b></label>
|
| 48 |
+
<input id="earn" type="number" placeholder="e.g. 5000">
|
| 49 |
+
<label><b>2. How much do you pay for rent? / Unalipa rent ngapi?</b></label>
|
| 50 |
+
<input id="rent" type="number" placeholder="e.g. 2000">
|
| 51 |
+
<label><b>3. What do you want to achieve? / Unataka kufikia nini?</b></label>
|
| 52 |
+
<textarea id="goal" placeholder="e.g. Nataka kuwa millionaire, kusaidia mama, kununua gari, kutoka uchumi mbaya..."></textarea>
|
| 53 |
+
<label><b>4. Choose your County (47 Counties)</b></label>
|
| 54 |
<select id="county"></select>
|
| 55 |
+
<button class="btn-pink" onclick="goToJobs()">β‘οΈ Next - Show Me 20 Jobs</button>
|
|
|
|
|
|
|
|
|
|
|
|
|
| 56 |
</div>
|
| 57 |
|
| 58 |
+
<!-- 20 JOBS WITH PICTURES, PROFIT/LOSS, WHERE TO PLACE -->
|
| 59 |
+
<div id="jobs" style="display:none">
|
| 60 |
+
<h3 style="margin:0;">πΌ 20 Categories Of Business To Choose</h3>
|
| 61 |
+
<p style="font-size:12px;color:#64748b;">Chagua 1 - Utaona profit, loss, wapi kuweka, na Amina ataongea!</p>
|
| 62 |
+
<div class="grid20" id="grid20"></div>
|
| 63 |
+
<div id="jobDetail" style="display:none"></div>
|
| 64 |
+
<div style="display:flex;gap:6px"><button class="btn-pink" style="flex:1" onclick="speakJob()">π©βπ¦° Amina Aongee - Explain This Job</button><button class="btn-dark" style="flex:1" onclick="stopSpeak()">βΉοΈ Stop</button></div>
|
| 65 |
+
</div>
|
| 66 |
|
| 67 |
+
<!-- 47 COUNTIES -->
|
| 68 |
+
<div id="soko" style="display:none">
|
| 69 |
+
<h3 style="margin:0;">π 47 Counties - Where To Place Your Job For Profit</h3>
|
| 70 |
+
<select id="sokoCounty" onchange="showSoko()"></select>
|
| 71 |
+
<div id="sokoResult"></div>
|
| 72 |
+
<div id="adsList"></div>
|
| 73 |
+
</div>
|
| 74 |
|
| 75 |
+
<!-- ADVERTISE WITH PICTURE -->
|
| 76 |
+
<div id="tangaza" style="display:none">
|
| 77 |
+
<h3 style="margin:0;">π’ Sell Your Goods / Advertise Your Shop - With Picture</h3>
|
| 78 |
+
<div class="box yellow">30,000 people can see your goods! Youth wataona!<br>Weka picha ya goods yako hapa!<br>Wiki 200 | Mwezi 500 - Lipa Pochi <b>0110400683</b></div>
|
| 79 |
+
<input id="bizName" placeholder="Jina la Biashara / Goods - e.g. Mama Njeri Maziwa">
|
| 80 |
+
<input id="bizLoc" placeholder="County + Soko - e.g. Eldoret Main Market - Uasin Gishu">
|
| 81 |
+
<input id="bizPhone" placeholder="Phone - e.g. 0712...">
|
| 82 |
+
<textarea id="bizDesc" placeholder="Unauza nini? Bei?"></textarea>
|
| 83 |
+
<label><b>Weka Picha Ya Goods Yako (Picture)</b></label>
|
| 84 |
+
<input id="bizPic" type="file" accept="image/*">
|
| 85 |
+
<img id="previewPic" class="beautiful" style="display:none">
|
| 86 |
+
<button class="btn-pink" onclick="tangazaBiz()">π Tangaza Na Picha - Advertise Now</button>
|
| 87 |
+
<div id="tangazaResult"></div>
|
| 88 |
</div>
|
| 89 |
|
| 90 |
+
<!-- MAISHA - ADVICE -->
|
| 91 |
<div id="maisha" style="display:none"></div>
|
| 92 |
</div>
|
| 93 |
|
| 94 |
<script>
|
| 95 |
const counties=["Mombasa","Kwale","Kilifi","Tana River","Lamu","Taita Taveta","Garissa","Wajir","Mandera","Marsabit","Isiolo","Meru","Tharaka Nithi","Embu","Kitui","Machakos","Makueni","Nyandarua","Nyeri","Kirinyaga","Muranga","Kiambu","Turkana","West Pokot","Samburu","Trans Nzoia","Uasin Gishu - Eldoret","Elgeyo Marakwet","Nandi","Baringo","Laikipia","Nakuru","Narok","Kajiado","Kericho","Bomet","Kakamega","Vihiga","Bungoma","Busia","Siaya","Kisumu","Homa Bay","Migori","Kisii","Nyamira","Nairobi"];
|
| 96 |
+
const bizList=[
|
| 97 |
+
{id:1,name:"Mandazi + Chai + Mayai",cap:500,profit:"40 mandazi @10=400 - cost 150 = profit 250 + mayai 150 + chai 200 = 600 daily, mwezi 18k. Watu wote anakula asubuhi!",loss:"Ukibaki nayo inaoza, pika 20 asubuhi 20 jioni tu. Mafuta chafu inafanya black.",place:"Stage ya matatu 6-8am na 5-9pm, shule gate",img:"https://images.unsplash.com/photo-1509440159596-0249088772ff?w=800",soko:"Eldoret Main Market, Stage"},
|
| 98 |
+
{id:2,name:"Chapati + Beans",cap:700,profit:"50 chapati @20=1000 - cost 400=600 + beans 300 + mahindi 200=1100 daily, mwezi 33k",loss:"Funika vizuri isikauke, chapati ngumu wateja hawataki",place:"Construction lunch 12-2pm, stage",soko:"Construction site",img:"https://images.unsplash.com/photo-1565557623262-b51c2513a641?w=800"},
|
| 99 |
+
{id:3,name:"Viazi Karai + Madafu",cap:800,profit:"Ferry watu 50k daily! 50 viazi @30=1500 - cost 600=900 + madafu 400=1300 daily, mwezi 39k!",loss:"Mafuta chafu inafanya viazi black, badilisha kila siku 3",place:"Kongowea Market Mombasa, Likoni Ferry 4pm-10pm",soko:"Kongowea Market Mombasa",img:"https://images.unsplash.com/photo-1573080496219-bb080dd4f877?w=800"},
|
| 100 |
+
{id:4,name:"Maziwa + Mayai",cap:1200,profit:"30L nunua 50 uza 70 profit 20=600 + mayai tray 2 profit 400=1000 daily, mwezi 30k. Rift Valley maziwa mingi!",loss:"Haribika ndani ya saa 6, uza 5am-10am tu, nunua thermos",place:"Eldoret Main Market 5am, Huruma, Langas, Kapsabet Road",soko:"Eldoret Main Market 5am",img:"https://images.unsplash.com/photo-1550583724-ce7962420607?w=800"},
|
| 101 |
+
{id:5,name:"Chips + Smokie",cap:1200,profit:"30 plates @100=3000 - viazi 1200 + mafuta 600=profit 1200 daily, mwezi 36k! Vijana wanapenda jioni!",loss:"Mafuta chafu inaharibu chips",place:"Luthuli Avenue, Tom Mboya, stage jioni 5pm-10pm",soko:"Town jioni",img:"https://images.unsplash.com/photo-1573080496219-bb080dd4f877?w=800"},
|
| 102 |
+
{id:6,name:"Omena + Samaki",cap:1000,profit:"Omena sack 700 uza 1300 profit 600 + samaki choma 5 profit 500=1100 daily",loss:"Samaki haribika haraka, weka kwenye barafu",place:"Kibuye Market Kisumu - biggest East Africa Sunday",soko:"Kibuye Market Kisumu",img:"https://images.unsplash.com/photo-1519708227418-c8fd9a32b7a2?w=800"},
|
| 103 |
+
{id:7,name:"Ndizi + Avocado",cap:600,profit:"Kisii ndizi cheap! Bunch 400 uza 900 profit 500 + avocado 300 + mboga 200=1000 daily",loss:"Ndizi inaiva haraka, nunua mbichi na mbivu mix",place:"Daraja Moja Kisii, Kisii Town Market",soko:"Daraja Moja Kisii",img:"https://images.unsplash.com/photo-1603833665858-e61d17a86224?w=800"},
|
| 104 |
+
{id:8,name:"M-Pesa + Airtime",cap:3000,profit:"Kila mtu M-Pesa daily! Commission 800 + airtime 200 + bundles 200=1200 daily, mwezi 36k!",loss:"Fake M-Pesa SMS! Angalia balance kwa *334# sio SMS ya mteja",place:"Andika M-PESA HAPA kubwa, viti 2, karibu na stage",soko:"Stage yote Kenya",img:"https://images.unsplash.com/photo-1556742049-0cfed4f6a45d?w=800"},
|
| 105 |
+
{id:9,name:"Kinyozi + Salon",cap:1500,profit:"10 kichwa @200=2000 - rent ya kiti 500=1500 profit daily, mwezi 45k!",loss:"Clipper mbovu, safisha kiti, be friendly",place:"Estate, karibu na college, stage - vijana wengi",soko:"Estate",img:"https://images.unsplash.com/photo-1503951914875-452162b0f3f1?w=800"},
|
| 106 |
+
{id:10,name:"Bodaboda Delivery",cap:0,profit:"Delivery demand kubwa! 10 trips @200=2000 - petrol 500=1500 profit daily, mwezi 45k! Capital ni boda tu",loss:"Ajali! Vaa helmet, usiendeshe mlevi, lipa insurance",place:"Town, app ya delivery - Jumia, Uber, Bolt",soko:"Town",img:"https://images.unsplash.com/photo-1558981852-426c6c22a060?w=800"},
|
| 107 |
+
{id:11,name:"Mitumba + Nguo",cap:2000,profit:"Gikomba bale 2000 uza 4000 profit 2000 per week=300 daily average, mwezi 9k",loss:"Mitumba mbovu, fungua angalia kwanza",place:"Gikomba Nairobi, Toi Market, Kongowea",soko:"Gikomba Nairobi",img:"https://images.unsplash.com/photo-1489987707025-afc232f7ea0f?w=800"},
|
| 108 |
+
{id:12,name:"Juice + Maji Baridi",cap:900,profit:"Jua kali watu wanataka maji! 50 bottles @20 profit=1000 + juice 600=1600 daily jua kali!",loss:"Siku ya baridi hainunuliwi, siku za baridi uza mandazi",place:"Machakos, Mombasa, Turkana - stage 10am-5pm",soko:"Stage jua kali",img:"https://images.unsplash.com/photo-1621263764928-df1444c5e859?w=800"},
|
| 109 |
+
{id:13,name:"Kuku Kienyeji",cap:2500,profit:"Mayai 30 per day @15=450 daily, mwezi 13k + kuku ukiuza! Mayai kila siku!",loss:"Kuku mgonjwa, chanjo kwanza! Weka dawa",place:"Nyumbani kwako backyard tu - anza na kuku 5",soko:"Nyumbani",img:"https://images.unsplash.com/photo-1548550023-2bdb3c5beed7?w=800"},
|
| 110 |
+
{id:14,name:"Mbuzi + Kondoo",cap:3500,profit:"Garissa mbuzi cheap! 1 nunua 3000 uza 4500 profit 1500, mwezi 4=6000",loss:"Mbuzi mgonjwa, angalia daktari wa mifugo",place:"Garissa Market, Isiolo, Kajiado - soko ya mifugo Juma",soko:"Garissa Market",img:"https://images.unsplash.com/photo-1527153857715-3908f2bae5e8?w=800"},
|
| 111 |
+
{id:15,name:"Movie + Photocopy",cap:4000,profit:"Wanafunzi photocopy daily! 100 prints @10=1000 + movie 500=1500 daily, mwezi 45k",loss:"Karatasi inaisha, ink ghali",place:"Karibu na shule, college, university",soko:"School gate",img:"https://images.unsplash.com/photo-1513475382585-d06e58bcb0e0?w=800"},
|
| 112 |
+
{id:16,name:"Car Wash + Shoe Shine",cap:1500,profit:"10 cars @200=2000 daily! Gari chafu daily!",loss:"Maji kukosa",place:"Stage, town, estate",soko:"Stage",img:"https://images.unsplash.com/photo-1552930294-6b595f4c2974?w=800"},
|
| 113 |
+
{id:17,name:"Cake Baking",cap:1200,profit:"Cake 1 profit 500, 3 per day=1500 daily! Order WhatsApp!",loss:"Oven, ingredients haribika",place:"Nyumbani, order kwa WhatsApp Status",soko:"WhatsApp order",img:"https://images.unsplash.com/photo-1578985545062-69928b1d9587?w=800"},
|
| 114 |
+
{id:18,name:"Matunda + Avocado Juice",cap:500,profit:"Profit 700 daily, jua kali 1000! Matunda cheap!",loss:"Haribika haraka, nunua kidogo",place:"Estate, stage, town",soko:"Estate",img:"https://images.unsplash.com/photo-1610832958506-aa56368176cf?w=800"},
|
| 115 |
+
{id:19,name:"Samosa + Kebab",cap:600,profit:"100 samosa profit 800 daily! Wanafunzi wanapenda!",loss:"Mafuta chafu",place:"College gate, stage",soko:"College",img:"https://images.unsplash.com/photo-1606491956689-2ea866880c84?w=800"},
|
| 116 |
+
{id:20,name:"Mahindi + Njugu + Popcorn",cap:400,profit:"100 mahindi profit 600 daily! Capital ndogo sana!",loss:"Mvua hainunuliwi",place:"Stage, shule gate 5pm-9pm",soko:"Stage",img:"https://images.unsplash.com/photo-1582058091505-f87a2e55a40f?w=800"}
|
| 117 |
+
];
|
| 118 |
+
let selectedBiz=null; let lastSpeech=""; let ads=JSON.parse(localStorage.getItem('pesasmart_ads_v3')||'[]'); let uploadedPic="";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 119 |
|
| 120 |
function fill(){
|
| 121 |
let h=""; counties.forEach(c=>h+=`<option>${c}</option>`);
|
| 122 |
+
document.getElementById('county').innerHTML=`<option value="">-- Choose County (47) / Chagua County Yako --</option>`+h;
|
| 123 |
document.getElementById('sokoCounty').innerHTML=h;
|
| 124 |
+
document.getElementById('county').value="Uasin Gishu - Eldoret";
|
| 125 |
+
document.getElementById('sokoCounty').value="Uasin Gishu - Eldoret";
|
| 126 |
+
let grid=document.getElementById('grid20'); let html="";
|
| 127 |
+
bizList.forEach(b=>{html+=`<div class="jobCard" onclick="selectBiz(${b.id})" id="job-${b.id}"><img src="${b.img}" style="width:100%;height:80px;object-fit:cover;border-radius:10px"><b style="font-size:11px;display:block;margin-top:4px">${b.name}</b><span style="font-size:10px;color:#16a34a;font-weight:800">KES ${b.cap}</span></div>`;});
|
| 128 |
+
grid.innerHTML=html;
|
| 129 |
+
renderMaisha(); showSoko();
|
| 130 |
+
}
|
| 131 |
+
fill();
|
| 132 |
+
|
| 133 |
+
function openTab(id,el){["start","jobs","soko","tangaza","maisha"].forEach(x=>document.getElementById(x).style.display='none');document.getElementById(id).style.display='block';document.querySelectorAll('.tab').forEach(t=>t.classList.remove('active'));el.classList.add('active');if(id==="soko")showSoko();if(id==="maisha")renderMaisha();}
|
| 134 |
+
function goToJobs(){
|
| 135 |
+
let e=document.getElementById('earn').value; let r=document.getElementById('rent').value; let g=document.getElementById('goal').value; let c=document.getElementById('county').value;
|
| 136 |
+
if(!e){alert("Please enter how much you make per month! / Weka pesa ya mwezi!");return;}
|
| 137 |
+
if(!c){alert("Choose county - 47 ziko!");return;}
|
| 138 |
+
openTab('jobs',document.querySelectorAll('.tab')[1]);
|
| 139 |
+
let msg=`Hi! I am Amina, 20 years old! You make ${e} per month, rent ${r||0}, your goal is ${g||'become millionaire'}. You are in ${c}. You are a hero! I will show you 20 businesses! Choose one!`;
|
| 140 |
+
lastSpeech=msg; speakJob();
|
| 141 |
}
|
| 142 |
|
| 143 |
+
function selectBiz(id){
|
| 144 |
+
document.querySelectorAll('.jobCard').forEach(c=>c.classList.remove('active'));
|
| 145 |
+
document.getElementById(`job-${id}`).classList.add('active');
|
| 146 |
+
selectedBiz=bizList.find(b=>b.id===id);
|
| 147 |
+
let e=Number(document.getElementById('earn').value)||5000; let r=Number(document.getElementById('rent').value)||0; let c=document.getElementById('county').value||"Uasin Gishu - Eldoret"; let goal=document.getElementById('goal').value||"become millionaire and stable";
|
| 148 |
+
let save=e*0.2;
|
| 149 |
+
document.getElementById('jobDetail').style.display='block';
|
| 150 |
+
document.getElementById('jobDetail').innerHTML=`
|
| 151 |
+
<div class="box pink"><b>π©βπ¦° Amina for you in ${c} - Goal: ${goal} π</b><br>Income KES ${e} | Rent ${r} | Save 20% = KES ${save} per month</div>
|
| 152 |
+
<div class="box blue"><span class="badge">${selectedBiz.name}</span><br>π΅ <b>Capital Needed: KES ${selectedBiz.cap}</b><br>π <b>Where to place for profit:</b> ${selectedBiz.place}<br>π <b>Where to get stock:</b> ${selectedBiz.soko}<br>π <b>Place in ${c}:</b> ${selectedBiz.soko} + Stage 6-8am & 5-9pm<br><img class="beautiful" src="${selectedBiz.img}"></div>
|
| 153 |
+
<div class="box green"><b>π° PROFIT & Why:</b><br>${selectedBiz.profit}</div>
|
| 154 |
+
<div class="box red"><b>β οΈ LOSS & Why to Avoid:</b><br>${selectedBiz.loss}</div>
|
| 155 |
+
<div class="box yellow"><b>π How To Open New Business:</b><br>1. Wake up 5am tomorrow β Go to ${selectedBiz.soko}<br>2. Ask price in 3 places<br>3. Buy half capital KES ${selectedBiz.cap/2} to test<br>4. Find place: ${selectedBiz.place} - Ask Chief permission<br>5. Pay County fee 200-500 - Ask receipt<br>6. Put beautiful display - clean leso, smile!<br>7. Write every sale - book!<br>8. Save 20% daily - Don't eat capital!</div>
|
| 156 |
+
<div class="box purple"><b>π How To Become Millionaire & Stable:</b><br>Week 1: Profit 600 x7 = 4200<br>Month 1: Save ${(save).toLocaleString()}<br>Year 1: ${(save*12).toLocaleString()} saved!<br>Rule: Don't invest in bangi/alcohol - invest in goats, chicken, land!</div>
|
| 157 |
`;
|
| 158 |
+
lastSpeech=`Hi! Mimi ni Amina, msichana wa miaka ishirini, sauti nyororo! You make ${e} shillings, rent ${r}, your goal is ${goal}. You are in county ${c}. You are a hero! Business number ${selectedBiz.id} best for you is ${selectedBiz.name}. Capital needed is only ${selectedBiz.cap} shillings. Where to place for profit? ${selectedBiz.place}. Where to get stock? ${selectedBiz.soko}. Profit reason? ${selectedBiz.profit}. Loss to avoid? ${selectedBiz.loss}. How to open new business? Wake up 5am tomorrow, go to ${selectedBiz.soko}, buy half capital, find place at ${selectedBiz.place}, pay county fee, put beautiful display, write every sale, save 20 percent! How to become millionaire? Save, invest in goats and chicken, avoid bangi! You can escape economic crisis! I believe in you!`;
|
|
|
|
|
|
|
| 159 |
}
|
| 160 |
|
| 161 |
+
function getVoice(){let voices=speechSynthesis.getVoices();let f=voices.filter(v=>v.name.includes('Female')||v.name.includes('Samantha')||v.name.includes('Google UK English Female')||v.name.includes('Zira')||v.name.includes('Karen'));return f[0]||voices.find(v=>v.lang.includes('en-KE'))||voices[0];}
|
| 162 |
+
function speakJob(){if(!lastSpeech){alert("Choose a job first! / Chagua biashara kwanza!");return;}speechSynthesis.cancel();let u=new SpeechSynthesisUtterance(lastSpeech);let v=getVoice();if(v)u.voice=v;u.lang='en-KE';u.rate=0.88;u.pitch=1.35;u.volume=1;speechSynthesis.speak(u);}
|
| 163 |
function stopSpeak(){speechSynthesis.cancel();}
|
|
|
|
|
|
|
| 164 |
function showSoko(){
|
| 165 |
+
let c=document.getElementById('sokoCounty').value; let b=bizList.find(x=>x.id===4); if(c.includes("Mombasa"))b=b
|
|
|