umap/youmap/templates/base.html
2012-11-21 17:50:27 +01:00

72 lines
3.1 KiB
HTML

<!DOCTYPE html>
<html>
<head>
<title>{% block head_title %}YouMap{% endblock %}</title>
<meta charset="utf-8">
<!-- Included CSS Files (Compressed) -->
<link rel="stylesheet" href="{{ STATIC_URL }}foundation/stylesheets/foundation.css">
<link rel="stylesheet" href="{{ STATIC_URL }}youmap/youmap.css">
<script src="{{ STATIC_URL }}foundation/javascripts/modernizr.foundation.js"></script>
<!-- IE Fix for HTML5 Tags -->
<!--[if lt IE 9]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
{% block extra_head %}
{% endblock extra_head %}
</head>
<body class="{% block body_class %}{% endblock %}">
<div>
{% block content %}
{% endblock %}
</div>
<script src="{{ STATIC_URL }}foundation/javascripts/modernizr.foundation.js"></script>
<script src="{{ STATIC_URL }}foundation/javascripts/jquery.js"></script>
<script src="{{ STATIC_URL }}foundation/javascripts/jquery.foundation.mediaQueryToggle.js"></script>
<script src="{{ STATIC_URL }}foundation/javascripts/jquery.foundation.reveal.js"></script>
<!--script src="{{ STATIC_URL }}foundation/javascripts/jquery.foundation.orbit.js"></script-->
<script src="{{ STATIC_URL }}foundation/javascripts/jquery.foundation.navigation.js"></script>
<script src="{{ STATIC_URL }}foundation/javascripts/jquery.foundation.buttons.js"></script>
<script src="{{ STATIC_URL }}foundation/javascripts/jquery.foundation.tabs.js"></script>
<script src="{{ STATIC_URL }}foundation/javascripts/jquery.foundation.forms.js"></script>
<script src="{{ STATIC_URL }}foundation/javascripts/jquery.foundation.tooltips.js"></script>
<script src="{{ STATIC_URL }}foundation/javascripts/jquery.foundation.accordion.js"></script>
<script src="{{ STATIC_URL }}foundation/javascripts/jquery.placeholder.js"></script>
<script src="{{ STATIC_URL }}foundation/javascripts/jquery.foundation.alerts.js"></script>
{% block bottom_js %}
<script type="text/javascript">
$(document).foundationAlerts();
L.Chickpea.on('modal_ready', function (e) {
var $div = $('#reveal-container');
// reset class
$div.attr("class", "");
$div.addClass("reveal-modal");
if (e.cssClass) {
$div.addClass(e.cssClass);
}
return $div.empty().html(e.data.html).append('<a class="close-reveal-modal">&#215;</a>').reveal();
});
L.Chickpea.on('modal_close', function (e) {
var $div = $('#reveal-container').trigger('reveal:close');
});
L.Chickpea.on('alert', function (e) {
$div = $('<div>').addClass('alert-box success global').html(e.content);
$div.append('<a href="#" class="close">&times;</a>');
$("body").prepend($div);
});
$('a.reveal').click(function(e) {
e.preventDefault();
var $this = $(this);
$.get($this.attr('href'), function(data) {
return L.Util.chickpea_modal(data.html);
}, 'json');
});
</script>
{% endblock %}
<div id="reveal-container" class="reveal-modal"></div>
</body>
</html>