Skip to content

Commit 4c901f0

Browse files
author
Rafael J. Staib
committed
Add more examples
1 parent 5e7323f commit 4c901f0

16 files changed

+288
-69
lines changed

JSteps.v11.suo

-71.5 KB
Binary file not shown.

JSteps/Content/examples.css

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -325,4 +325,32 @@
325325
.tabcontrol > .content > .body ul > li
326326
{
327327
display: list-item;
328+
}
329+
330+
@media (max-width: 600px)
331+
{
332+
.wizard > .steps > ul > li
333+
{
334+
width: 50%;
335+
}
336+
337+
.wizard > .steps a,
338+
.wizard > .steps a:hover,
339+
.wizard > .steps a:active
340+
{
341+
margin-top: 0.5em;
342+
}
343+
344+
.wizard > .content > .body
345+
{
346+
width: auto;
347+
}
348+
}
349+
350+
@media (max-width: 480px)
351+
{
352+
.wizard > .steps > ul > li
353+
{
354+
width: 100%;
355+
}
328356
}

JSteps/Controllers/ExamplesController.cs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
using System;
22
using System.Collections.Generic;
33
using System.Linq;
4+
using System.Threading.Tasks;
45
using System.Web;
56
using System.Web.Mvc;
67

@@ -13,5 +14,17 @@ public ActionResult Index()
1314
{
1415
return View();
1516
}
17+
18+
public async Task<ActionResult> AsyncContent()
19+
{
20+
await Task.Delay(2000);
21+
22+
return Json(new { title = "Async", content = "Async Result " + DateTime.UtcNow.ToString() });
23+
}
24+
25+
public ActionResult EmbeddedContent()
26+
{
27+
return View();
28+
}
1629
}
1730
}

JSteps/JSteps.csproj

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,14 @@
1313
<AppDesignerFolder>Properties</AppDesignerFolder>
1414
<RootNamespace>JSteps</RootNamespace>
1515
<AssemblyName>JSteps</AssemblyName>
16-
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
16+
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
1717
<MvcBuildViews>false</MvcBuildViews>
1818
<UseIISExpress>true</UseIISExpress>
1919
<IISExpressSSLPort />
2020
<IISExpressAnonymousAuthentication />
2121
<IISExpressWindowsAuthentication />
2222
<IISExpressUseClassicPipelineMode />
23+
<TargetFrameworkProfile />
2324
</PropertyGroup>
2425
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
2526
<DebugSymbols>true</DebugSymbols>
@@ -29,6 +30,7 @@
2930
<DefineConstants>DEBUG;TRACE</DefineConstants>
3031
<ErrorReport>prompt</ErrorReport>
3132
<WarningLevel>4</WarningLevel>
33+
<Prefer32Bit>false</Prefer32Bit>
3234
</PropertyGroup>
3335
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
3436
<DebugType>pdbonly</DebugType>
@@ -37,22 +39,21 @@
3739
<DefineConstants>TRACE</DefineConstants>
3840
<ErrorReport>prompt</ErrorReport>
3941
<WarningLevel>4</WarningLevel>
42+
<Prefer32Bit>false</Prefer32Bit>
4043
</PropertyGroup>
4144
<ItemGroup>
4245
<Reference Include="Microsoft.CSharp" />
4346
<Reference Include="System" />
4447
<Reference Include="System.Data" />
48+
<Reference Include="System.Data.DataSetExtensions" />
4549
<Reference Include="System.Data.Entity" />
4650
<Reference Include="System.Drawing" />
4751
<Reference Include="System.Web.DynamicData" />
4852
<Reference Include="System.Web.Entity" />
4953
<Reference Include="System.Web.ApplicationServices" />
5054
<Reference Include="System.ComponentModel.DataAnnotations" />
51-
<Reference Include="System.Core" />
52-
<Reference Include="System.Data.DataSetExtensions" />
53-
<Reference Include="System.Xml.Linq" />
54-
<Reference Include="System.Web" />
5555
<Reference Include="System.Web.Extensions" />
56+
<Reference Include="System.Web" />
5657
<Reference Include="System.Web.Abstractions" />
5758
<Reference Include="System.Web.Routing" />
5859
<Reference Include="System.Xml" />
@@ -116,6 +117,7 @@
116117
<Private>True</Private>
117118
<HintPath>..\packages\Microsoft.AspNet.WebPages.2.0.20710.0\lib\net40\System.Web.WebPages.Razor.dll</HintPath>
118119
</Reference>
120+
<Reference Include="System.Xml.Linq" />
119121
<Reference Include="WebGrease">
120122
<Private>True</Private>
121123
<HintPath>..\packages\WebGrease.1.3.0\lib\WebGrease.dll</HintPath>
@@ -204,6 +206,7 @@
204206
<Content Include="Scripts\jquery.steps.min.js.map">
205207
<DependentUpon>jquery.steps.js</DependentUpon>
206208
</Content>
209+
<Content Include="Views\Examples\EmbeddedContent.cshtml" />
207210
</ItemGroup>
208211
<PropertyGroup>
209212
<VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">10.0</VisualStudioVersion>
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
@{
2+
Layout = null;
3+
ViewBag.Title = "EmbeddedContent";
4+
}
5+
6+
<!DOCTYPE html>
7+
<html lang="en">
8+
<head>
9+
<title>Embedded Content Example</title>
10+
<meta charset="utf-8">
11+
<meta name="robots" content="noindex, nofollow">
12+
</head>
13+
<body>
14+
<h1>Embedded Content Example</h1>
15+
<p>Content goes here!</p>
16+
</body>
17+
</html>

0 commit comments

Comments
 (0)