-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Carouselle #2
base: master
Are you sure you want to change the base?
Carouselle #2
Conversation
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<link rel="stylesheet" href="/assets/css/styles.css?{{site.time | date: '%s%N'}}"> | ||
<title>{{ site.title }}</title> | ||
<head> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@AugustinRibreau impossible de savoir ce qui a changé dans ce fichier, on ne commit pas un fichier comme cela en entier, ça rend illisible le diff, assure toi que le projet a un prettierrc et qu'il est configuré pour avoir ce même formatting.
@KevinJaffre tu as prettier d'installé sur ta machine ? C'est quoi sa config ? :)
} | ||
}); | ||
|
||
function toggle(id) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it can be simplified
$('.js-toggle-menu').click(function() { | ||
$('.l-header').toggleClass('is-collapse'); | ||
$(".js-toggle-menu").click(function() { | ||
$(".l-header").toggleClass("is-collapse"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No need for jQuery here: https://dommagnifi.co/2016-05-16-basic-class-toggle-with-vanilla-js/
For the moment the buttons are functional but all containers are displayed