Esempio n. 1
0
        #pragma warning disable 1998
        public async override global::System.Threading.Tasks.Task ExecuteAsync()
        {
#line 4 "C:\Users\Kuba\Desktop\WeatherApp_best\WeatherApp\Pages\UvIndex\ForecastUv.cshtml"

            ViewData["Title"] = "Forecast UV Index";

#line default
#line hidden
            BeginContext(173, 308, true);
            WriteLiteral(@"
<h1>Forecast UV Index</h1>

<ul class=""list-inline"">
		
</ul>
<table id=""model"" class=""table table-striped table-bordered display"" style=""width: 100%"">
	<thead>
	<tr>
		<th>Latitude</th>
		<th>Longitude</th>
		<th>Date</th>
		<th>Value</th>
		<th>Description</th>
	</tr>
	</thead>
	<tbody>
");
            EndContext();
#line 24 "C:\Users\Kuba\Desktop\WeatherApp_best\WeatherApp\Pages\UvIndex\ForecastUv.cshtml"
            foreach (var uv in Model.ForecastUvIndex)
            {
#line default
#line hidden
                BeginContext(532, 17, true);
                WriteLiteral("\t\t\t<tr>\r\n\t\t\t\t<td>");
                EndContext();
                BeginContext(550, 6, false);
#line 27 "C:\Users\Kuba\Desktop\WeatherApp_best\WeatherApp\Pages\UvIndex\ForecastUv.cshtml"
                Write(uv.lat);

#line default
#line hidden
                EndContext();
                BeginContext(556, 15, true);
                WriteLiteral("</td>\r\n\t\t\t\t<td>");
                EndContext();
                BeginContext(572, 6, false);
#line 28 "C:\Users\Kuba\Desktop\WeatherApp_best\WeatherApp\Pages\UvIndex\ForecastUv.cshtml"
                Write(uv.lon);

#line default
#line hidden
                EndContext();
                BeginContext(578, 15, true);
                WriteLiteral("</td>\r\n\t\t\t\t<td>");
                EndContext();
                BeginContext(594, 11, false);
#line 29 "C:\Users\Kuba\Desktop\WeatherApp_best\WeatherApp\Pages\UvIndex\ForecastUv.cshtml"
                Write(uv.date_iso);

#line default
#line hidden
                EndContext();
                BeginContext(605, 15, true);
                WriteLiteral("</td>\r\n\t\t\t\t<td>");
                EndContext();
                BeginContext(621, 8, false);
#line 30 "C:\Users\Kuba\Desktop\WeatherApp_best\WeatherApp\Pages\UvIndex\ForecastUv.cshtml"
                Write(uv.value);

#line default
#line hidden
                EndContext();
                BeginContext(629, 15, true);
                WriteLiteral("</td>\r\n\t\t\t\t<td>");
                EndContext();
                BeginContext(645, 34, false);
#line 31 "C:\Users\Kuba\Desktop\WeatherApp_best\WeatherApp\Pages\UvIndex\ForecastUv.cshtml"
                Write(UvIndexModel.Description(uv.value));

#line default
#line hidden
                EndContext();
                BeginContext(679, 17, true);
                WriteLiteral("</td>\r\n\t\t\t</tr>\r\n");
                EndContext();
#line 33 "C:\Users\Kuba\Desktop\WeatherApp_best\WeatherApp\Pages\UvIndex\ForecastUv.cshtml"
            }

#line default
#line hidden
            BeginContext(701, 23, true);
            WriteLiteral("\t</tbody>\r\n</table>\r\n\r\n");
            EndContext();
            DefineSection("Scripts", async() => {
                BeginContext(743, 3, true);
                WriteLiteral("\r\n\t");
                EndContext();
                BeginContext(746, 275, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("environment", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "c595521d05382cc35fc01e2f21b1a87ef787bd038694", async() => {
                    BeginContext(781, 4, true);
                    WriteLiteral("\r\n\t\t");
                    EndContext();
                    BeginContext(785, 64, false);
                    __tagHelperExecutionContext = __tagHelperScopeManager.Begin("script", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "c595521d05382cc35fc01e2f21b1a87ef787bd039106", async() => {
                    }
                                                                                );
                    __Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.Razor.TagHelpers.UrlResolutionTagHelper>();
                    __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper);
                    __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_0);
                    await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
                    if (!__tagHelperExecutionContext.Output.IsContentModified)
                    {
                        await __tagHelperExecutionContext.SetOutputContentAsync();
                    }
                    Write(__tagHelperExecutionContext.Output);
                    __tagHelperExecutionContext = __tagHelperScopeManager.End();
                    EndContext();
                    BeginContext(849, 4, true);
                    WriteLiteral("\r\n\t\t");
                    EndContext();
                    BeginContext(853, 68, false);
                    __tagHelperExecutionContext = __tagHelperScopeManager.Begin("script", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "c595521d05382cc35fc01e2f21b1a87ef787bd0310431", async() => {
                    }
                                                                                );
                    __Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.Razor.TagHelpers.UrlResolutionTagHelper>();
                    __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper);
                    __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_1);
                    await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
                    if (!__tagHelperExecutionContext.Output.IsContentModified)
                    {
                        await __tagHelperExecutionContext.SetOutputContentAsync();
                    }
                    Write(__tagHelperExecutionContext.Output);
                    __tagHelperExecutionContext = __tagHelperScopeManager.End();
                    EndContext();
                    BeginContext(921, 4, true);
                    WriteLiteral("\r\n\t\t");
                    EndContext();
                    BeginContext(925, 79, false);
                    __tagHelperExecutionContext = __tagHelperScopeManager.Begin("link", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "c595521d05382cc35fc01e2f21b1a87ef787bd0311757", async() => {
                    }
                                                                                );
                    __Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.Razor.TagHelpers.UrlResolutionTagHelper>();
                    __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper);
                    __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_2);
                    __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_3);
                    await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
                    if (!__tagHelperExecutionContext.Output.IsContentModified)
                    {
                        await __tagHelperExecutionContext.SetOutputContentAsync();
                    }
                    Write(__tagHelperExecutionContext.Output);
                    __tagHelperExecutionContext = __tagHelperScopeManager.End();
                    EndContext();
                    BeginContext(1004, 3, true);
                    WriteLiteral("\r\n\t");
                    EndContext();
                }
                                                                            );
                __Microsoft_AspNetCore_Mvc_TagHelpers_EnvironmentTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.EnvironmentTagHelper>();
                __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_EnvironmentTagHelper);
                __Microsoft_AspNetCore_Mvc_TagHelpers_EnvironmentTagHelper.Include = (string)__tagHelperAttribute_4.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_4);
                await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
                if (!__tagHelperExecutionContext.Output.IsContentModified)
                {
                    await __tagHelperExecutionContext.SetOutputContentAsync();
                }
                Write(__tagHelperExecutionContext.Output);
                __tagHelperExecutionContext = __tagHelperScopeManager.End();
                EndContext();
                BeginContext(1021, 3, true);
                WriteLiteral("\r\n\t");
                EndContext();
                BeginContext(1024, 279, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("environment", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "c595521d05382cc35fc01e2f21b1a87ef787bd0314248", async() => {
                    BeginContext(1059, 230, true);
                    WriteLiteral("\r\n\t\t<link rel=\"stylesheet\" type=\"text/css\" href=\"https://cdn.datatables.net/w/bs4/dt-1.10.18/datatables.min.css\" />\r\n\t\t<script type=\"text/javascript\" src=\"https://cdn.datatables.net/w/bs4/dt-1.10.18/datatables.min.js\"></script>\r\n\t");
                    EndContext();
                }
                                                                            );
                __Microsoft_AspNetCore_Mvc_TagHelpers_EnvironmentTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.EnvironmentTagHelper>();
                __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_EnvironmentTagHelper);
                __Microsoft_AspNetCore_Mvc_TagHelpers_EnvironmentTagHelper.Exclude = (string)__tagHelperAttribute_5.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_5);
                await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
                if (!__tagHelperExecutionContext.Output.IsContentModified)
                {
                    await __tagHelperExecutionContext.SetOutputContentAsync();
                }
                Write(__tagHelperExecutionContext.Output);
                __tagHelperExecutionContext = __tagHelperScopeManager.End();
                EndContext();
                BeginContext(1303, 186, true);
                WriteLiteral("\r\n\r\n\t<script>\r\n\t\t$(document).ready(function () {\r\n\t\t\t\t$(\'#model\').DataTable({\r\n\t\t\t\t\t\"processing\": true,\r\n\t\t\t\t\t\"searching\": false,\r\n\t\t\t\t\t\"scrollX\": true\r\n\t\t\t\t});\r\n\t\t\t}\r\n\t\t);\r\n\t</script>\r\n");
                EndContext();
            }
                          );
        }
