Spaces:
Running
Running
Update index.html
Browse files- index.html +168 -18
index.html
CHANGED
@@ -1,19 +1,169 @@
|
|
1 |
-
<!
|
2 |
-
<html>
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
19 |
</html>
|
|
|
1 |
+
<!DOCTYPE html>
|
2 |
+
<html lang="en">
|
3 |
+
<head>
|
4 |
+
<meta charset="UTF-8">
|
5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6 |
+
<title>Agentic Workforce Jeopardy</title>
|
7 |
+
<style>
|
8 |
+
body {
|
9 |
+
font-family: Arial, sans-serif;
|
10 |
+
display: flex;
|
11 |
+
flex-direction: column;
|
12 |
+
align-items: center;
|
13 |
+
background-color: #f0f0f0;
|
14 |
+
margin: 0;
|
15 |
+
}
|
16 |
+
h1 {
|
17 |
+
color: #0078D4;
|
18 |
+
}
|
19 |
+
#game-board {
|
20 |
+
display: grid;
|
21 |
+
grid-template-columns: repeat(5, 1fr);
|
22 |
+
grid-auto-rows: 100px;
|
23 |
+
gap: 2px;
|
24 |
+
margin: 20px 0;
|
25 |
+
background-color: #000;
|
26 |
+
border: 4px solid #000;
|
27 |
+
}
|
28 |
+
.category {
|
29 |
+
background-color: #005a9e;
|
30 |
+
color: #fff;
|
31 |
+
font-weight: bold;
|
32 |
+
display: flex;
|
33 |
+
justify-content: center;
|
34 |
+
align-items: center;
|
35 |
+
text-align: center;
|
36 |
+
font-size: 18px;
|
37 |
+
border: 1px solid #000;
|
38 |
+
}
|
39 |
+
.card {
|
40 |
+
background-color: #0078D4;
|
41 |
+
color: #fff;
|
42 |
+
display: flex;
|
43 |
+
justify-content: center;
|
44 |
+
align-items: center;
|
45 |
+
font-size: 16px;
|
46 |
+
font-weight: bold;
|
47 |
+
cursor: pointer;
|
48 |
+
border: 1px solid #000;
|
49 |
+
text-align: center;
|
50 |
+
transition: background-color 0.3s;
|
51 |
+
}
|
52 |
+
.card:hover {
|
53 |
+
background-color: #005a9e;
|
54 |
+
}
|
55 |
+
.card.disabled {
|
56 |
+
background-color: #cccccc;
|
57 |
+
cursor: default;
|
58 |
+
}
|
59 |
+
#question-display {
|
60 |
+
width: 80%;
|
61 |
+
text-align: center;
|
62 |
+
margin-bottom: 20px;
|
63 |
+
}
|
64 |
+
#score {
|
65 |
+
font-size: 24px;
|
66 |
+
font-weight: bold;
|
67 |
+
color: #0078D4;
|
68 |
+
}
|
69 |
+
.answer-btn {
|
70 |
+
margin: 5px;
|
71 |
+
padding: 10px;
|
72 |
+
font-size: 16px;
|
73 |
+
cursor: pointer;
|
74 |
+
}
|
75 |
+
</style>
|
76 |
+
</head>
|
77 |
+
<body>
|
78 |
+
<h1>Agentic Workforce Jeopardy</h1>
|
79 |
+
<p><strong>Learn More:</strong> <a href="https://www.linkedin.com/pulse/unleashing-power-genai-workforce-michael-lively-bqjqe/" target="_blank">Agentic Workforce</a></p>
|
80 |
+
<div id="game-board">
|
81 |
+
<!-- Categories -->
|
82 |
+
<div class="category">Agentics</div>
|
83 |
+
<div class="category">AI Types</div>
|
84 |
+
<div class="category">LangChain</div>
|
85 |
+
<div class="category">Applications</div>
|
86 |
+
<div class="category">Future Trends</div>
|
87 |
+
<!-- Cards will be dynamically added here -->
|
88 |
+
</div>
|
89 |
+
<div id="question-display"></div>
|
90 |
+
<div id="score">Score: 0</div>
|
91 |
+
|
92 |
+
<script>
|
93 |
+
const categories = ['Agentics', 'AI Types', 'LangChain', 'Applications', 'Future Trends'];
|
94 |
+
const questions = [
|
95 |
+
[
|
96 |
+
{ q: "What is an agent in Generative AI?", a: ["A human assistant", "A specialized AI system", "A cloud service"], correct: 1 },
|
97 |
+
{ q: "What company announced the Copilot initiative?", a: ["Google", "Microsoft", "Amazon"], correct: 1 },
|
98 |
+
{ q: "Who plans to release one billion agentics into the workforce?", a: ["Elon Musk", "Marc Benioff", "Satya Nadella"], correct: 1 }
|
99 |
+
],
|
100 |
+
[
|
101 |
+
{ q: "What is the first type of AI?", a: ["Artificial Narrow Intelligence", "Artificial General Intelligence", "Artificial Human Intelligence"], correct: 0 },
|
102 |
+
{ q: "When is Artificial Human Intelligence (AHI) expected?", a: ["2025", "2030", "2040"], correct: 1 },
|
103 |
+
{ q: "What will ASI accomplish?", a: ["Solve all healthcare problems", "Make Nobel discoveries every 2-3 days", "End the need for work"], correct: 1 }
|
104 |
+
],
|
105 |
+
[
|
106 |
+
{ q: "What does LangChain integrate with for database queries?", a: ["Pinecone", "SQL", "Google Drive"], correct: 1 },
|
107 |
+
{ q: "Which integration enables social media automation?", a: ["Zapier", "Twitter API", "LangChain"], correct: 1 },
|
108 |
+
{ q: "Which tool is used for vector database integration with LangChain?", a: ["Weaviate", "MySQL", "Apache Spark"], correct: 0 }
|
109 |
+
],
|
110 |
+
[
|
111 |
+
{ q: "What can attach to food items to provide interaction?", a: ["An app", "AI devices", "A barcode scanner"], correct: 1 },
|
112 |
+
{ q: "What is the purpose of 'Everything Talks'?", a: ["Translate languages", "Interact with data and people", "Analyze patient symptoms"], correct: 1 },
|
113 |
+
{ q: "Who is Patient 47 in 'Everything Talks'?", a: ["James", "Loraine", "Anna"], correct: 1 }
|
114 |
+
],
|
115 |
+
[
|
116 |
+
{ q: "What is the universal translator?", a: ["A document editor", "An AI that handles all languages", "A coding assistant"], correct: 1 },
|
117 |
+
{ q: "What challenge comes with an explosion in agentics?", a: ["Increased scientific breakthroughs", "Volatility in key areas", "Universal employment"], correct: 1 },
|
118 |
+
{ q: "What does AGI aim to revolutionize?", a: ["Knowledge work", "Factory automation", "Online shopping"], correct: 0 }
|
119 |
+
]
|
120 |
+
];
|
121 |
+
let score = 0;
|
122 |
+
|
123 |
+
const gameBoard = document.getElementById('game-board');
|
124 |
+
const questionDisplay = document.getElementById('question-display');
|
125 |
+
const scoreDisplay = document.getElementById('score');
|
126 |
+
|
127 |
+
function createBoard() {
|
128 |
+
for (let row = 0; row < 3; row++) {
|
129 |
+
for (let col = 0; col < 5; col++) {
|
130 |
+
const card = document.createElement('div');
|
131 |
+
card.className = 'card';
|
132 |
+
card.textContent = `$${(row + 1) * 100}`;
|
133 |
+
card.onclick = () => showQuestion(col, row, card);
|
134 |
+
gameBoard.appendChild(card);
|
135 |
+
}
|
136 |
+
}
|
137 |
+
}
|
138 |
+
|
139 |
+
function showQuestion(category, difficulty, cardElement) {
|
140 |
+
if (cardElement.classList.contains('disabled')) return;
|
141 |
+
|
142 |
+
const question = questions[category][difficulty];
|
143 |
+
let answerHtml = question.a.map((answer, index) =>
|
144 |
+
`<button class="answer-btn" onclick="checkAnswer(${category}, ${difficulty}, ${index})">${answer}</button>`
|
145 |
+
).join('');
|
146 |
+
|
147 |
+
questionDisplay.innerHTML = `
|
148 |
+
<h2>${categories[category]} for $${(difficulty + 1) * 100}</h2>
|
149 |
+
<p>${question.q}</p>
|
150 |
+
${answerHtml}
|
151 |
+
`;
|
152 |
+
cardElement.classList.add('disabled');
|
153 |
+
cardElement.style.backgroundColor = '#cccccc';
|
154 |
+
}
|
155 |
+
|
156 |
+
function checkAnswer(category, difficulty, selectedAnswer) {
|
157 |
+
const question = questions[category][difficulty];
|
158 |
+
const isCorrect = selectedAnswer === question.correct;
|
159 |
+
const value = (difficulty + 1) * 100;
|
160 |
+
|
161 |
+
score += isCorrect ? value : -value;
|
162 |
+
scoreDisplay.textContent = `Score: ${score}`;
|
163 |
+
questionDisplay.innerHTML += `<p>${isCorrect ? 'Correct!' : 'Wrong!'}</p>`;
|
164 |
+
}
|
165 |
+
|
166 |
+
createBoard();
|
167 |
+
</script>
|
168 |
+
</body>
|
169 |
</html>
|