2019-10-02 12:16:07 +08:00
{% extends 'section.html' %}
2019-12-26 21:31:37 +08:00
{% block deferred_styles %}
{{ super() }}
< link rel = "stylesheet" href = "{{ get_url(path='css/order-hardware.css', cachebust=true) }}" >
{% endblock %}
2019-10-02 12:16:07 +08:00
{% block hero %}{% endblock %}
{% block main %}
< main id = "root-shop" > < / main >
{% endblock %}
{% block footer %}{% endblock %}
{% block js %}
2019-11-07 18:15:47 +08:00
< script >
(function () {
function deviceIsMobile() {
// https://coderwall.com/p/i817wa/one-line-function-to-detect-mobile-devices-with-javascript
2020-01-21 19:02:38 +08:00
return (
(typeof window.orientation !== 'undefined') ||
navigator.userAgent.match(/Android/i) ||
navigator.userAgent.match(/webOS/i) ||
navigator.userAgent.match(/iPhone/i) ||
navigator.userAgent.match(/iPad/i) ||
navigator.userAgent.match(/iPod/i) ||
navigator.userAgent.match(/BlackBerry/i) ||
navigator.userAgent.match(/Windows Phone/i) ||
(navigator.userAgent.indexOf('IEMobile') !== -1)
);
2019-11-07 18:15:47 +08:00
};
2019-12-26 21:31:37 +08:00
window.deviceIsMobile = deviceIsMobile;
return;
2019-11-07 18:15:47 +08:00
if (deviceIsMobile()) {
alert('The online crate configuration tool is not available for mobile browsers yet. Please use a desktop computer or email us at sales@m-l****.hk to get a quote.');
}
})();
< / script >
2019-10-02 12:16:07 +08:00
<!-- Load React. -->
<!-- Note: when deploying, replace "development.js" with "production.min.js". -->
<!-- v16 -->
<!-- <script src="https://unpkg.com/react@16/umd/react.development.js" crossorigin></script>
< script src = "https://unpkg.com/react-dom@16/umd/react-dom.development.js" crossorigin > < / script > -->
< script src = "{{ get_url(path='js/react.production.min.js', cachebust=true) }}" > < / script >
< script src = "{{ get_url(path='js/react-dom.production.min.js', cachebust=true) }}" > < / script >
<!-- Load tools -->
<!-- v6 -->
<!-- <script src="{{ get_url(path='js/babel.min.js', cachebust=true) }}"></script> -->
<!-- v15.6 -->
< script src = "{{ get_url(path='js/prop-types.min.js', cachebust=true) }}" > < / script >
<!-- Load libraries -->
<!-- v11.0.5 -->
< script src = "{{ get_url(path='js/react-beautiful-dnd.min.js', cachebust=true) }}" > < / script >
< script src = "{{ get_url(path='js/uuid_v4@latest.js', cachebust=true) }}" > < / script >
2020-04-14 13:46:51 +08:00
< script src = "{{ get_url(path='js/axios.min.js', cachebust=true) }}" > < / script >
2019-10-02 12:16:07 +08:00
<!-- Load Data -->
< script src = "{{ get_url(path='js/shop_data.js', cachebust=true) }}" > < / script >
<!-- Load our React component. -->
<!-- <script type="text/babel" src="{{ get_url(path='js/shop.jsx', cachebust=true) }}"></script> -->
2023-06-29 11:51:39 +08:00
< script src = "{{ get_url(path='js/shop.min.js', cachebust=true) }}" > < / script >
2019-10-02 12:16:07 +08:00
{% endblock %}