Commit 043790d5 authored by svilayphiou's avatar svilayphiou

load slidy css when you click on the Slide button

parent 3cf6314a
......@@ -95,6 +95,8 @@ $(".slide-button").click(function(e) {
e.preventDefault();
$.getScript( "/static/js/slidy.js", function( data, textStatus, jqxhr ) {
w3c_slidy.init();
$("body").append("<link rel='stylesheet' href='/static/js/slidy.css/' type='text/css' media='all' />");
$("body").append("<link rel='stylesheet' href='/slidy.css/' type='text/css' media='all' />");
});
});
......
......@@ -11,8 +11,6 @@
<link rel="stylesheet/less" href="{% url 'css-print' %}" type="text/css" media="print">
{% endblock %}
<link rel="stylesheet" href="{{ STATIC_URL }}js/slidy.css" type="text/css" media="all">
<link rel="stylesheet" href="{% url 'css-slide'%}" type="text/css" media="all">
<script src="{{ STATIC_URL }}js/less-1.4.1.min.js" type="text/javascript"> </script>
<script src="{{ STATIC_URL }}js/jquery-1.11.1.min.js" type="text/javascript"> </script>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment