Add current versions of pages
This commit is contained in:
30
dotnet-user-groups.html
Normal file
30
dotnet-user-groups.html
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<title>.NET Meetup Test Page2 -- Local Address</title>
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
|
<script>
|
||||||
|
var meetupCount = 20;
|
||||||
|
var showMeetupSource = true;
|
||||||
|
</script>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h1>var m = new List<Meetup>(Kind.dotNet, Scope.Planet)</h1>
|
||||||
|
|
||||||
|
<p>This page list events for the set of .NET user group meetups that we found on <a href="http://meetup.com">meetup.com</a>. We hope that you find this list helpful, particularly if you are looking for a local user group. If you would like your group's events listed here (even if not on meetup), please contact us, either by <a href="http://twitter.com/dotnet">twitter</a> or the "Contact" button on the right-hand side of this page.</p>
|
||||||
|
|
||||||
|
<p>You can see the list of user groups that we found on meetup, by taking a look at the <a href="http://www.meetup.com/members/70303802/">dotnet meetup account</a>. We also maintain a much larger list of <a href="https://twitter.com/DotNet/dotnet-user-groups">.NET meetup groups on twitter</a>. Once again, please contact us if your group should be on either of those lists.</p>
|
||||||
|
|
||||||
|
<div id="meetup-table"></div>
|
||||||
|
|
||||||
|
<script src="http://code.jquery.com/jquery-1.11.0.min.js"></script>
|
||||||
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.10.3/moment.min.js"></script>
|
||||||
|
<script src="meetup.js"></script>
|
||||||
|
<link rel="stylesheet" href="http://netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css"/>
|
||||||
|
<script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
<!-- nice example
|
||||||
|
http://meetupgator.appspot.com/#groups=sf-html5,jsmeetup,beerjs,BayNode
|
||||||
|
-->
|
||||||
62
install-dotnet-framework.html
Normal file
62
install-dotnet-framework.html
Normal file
@@ -0,0 +1,62 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en" xmlns="http://www.w3.org/1999/xhtml">
|
||||||
|
<head>
|
||||||
|
<title>Foo site</title>
|
||||||
|
<meta charset="utf-8" />
|
||||||
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
|
<!--
|
||||||
|
__ __ _ _ _ _____ _____
|
||||||
|
\ \ / /__ _ _ __ _ ___| |_ ___ | \ | | ____|_ _|
|
||||||
|
\ V / _ \| | | | / _` |/ _ \ __/ __| | \| | _| | |
|
||||||
|
| | (_) | |_| | | (_| | __/ |_\__ \ _| |\ | |___ | |
|
||||||
|
|_|\___/ \__,_| \__, |\___|\__|___/ (_)_| \_|_____| |_|
|
||||||
|
|___/
|
||||||
|
-->
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
|
||||||
|
<h1>
|
||||||
|
<img src="http://i.microsoft.com/net/images/chrome/net-logo.jpg" />
|
||||||
|
Install the .NET Framework</h1>
|
||||||
|
|
||||||
|
<p>You need to install the .NET Framework to run many apps on Windows. The best versions to install are the .NET Framework 4.6 and the <a href="http://go.microsoft.com/fwlink/?LinkId=330819">.NET Framework 3.5 SP1</a>. Those two versions should run nearly all .NET apps.</p>
|
||||||
|
|
||||||
|
<div class="col-sm-4">
|
||||||
|
<ul id="versions" class="list-group"></ul>
|
||||||
|
</div>
|
||||||
|
<div class="row"></div>
|
||||||
|
|
||||||
|
<p>Developers may want to check out <a href="target-dotnet-platforms.html">Targeting Dotnet Platforms</a> and <a href="targeting-dotnet-versions.html">Targeting .NET Framework Versions</a> to learn more about targeting .NET Framework versions.</p>
|
||||||
|
|
||||||
|
<script src="http://code.jquery.com/jquery-1.11.0.min.js"></script>
|
||||||
|
|
||||||
|
<link rel="stylesheet" href="http://netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css"/>
|
||||||
|
<style>
|
||||||
|
li {font-size: 14pt;}
|
||||||
|
div {font-size: 12pt;}
|
||||||
|
</style>
|
||||||
|
<script>
|
||||||
|
document.title = "Install .NET Framework Versions";
|
||||||
|
$(document).ready(function() {
|
||||||
|
var data;
|
||||||
|
var json = "https://dotnetweb.blob.core.windows.net/platforms/platforms.json";
|
||||||
|
$.support.cors = true;
|
||||||
|
$.getJSON( json, function( d ) {
|
||||||
|
|
||||||
|
data = d;
|
||||||
|
|
||||||
|
$.each(data.platforms, function(key, val)
|
||||||
|
{
|
||||||
|
|
||||||
|
if (val.category == "netfx")
|
||||||
|
{
|
||||||
|
$("#versions").append("<li class=list-group-item><a href=" + val.runtime[0].link + ">" + val.platform + "</a></li>");
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
89
meetup.js
Normal file
89
meetup.js
Normal file
@@ -0,0 +1,89 @@
|
|||||||
|
//requires two variables to be set externally:
|
||||||
|
//var meetupCount = [10];
|
||||||
|
//var showMeetupSource = true;
|
||||||
|
|
||||||
|
$(document).ready(function () {
|
||||||
|
|
||||||
|
var cmLogo = "http://dotnetsocialweb.azurewebsites.net/assets/cm_logo.png";
|
||||||
|
var mLogo = "http://dotnetsocialweb.azurewebsites.net/assets/meetup_logo.png";
|
||||||
|
var dLogo = "http://dotnetsocialweb.azurewebsites.net/assets/net_logo.png"
|
||||||
|
var defaultUrl ="https://twitter.com/DotNet/dotnet-user-groups";
|
||||||
|
var cmBaseUrl ="http://www.communitymegaphone.com";
|
||||||
|
var meetupBaseUrl="http://www.meetup.com/";
|
||||||
|
var host = "http://dotnetsocial.cloudapp.net";
|
||||||
|
//host = "http://localhost:63238/";
|
||||||
|
var requestUrl = host + "/api/meetup?count=" + meetupCount + "&expiry=60";
|
||||||
|
//requestUrl = "http://api.meetup.com/2/events?key=24657261295c237904a6b334343c50&member_id=self&page=" + meetupCount;
|
||||||
|
|
||||||
|
var table ="<div class=table-responsive><table id=meetup-table-table></table></div>";
|
||||||
|
var header ="<thead><th id=event-date>Date</th><th>Event</th><th>Group</th></thead>";
|
||||||
|
var body="<tbody id=meetups><tr id=meetup-loading><td>Loading list of events ...</td></tbody>";
|
||||||
|
|
||||||
|
$("#meetup-table").append(table);
|
||||||
|
$("#meetup-table-table").addClass("table table-hover");
|
||||||
|
$("#meetup-table-table").append(header).append(body);
|
||||||
|
|
||||||
|
$.support.cors = true;
|
||||||
|
$.getJSON(requestUrl, function (data) {
|
||||||
|
var events;
|
||||||
|
if (data.results == null)
|
||||||
|
events = data;
|
||||||
|
else
|
||||||
|
events = data.results;
|
||||||
|
|
||||||
|
if (showMeetupSource)
|
||||||
|
{
|
||||||
|
$("#event-date").after("<th></th>");
|
||||||
|
}
|
||||||
|
|
||||||
|
var renderLink = function (link, text) {
|
||||||
|
var linkString = "<a href=\"" + link + "\">" + text + "</a>";
|
||||||
|
return linkString;
|
||||||
|
};
|
||||||
|
|
||||||
|
var startsWith = function (a, b) {
|
||||||
|
return a.indexOf(b) == 0;
|
||||||
|
};
|
||||||
|
|
||||||
|
$.each(events, function (key, event) {
|
||||||
|
var groupUrl;
|
||||||
|
var groupName;
|
||||||
|
var eventImage;
|
||||||
|
var imageRow = "";
|
||||||
|
|
||||||
|
if (event.group == null) {
|
||||||
|
groupUrl = event.group_url;
|
||||||
|
groupName = event.group_name;
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
groupUrl = meetupBaseUrl + event.group.urlname;
|
||||||
|
groupName = event.group.name;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (showMeetupSource)
|
||||||
|
{
|
||||||
|
if (startsWith(event.event_url,meetupBaseUrl))
|
||||||
|
eventImage = mLogo;
|
||||||
|
else if (startsWith(event.event_url, cmBaseUrl))
|
||||||
|
eventImage = cmLogo;
|
||||||
|
else
|
||||||
|
eventImage = dLogo;
|
||||||
|
|
||||||
|
if (event.event_url == null || event.event_url =="")
|
||||||
|
{
|
||||||
|
event.event_url = defaultUrl;
|
||||||
|
}
|
||||||
|
|
||||||
|
imageRow = $("<td><a href=\""+ groupUrl +"\"><img width=40 src="+ eventImage + "></a></td>");
|
||||||
|
}
|
||||||
|
|
||||||
|
var date = $("<td>" + moment(event.time).format('dddd, MMMM Do YYYY') +"</td>");
|
||||||
|
var eventDesc = $("<td>" + renderLink(event.event_url, event.name) +"</td>");
|
||||||
|
var group = $("<td>" + renderLink(groupUrl, groupName) +"</td>");
|
||||||
|
var row = $("<tr></tr>").append(date).append(imageRow).append(eventDesc).append(group);
|
||||||
|
|
||||||
|
$("#meetups").append(row);
|
||||||
|
});
|
||||||
|
$("#meetup-loading").remove();
|
||||||
|
});
|
||||||
|
});
|
||||||
160
target-dotnet-platforms.html
Normal file
160
target-dotnet-platforms.html
Normal file
@@ -0,0 +1,160 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en" xmlns="http://www.w3.org/1999/xhtml">
|
||||||
|
<head>
|
||||||
|
<title>Foo site</title>
|
||||||
|
<meta charset="utf-8" />
|
||||||
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<!--
|
||||||
|
__ __ _ _ _ _____ _____
|
||||||
|
\ \ / /__ _ _ __ _ ___| |_ ___ | \ | | ____|_ _|
|
||||||
|
\ V / _ \| | | | / _` |/ _ \ __/ __| | \| | _| | |
|
||||||
|
| | (_) | |_| | | (_| | __/ |_\__ \ _| |\ | |___ | |
|
||||||
|
|_|\___/ \__,_| \__, |\___|\__|___/ (_)_| \_|_____| |_|
|
||||||
|
|___/
|
||||||
|
-->
|
||||||
|
|
||||||
|
<h1><img src="http://i.microsoft.com/net/images/chrome/net-logo.jpg"/> Targeting .NET Platforms: Desktop, Server, Cloud and Devices</h1>
|
||||||
|
|
||||||
|
<p class="lead">You can build apps for many platforms and services by downloading .NET Framework targeting packs and SDKs and using them with Visual Studio. Check out the <a href="http://blogs.msdn.com/b/dotnet">.NET Framework blog</a> for information on new releases.</p>
|
||||||
|
|
||||||
|
<p class="lead">The downloads available differ by Visual Studio version. Pick your Visual Studio version by using the buttons below.</p>
|
||||||
|
|
||||||
|
<div id="navigation" class="navigation">
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="platforms">
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<p class="lead">Note: These SDK and .NET Framework downloads may update Visual Studio and the .NET Framework on your machine.</p>
|
||||||
|
|
||||||
|
<script src="http://code.jquery.com/jquery-1.11.0.min.js"></script>
|
||||||
|
<link rel="stylesheet" href="http://netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css"/>
|
||||||
|
<style>
|
||||||
|
td:first-child {width: 40%;}
|
||||||
|
h1 {padding-top: 10px;}
|
||||||
|
td p {font-size: 16px; margin-bottom:2px;}
|
||||||
|
th p {font-size: 16px; margin:0px; font-weight: bold;}
|
||||||
|
</style>
|
||||||
|
<script>
|
||||||
|
document.title = ".NET SDKs and Targeting Packs";
|
||||||
|
$(document).ready(function() {
|
||||||
|
var data;
|
||||||
|
//var json = "https://dotnetweb.blob.core.windows.net/platforms/platforms.json";
|
||||||
|
var json ="platforms.json";
|
||||||
|
$.support.cors = true;
|
||||||
|
$.getJSON( json, function( d ) {
|
||||||
|
|
||||||
|
data = d;
|
||||||
|
generateButtons();
|
||||||
|
initPage("VS2015");
|
||||||
|
});
|
||||||
|
|
||||||
|
function initPage(vs)
|
||||||
|
{
|
||||||
|
$("#platforms").empty();
|
||||||
|
|
||||||
|
$.each(data.platformcategories,function(key,val)
|
||||||
|
{
|
||||||
|
$("#platforms").append("<h2>"+ val.name+"</h2>")
|
||||||
|
generateTable(val.alias, vs,data);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
function generateButtons()
|
||||||
|
{
|
||||||
|
|
||||||
|
$.each(data.vsversions,function(key,val)
|
||||||
|
{
|
||||||
|
$("#navigation").append("<a id="+ val.alias+" class='btn btn-lg btn-default' href=# role=button>"+val.name +"</a>");
|
||||||
|
$("#" + val.alias).click(function()
|
||||||
|
{
|
||||||
|
changeButtonStatus(val.alias);
|
||||||
|
initPage(val.alias)
|
||||||
|
});
|
||||||
|
});
|
||||||
|
$("#" + data.vsversions[data.vsversions.length-1].alias).removeClass("btn-default").addClass("btn-success");
|
||||||
|
}
|
||||||
|
|
||||||
|
function changeButtonStatus(mode)
|
||||||
|
{
|
||||||
|
var modes = ["VS2010","VS2012","VS2013","VS2015"];
|
||||||
|
|
||||||
|
for (var i = 0; i < modes.length;i++)
|
||||||
|
{
|
||||||
|
var id = "#" + modes[i];
|
||||||
|
if (modes[i] == mode && $(id).hasClass("btn-default"))
|
||||||
|
{
|
||||||
|
$(id).removeClass("btn-default").addClass("btn-success");
|
||||||
|
}
|
||||||
|
else if (modes[i] != mode && $(id).hasClass("btn-success"))
|
||||||
|
{
|
||||||
|
$(id).removeClass("btn-success").addClass("btn-default");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function generateTable(category, vs, data )
|
||||||
|
{
|
||||||
|
$("#platforms").append("<table class=table table-striped id="+ category +"><thead id="+ category +"_thead><tr><th><p>Platform</p></th><th><p>Downloads</p></th></tr></thead><tbody id="+ category +"_tbody></tbody></table>");
|
||||||
|
var tbody = "#" + category + "_tbody"
|
||||||
|
$.each(data.platforms,function(key,val)
|
||||||
|
{
|
||||||
|
if (category != val.category)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!((val.includedIn && $.inArray(vs,val.includedIn) >= 0) || (val.supportedBy && $.inArray(vs,val.supportedBy) >=0 )))
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
var row = generateRow(val, vs);
|
||||||
|
$(tbody).append("<tr><td><p><a href=" +val.info+">"+val.platform+"</a></p></td><td>"+ row +"</td></tr>");
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
function generateRow(platform, vs)
|
||||||
|
{
|
||||||
|
var tools = "";
|
||||||
|
if (platform.includedIn && $.inArray(vs,platform.includedIn) >= 0)
|
||||||
|
{
|
||||||
|
var vs_version;
|
||||||
|
for(i = 0; i < data.vsversions.length;i++)
|
||||||
|
{
|
||||||
|
if (data.vsversions[i].alias == vs)
|
||||||
|
{
|
||||||
|
vs_version = data.vsversions[i];
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
tools += "<p>Included in <a href="+ vs_version.download + ">"+ vs_version.name + "</a></p>";
|
||||||
|
}
|
||||||
|
|
||||||
|
var generateText = function(downloads, descName)
|
||||||
|
{
|
||||||
|
descName = descName == null ? "": descName;
|
||||||
|
if (downloads && downloads.length > 0)
|
||||||
|
{
|
||||||
|
for (var i = 0; i < downloads.length; i++)
|
||||||
|
{
|
||||||
|
var title = downloads[i].description ? " title=\x22" + downloads[i].description +"\x22": "";
|
||||||
|
tools += "<p><a" + title +" href=" +downloads[i].link + ">" +downloads[i].name+ " " +descName +"</a></p>";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
generateText(platform.tools);
|
||||||
|
generateText(platform.runtime, "Runtime");
|
||||||
|
|
||||||
|
return tools;
|
||||||
|
}
|
||||||
|
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
Reference in New Issue
Block a user