Difference between revisions of "Team:BOKU-Vienna/Notebook"

Line 32: Line 32:
 
     }
 
     }
 
      
 
      
   
 
    h2 {
 
      font-family: 'PT Sans Narrow', sans-serif;
 
      font-size: 18px;
 
      font-weight: 700;
 
      margin: 0 0 10px;
 
      text-align: center;
 
    }
 
    button {
 
      position: absolute;
 
      top: -4px;
 
    }
 
    button:first-child {
 
      left: 0;
 
    }
 
    button:last-child {
 
      right: 0;
 
    }
 
    table {
 
      background: #fff;
 
      border-collapse: collapse;
 
      color: #222;
 
      font-family: 'PT Sans', sans-serif;
 
      font-size: 13px;
 
      width: 100%;
 
    }
 
    td {
 
      border: 1px solid #ccc;
 
      color: #444;
 
      line-height: 22px;
 
      text-align: center;
 
    }
 
    tr:first-child td {
 
      color: #222;
 
      font-weight: 700;
 
    }
 
    .selected {
 
      background: #f0951d;
 
      border: 0;
 
      box-shadow: 0 2px 6px rgba(0, 0, 0, .5) inset;
 
    }
 
 
  
 
</style>
 
</style>
 +
<script type="text/javascript" src="https://code.jquery.com/jquery-1.11.3.min.js"></script>
  
 +
<!-- Isolated Version of Bootstrap, not needed if your site already uses Bootstrap -->
 +
<link rel="stylesheet" href="https://formden.com/static/cdn/bootstrap-iso.css" />
 +
 +
<!-- Bootstrap Date-Picker Plugin -->
 +
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datepicker/1.4.1/js/bootstrap-datepicker.min.js"></script>
 +
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datepicker/1.4.1/css/bootstrap-datepicker3.css"/>
  
 
<div id="page-top" data-spy="scroll" data-target=".navbar-fixed-top">
 
<div id="page-top" data-spy="scroll" data-target=".navbar-fixed-top">
Line 130: Line 95:
  
 
     <!-- About Section -->
 
     <!-- About Section -->
 +
<div class="bootstrap-iso">
 +
<div class="container-fluid">
 +
  <div class="row">
 +
  <div class="col-md-6 col-sm-6 col-xs-12">
  
 +
    <!-- Form code begins -->
 +
    <form method="post">
 +
      <div class="form-group"> <!-- Date input -->
 +
        <label class="control-label" for="date">Date</label>
 +
        <input class="form-control" id="date" name="date" placeholder="MM/DD/YYY" type="text"/>
 +
      </div>
 +
      <div class="form-group"> <!-- Submit button -->
 +
        <button class="btn btn-primary " name="submit" type="submit">Submit</button>
 +
      </div>
 +
    </form>
 +
    <!-- Form code ends -->
 +
 +
    </div>
 +
  </div>   
 +
</div>
 +
</div>
  
  
Line 144: Line 129:
  
 
<!---TEST--->
 
<!---TEST--->
<!doctype html>
 
 
 
 
 
<body>
 
 
<div>
 
  <header>
 
    <button>«</button>
 
    <h2>July 2013</h2>
 
    <button>»</button>
 
  </header>
 
<table>
 
  <tr>
 
    <td>S</td>
 
    <td>M</td>
 
    <td>T</td>
 
    <td>W</td>
 
    <td>Th</td>
 
    <td>F</td>
 
    <td>S</td>
 
  </tr>
 
  <tr>
 
    <td></td>
 
    <td></td>
 
    <td>1</td>
 
    <td>2</td>
 
    <td>3</td>
 
    <td>4</td>
 
    <td>5</td>
 
  </tr>
 
  <tr>
 
    <td>6</td>
 
    <td>7</td>
 
    <td>8</td>
 
    <td>9</td>
 
    <td>10</td>
 
    <td>11</td>
 
    <td>12</td>
 
  </tr>
 
  <tr>
 
    <td>13</td>
 
    <td>14</td>
 
    <td>15</td>
 
    <td>16</td>
 
    <td class="selected">17</td>
 
    <td>18</td>
 
    <td>19</td>
 
  </tr>
 
  <tr>
 
    <td>20</td>
 
    <td>21</td>
 
    <td>22</td>
 
    <td>23</td>
 
    <td>24</td>
 
    <td>25</td>
 
    <td>26</td>
 
  </tr>
 
  <tr>
 
    <td>27</td>
 
    <td>28</td>
 
    <td>29</td>
 
    <td>30</td>
 
    <td>31</td>
 
    <td></td>
 
    <td></td>
 
  </tr>
 
</table>
 
</div>
 
 
 
</body>
 
  
 
<!---TEST-->
 
<!---TEST-->
  
 
     </section>
 
     </section>
 
+
<script>
 +
    $(document).ready(function(){
 +
      var date_input=$('input[name="date"]'); //our date input has the name "date"
 +
      var container=$('.bootstrap-iso form').length>0 ? $('.bootstrap-iso form').parent() : "body";
 +
      var options={
 +
        format: 'mm/dd/yyyy',
 +
        container: container,
 +
        todayHighlight: true,
 +
        autoclose: true,
 +
      };
 +
      date_input.datepicker(options);
 +
    })
 +
</script>
 
</html>
 
</html>
  
 
{{BOKU-Vienna-footer}}
 
{{BOKU-Vienna-footer}}

Revision as of 13:30, 11 July 2017

Notebook

V

Notebook.


Our Notebook is still under construction. You can find our protocol for the methods here: Protocol