move main.js outside of src folder
parent
0a272e37c6
commit
e96f50d187
@ -9,6 +9,14 @@ this is an experiment for the web browser. it corrupts jpg images so that they a
|
|||||||
|
|
||||||
this experiment is very much based on the [smack my glitch up js](https://github.com/Hugosslade/smackmyglitchupjs) script.
|
this experiment is very much based on the [smack my glitch up js](https://github.com/Hugosslade/smackmyglitchupjs) script.
|
||||||
|
|
||||||
|
minification / build
|
||||||
|
---
|
||||||
|
the [requirejs optimizer](http://requirejs.org/docs/optimization.html) is used to minify both javascript and css files.
|
||||||
|
|
||||||
|
to minify javascript, run ```r.js -o name=main out=main.min.js``` in the terminal from the ```scripts``` folder.
|
||||||
|
|
||||||
|
to minify css, run ```r.js -o cssIn=global.css out=global.min.css optimizeCss=default``` from the ```styles``` folder.
|
||||||
|
|
||||||
third party code used in this experiment
|
third party code used in this experiment
|
||||||
---
|
---
|
||||||
* [html5slider](http://frankyan.com/labs/html5slider/) by [fryn](https://github.com/fryn), MIT license
|
* [html5slider](http://frankyan.com/labs/html5slider/) by [fryn](https://github.com/fryn), MIT license
|
||||||
|
|||||||
@ -34,6 +34,6 @@
|
|||||||
<a id="png-button" download="glitched-image.png" target="_blank" class="download-link">download bitmap file<span> (.png)</span></a>
|
<a id="png-button" download="glitched-image.png" target="_blank" class="download-link">download bitmap file<span> (.png)</span></a>
|
||||||
</div>
|
</div>
|
||||||
<canvas id="canvas"></canvas>
|
<canvas id="canvas"></canvas>
|
||||||
<script src="scripts/lib/require-2.1.4.js" data-main="scripts/src/main"></script>
|
<script src="scripts/lib/require-2.1.4.js" data-main="scripts/main"></script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
2
scripts/lib/require.min.js
vendored
Normal file
2
scripts/lib/require.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
Loading…
x
Reference in New Issue
Block a user