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 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-28 11:41:06 +08:00
<!-- <script src="{{ get_url(path='js/shop.min.js', cachebust=true) }}"></script> -->
< script src = "{{ get_url(path='js/shop.bundle.js', cachebust=true) }}" > < / script >
2019-10-02 12:16:07 +08:00
{% endblock %}