umap/youmap/templates/base.html

75 lines
3.3 KiB
HTML
Raw Normal View History

2012-11-20 03:47:19 -06:00
<!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-->
2012-11-20 03:47:19 -06:00
<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>
2012-12-07 06:40:57 -06:00
<script src="{{ STATIC_URL }}endless_pagination/js/endless-pagination.js"></script>
2012-11-20 03:47:19 -06:00
{% block bottom_js %}
<script type="text/javascript">
$(document).foundationAlerts();
L.Chickpea.on('modal_ready', function (e) {
2012-11-20 03:47:19 -06:00
var $div = $('#reveal-container');
// reset class
$div.attr("class", "");
$div.addClass("reveal-modal");
if (e.cssClass) {
$div.addClass(e.cssClass);
2012-11-20 03:47:19 -06:00
}
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) {
2012-12-06 11:09:45 -06:00
var level_class = e.level && e.level == "info"? "success": "alert";
$div = $('<div>').addClass('alert-box global').addClass(level_class).html(e.content);
2012-11-20 03:47:19 -06:00
$div.append('<a href="#" class="close">&times;</a>');
$("body").prepend($div);
});
2012-11-20 03:47:19 -06:00
$('a.reveal').click(function(e) {
e.preventDefault();
var $this = $(this);
$.get($this.attr('href'), function(data) {
2012-11-22 08:05:57 -06:00
return L.Chickpea.fire('modal_ready', {'data': data});
2012-11-20 03:47:19 -06:00
}, 'json');
});
</script>
{% endblock %}
<div id="reveal-container" class="reveal-modal"></div>
</body>
</html>