Esempio n. 2
0
        #pragma warning disable 1998
        public async override global::System.Threading.Tasks.Task ExecuteAsync()
        {
#line 4 "C:\Users\Kuba\Desktop\WeatherApp_best\WeatherApp\Pages\UvIndex\CurrentUv.cshtml"

            ViewData["Title"] = "Current UV Index";

#line default
#line hidden
            BeginContext(168, 31, true);
            WriteLiteral("\r\n<h1>Current UV Index</h1>\r\n\r\n");
            EndContext();
#line 10 "C:\Users\Kuba\Desktop\WeatherApp_best\WeatherApp\Pages\UvIndex\CurrentUv.cshtml"
            if (Model.RequestContent != null)
            {
#line default
#line hidden
                BeginContext(238, 306, true);
                WriteLiteral(@"	<ul class=""list-inline""></ul>
	<table id=""model"" class=""table table-striped table-bordered display"" style=""width: 100%"">
		<thead>
			<tr>
				<th>Latitude</th>
				<th>Longitude</th>
				<th>Date</th>
				<th>Value</th>
				<th>Description</th>
			</tr>
		</thead>
		<tbody>
			<tr>
				<td>"                );
                EndContext();
                BeginContext(545, 22, false);
#line 25 "C:\Users\Kuba\Desktop\WeatherApp_best\WeatherApp\Pages\UvIndex\CurrentUv.cshtml"
                Write(Model.UvIndexModel.lat);

#line default
#line hidden
                EndContext();
                BeginContext(567, 15, true);
                WriteLiteral("</td>\r\n\t\t\t\t<td>");
                EndContext();
                BeginContext(583, 22, false);
#line 26 "C:\Users\Kuba\Desktop\WeatherApp_best\WeatherApp\Pages\UvIndex\CurrentUv.cshtml"
                Write(Model.UvIndexModel.lon);

#line default
#line hidden
                EndContext();
                BeginContext(605, 15, true);
                WriteLiteral("</td>\r\n\t\t\t\t<td>");
                EndContext();
                BeginContext(621, 27, false);
#line 27 "C:\Users\Kuba\Desktop\WeatherApp_best\WeatherApp\Pages\UvIndex\CurrentUv.cshtml"
                Write(Model.UvIndexModel.date_iso);

#line default
#line hidden
                EndContext();
                BeginContext(648, 15, true);
                WriteLiteral("</td>\r\n\t\t\t\t<td>");
                EndContext();
                BeginContext(664, 24, false);
#line 28 "C:\Users\Kuba\Desktop\WeatherApp_best\WeatherApp\Pages\UvIndex\CurrentUv.cshtml"
                Write(Model.UvIndexModel.value);

#line default
#line hidden
                EndContext();
                BeginContext(688, 15, true);
                WriteLiteral("</td>\r\n\t\t\t\t<td>");
                EndContext();
                BeginContext(704, 50, false);
#line 29 "C:\Users\Kuba\Desktop\WeatherApp_best\WeatherApp\Pages\UvIndex\CurrentUv.cshtml"
                Write(UvIndexModel.Description(Model.UvIndexModel.value));

#line default
#line hidden
                EndContext();
                BeginContext(754, 40, true);
                WriteLiteral("</td>\r\n\t\t\t</tr>\r\n\t\t</tbody>\r\n\t</table>\r\n");
                EndContext();
#line 33 "C:\Users\Kuba\Desktop\WeatherApp_best\WeatherApp\Pages\UvIndex\CurrentUv.cshtml"
            }

#line default
#line hidden
            BeginContext(797, 2, true);
            WriteLiteral("\r\n");
            EndContext();
            DefineSection("Scripts", async() => {
                BeginContext(819, 3, true);
                WriteLiteral("\r\n\t");
                EndContext();
                BeginContext(822, 275, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("environment", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "aab022a38c63e584bd4546b704606a8249a95cc28749", async() => {
                    BeginContext(857, 4, true);
                    WriteLiteral("\r\n\t\t");
                    EndContext();
                    BeginContext(861, 64, false);
                    __tagHelperExecutionContext = __tagHelperScopeManager.Begin("script", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "aab022a38c63e584bd4546b704606a8249a95cc29161", async() => {
                    }
                                                                                );
                    __Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.Razor.TagHelpers.UrlResolutionTagHelper>();
                    __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper);
                    __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_0);
                    await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
                    if (!__tagHelperExecutionContext.Output.IsContentModified)
                    {
                        await __tagHelperExecutionContext.SetOutputContentAsync();
                    }
                    Write(__tagHelperExecutionContext.Output);
                    __tagHelperExecutionContext = __tagHelperScopeManager.End();
                    EndContext();
                    BeginContext(925, 4, true);
                    WriteLiteral("\r\n\t\t");
                    EndContext();
                    BeginContext(929, 68, false);
                    __tagHelperExecutionContext = __tagHelperScopeManager.Begin("script", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "aab022a38c63e584bd4546b704606a8249a95cc210486", async() => {
                    }
                                                                                );
                    __Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.Razor.TagHelpers.UrlResolutionTagHelper>();
                    __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper);
                    __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_1);
                    await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
                    if (!__tagHelperExecutionContext.Output.IsContentModified)
                    {
                        await __tagHelperExecutionContext.SetOutputContentAsync();
                    }
                    Write(__tagHelperExecutionContext.Output);
                    __tagHelperExecutionContext = __tagHelperScopeManager.End();
                    EndContext();
                    BeginContext(997, 4, true);
                    WriteLiteral("\r\n\t\t");
                    EndContext();
                    BeginContext(1001, 79, false);
                    __tagHelperExecutionContext = __tagHelperScopeManager.Begin("link", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "aab022a38c63e584bd4546b704606a8249a95cc211813", async() => {
                    }
                                                                                );
                    __Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.Razor.TagHelpers.UrlResolutionTagHelper>();
                    __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper);
                    __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_2);
                    __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_3);
                    await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
                    if (!__tagHelperExecutionContext.Output.IsContentModified)
                    {
                        await __tagHelperExecutionContext.SetOutputContentAsync();
                    }
                    Write(__tagHelperExecutionContext.Output);
                    __tagHelperExecutionContext = __tagHelperScopeManager.End();
                    EndContext();
                    BeginContext(1080, 3, true);
                    WriteLiteral("\r\n\t");
                    EndContext();
                }
                                                                            );
                __Microsoft_AspNetCore_Mvc_TagHelpers_EnvironmentTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.EnvironmentTagHelper>();
                __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_EnvironmentTagHelper);
                __Microsoft_AspNetCore_Mvc_TagHelpers_EnvironmentTagHelper.Include = (string)__tagHelperAttribute_4.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_4);
                await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
                if (!__tagHelperExecutionContext.Output.IsContentModified)
                {
                    await __tagHelperExecutionContext.SetOutputContentAsync();
                }
                Write(__tagHelperExecutionContext.Output);
                __tagHelperExecutionContext = __tagHelperScopeManager.End();
                EndContext();
                BeginContext(1097, 3, true);
                WriteLiteral("\r\n\t");
                EndContext();
                BeginContext(1100, 279, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("environment", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "aab022a38c63e584bd4546b704606a8249a95cc214304", async() => {
                    BeginContext(1135, 230, true);
                    WriteLiteral("\r\n\t\t<link rel=\"stylesheet\" type=\"text/css\" href=\"https://cdn.datatables.net/w/bs4/dt-1.10.18/datatables.min.css\" />\r\n\t\t<script type=\"text/javascript\" src=\"https://cdn.datatables.net/w/bs4/dt-1.10.18/datatables.min.js\"></script>\r\n\t");
                    EndContext();
                }
                                                                            );
                __Microsoft_AspNetCore_Mvc_TagHelpers_EnvironmentTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.EnvironmentTagHelper>();
                __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_EnvironmentTagHelper);
                __Microsoft_AspNetCore_Mvc_TagHelpers_EnvironmentTagHelper.Exclude = (string)__tagHelperAttribute_5.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_5);
                await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
                if (!__tagHelperExecutionContext.Output.IsContentModified)
                {
                    await __tagHelperExecutionContext.SetOutputContentAsync();
                }
                Write(__tagHelperExecutionContext.Output);
                __tagHelperExecutionContext = __tagHelperScopeManager.End();
                EndContext();
                BeginContext(1379, 180, true);
                WriteLiteral("\r\n\r\n\t<script>\r\n\t\t$(document).ready(function () {\r\n\t\t\t$(\'#model\').DataTable({\r\n\t\t\t\t\"processing\": true,\r\n\t\t\t\t\"searching\": false,\r\n\t\t\t\t\"scrollX\": true\r\n\t\t\t});\r\n\t\t}\r\n\t\t);\r\n\t</script>\r\n");
                EndContext();
            }
                          );
        }