I am testing an index.html file that works successfully inside a folder named 'require-js' which is inside the main folder named Main.
like so: Main/require-js/index.html. I've moved the 'require-js' folder from the Main folder into public_html/, and the index.html no longer succeeds,
so I played around with this path '../dist/draggabilly.pkgd' thinking that is the issue, but no success. Any help is appreciated.
like so: Main/require-js/index.html. I've moved the 'require-js' folder from the Main folder into public_html/, and the index.html no longer succeeds,
so I played around with this path '../dist/draggabilly.pkgd' thinking that is the issue, but no success. Any help is appreciated.
HTML:
<!--<script src="/main.js" type="text/javascript"></script>-->
<script>
/* globals requirejs */
requirejs( [ '../dist/draggabilly.pkgd' ], function( Draggabilly ) {
new Draggabilly('.draggie');
} );
</script>
<script data-main="main" src="https://cdnjs.cloudflare.com/ajax/libs/require.js/2.1.17/require.js"></script>
</head>
<body>
<div class="draggie"></div>
</body>
</html>