<commit_before><%--關閉側邊選單按鈕--%>
<button id="close-menu-button" type="button" class="close" title="不顯示選單">×</button>
<r:script>
$('#close-menu-button').click(function() {

    var _backup = $('#menu-container').clone(true);
    var _parent = $('#menu-container').parent();

    $('#menu-container').remove();
    $('#content-container').removeClass('span9 padding-rightside').addClass('span12 padding-around');

    $.cookie('_clsm', '1');

    var a = $('<a href="#"><i class="icon icon-list" style="position:absolute;left:0;top:100px;"></i></a>');
    a.appendTo('body');
    a.click(function() {
        _parent.prepend(_backup);
        $('#content-container').addClass('span9 padding-rightside').removeClass('span12 padding-around');
        a.remove();
        $.removeCookie('_clsm');
    });
});

if ($.cookie('_clsm')) {
    $('#close-menu-button').click();
}
</r:script>
<ul class="nav nav-pills nav-stacked" style="font-size:11pt">
    <li class="${!lesson?'active':''}">
        <g:link controller="course" action="show" id="${course?.id}">
            <%--課程首頁--%>
            <i class="icon icon-book"></i> ${course?.title}</a>
        </g:link>
    </li>
    <g:each in="${course?.lessons}" var="${row}" status="i">
        <li class="${row.id==lesson?.id?'active':''}">
            <g:link controller="lesson" action="show" id="${row?.id}">
                ${row.title}
            </g:link>
        </li>
    </g:each>
</ul><commit_msg>cookie 全域設定<commit_after><%--關閉側邊選單按鈕--%>
<button id="close-menu-button" type="button" class="close" title="不顯示選單">×</button>
<r:script>
$('#close-menu-button').click(function() {

    var _backup = $('#menu-container').clone(true);
    var _parent = $('#menu-container').parent();

    $('#menu-container').remove();
    $('#content-container').removeClass('span9 padding-rightside').addClass('span12 padding-around');

    $.cookie('_clsm', '1', { path: '/' });

    var a = $('<a href="#"><i class="icon icon-list" style="position:absolute;left:0;top:100px;"></i></a>');
    a.appendTo('body');
    a.click(function() {
        _parent.prepend(_backup);
        $('#content-container').addClass('span9 padding-rightside').removeClass('span12 padding-around');
        a.remove();
        $.removeCookie('_clsm', { path: '/' });
    });
});

if ($.cookie('_clsm')) {
    $('#close-menu-button').click();
}
</r:script>
<ul class="nav nav-pills nav-stacked" style="font-size:11pt">
    <li class="${!lesson?'active':''}">
        <g:link controller="course" action="show" id="${course?.id}">
            <%--課程首頁--%>
            <i class="icon icon-book"></i> ${course?.title}</a>
        </g:link>
    </li>
    <g:each in="${course?.lessons}" var="${row}" status="i">
        <li class="${row.id==lesson?.id?'active':''}">
            <g:link controller="lesson" action="show" id="${row?.id}">
                ${row.title}
            </g:link>
        </li>
    </g:each>
</ul>
{'fraction_non_alphanumeric': 0.2598908594815825, 'fraction_numerical': 0.008867667121418827, 'mean_word_length': 3.338757396449704, 'pattern_counts': {'":': 0, '<': 53, '<?xml version=': 0, '>': 53, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4871325', 'n_tokens_mistral': 1023, 'n_tokens_neox': 1028, 'n_words': 146}