get all badges

This commit is contained in:
Tommy Parnell
2015-03-28 09:07:00 -04:00
parent af9bd7ffc9
commit 7b77eeacdc
8 changed files with 38 additions and 10 deletions

View File

@@ -83,6 +83,9 @@
<Content Include="..\..\jquery.UntappedWidget.js">
<Link>Scripts\jquery.UntappedWidget.js</Link>
</Content>
<Content Include="..\..\jquery.UntappedWidget.min.js">
<Link>Scripts\jquery.UntappedWidget.min.js</Link>
</Content>
<Content Include="Content\bootstrap-theme.css" />
<Content Include="Content\bootstrap-theme.min.css" />
<Content Include="Content\bootstrap.css" />
@@ -98,6 +101,10 @@
<Content Include="..\..\jquery.UntappedWidget.less">
<Link>Content\jquery.UntappedWidget.less</Link>
</Content>
<Content Include="..\..\jquery.UntappedWidget.min.js.map">
<Link>Scripts\jquery.UntappedWidget.min.js.map</Link>
<DependentUpon>jquery.UntappedWidget.min.js</DependentUpon>
</Content>
<None Include="Properties\PublishProfiles\f.pubxml" />
<None Include="Scripts\jquery-1.9.1.intellisense.js" />
<Content Include="Scripts\bootstrap.js" />

View File

@@ -2,6 +2,12 @@
@{
Layout = "Views/Shared/_Layout.cshtml";
}
<div class="row" style="margin-top: 10px">
<div class="well">
Simply embed your Untappd profile as a widget into your own website. See docs on <a href="https://github.com/tparnell8/UntappedWidget">Github</a>
</div>
</div>
<div id="target"></div>
@section styles{
<link rel="stylesheet" href="~/Content/jquery.UntappedWidget.min.css" />

View File

@@ -4,7 +4,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>@ViewBag.Title - My ASP.NET Application</title>
<title>Untappd Widget</title>
<link rel="stylesheet" href="~/Content/bootstrap.min.css" />
<link rel="stylesheet" href="~/Content/bootstrap-theme.min.css"/>
<link rel="stylesheet" href="~/Content/Site.css" />
@@ -19,6 +19,7 @@
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="/">Untappd Widget</a>
</div>
<div class="navbar-collapse collapse">
<ul class="nav navbar-nav">
@@ -28,10 +29,9 @@
</div>
<div class="container body-content">
<h1>Awesome</h1>
@RenderBody()
<footer>
<p>&copy; @DateTime.Now.Year - My ASP.NET Application</p>
</footer>
</div>

View File

@@ -38,7 +38,7 @@ namespace UntappedWidgetGenerator
dom[".profile_header"].Css("background-image").ToLower().TrimStart("url".ToCharArray()).TrimStart('(').TrimEnd(')').Trim('\''),
Info = dom[".info h1"].Text(),
Username = dom[".username"].Text(),
Badges = badges.OrderBy(a=>Guid.NewGuid()).Take(17).ToList()
Badges = badges.OrderBy(a=>Guid.NewGuid()).ToList()
};
}