1
0
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:
Phil Haack 2013-12-13 11:15:00 -08:00
commit a0aa6f2bd6
10 changed files with 15 additions and 14 deletions

View File

@ -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),

View File

@ -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 %}
} };

View 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 %}

View File

@ -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

View File

@ -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