mirror of
https://github.com/github/choosealicense.com
synced 2024-11-05 03:08:51 +01:00
Merge pull request #151 from XhmikosR/combine-js
Combine javascript files.
This commit is contained in:
commit
a0aa6f2bd6
@ -13,18 +13,12 @@
|
|||||||
</div>
|
</div>
|
||||||
</footer>
|
</footer>
|
||||||
|
|
||||||
</div><!-- /container -->
|
</div> <!-- /container -->
|
||||||
|
|
||||||
<script src="/javascripts/jquery-1.10.2.min.js"></script>
|
{% if page.layout == "license" or page.class == "license-types" %}
|
||||||
<script src="/javascripts/jquery.qtip.min.js"></script>
|
<script src="/javascripts/javascript.js"></script>
|
||||||
|
|
||||||
{% if page.layout == "license" %}
|
|
||||||
<script src="/javascripts/ZeroClipboard.min.js"></script>
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<script src="/javascripts/annotations.js"></script>
|
|
||||||
<script src="/javascripts/app.js"></script>
|
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
|
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
|
||||||
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
|
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
|
||||||
|
@ -1,5 +1,3 @@
|
|||||||
---
|
|
||||||
---
|
|
||||||
var annotations = {
|
var annotations = {
|
||||||
{% for type_hash in site.rules %}
|
{% for type_hash in site.rules %}
|
||||||
"{{ type_hash[0] }}": {
|
"{{ type_hash[0] }}": {
|
||||||
@ -8,4 +6,4 @@ var annotations = {
|
|||||||
{% endfor %}
|
{% endfor %}
|
||||||
}{% if forloop.rindex0 > 0 %},{% endif %}
|
}{% if forloop.rindex0 > 0 %},{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
}
|
};
|
9
javascripts/javascript.js
Normal file
9
javascripts/javascript.js
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
---
|
||||||
|
layout: nil
|
||||||
|
---
|
||||||
|
|
||||||
|
{% include js/jquery-1.10.2.min.js %}
|
||||||
|
{% include js/jquery.qtip.min.js %}
|
||||||
|
{% include js/ZeroClipboard.min.js %}
|
||||||
|
{% include js/annotations.js %}
|
||||||
|
{% include js/app.js %}
|
@ -3,7 +3,7 @@
|
|||||||
set -e
|
set -e
|
||||||
|
|
||||||
echo "compiling javascript..."
|
echo "compiling javascript..."
|
||||||
./node_modules/.bin/coffee -c javascripts/app.coffee
|
./node_modules/.bin/coffee -c _includes/js/app.coffee
|
||||||
|
|
||||||
echo "building the site..."
|
echo "building the site..."
|
||||||
bundle exec rake test
|
bundle exec rake test
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
set -e
|
set -e
|
||||||
|
|
||||||
echo "compiling javascript..."
|
echo "compiling javascript..."
|
||||||
./node_modules/.bin/coffee -c javascripts/app.coffee
|
./node_modules/.bin/coffee -c _includes/js/app.coffee
|
||||||
|
|
||||||
echo "spinning up the server..."
|
echo "spinning up the server..."
|
||||||
bundle exec jekyll serve -w
|
bundle exec jekyll serve -w
|
||||||
|
Loading…
Reference in New Issue
Block a user