Commit a2a6ddf1 authored by Bruno Martin's avatar Bruno Martin
Browse files

load every thing from CDN; remove header and footer areas

parent b8f2e84f
......@@ -38,7 +38,6 @@
<script type="text/javascript" src="https://code.jquery.com/ui/1.10.3/jquery-ui.min.js"></script>
<script type="text/javascript" src="https://unpkg.com/bootstrap@3.3.6/dist/js/bootstrap.min.js"></script>
<!-- Angular -->
<script src="https://unpkg.com/angular@1.5.6/angular.min.js"></script>
<script src="https://unpkg.com/angular-animate@1.5.6/angular-animate.min.js"></script>
......@@ -47,13 +46,13 @@
<script src="https://unpkg.com/angular-sanitize@1.5.6/angular-sanitize.min.js"></script>
<script src="https://unpkg.com/angular-touch@1.5.6/angular-touch.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/angular-cookie/1.5.6/angular-cookie.min.js"></script>
<script src="//ajax.googleapis.com/ajax/libs/angularjs/1.5.6/angular-cookies.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/angular-gettext/2.4.1/angular-gettext.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/angular-i18n/1.3.2/angular-locale_pt-br.min.js"></script>
<!--<script type="text/javascript" src="https://unpkg.com/angular-bootstrap@0.12.2/ui-bootstrap.min.js"></script>-->
<script type="text/javascript" src="https://unpkg.com/angular-ui-bootstrap@2.5.6/dist/ui-bootstrap-tpls.js"></script>
<script type="text/javascript" src="https://unpkg.com/angular-local-storage@0.7.1/dist/angular-local-storage.min.js"></script>
<script src="https://unpkg.com/angular-ui-bootstrap@2.5.6/dist/ui-bootstrap-tpls.js"></script>
<script src="https://unpkg.com/angular-local-storage@0.7.1/dist/angular-local-storage.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/angular-loading-bar/0.9.0/loading-bar.min.js"></script>
......@@ -71,98 +70,16 @@
{% endcompress %}
<script src="{% url 'courses_legacy:djangular' %}"></script>
{% block js %}{% endblock %}
{% analytics %}
<script type="text/javascript" charset="utf-8">
(function(){
$(document).ready(function() {
if (!("ontouchstart" in window)) {
$('.has-tooltip').tooltip();
}
// workaround to contact modal work with safari on ipad due to safari bug:
// http://getbootstrap.com/getting-started/#support-fixed-position-keyboards
if (navigator.userAgent.match(/iPhone|iPad|iPod/i)) {
$('.modal').on('show.bs.modal', function () {
// Position modal absolute and bump it down to the scrollPosition
$(this).css({
position: 'absolute',
marginTop: $(window).scrollTop() + 'px',
bottom: 'auto'
});
// Position backdrop absolute and make it span the entire page
// Also dirty, but we need to tap into the backdrop after Boostrap
// positions it but before transitions finish.
setTimeout(function () {
$('.modal-backdrop').css({
position: 'absolute',
top: 0,
left: 0,
width: '100%',
height: Math.max(
document.body.scrollHeight, document.documentElement.scrollHeight,
document.body.offsetHeight, document.documentElement.offsetHeight,
document.body.clientHeight, document.documentElement.clientHeight
) + 'px'
});
}, 0);
});
}
});
})();
</script>
</head>
<body {% if in_admin %}id="admin"{% else %}id="notadmin"{% endif %}
{% spaceless %}{% block body_attrs %}ng-app{% endblock %}{% endspaceless %}
class="{% if user.is_authenticated %}logged{% else %}anonymous{% endif %}">
<div class="site-wrapper" ng-class="{'main-nav-opened': is_main_nav_opened}">
{% block header %}
{% if user.is_authenticated %}
{% include 'header.html' %}
{% else %}
{% include 'header-unlogged.html' %}
{% endif %}
{% endblock %}
{% block main-nav %}
{% if user.is_authenticated %}
{% include 'main-nav.html' %}
{% endif %}
{% endblock %}
<body
<div class="wrapper wrapper-bg {% spaceless %}{% block wrapper_classes %}{% endblock %}{% endspaceless %}">
{% block content %}
<h1>missing content block</h1>
{% endblock %}
</div>
</div>
{% block footer %}
{% if not user.is_authenticated %}
{% include 'footer-unlogged.html' %}
{% endif %}
{% endblock %}
{% if not user.is_authenticated %}
{% include 'account/login_modal.html' %}
<script type="text/javascript" charset="utf-8">
$(document).ready(function() {
var $modal = $("#login-modal");
var $next = $modal.find('input[name=next]');
$('a.js-login-required').click(function(e){
$next.val($(this).attr('href'));
$modal.modal();
return false;
});
$('.dropdown-menu form').click(function(e) {
e.stopPropagation();
});
});
</script>
{% endif %}
</body>
</html>
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