Spaces:
Running
Running
Updated
Browse files- index.html +7 -5
index.html
CHANGED
|
@@ -18,7 +18,7 @@
|
|
| 18 |
</div>
|
| 19 |
<div class="tabs">
|
| 20 |
|
| 21 |
-
<button class="tab-link" onclick="openTab(event, 'Plnb')"><span class="tab-heading">NUTRITION</span></button>
|
| 22 |
<button class="tab-link" onclick="openTab(event, 'Hcs')"><span class="tab-heading">CAKES</span></button>
|
| 23 |
<button class="tab-link" onclick="openTab(event, 'Jobs')"><span class="tab-heading">JOB-POSTINGS</span></button>
|
| 24 |
<button class="tab-link" onclick="openTab(event, 'Training')"><span class="tab-heading">TRAINING</span></button>
|
|
@@ -29,7 +29,7 @@
|
|
| 29 |
<button class="tab-link" onclick="openTab(event, 'About')"><span class="tab-heading">ABOUT</span></button>
|
| 30 |
|
| 31 |
</div>
|
| 32 |
-
|
| 33 |
<div id="Plnb" class="tab-content">
|
| 34 |
<h4>Project LeanNation </h4>
|
| 35 |
<table >
|
|
@@ -55,6 +55,7 @@
|
|
| 55 |
</tr>
|
| 56 |
</table>
|
| 57 |
</div>
|
|
|
|
| 58 |
|
| 59 |
<div id="Hcs" class="tab-content">
|
| 60 |
<h4>Harshali Custom Cake Shop</h4>
|
|
@@ -242,7 +243,7 @@
|
|
| 242 |
// this function will pick up contents from each of the tabs, pick random data and post it on the banner
|
| 243 |
function postAdv(){
|
| 244 |
console.log("Posting a random joke");
|
| 245 |
-
const businesses = ["
|
| 246 |
const randomBusinees = businesses[Math.floor(Math.random() * businesses.length)];
|
| 247 |
console.log("Random Business chosen is : " + randomBusinees);
|
| 248 |
//set the text of the ballon from this one
|
|
@@ -264,7 +265,8 @@
|
|
| 264 |
const content = "Give 2 to 3 sentences about the topic " + randomTopic;
|
| 265 |
console.log("Random joke selected is: " + content);
|
| 266 |
const jokeContainer = document.getElementById('joke-section');
|
| 267 |
-
let result = get_api_results(content, jokeContainer);
|
|
|
|
| 268 |
//jokeContainer.style.color = randomColor;
|
| 269 |
//jokeContainer.textContent = result;
|
| 270 |
moveBalloon();
|
|
@@ -273,7 +275,7 @@
|
|
| 273 |
//move this to the backend
|
| 274 |
function getRelavantData(business){
|
| 275 |
|
| 276 |
-
const plnb = ["Lunches", "Dinner", "Salads", "Cravings"];
|
| 277 |
const hcs = ["Muffins", "Apple Cake", "Banana Cake", "Bread"];
|
| 278 |
const sarmaU = ["Cassandra Get Started", "Install Cassandra", "Cluser Cassandra","DataStax and Cassandra", "Datastax"];
|
| 279 |
const prjYard = ["Stunning Portfolios", "Standout in front of recruiters", "AI ML skills"];
|
|
|
|
| 18 |
</div>
|
| 19 |
<div class="tabs">
|
| 20 |
|
| 21 |
+
<button disabled class="tab-link" onclick="openTab(event, 'Plnb')"><span class="tab-heading">NUTRITION</span></button>
|
| 22 |
<button class="tab-link" onclick="openTab(event, 'Hcs')"><span class="tab-heading">CAKES</span></button>
|
| 23 |
<button class="tab-link" onclick="openTab(event, 'Jobs')"><span class="tab-heading">JOB-POSTINGS</span></button>
|
| 24 |
<button class="tab-link" onclick="openTab(event, 'Training')"><span class="tab-heading">TRAINING</span></button>
|
|
|
|
| 29 |
<button class="tab-link" onclick="openTab(event, 'About')"><span class="tab-heading">ABOUT</span></button>
|
| 30 |
|
| 31 |
</div>
|
| 32 |
+
<!--
|
| 33 |
<div id="Plnb" class="tab-content">
|
| 34 |
<h4>Project LeanNation </h4>
|
| 35 |
<table >
|
|
|
|
| 55 |
</tr>
|
| 56 |
</table>
|
| 57 |
</div>
|
| 58 |
+
-->
|
| 59 |
|
| 60 |
<div id="Hcs" class="tab-content">
|
| 61 |
<h4>Harshali Custom Cake Shop</h4>
|
|
|
|
| 243 |
// this function will pick up contents from each of the tabs, pick random data and post it on the banner
|
| 244 |
function postAdv(){
|
| 245 |
console.log("Posting a random joke");
|
| 246 |
+
const businesses = ["HCS", "Sharma-Udemy", "ProjectsYard"];
|
| 247 |
const randomBusinees = businesses[Math.floor(Math.random() * businesses.length)];
|
| 248 |
console.log("Random Business chosen is : " + randomBusinees);
|
| 249 |
//set the text of the ballon from this one
|
|
|
|
| 265 |
const content = "Give 2 to 3 sentences about the topic " + randomTopic;
|
| 266 |
console.log("Random joke selected is: " + content);
|
| 267 |
const jokeContainer = document.getElementById('joke-section');
|
| 268 |
+
//let result = get_api_results(content, jokeContainer);
|
| 269 |
+
let result = randomTopic;//not calling the api for now to avoid rate limit issue
|
| 270 |
//jokeContainer.style.color = randomColor;
|
| 271 |
//jokeContainer.textContent = result;
|
| 272 |
moveBalloon();
|
|
|
|
| 275 |
//move this to the backend
|
| 276 |
function getRelavantData(business){
|
| 277 |
|
| 278 |
+
//const plnb = ["Lunches", "Dinner", "Salads", "Cravings"];
|
| 279 |
const hcs = ["Muffins", "Apple Cake", "Banana Cake", "Bread"];
|
| 280 |
const sarmaU = ["Cassandra Get Started", "Install Cassandra", "Cluser Cassandra","DataStax and Cassandra", "Datastax"];
|
| 281 |
const prjYard = ["Stunning Portfolios", "Standout in front of recruiters", "AI ML skills"];
|