Skip to content

Commit

Permalink
Update CamanJS and fix IE
Browse files Browse the repository at this point in the history
  • Loading branch information
meltingice committed Apr 9, 2013
1 parent 37587ae commit 8b7e60e
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 24 deletions.
2 changes: 2 additions & 0 deletions _assets/javascripts/examples.js.coffee
Expand Up @@ -47,6 +47,8 @@ renderPreset = (preset) ->
presetBusy = false

$(document).ready ->
return unless $("#example").length > 0

caman = Caman '#example'
presetCaman = Caman '#preset-example'

Expand Down
53 changes: 38 additions & 15 deletions _assets/javascripts/ext/caman.full.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 8 additions & 9 deletions _layouts/main.html
Expand Up @@ -10,16 +10,9 @@
{% endcss_asset_tag %}

<link href='http://fonts.googleapis.com/css?family=Source+Code+Pro|Raleway:400,200,700' rel='stylesheet' type='text/css'>

{% if site.dev or site.server %}
<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.js"></script>
<script type="text/javascript">
Caman.DEBUG = true
</script>
{% else %}
<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
{% endif %}

<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>

{% javascript_asset_tag site %}
- /_assets/javascripts/copy-command.js
- /_assets/javascripts/ext/html5slider.js
Expand All @@ -28,6 +21,12 @@
- /_assets/javascripts/examples.js.coffee
- /_assets/javascripts/guides.js.coffee
{% endjavascript_asset_tag %}

{% if site.dev or site.server %}
<script type="text/javascript">
Caman.DEBUG = true
</script>
{% endif %}
</head>
<body>
{{ content }}
Expand Down

0 comments on commit 8b7e60e

Please sign in to comment.