/[projects]/dao/DaoAdresseVedligehold/src/main/webapp/index.html
ViewVC logotype

Diff of /dao/DaoAdresseVedligehold/src/main/webapp/index.html

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2852 by torben, Tue Jan 26 22:24:13 2016 UTC revision 2891 by torben, Sun Jan 31 22:45:03 2016 UTC
# Line 47  function loadTasks() { Line 47  function loadTasks() {
47                                                    
48                          if (entry.state == "STATE_ABORTED")                          if (entry.state == "STATE_ABORTED")
49                                  html += "<br><div style='color: red'>" + entry.errorMessage + "</div>";                                  html += "<br><div style='color: red'>" + entry.errorMessage + "</div>";
50                                    
51                            if (entry.state == "STATE_RUNNING") {
52                                    if (entry.percentCompleted >= 0) {
53                                            var percent = entry.percentCompleted.toFixed(2);
54                                            html += "<div class='progress'>";
55                                            html += "<div class='progress-bar' role='progressbar' aria-valuenow='" + percent + "' aria-valuemin='0' aria-valuemax='100' style='width:" + percent + "%'> " ;
56                                            html +=  percent + "%";
57                                            html += " </div>";
58                                            html += "</div>";
59                                    }
60                            }
61                                                    
62                          html += "<br/><div style='font-size: 8px; margin: 7px;'>" + entry.state + "</div>";                          html += "<br/><div style='font-size: 8px; margin: 7px;'>" + entry.state + "</div>";
63                                                    
# Line 103  $(document).ready( function() { Line 114  $(document).ready( function() {
114                  $('#file').fileinput('upload');                  $('#file').fileinput('upload');
115          });          });
116                    
117            
118            $("#afstandBtn").click( function(){
119                    var dist = $("#afstand_distributor").val();
120                    if (dist == "") {
121                            alert("Du skal vælge distributør");
122                            return;
123                    }
124                    
125                    
126                    $.get("rest/commands/distancecalculation/" + dist);
127                    
128            });
129            
130  });  });
131    
132  </script>        </script>      
# Line 136  $(document).ready( function() { Line 160  $(document).ready( function() {
160        <div class="col-sm-3" id="rightCol" >        <div class="col-sm-3" id="rightCol" >
161          <div class="panel panel-primary">          <div class="panel panel-primary">
162                  <div class="panel-heading">                  <div class="panel-heading">
163                          <h3 class="panel-title">Actions</h3>                          <h3 class="panel-title">Upload File</h3>
164                          </div>                          </div>
165                          <div class="panel-body">                          <div class="panel-body">
166                                                    
# Line 167  $(document).ready( function() { Line 191  $(document).ready( function() {
191                                                                    
192                                                    
193                          </div>                          </div>
194          </div>          </div> <!--  upload panel -->
195        </div>          
196      </div>            <div class="panel panel-primary">
197                    <div class="panel-heading">
198                            <h3 class="panel-title">Afstand anden rute</h3>
199                            </div>
200                            <div class="panel-body">
201                            
202                            
203                              <label for="distributor">Distributør:</label>
204                              <select class="form-control" id="afstand_distributor" name="afstand_distributor">
205                                    <option></option>
206                                <option>BK</option>
207                                <option>DAO</option>
208                              </select>
209                              <br>
210                              
211                              <button class="btn btn-primary" id="afstandBtn">Beregn</button>
212      
213                              
214                            </div>
215                    </div><!-- Afstand-andenrute panel -->
216                            
217            
218            
219          </div><!-- rightcol -->
220        </div> <!-- row -->
221                
222    </div>    </div><!-- body -->
223      
224      
225  </div>  </div>
226        
227    

Legend:
Removed from v.2852  
changed lines
  Added in v.2891

  ViewVC Help
Powered by ViewVC 1.1.20