<commit_before>extends layout

block content
    div(class='container')
        div(class="page-header")
            h1 家電控制
        h2 平面圖
        div(class="text-center")
            div()
                img(src="/images/floor_plan.png")
<commit_msg>Add LED & Plug switch<commit_after>extends layout

block css
    link(rel='stylesheet', href='/css/bootstrap-switch.min.css')

block content
    div(class='container')
        div(class="page-header")
            h1 家電控制
        h2 LED電燈
        h3 Room 1
        input(type="checkbox" name="led_0")
        h3 Room 2
        input(type="checkbox" name="led_1")
        h3 Room 3
        input(type="checkbox" name="led_2")
        h2 插頭
        h3 插座 1
        input(type="checkbox" name="plug_0")
        h3 插座 2
        input(type="checkbox" name="plug_1")

block javascript
    script(type="text/javascript" src="javascripts/bootstrap-switch.min.js")
    script(type="text/javascript").
        $(function () {
            $("[name='led_0']").bootstrapSwitch();
            $("[name='led_1']").bootstrapSwitch();
            $("[name='led_2']").bootstrapSwitch();

            $("[name='plug_0']").bootstrapSwitch();
            $("[name='plug_1']").bootstrapSwitch();
        });

{'fraction_non_alphanumeric': 0.1591276252019386, 'fraction_numerical': 0.020193861066235864, 'mean_word_length': 2.286472148541114, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '943100', 'n_tokens_mistral': 398, 'n_tokens_neox': 404, 'n_words': 68}