Skip to content

Instantly share code, notes, and snippets.

.swiper-learn-wrapper{
overflow: hidden;
padding: rem-calc(25px) rem-calc(15px);
position: relative;
}
.swiper-learn{
opacity: 0;
// Allow SVG
add_filter( 'wp_check_filetype_and_ext', function($data, $file, $filename, $mimes) {
global $wp_version;
if ( $wp_version !== '4.7.1' ) {
return $data;
}
$filetype = wp_check_filetype( $filename, $mimes );
window.addEventListener("DOMContentLoaded", function () {
navHighlighter();
});
window.addEventListener("scroll", function () {
navHighlighter();
});
const navHighlighter = () => {
// Get all sections that have an ID defined
[
{
"key": "group_63a093e6cf3f4",
"title": "Equipe",
"fields": [
{
"key": "field_63bc0fdf01706",
"label": "Membre",
"name": "member",
[
{
"key": "group_608ad931e6204",
"title": "Liste logos",
"fields": [
{
"key": "field_608ad9633d5fa",
"label": "Logos",
"name": "logo_repeater",
.heroHome {
display: flex;
align-items: center;
justify-content: center;
background: #fff;
position: relative;
flex-direction: column;
padding-top: rfs-value(60px);
@include media-breakpoint-up(md) {
[
{
"key": "group_63b2d05e0d423",
"title": "Boutons",
"fields": [
{
"key": "field_63b4309ced8ef",
"label": "Ouvrir un panneau ou un lien ?",
"name": "button__type",
/**
* Simulate a click event.
* @public
* @param {Element} elem the element to simulate a click on
*/
var simulateClick = function (elem) {
// Create our event (with options)
var evt = new MouseEvent('click', {
bubbles: true,
.floatedButton {
appearance: none;
background: transparent;
border: none;
display: flex;
align-items: center;
color: #fff;
justify-content: start;
max-width: 0;
transition: all ease 2000ms;
@annelyse
annelyse / react
Last active September 20, 2022 15:50
// stateless functional component.
// For now, think of a stateless component as one that can receive data and render it, but does not manage or track changes to that data. (We'll cover the second way to create a React component in the next challenge.)
// name of component :requires your function name to begin with a capital letter.
const DemoComponent = function() {
return (
<div className='customClass' />
);
};