background preloader

Lilyda

Facebook Twitter

Les polyfills et les wrappers - Dynamisez vos sites web avec JavaScript ! Voici un petit chapitre dans lequel nous allons aborder deux concepts de programmation relativement utilisés en JavaScript : les polyfills et les wrappers. Nous allons étudier leurs particularités, pourquoi nous en avons besoin, et surtout comment les mettre en place. Ce chapitre est assez théorique mais il vous guidera sur la manière dont vous pouvez structurer vos codes dans certains cas. Connaître les deux structures que nous allons étudier ci-après vous permettra notamment de comprendre facilement certains codes rédigés de cette manière.

Introduction aux polyfills La problématique Vous n'êtes pas sans savoir que certaines technologies récentes sont plus ou moins bien supportées par certains navigateurs, voire même pas du tout. Pour réaliser nos projets, il nous faut alors ruser avec des conditions permettant de tester si le navigateur actuel supporte telle ou telle technologie ; dans le cas contraire il nous faut alors déployer des solutions dont certaines sont peu pratiques. Citation. React Class features vs. Hooks equivalents • Soluto Engineering Blog. I gave a talk during a recent meetup at Soluto HQ — Intro to React Hooks. While preparing for the presentation, I fell completely in love with Hooks. Although I was skeptical at first glance, I quickly realized how easy it is to use them and how they make perfect sense. You can really tell how much thought was put into the API and how it solves real life problems.

You can find a video of my talk attached to this post (Hebrew only… Sorry!). On my talk I explained why we need Hooks, how they work, went over the core Hooks (useState, useEffect, useRef and useContext) and showed how to convert some of the class features into Hooks. I also covered some other new features – memo, lazy and Suspense. If you don’t speak Hebrew or just prefer reading over watching, I made a TL:DW (kind of a cheatsheet) on class features vs. State ComponentDidMount componentDidMount() { console.log('I just mounted! ') ComponentWillUnmount ComponentWillReceiveProps \ ComponentDidUpdate DOM refs this.myVar By Nir Hadassi. Building a React Autocomplete Component from scratch. Découverte et collaboration de composants · Bit.

CSS

Images. Medium. Freelance Services Marketplace. React-native. Progressive Web App tutorial – build a PWA from scratch. Nanodegree Programs and Free Online Classes. OpenStreetMap. Icons. Color. TRASH ? JAVASCRIPT. Gérez votre code avec Git et GitHub. Vous écrivez un peu de code et souhaitez collaborer avec d'autres développeurs ? Vous voulez toujours savoir pourquoi une modification a été faite et ne plus risquer de perdre des jours de travail ? Vous avez clairement besoin de versionner votre code ! Un logiciel de gestion de versions est un outil incontournable pour tout développeur. Il en existe de nombreux, et dans ce cours vous découvrirez Git, le logiciel créé par Linus Torvald, auteur du Kernel Linux.

Vous découvrirez ce qu'est la gestion de version et les avantages que cela apporte. Puis, vous plongerez dans l'univers de Git : commit, branches, merge... tous ces termes n'auront plus de secrets pour vous ! Venez découvrir Git et GitHub dans ce cours ! Vous écrivez un peu de code et souhaitez collaborer avec d'autres développeurs ? Un logiciel de gestion de versions est un outil incontournable pour tout développeur. Venez découvrir Git et GitHub dans ce cours ! Venez découvrir Git et GitHub dans ce cours ! World Wide Web Consortium (W3C)

Gmaps.js API. GoDaddy : Noms de Domaine. Validator - Html Checker. CSS Minifier. Tooltipster - The jQuery Tooltip Plugin. Styling your tooltips with a custom look ⇑ Tooltipster makes it very easy to go from one of the packaged themes and customize a few properties of your choice. To do so, we recommend that you create a so-called "secondary theme" which will override some properties of a packaged theme. Create a new css file and include it in your page. Inside the file, declare your customized rules like this: For your secondary theme to be applied, provide an array of themes instead of just one.

You may even provide more than two themes if you create a secondary theme to your secondary theme! Changing the size of the arrow might be the only challenging customization but it's doable! Updating a tooltip's content ⇑ It's easy as pie to update a tooltip's content - whether it's open or closed. $('#myelement').tooltipster('content', 'My new content'); // or when you have the instance of the tooltip: instance.content('My new content'); Tooltipster plays a subtle animation when the content changes. 1) Open triggers.

Amination gallery img : Responsive jQuery. Magnific Popup is a responsive lightbox & dialog script with focus on performance and providing best experience for user with any device(for jQuery or Zepto.js). Examples Single image lightbox Three simple popups with different scaling settings. 1 — fits horizontally and vertically, 2 — only horizontally, 3 — no gaps, zoom animation, close icon in top-right corner. Lightbox gallery You may put any HTML content in each gallery item and mix content types. Zoom-gallery If you wish to open the popup only after image is fully loaded, you may preload image via JS. Popup with video or map In this example lightboxes are automatically disabled on small screen size and default behavior of link is triggered. Dialog with CSS animation Animations are added with simple CSS transitions, you can make them look however you wish.More animation effects on CodePen.

Popup with form Entered data is not lost if you open and close the popup or if you go to another page and then press back browser button. Ajax popup Fast. Fiddle - online text editor. JsDelivr - OpenSource CDN - npm, GitHub. Responsive Grid System. Diff Checker - compare 2 files. Google Fonts. Media Queries. Miro Video Converter. CSS Font Stack. Can I use...

Font-Squirrels.