Skip to content

Instantly share code, notes, and snippets.

View cba85's full-sized avatar
🌊

ClΓ©ment Barbaza cba85

🌊
View GitHub Profile
@cba85
cba85 / app.js
Last active February 22, 2025 10:50
IJVS030 - Recherche de communes franΓ§aises jQuery
$(document).ready(function () {
$("form").on("submit", function (e) {
e.preventDefault();
$(".error").hide();
$(".no-results").hide();
$("#results").hide();
//const name = $("#name").val();
let name = $("input[name='name']").val();
@cba85
cba85 / app.js
Created September 8, 2024 13:20
2024-2025 - IPI Toulouse - IJVS010
function max(a, b) {
if (a > b) {
return a;
}
return b;
}
console.log(max(1, 5));
console.log(max(2, 2));
@cba85
cba85 / app.js
Created September 11, 2024 08:32
IPI Toulouse - 2024-2025 - IJVS010
// getElement(s)By*
//const title = document.getElementById("title");
const title = document.getElementsByTagName("h1");
console.log(title[0]);
const subsubtitles = document.getElementsByTagName("h3");
console.log(subsubtitles);
const subsubtitle2 = document.getElementById("subsubtitle2")
@cba85
cba85 / dog.html
Last active September 13, 2024 10:27
IPI Toulouse - 2024-2025 - IJVS010
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<link rel="stylesheet" href="https://unpkg.com/mvp.css">
<script src="dog.js" defer></script>
<style>
.error {
@cba85
cba85 / fetch-async.js
Last active October 2, 2024 12:45
IPI Toulouse 2024-2025 - IJVS020
const loadButton = document.querySelector("#load");
const loadingElement = document.querySelector("#loading");
const errorElement = document.querySelector(".error");
const usersListElement = document.querySelector("#users");
loadButton.addEventListener("click", async function (event) {
event.preventDefault();
loadingElement.style.display = "block";
@cba85
cba85 / cat.html
Created January 22, 2025 15:25
2024-2025 IPI Toulouse - jQuery
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Document</title>
<script
src="https://cdn.jsdelivr.net/npm/[email protected]/dist/jquery.min.js"
defer
></script>