forked from M-Labs/web2019
79 lines
2.6 KiB
HTML
79 lines
2.6 KiB
HTML
{% extends 'section.html' %}
|
|
|
|
|
|
{% block deferred_styles %}
|
|
{{ super() }}
|
|
<link rel="stylesheet" href="{{ get_url(path='css/order-hardware.css', cachebust=true) }}">
|
|
{% endblock %}
|
|
|
|
|
|
{% block hero %}{% endblock %}
|
|
|
|
|
|
{% block main %}
|
|
|
|
<main id="root-shop"></main>
|
|
|
|
{% endblock %}
|
|
|
|
|
|
{% block footer %}{% endblock %}
|
|
|
|
|
|
{% block js %}
|
|
|
|
|
|
<script>
|
|
(function () {
|
|
function deviceIsMobile() {
|
|
// https://coderwall.com/p/i817wa/one-line-function-to-detect-mobile-devices-with-javascript
|
|
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)
|
|
);
|
|
};
|
|
|
|
window.deviceIsMobile = deviceIsMobile;
|
|
|
|
return;
|
|
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>
|
|
|
|
<!-- Load React. -->
|
|
<!-- Note: when deploying, replace "development.js" with "production.min.js". -->
|
|
<!-- v18 -->
|
|
<!-- <script src="https://unpkg.com/react@18/umd/react.development.js" crossorigin></script>
|
|
<script src="https://unpkg.com/react-dom@18/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>
|
|
<script src="{{ get_url(path='js/axios.min.js', cachebust=true) }}"></script>
|
|
|
|
<!-- 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> -->
|
|
<script src="{{ get_url(path='js/shop.min.js', cachebust=true) }}"></script>
|
|
|
|
{% endblock %} |