59 lines
2.0 KiB
HTML
59 lines
2.0 KiB
HTML
{% extends 'section.html' %}
|
|
|
|
|
|
{% 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.indexOf('IEMobile') !== -1);
|
|
};
|
|
|
|
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". -->
|
|
<!-- 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>
|
|
|
|
<!-- 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 %} |