| |
| package views.html.climate |
| |
| import play.templates._ |
| import play.templates.TemplateMagic._ |
| |
| import play.api.templates._ |
| import play.api.templates.PlayMagic._ |
| import models._ |
| import controllers._ |
| import java.lang._ |
| import java.util._ |
| import scala.collection.JavaConversions._ |
| import scala.collection.JavaConverters._ |
| import play.api.i18n._ |
| import play.core.j.PlayMagicForJava._ |
| import play.mvc._ |
| import play.data._ |
| import play.api.data.Field |
| import play.mvc.Http.Context.Implicit._ |
| import views.html._ |
| /******************************************************************************* |
| * Licensed to the Apache Software Foundation (ASF) under one or more * |
| * contributor license agreements. See the NOTICE file distributed with * |
| * this work for additional information regarding copyright ownership. * |
| * The ASF licenses this file to You under the Apache License, Version 2.0 * |
| * (the "License"); you may not use this file except in compliance with * |
| * the License. You may obtain a copy of the License at * |
| * * |
| * http://www.apache.org/licenses/LICENSE-2.0 * |
| * * |
| * Unless required by applicable law or agreed to in writing, software * |
| * distributed under the License is distributed on an "AS IS" BASIS, * |
| * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * |
| * See the License for the specific language governing permissions and * |
| * limitations under the License. * |
| *******************************************************************************/ |
| object datasetTime extends BaseScalaTemplate[play.api.templates.HtmlFormat.Appendable,Format[play.api.templates.HtmlFormat.Appendable]](play.api.templates.HtmlFormat) with play.api.templates.Template1[String,play.api.templates.HtmlFormat.Appendable] { |
| |
| /******************************************************************************* |
| * Licensed to the Apache Software Foundation (ASF) under one or more * |
| * contributor license agreements. See the NOTICE file distributed with * |
| * this work for additional information regarding copyright ownership. * |
| * The ASF licenses this file to You under the Apache License, Version 2.0 * |
| * (the "License"); you may not use this file except in compliance with * |
| * the License. You may obtain a copy of the License at * |
| * * |
| * http://www.apache.org/licenses/LICENSE-2.0 * |
| * * |
| * Unless required by applicable law or agreed to in writing, software * |
| * distributed under the License is distributed on an "AS IS" BASIS, * |
| * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * |
| * See the License for the specific language governing permissions and * |
| * limitations under the License. * |
| *******************************************************************************/ |
| def apply/*18.2*/(message: String):play.api.templates.HtmlFormat.Appendable = { |
| _display_ { |
| def /*20.2*/scripts/*20.9*/:play.api.templates.HtmlFormat.Appendable = {_display_( |
| |
| Seq[Any](format.raw/*20.13*/(""" |
| |
| <script type="text/javascript" src='"""),_display_(Seq[Any](/*22.38*/routes/*22.44*/.Assets.at("javascripts/dataList1.js"))),format.raw/*22.82*/("""'></script> |
| <script type="text/javascript"> |
| window.onload = function() """),format.raw/*24.29*/("""{"""),format.raw/*24.30*/(""" |
| var table = document.getElementById("myTable"); |
| var obj = new Object(); |
| for (var group in dataList) """),format.raw/*27.31*/("""{"""),format.raw/*27.32*/(""" |
| for (var dataset in dataList[group][2]) """),format.raw/*28.44*/("""{"""),format.raw/*28.45*/(""" |
| var row = table.insertRow(1); |
| var groupName = row.insertCell(0); |
| var name = row.insertCell(1); |
| var startTime = row.insertCell(2); |
| var endTime = row.insertCell(3); |
| |
| groupName.innerHTML = group; |
| name.innerHTML = dataset; |
| startTime.innerHTML = dataList[group][2][dataset][0]; |
| endTime.innerHTML = dataList[group][2][dataset][1]; |
| |
| obj[group + "_" + dataset] = [dataList[group][2][dataset][0],dataList[group][2][dataset][1]]; |
| """),format.raw/*41.4*/("""}"""),format.raw/*41.5*/(""" |
| """),format.raw/*42.3*/("""}"""),format.raw/*42.4*/(""" |
| document.getElementById("demo").innerHTML = Object.keys(obj).length + " Datasets"; |
| """),format.raw/*44.2*/("""}"""),format.raw/*44.3*/(""" |
| </script> |
| """)))}; |
| Seq[Any](format.raw/*18.19*/(""" |
| |
| """),format.raw/*46.2*/(""" |
| |
| """),_display_(Seq[Any](/*48.2*/main("Dataset Time", scripts)/*48.31*/ {_display_(Seq[Any](format.raw/*48.33*/(""" |
| |
| <h1>Dataset Time</h1> |
| |
| <h4 id="demo"></h4> |
| |
| <table class="table table-striped table-bordered table-condensed" id="myTable"> |
| <tbody> |
| <tr> |
| <th class="col-md-3">Dataset Name</th> |
| <th class="col-md-3">Variable Name</th> |
| <th class="col-md-3">Start Time</th> |
| <th class="col-md-3">End Time</th> |
| </tr> |
| </tbody> |
| </table> |
| |
| |
| """)))})))} |
| } |
| |
| def render(message:String): play.api.templates.HtmlFormat.Appendable = apply(message) |
| |
| def f:((String) => play.api.templates.HtmlFormat.Appendable) = (message) => apply(message) |
| |
| def ref: this.type = this |
| |
| } |
| /* |
| -- GENERATED -- |
| DATE: Fri Sep 04 16:33:49 PDT 2015 |
| SOURCE: /Users/mingqi/git/ApacheCMDA-Frontend/app/views/climate/datasetTime.scala.html |
| HASH: 0abae112b32d82a4d4706377284d4f24e4911d3f |
| MATRIX: 3183->1205|3278->1226|3293->1233|3378->1237|3453->1276|3468->1282|3528->1320|3628->1392|3657->1393|3793->1501|3822->1502|3894->1546|3923->1547|4452->2049|4480->2050|4510->2053|4538->2054|4652->2141|4680->2142|4732->1222|4762->2154|4800->2157|4838->2186|4878->2188 |
| LINES: 56->18|58->20|58->20|60->20|62->22|62->22|62->22|64->24|64->24|67->27|67->27|68->28|68->28|81->41|81->41|82->42|82->42|84->44|84->44|87->18|89->46|91->48|91->48|91->48 |
| -- GENERATED -- |
| */ |
| |