aboutsummaryrefslogtreecommitdiffstats
path: root/extra_plugins/task_mustache/mustache.html
blob: 5dbebefb30f2ea797728c7473c8411912106ffe5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<head>
    <link href="/assets/css/bootstrap.css" rel="stylesheet" type="text/css">
    <link href="/assets/css/bootstrap-responsive.css" rel="stylesheet" type="text/css">
    <link href="/assets/css/rst.css" rel="stylesheet" type="text/css">
    <link href="/assets/css/code.css" rel="stylesheet" type="text/css">
    <link href="/assets/css/colorbox.css" rel="stylesheet" type="text/css"/>
    <link href="/assets/css/slides.css" rel="stylesheet" type="text/css"/>
    <link href="/assets/css/theme.css" rel="stylesheet" type="text/css"/>
    <link href="/assets/css/custom.css" rel="stylesheet" type="text/css">
    <script src="/assets/js/jquery-1.7.2.min.js" type="text/javascript"></script>    
    <script src="https://raw.github.com/jonnyreeves/jquery-Mustache/master/src/jquery.mustache.js"></script>
    <script src="https://raw.github.com/janl/mustache.js/master/mustache.js"></script>
    <script src="/assets/js/jquery.colorbox-min.js" type="text/javascript"></script>
    <script src="/assets/js/slides.min.jquery.js" type="text/javascript"></script>
    <script type="text/javascript">
function load_data(dataurl) {
    jQuery.getJSON(dataurl, function(data) {
        $('body').mustache('view', data, { method: 'html' });
        window.location.hash = '#' + dataurl;
    })
};
$(document).ready(function() {
$.Mustache.load('/mustache-template.html')
    .done(function () {
        if (window.location.hash != '') {
            load_data(window.location.hash.slice(1));
        }
        else {
            load_data('{{first_post_data}}');
        };
    })
});    
</script>
</head>
<body style="padding-top: 0;">
</body>