<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"/>
    <script src="//cdn.bootcss.com/jquery/1.11.3/jquery.min.js"></script>
    <link href="//cdn.bootcss.com/bootstrap/3.3.5/css/bootstrap.min.css" rel="stylesheet" media="screen"/>
    <link href="//cdn.bootcss.com/bootstrap/3.3.5/css/bootstrap-theme.min.css" rel="stylesheet" media="screen"/>
    <script src="//cdn.bootcss.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
    <script src="//cdn.jsdelivr.net/remarkable/1.7.1/remarkable.min.js"></script>
    <link rel="stylesheet" type="text/css" th:href="@{/css/blog.css}"/>
    <title th:text="${title}">Humorous Not Funny</title>
</head>
<body>
<div th:replace="header :: header"></div>
<div class="div-main">
    <div id="content"></div>
    <div th:replace="reward :: reward"></div>
</div>
<div th:replace="footer :: footer"></div>


</body>
</html>
<script th:inline="javascript">
    $(".div-reward-item").hide();
    $(document).ready(function() {
        $("#content").append(new Remarkable().render( [[${content}]]));
        $(".btn-reward").click(function() {
           $(".div-reward-item").toggle();
        });
    });
</script>