<commit_before>﻿<!DOCTYPE html>
<!--
*Panel For Creating and Setting up the new Meeting in Focus Meter System
*author: <NAME>

-->
<html>
	<head>
		<meta name="viewport" content="width=320, user-scalable=no">
		<meta http-equiv="Content-type" content="text/html; charset=utf-8">
		<title>Focus Meter</title>
        <link rel="stylesheet" href="./css/bootstrap.css" type="text/css">
        <link rel="stylesheet" href="http://code.jquery.com/ui/1.10.4/themes/smoothness/jquery-ui.css" type="text/css" media="screen" title="no title">
        <link rel="stylesheet" href="./js/jquery.ptTimeSelect.css" type="text/css" media="screen" title="no title">

        <script src="./js/jquery-1.8.2.js"></script>
        <script src="./js/jquery-ui-1.8.20.js"></script>
        <script src="./js/jquery.ptTimeSelect.js"></script>
		<script type="text/javascript">
            
            function goBackToStartScreen() {
                window.location = './index.html';
            }
		
            $(document).ready(function () {
                var options = {
                    pattern: 'dd mm yyyy', // Default is 'mm/yyyy' and separator char is not mandatory
                    startYear: 2000,
                    finalYear: 2099,
                    monthNames: ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December']
                };

                $('#datepicker').datepicker();
               
                $('#startHour').ptTimeSelect();

                $('#endHour').ptTimeSelect();

                $(".btn-success").click(function(){
                    var date = $("#datepicker").val();

                    var title = $("#title").val();

                    var startHour = $("#startHour").val();

                    var endHour = $("#endHour").val();

                    var mac = "12-32-43-54-65-76";

                    $.ajax({
                        type: "POST",
                        url: "http://localhost:3000/addMeeting",
                        data: {
                            "date": date,
                            "title": title,
                            "startHour": startHour,
                            "endHour": endHour,
                            "mac": mac
                        },
                        processData: true,
                        success: function(data) {
                            alert("Utworzono spotkanie! Kod spotkania: " + data.meetingCode);
                            $("#code_1").val(data.meetingCode.charAt(0));
                            $("#code_2").val(data.meetingCode.charAt(1));
                            $("#code_3").val(data.meetingCode.charAt(2));
                            $("#code_4").val(data.meetingCode.charAt(3));
                        },
                        error: function(jqXHR, textStatus, errorThrown) {
                            alert("Error, status: " + textStatus + ", errorThrown: " + errorThrown);
                        } 
                    });
                });
            });

           
			
		</script>
	</head>
	<body>
        <div id="screen">
            <div class="form-group">
                <div class="col-sm-offset-4 col-sm-3"><commit_msg>Changed ip address from 'localhost' to 156.17...<commit_after>﻿<!DOCTYPE html>
<!--
*Panel For Creating and Setting up the new Meeting in Focus Meter System
*author: <NAME>

-->
<html>
	<head>
		<meta name="viewport" content="width=320, user-scalable=no">
		<meta http-equiv="Content-type" content="text/html; charset=utf-8">
		<title>Focus Meter</title>
        <link rel="stylesheet" href="./css/bootstrap.css" type="text/css">
        <link rel="stylesheet" href="http://code.jquery.com/ui/1.10.4/themes/smoothness/jquery-ui.css" type="text/css" media="screen" title="no title">
        <link rel="stylesheet" href="./js/jquery.ptTimeSelect.css" type="text/css" media="screen" title="no title">

        <script src="./js/jquery-1.8.2.js"></script>
        <script src="./js/jquery-ui-1.8.20.js"></script>
        <script src="./js/jquery.ptTimeSelect.js"></script>
		<script type="text/javascript">
            
            function goBackToStartScreen() {
                window.location = './index.html';
            }
		
            $(document).ready(function () {
                var options = {
                    pattern: 'dd mm yyyy', // Default is 'mm/yyyy' and separator char is not mandatory
                    startYear: 2000,
                    finalYear: 2099,
                    monthNames: ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December']
                };

                $('#datepicker').datepicker();
               
                $('#startHour').ptTimeSelect();

                $('#endHour').ptTimeSelect();

                $(".btn-success").click(function(){
                    var date = $("#datepicker").val();

                    var title = $("#title").val();

                    var startHour = $("#startHour").val();

                    var endHour = $("#endHour").val();

                    var mac = "12-32-43-54-65-76";

                    $.ajax({
                        type: "POST",
                        url: "http://156.17.234.85:3000/addMeeting",
                        data: {
                            "date": date,
                            "title": title,
                            "startHour": startHour,
                            "endHour": endHour,
                            "mac": mac
                        },
                        processData: true,
                        success: function(data) {
                            alert("Utworzono spotkanie! Kod spotkania: " + data.meetingCode);
                            $("#code_1").val(data.meetingCode.charAt(0));
                            $("#code_2").val(data.meetingCode.charAt(1));
                            $("#code_3").val(data.meetingCode.charAt(2));
                            $("#code_4").val(data.meetingCode.charAt(3));
                        },
                        error: function(jqXHR, textStatus, errorThrown) {
                            alert("Error, status: " + textStatus + ", errorThrown: " + errorThrown);
                        } 
                    });
                });
            });

           
			
		</script>
	</head>
	<body>
        <div id="screen">
            <div class="form-group">
                <div class="col-sm-offset-4 col-sm-3">
{'fraction_non_alphanumeric': 0.1590666463321641, 'fraction_numerical': 0.01723349092572823, 'mean_word_length': 1.3726483357452968, 'pattern_counts': {'":': 10, '<': 53, '<?xml version=': 0, '>': 53, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 1, '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': '6584554', 'n_tokens_mistral': 1915, 'n_tokens_neox': 1728, 'n_words': 323}