<button class="mini-cart__trigger">
<img src="{{ 'icon-cart.svg' | asset_url }}" alt="Cart icon">
</button>
<div class="header__mobile-menu header__mobile-menu--hidden">
<ul>
{% for link in section.settings.main_menu.links %}
<li><a href="{{ link.url }}">{{ link.title }}</a></li>
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const defaults = { | |
cartModal: '.js-ajax-cart-modal', // classname | |
cartModalContent: '.js-ajax-cart-modal-content', // classname | |
cartModalClose: '.js-ajax-cart-modal-close', // classname | |
cartDrawer: '.js-ajax-cart-drawer', // classname | |
cartDrawerContent: '.js-ajax-cart-drawer-content', // classname | |
cartDrawerClose: '.js-ajax-cart-drawer-close', // classname | |
cartDrawerTrigger: '.js-ajax-cart-drawer-trigger', // classname | |
cartOverlay: '.js-ajax-cart-overlay', // classname | |
cartCounter: '.js-ajax-cart-counter', // classname |
- Đôi tượng: mới bắt đầu học ReactJS mà không biết học những gì.
- Yêu cầu kiến thức:
- Javascript cơ bản: https://javascript.info/
- ES6 syntax: http://es6-features.org/#Constants
- Git cơ bản: Học cách quản lý source code
- NPM (Node Package Manager): Tìm hiểu xem đây là gì?
- Tiếng Anh (vì tài liệu đa số là Tiếng Anh)
aria-live="polite"
is used for content which might get updated. Polite won't interupt.a11y.js
comes with Slate. HastrapFocus
andremoveTrapFocus
methods.- URL mapping
- The
{{ content_for_header }}
variable must be placed between the opening and closing<head>
tag. It inserts the necessary Shopify scripts into the<head>
which includes scripts for Google Analytics, Shopify analytics, for Shopify apps, and more. - The
{{ content_for_layout }}
variable must be placed between the opening and closing<body>
tag. It outputs dynamic content generated by all of the other templates (index.liquid, product.liquid, and so on). t
filter is used to pull translation fromlocales/ru.json
- In tags with more than one
and
oror
operator, operators are checked in order from right to left. You cannot change the order of operations using parentheses — parentheses are invalid characters in Liquid and will preven