Spaces:
Running
Running
Update index.html
Browse files- index.html +46 -0
index.html
CHANGED
@@ -141,5 +141,51 @@
|
|
141 |
<a href="https://discord.gg/3YRPVqXabQ" target="_blank"><img src="https://qtyhiurxoicqmxzpktkd.supabase.co/storage/v1/object/sign/email-content/discord.png?token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1cmwiOiJlbWFpbC1jb250ZW50L2Rpc2NvcmQucG5nIiwiaWF0IjoxNzI0ODM5ODc4LCJleHAiOjE3ODc5MTE4Nzh9.w1Ggb_Nh1UnjKeVujp_7ljAW0ZSP3ETNkYJLKuBZ_Zo&t=2024-08-28T10%3A11%3A18.993Z" alt="Discord"></a>
|
142 |
</div>
|
143 |
</footer>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
144 |
</body>
|
145 |
</html>
|
|
|
141 |
<a href="https://discord.gg/3YRPVqXabQ" target="_blank"><img src="https://qtyhiurxoicqmxzpktkd.supabase.co/storage/v1/object/sign/email-content/discord.png?token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1cmwiOiJlbWFpbC1jb250ZW50L2Rpc2NvcmQucG5nIiwiaWF0IjoxNzI0ODM5ODc4LCJleHAiOjE3ODc5MTE4Nzh9.w1Ggb_Nh1UnjKeVujp_7ljAW0ZSP3ETNkYJLKuBZ_Zo&t=2024-08-28T10%3A11%3A18.993Z" alt="Discord"></a>
|
142 |
</div>
|
143 |
</footer>
|
144 |
+
|
145 |
+
<script>
|
146 |
+
const graphFrame = document.getElementById('graph-frame');
|
147 |
+
const prev = document.getElementById('prev');
|
148 |
+
const next = document.getElementById('next');
|
149 |
+
const page1 = document.getElementById('page1');
|
150 |
+
const page2 = document.getElementById('page2');
|
151 |
+
|
152 |
+
let currentPage = 1;
|
153 |
+
|
154 |
+
function updateGraph() {
|
155 |
+
if (currentPage === 1) {
|
156 |
+
graphFrame.src = 'co_user.html';
|
157 |
+
page1.classList.add('active');
|
158 |
+
page2.classList.remove('active');
|
159 |
+
} else {
|
160 |
+
graphFrame.src = 'co_organization.html';
|
161 |
+
page2.classList.add('active');
|
162 |
+
page1.classList.remove('active');
|
163 |
+
}
|
164 |
+
}
|
165 |
+
|
166 |
+
prev.addEventListener('click', () => {
|
167 |
+
if (currentPage > 1) {
|
168 |
+
currentPage--;
|
169 |
+
updateGraph();
|
170 |
+
}
|
171 |
+
});
|
172 |
+
|
173 |
+
next.addEventListener('click', () => {
|
174 |
+
if (currentPage < 2) {
|
175 |
+
currentPage++;
|
176 |
+
updateGraph();
|
177 |
+
}
|
178 |
+
});
|
179 |
+
|
180 |
+
page1.addEventListener('click', () => {
|
181 |
+
currentPage = 1;
|
182 |
+
updateGraph();
|
183 |
+
});
|
184 |
+
|
185 |
+
page2.addEventListener('click', () => {
|
186 |
+
currentPage = 2;
|
187 |
+
updateGraph();
|
188 |
+
});
|
189 |
+
</script>
|
190 |
</body>
|
191 |
</html>
|