web/views/base.html.twig

40 lines
1.3 KiB
Twig
Raw Normal View History

2016-04-03 13:10:16 +00:00
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
2016-06-14 12:57:45 +00:00
<title>{{ title ?? "Zer.ooo - Security At Its Worst" }}</title>
2016-04-03 13:10:16 +00:00
<link rel="stylesheet" href="/css/main.css">
2016-06-14 12:57:45 +00:00
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.6.3/css/font-awesome.min.css" rel="stylesheet" integrity="sha384-T8Gy5hrqNKT+hzMclPo118YTQO6cYprQmhrYwIiQ/3axmI1hQomh7Ud2hPOy8SP1" crossorigin="anonymous">
2016-04-03 13:10:16 +00:00
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
{% block head %}
<script src="/js/jquery.min.js"></script>
<script src="/js/bootstrap.js"></script>
{% endblock %}
2016-06-14 12:57:45 +00:00
<script>
$(function() {
$('a[href*="#"]:not([href="#"])').click(function() {
if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') && location.hostname == this.hostname) {
var target = $(this.hash);
target = target.length ? target : $('[name=' + this.hash.slice(1) +']');
if (target.length) {
$('html, body').animate({
scrollTop: target.offset().top
}, 1000);
return false;
}
}
});
});
</script>
2016-04-03 13:10:16 +00:00
</head>
<body>
<div class="flexcontainer">
2016-04-03 13:10:16 +00:00
{% block content %}
{% endblock %}
</div>
2016-06-14 12:57:45 +00:00
2016-04-03 13:10:16 +00:00
</body>
</html>