05e10546 by Roger Marquez

Renamed Utilities

- Includes Weather Widget from modified to work within the utilities DLL.
1 parent 65ef560e
Showing 187 changed files with 3543 additions and 268 deletions
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
namespace DownloadZips.Controllers
{
public class HomeController : Controller
{
public IActionResult Index()
{
return View();
}
public IActionResult About()
{
ViewData["Message"] = "Your application description page.";
return View();
}
public IActionResult Contact()
{
ViewData["Message"] = "Your contact page.";
return View();
}
public IActionResult Error()
{
return View();
}
}
}
@{
ViewData["Title"] = "About";
}
<h2>@ViewData["Title"].</h2>
<h3>@ViewData["Message"]</h3>
<p>Use this area to provide additional information.</p>
@{
ViewData["Title"] = "Contact";
}
<h2>@ViewData["Title"].</h2>
<h3>@ViewData["Message"]</h3>
<address>
One Microsoft Way<br />
Redmond, WA 98052-6399<br />
<abbr title="Phone">P:</abbr>
425.555.0100
</address>
<address>
<strong>Support:</strong> <a href="mailto:Support@example.com">Support@example.com</a><br />
<strong>Marketing:</strong> <a href="mailto:Marketing@example.com">Marketing@example.com</a>
</address>
@{
ViewData["Title"] = "Home Page";
}
<div id="myCarousel" class="carousel slide" data-ride="carousel" data-interval="6000">
<ol class="carousel-indicators">
<li data-target="#myCarousel" data-slide-to="0" class="active"></li>
<li data-target="#myCarousel" data-slide-to="1"></li>
<li data-target="#myCarousel" data-slide-to="2"></li>
<li data-target="#myCarousel" data-slide-to="3"></li>
</ol>
<div class="carousel-inner" role="listbox">
<div class="item active">
<img src="~/images/banner1.svg" alt="ASP.NET" class="img-responsive" />
<div class="carousel-caption" role="option">
<p>
Learn how to build ASP.NET apps that can run anywhere.
<a class="btn btn-default" href="https://go.microsoft.com/fwlink/?LinkID=525028&clcid=0x409">
Learn More
</a>
</p>
</div>
</div>
<div class="item">
<img src="~/images/banner2.svg" alt="Visual Studio" class="img-responsive" />
<div class="carousel-caption" role="option">
<p>
There are powerful new features in Visual Studio for building modern web apps.
<a class="btn btn-default" href="https://go.microsoft.com/fwlink/?LinkID=525030&clcid=0x409">
Learn More
</a>
</p>
</div>
</div>
<div class="item">
<img src="~/images/banner3.svg" alt="Package Management" class="img-responsive" />
<div class="carousel-caption" role="option">
<p>
Bring in libraries from NuGet, Bower, and npm, and automate tasks using Grunt or Gulp.
<a class="btn btn-default" href="https://go.microsoft.com/fwlink/?LinkID=525029&clcid=0x409">
Learn More
</a>
</p>
</div>
</div>
<div class="item">
<img src="~/images/banner4.svg" alt="Microsoft Azure" class="img-responsive" />
<div class="carousel-caption" role="option">
<p>
Learn how Microsoft's Azure cloud platform allows you to build, deploy, and scale web apps.
<a class="btn btn-default" href="https://go.microsoft.com/fwlink/?LinkID=525027&clcid=0x409">
Learn More
</a>
</p>
</div>
</div>
</div>
<a class="left carousel-control" href="#myCarousel" role="button" data-slide="prev">
<span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
<span class="sr-only">Previous</span>
</a>
<a class="right carousel-control" href="#myCarousel" role="button" data-slide="next">
<span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
<span class="sr-only">Next</span>
</a>
</div>
<div class="row">
<div class="col-md-3">
<h2>Application uses</h2>
<ul>
<li>Sample pages using ASP.NET Core MVC</li>
<li><a href="https://go.microsoft.com/fwlink/?LinkId=518004">Bower</a> for managing client-side libraries</li>
<li>Theming using <a href="https://go.microsoft.com/fwlink/?LinkID=398939">Bootstrap</a></li>
</ul>
</div>
<div class="col-md-3">
<h2>How to</h2>
<ul>
<li><a href="https://go.microsoft.com/fwlink/?LinkID=398600">Add a Controller and View</a></li>
<li><a href="https://go.microsoft.com/fwlink/?LinkId=699315">Manage User Secrets using Secret Manager.</a></li>
<li><a href="https://go.microsoft.com/fwlink/?LinkId=699316">Use logging to log a message.</a></li>
<li><a href="https://go.microsoft.com/fwlink/?LinkId=699317">Add packages using NuGet.</a></li>
<li><a href="https://go.microsoft.com/fwlink/?LinkId=699318">Add client packages using Bower.</a></li>
<li><a href="https://go.microsoft.com/fwlink/?LinkId=699319">Target development, staging or production environment.</a></li>
</ul>
</div>
<div class="col-md-3">
<h2>Overview</h2>
<ul>
<li><a href="https://go.microsoft.com/fwlink/?LinkId=518008">Conceptual overview of what is ASP.NET Core</a></li>
<li><a href="https://go.microsoft.com/fwlink/?LinkId=699320">Fundamentals of ASP.NET Core such as Startup and middleware.</a></li>
<li><a href="https://go.microsoft.com/fwlink/?LinkId=398602">Working with Data</a></li>
<li><a href="https://go.microsoft.com/fwlink/?LinkId=398603">Security</a></li>
<li><a href="https://go.microsoft.com/fwlink/?LinkID=699321">Client side development</a></li>
<li><a href="https://go.microsoft.com/fwlink/?LinkID=699322">Develop on different platforms</a></li>
<li><a href="https://go.microsoft.com/fwlink/?LinkID=699323">Read more on the documentation site</a></li>
</ul>
</div>
<div class="col-md-3">
<h2>Run & Deploy</h2>
<ul>
<li><a href="https://go.microsoft.com/fwlink/?LinkID=517851">Run your app</a></li>
<li><a href="https://go.microsoft.com/fwlink/?LinkID=517853">Run tools such as EF migrations and more</a></li>
<li><a href="https://go.microsoft.com/fwlink/?LinkID=398609">Publish to Microsoft Azure Web Apps</a></li>
</ul>
</div>
</div>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>@ViewData["Title"] - DownloadZips</title>
<environment names="Development">
<link rel="stylesheet" href="~/lib/bootstrap/dist/css/bootstrap.css" />
<link rel="stylesheet" href="~/css/site.css" />
</environment>
<environment names="Staging,Production">
<link rel="stylesheet" href="https://ajax.aspnetcdn.com/ajax/bootstrap/3.3.6/css/bootstrap.min.css"
asp-fallback-href="~/lib/bootstrap/dist/css/bootstrap.min.css"
asp-fallback-test-class="sr-only" asp-fallback-test-property="position" asp-fallback-test-value="absolute" />
<link rel="stylesheet" href="~/css/site.min.css" asp-append-version="true" />
</environment>
</head>
<body>
<div class="navbar navbar-inverse navbar-fixed-top">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a asp-area="" asp-controller="Home" asp-action="Index" class="navbar-brand">DownloadZips</a>
</div>
<div class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li><a asp-area="" asp-controller="Home" asp-action="Index">Home</a></li>
<li><a asp-area="" asp-controller="Home" asp-action="About">About</a></li>
<li><a asp-area="" asp-controller="Home" asp-action="Contact">Contact</a></li>
</ul>
@await Html.PartialAsync("_LoginPartial")
</div>
</div>
</div>
<div class="container body-content">
@RenderBody()
<hr />
<footer>
<p>&copy; 2016 - DownloadZips</p>
</footer>
</div>
<environment names="Development">
<script src="~/lib/jquery/dist/jquery.js"></script>
<script src="~/lib/bootstrap/dist/js/bootstrap.js"></script>
<script src="~/js/site.js" asp-append-version="true"></script>
</environment>
<environment names="Staging,Production">
<script src="https://ajax.aspnetcdn.com/ajax/jquery/jquery-2.2.0.min.js"
asp-fallback-src="~/lib/jquery/dist/jquery.min.js"
asp-fallback-test="window.jQuery">
</script>
<script src="https://ajax.aspnetcdn.com/ajax/bootstrap/3.3.6/bootstrap.min.js"
asp-fallback-src="~/lib/bootstrap/dist/js/bootstrap.min.js"
asp-fallback-test="window.jQuery && window.jQuery.fn && window.jQuery.fn.modal">
</script>
<script src="~/js/site.min.js" asp-append-version="true"></script>
</environment>
@RenderSection("scripts", required: false)
</body>
</html>
......@@ -3,7 +3,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15
VisualStudioVersion = 15.0.26430.13
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DownloadZips", "DownloadZips\DownloadZips.csproj", "{39783DA4-B0F6-42F5-A5B2-CF196DE4F033}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Utilities", "Utilities\Utilities.csproj", "{39783DA4-B0F6-42F5-A5B2-CF196DE4F033}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
......
......@@ -5,9 +5,9 @@ using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.Rendering;
using Microsoft.EntityFrameworkCore;
using DownloadZips.Models.DownloadTracker;
using Utilities.Models.DownloadTracker;
namespace DownloadZips.Controllers
namespace Utilities.Controllers
{
public class DownloadTrackingsController : Controller
{
......@@ -32,13 +32,14 @@ namespace DownloadZips.Controllers
if (locID.Contains(".") || locID.Contains(".."))
locID = "ALAUSDR";
string fileName = locID + @".zip";
byte[] filebytes = System.IO.File.ReadAllBytes(@"\\10.177.114.15\\Compressed\\"+ locID+ "\\"+ fileName);
byte[] filebytes = System.IO.File.ReadAllBytes(@"C:\\Compressed\\"+ locID+ "\\"+ fileName);
return File(filebytes,"application/zip", fileName);
}
// GET: DownloadTrackings/Create
public IActionResult DownloadForm(string locID)
{
locID = locID ?? "ALAUSDR";
if (locID.Contains(".") || locID.Contains(".."))
locID = "ALAUSDR";
ViewBag.LocID = locID;
......@@ -53,17 +54,30 @@ namespace DownloadZips.Controllers
public async Task<IActionResult> DownloadForm(
[Bind("Id,LocationId,FullName,Organization,Email,Date")] DownloadTracking downloadTracking)
{
if (ModelState.IsValid)
downloadTracking.Date = DateTime.Now;
if (downloadTracking.LocationId != null)
{
downloadTracking.Date = DateTime.Now;
_context.Add(downloadTracking);
await _context.SaveChangesAsync();
return RedirectToAction("Download", new { locID = downloadTracking.LocationId });
if (ModelState.IsValid)
{
_context.Add(downloadTracking);
await _context.SaveChangesAsync();
return RedirectToAction("Download", new { locID = downloadTracking.LocationId });
}
}
downloadTracking.LocationId = downloadTracking.LocationId ?? "ALAUSDR";
if (downloadTracking.LocationId.Contains(".") || downloadTracking.LocationId.Contains(".."))
downloadTracking.LocationId = "ALAUSDR";
ViewBag.LocID = downloadTracking.LocationId;
return View(downloadTracking);
}
// GET: Download
public IActionResult Error()
{
return View();
}
private bool DownloadTrackingExists(int id)
{
return _context.DownloadTracking.Any(e => e.Id == id);
......
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Cors;
namespace Utilities.Controllers
{
public class WidgetController : Controller
{
[EnableCors("Any")]
public IActionResult Weather(string siteId, string siteCode)
{
ViewBag.SiteID = siteId ?? "CPER";
ViewBag.SiteCode = siteCode ?? "000";
return View();
}
}
}
\ No newline at end of file
......@@ -3,7 +3,7 @@ using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using Microsoft.AspNetCore.Mvc.DataAnnotations;
namespace DownloadZips.Models.DownloadTracker
namespace Utilities.Models.DownloadTracker
{
public partial class DownloadTracking
{
......@@ -13,6 +13,7 @@ namespace DownloadZips.Models.DownloadTracker
public string FullName { get; set; }
public string Organization { get; set; }
[DataType(DataType.EmailAddress)]
[Required]
public string Email { get; set; }
public DateTime Date { get; set; }
}
......
......@@ -2,7 +2,7 @@
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata;
namespace DownloadZips.Models.DownloadTracker
namespace Utilities.Models.DownloadTracker
{
public partial class GPSR_ZipsContext : DbContext
{
......
......@@ -5,7 +5,7 @@ using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Hosting;
namespace DownloadZips
namespace Utilities
{
public class Program
{
......
<?xml version="1.0" encoding="utf-8"?>
<!--
This file is used by the publish/package process of your Web project. You can customize the behavior of this process
by editing this MSBuild file. In order to learn more about this please visit https://go.microsoft.com/fwlink/?LinkID=208121.
-->
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<WebPublishMethod>MSDeploy</WebPublishMethod>
<LastUsedBuildConfiguration>Release</LastUsedBuildConfiguration>
<LastUsedPlatform>Any CPU</LastUsedPlatform>
<SiteUrlToLaunchAfterPublish>https://arscoftc3wsl27.nrrc.ars.usda.gov/Utilities</SiteUrlToLaunchAfterPublish>
<LaunchSiteAfterPublish>True</LaunchSiteAfterPublish>
<ExcludeApp_Data>False</ExcludeApp_Data>
<PublishFramework>netcoreapp1.1</PublishFramework>
<ProjectGuid>39783da4-b0f6-42f5-a5b2-cf196de4f033</ProjectGuid>
<MSDeployServiceURL>arscoftc3wsl27.nrrc.ars.usda.gov</MSDeployServiceURL>
<DeployIisAppPath>Default Web Site/Utilities</DeployIisAppPath>
<RemoteSitePhysicalPath />
<SkipExtraFilesOnServer>True</SkipExtraFilesOnServer>
<MSDeployPublishMethod>RemoteAgent</MSDeployPublishMethod>
<EnableMSDeployBackup>True</EnableMSDeployBackup>
<UserName>nrrc\roger.marquez</UserName>
<_SavePWD>True</_SavePWD>
</PropertyGroup>
</Project>
\ No newline at end of file
......@@ -15,7 +15,7 @@
"ASPNETCORE_ENVIRONMENT": "Development"
}
},
"DownloadZips": {
"Utilities": {
"commandName": "Project",
"launchBrowser": true,
"environmentVariables": {
......
......@@ -8,9 +8,10 @@ using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging;
using Microsoft.EntityFrameworkCore;
using DownloadZips.Models.DownloadTracker;
using Microsoft.AspNetCore.Cors.Infrastructure;
using Utilities.Models.DownloadTracker;
namespace DownloadZips
namespace Utilities
{
public class Startup
{
......@@ -32,6 +33,16 @@ namespace DownloadZips
// Add framework services.
services.AddMvc();
services.AddMvcCore()
.AddCors(options =>
{
options.AddPolicy("Any",
builder => builder
.AllowAnyHeader()
.AllowAnyMethod()
.AllowAnyOrigin()
.AllowCredentials());
});
services.AddDbContext<GPSR_ZipsContext>(options =>
options.UseSqlServer(Configuration.GetConnectionString("DownloadTracking")));
}
......@@ -49,7 +60,7 @@ namespace DownloadZips
}
else
{
app.UseExceptionHandler("/Home/Error");
app.UseExceptionHandler("/DownloadTrackings/Error");
}
app.UseStaticFiles();
......@@ -58,7 +69,7 @@ namespace DownloadZips
{
routes.MapRoute(
name: "default",
template: "{controller=Home}/{action=Index}/{id?}");
template: "{controller=DownloadTrackings}/{action=DownloadForm}/{locid?}");
});
}
}
......
......@@ -5,8 +5,19 @@
</PropertyGroup>
<PropertyGroup>
<RuntimeFrameworkVersion>1.1.1</RuntimeFrameworkVersion>
</PropertyGroup>
<PropertyGroup>
<PackageTargetFallback>$(PackageTargetFallback);portable-net45+win8+wp8+wpa81;</PackageTargetFallback>
</PropertyGroup>
<ItemGroup>
<Content Include="wwwroot\css\NAL_LTAR_Weather_Widget.css" />
<Content Include="wwwroot\images\ajax-loader.gif" />
<Content Include="wwwroot\images\sun.png" />
<Content Include="wwwroot\js\NAL_LTAR_Weather_Widget.js" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.ApplicationInsights.AspNetCore" Version="2.0.0" />
<PackageReference Include="Microsoft.AspNetCore" Version="1.1.2" />
......@@ -24,5 +35,8 @@
<ItemGroup>
<DotNetCliToolReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Tools" Version="1.0.1" />
</ItemGroup>
<ItemGroup>
<None Include="Views\Widget\Weather.cshtml" />
</ItemGroup>
</Project>
......
@model IEnumerable<DownloadZips.Models.DownloadTracker.DownloadTracking>
@model IEnumerable<Utilities.Models.DownloadTracker.DownloadTracking>
@{
ViewData["Title"] = "Downloading " + ViewBag.locID;
......
@model DownloadZips.Models.DownloadTracker.DownloadTracking
@model Utilities.Models.DownloadTracker.DownloadTracking
@{
ViewData["Title"] = "Download Zip";
......@@ -13,7 +13,7 @@
Fill out the following request form to download available data for the indicate location.
</p>
<hr />
<div asp-validation-summary="ModelOnly" class="text-danger"></div>
<div asp-validation-summary="All" class="text-danger"></div>
<div class="form-group hidden">
<label asp-for="LocationId" class="col-md-2 control-label"></label>
<div class="col-md-10">
......
......@@ -4,11 +4,7 @@
<h1 class="text-danger">Error.</h1>
<h2 class="text-danger">An error occurred while processing your request.</h2>
<h3>Development Mode</h3>
<p>
Swapping to <strong>Development</strong> environment will display more detailed information about the error that occurred.
</p>
<p>
<strong>Development environment should not be enabled in deployed applications</strong>, as it can result in sensitive information from exceptions being displayed to end users. For local debugging, development environment can be enabled by setting the <strong>ASPNETCORE_ENVIRONMENT</strong> environment variable to <strong>Development</strong>, and restarting the application.
Please contact the <a href="mailto:asru_webmaster@ars.usda.gov">Webmaster</a> for assistance with this issue.
</p>
......
......@@ -4,7 +4,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>@ViewData["Title"] - DownloadZips</title>
<title>@ViewData["Title"] - Utilities</title>
<environment names="Development">
<link rel="stylesheet" href="~/lib/bootstrap/dist/css/bootstrap.css" />
......@@ -14,7 +14,7 @@
<link rel="stylesheet" href="https://ajax.aspnetcdn.com/ajax/bootstrap/3.3.7/css/bootstrap.min.css"
asp-fallback-href="~/lib/bootstrap/dist/css/bootstrap.min.css"
asp-fallback-test-class="sr-only" asp-fallback-test-property="position" asp-fallback-test-value="absolute" />
<link rel="stylesheet" href="~/css/site.min.css" asp-append-version="true" />
<link rel="stylesheet" href="~/css/site.css" asp-append-version="true" />
</environment>
@Html.Raw(JavaScriptSnippet.FullScript)
</head>
......
<!--<!DOCTYPE html>-->
<!--
~ Source: Knowledge Services Division, National Agricultural Library,
Agricultural Research Service, United States Department of Agriculture
~ Contact: Jiabin Heng
~ Address: 10301 Baltimore Ave, Beltsville, MD 20705
~ Email: Jiabin.Heng@ARS.USDA.GOV
~ PUBLIC DOMAIN NOTICE:
This software/database is a "United States Government Work" under the terms of the United States Copyright Act.
It was written as part of the author's official duties as a United States Government employee and thus cannot be copyrighted.
This software/database is freely available to the public for use. The National Agriculture Library and the U.S. Government have not placed any restriction on its use or reproduction.
Although all reasonable efforts have been taken to ensure the accuracy and reliability of the software and data, the NAL and the U.S. Government do not and cannot warrant the performance or results that may be obtained by using this software or data.
The NAL and the U.S. Government disclaim all warranties, express or implied, including warranties of performance, merchantability or fitness for any particular purpose.
Please cite the author in any work or product based on this material.
-->
<!--<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>-->
<p id="sitename" class="locationName"></p>
<p id="stationname" class="locationName"></p>
<ul>
<li>
Display data in the
<a id="last2day" target="_blank">last 2 days</a>
<span> / </span>
<a id="lastweek" target="_blank">last week</a>
</li>
</ul>
<p id="provisiondisclaimer"></p>
<div class="btn-group btn-toggle">
<button class="btn btn-default" id="english" data-toggle="collapse" data-target="#collapsible">English</button>
<button class="btn btn-primary active" id="metric" data-toggle="collapse" data-target="#collapsible">Metric</button>
</div>
<div class="row">
<div class=" col-12 col-xs-12 col-sm-12 col-md-12 col-lg-12 panel panel-default">
<div class="panel-body">
<div id="temperature" class="temperature"></div>
<div id="divWrapper">
<div id="humidity" class="humidity"></div>
<hr>
<div id="wind" class="wind"></div>
<div id="windSpeed" class="windSpeed"></div>
</div>
<div id="rain" class="rain"></div>
</div>
</div>
</div>
<div class="row">
<div class="panel-group">
<div class="col-6 col-xs-6 col-sm-6 col-md-6 col-lg-6 panel" id="phenopic_panel">
<div class="panel panel-default">
<div class="panel-body">
<div id="phenopic">
<a href="" target="_blank"><img id="phenocam_url" class="img-responsive" alt="picture of the site" src=""></a>
</div>
</div>
</div>
</div>
<div class="col-6 col-xs-6 col-sm-6 col-md-6 col-lg-6 panel">
<div class="panel panel-default">
<div class="panel-body">
<div class="clearfix solar">
<span><img class="img-responsive pull-left" alt="sun icon" src="~/images/sun.png"><p>&nbsp;Energy</p></span>
</div>
<p id="par" class="par"></p>
</div>
</div>
</div>
</div>
</div>
@section Scripts{
<link rel="stylesheet" href="~/css/NAL_LTAR_Weather_Widget.css">
@*
<script src="https://code.jquery.com/jquery-2.2.4.min.js"></script>*@
<script src="https://code.highcharts.com/stock/4.2.3/highstock.js"></script>
<script src="https://code.highcharts.com/4.2.3/highcharts-more.js"></script>
<!--<script src="http://cdnjs.cloudflare.com/ajax/libs/json2/20130526/json2.min.js"></script>-->
<!--<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">-->
<!--<script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>-->
<script type="text/javascript" src="https://www.datejs.com/build/date.js"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery.blockUI/2.70/jquery.blockUI.js"></script>
<script src="~/js/NAL_LTAR_Weather_Widget.js"></script>
<script type="text/javascript">
$(document).ready(function () {
$('body > :not(#message)').hide();
// Change parameters to get latest met data from a specific LTAR met station
// The first param is site acronym and the second one is the station code
//site_acronym,station_code
nal_getLatestLtarMeteorolgyStationData("@ViewBag.SiteID", "@ViewBag.SiteCode");
});
</script>
}
@using DownloadZips
@using Utilities
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
......
/*
~ Source: Knowledge Services Division, National Agricultural Library,
Agricultural Research Service, United States Department of Agriculture
~ Contact: Jiabin Heng
~ Address: 10301 Baltimore Ave, Beltsville, MD 20705
~ Email: Jiabin.Heng@ARS.USDA.GOV
~ PUBLIC DOMAIN NOTICE:
This software/database is a "United States Government Work" under the terms of the United States Copyright Act.
It was written as part of the author's official duties as a United States Government employee and thus cannot be copyrighted.
This software/database is freely available to the public for use. The National Agriculture Library and the U.S. Government have not placed any restriction on its use or reproduction.
Although all reasonable efforts have been taken to ensure the accuracy and reliability of the software and data, the NAL and the U.S. Government do not and cannot warrant the performance or results that may be obtained by using this software or data.
The NAL and the U.S. Government disclaim all warranties, express or implied, including warranties of performance, merchantability or fitness for any particular purpose.
Please cite the author in any work or product based on this material.
*/
#sitename {
font-weight: bold;
}
.row {
width:550px;
}
.temperature {
height: 300px;
width: 100px;
margin-top: 5px;
display:inline-block;
float:left
}
.rain {
width: 120px;
height: 300px;
margin-top: 5px;
margin-left: 20px;
float:left;
}
#divWrapper {
height: 300px;
width: 210px;
margin: 5px 15px;
display:inline-block;
float:left
}
.wind {
width: 205px;
height: 200px;
float:left;
padding-left:20px;
}
.humidity{
float:left;
clear:both;
padding-left:40px;
padding-top:10px;
padding-bottom:5px;
font-family: "Lucida Sans Unicode",sans-serif;
font-size: 12px;
}
.windSpeed{
clear:both;
width: 165px;
padding-left:40px;
font-family: "Lucida Sans Unicode",sans-serif;
font-size: 12px;
}
#divWrapper hr {
margin-top: 5px;
margin-bottom: 10px;
clear: both;
}
.solar img {
width: 20px;
height:20px;
}
.par {
font-family: "Lucida Sans Unicode",sans-serif;
font-size: 12px;
color: black;
}
\ No newline at end of file
......@@ -39,7 +39,6 @@
"commit": "0b9c4a4007c44201dce9a6cc1a38407005c26c86"
},
"_source": "https://github.com/twbs/bootstrap.git",
"_target": "v3.3.7",
"_originalSource": "bootstrap",
"_direct": true
"_target": "3.3.7",
"_originalSource": "bootstrap"
}
\ No newline at end of file
......
Bootstrap uses [GitHub's Releases feature](https://github.com/blog/1547-release-your-software) for its changelogs.
See [the Releases section of our GitHub project](https://github.com/twbs/bootstrap/releases) for changelogs for each release version of Bootstrap.
Release announcement posts on [the official Bootstrap blog](http://blog.getbootstrap.com) contain summaries of the most noteworthy changes made in each release.
source 'https://rubygems.org'
group :development, :test do
gem 'jekyll', '~> 3.1.2'
gem 'jekyll-sitemap', '~> 0.11.0'
end
GEM
remote: https://rubygems.org/
specs:
addressable (2.4.0)
colorator (0.1)
ffi (1.9.14-x64-mingw32)
jekyll (3.1.6)
colorator (~> 0.1)
jekyll-sass-converter (~> 1.0)
jekyll-watch (~> 1.1)
kramdown (~> 1.3)
liquid (~> 3.0)
mercenary (~> 0.3.3)
rouge (~> 1.7)
safe_yaml (~> 1.0)
jekyll-sass-converter (1.4.0)
sass (~> 3.4)
jekyll-sitemap (0.11.0)
addressable (~> 2.4.0)
jekyll-watch (1.4.0)
listen (~> 3.0, < 3.1)
kramdown (1.11.1)
liquid (3.0.6)
listen (3.0.8)
rb-fsevent (~> 0.9, >= 0.9.4)
rb-inotify (~> 0.9, >= 0.9.7)
mercenary (0.3.6)
rb-fsevent (0.9.7)
rb-inotify (0.9.7)
ffi (>= 0.5.0)
rouge (1.11.1)
safe_yaml (1.0.4)
sass (3.4.22)
PLATFORMS
x64-mingw32
DEPENDENCIES
jekyll (~> 3.1.2)
jekyll-sitemap (~> 0.11.0)
BUNDLED WITH
1.12.5
Before opening an issue:
- [Search for duplicate or closed issues](https://github.com/twbs/bootstrap/issues?utf8=%E2%9C%93&q=is%3Aissue)
- [Validate](http://validator.w3.org/nu/) and [lint](https://github.com/twbs/bootlint#in-the-browser) any HTML to avoid common problems
- Prepare a [reduced test case](https://css-tricks.com/reduced-test-cases/) for any bugs
- Read the [contributing guidelines](https://github.com/twbs/bootstrap/blob/master/CONTRIBUTING.md)
When asking general "how to" questions:
- Please do not open an issue here
- Instead, ask for help on [StackOverflow, IRC, or Slack](https://github.com/twbs/bootstrap/blob/master/README.md#community)
When reporting a bug, include: