This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Linq; | |
using System.Web; | |
using Kowitz.Core.Module; | |
using Microsoft.Web.Infrastructure.DynamicModuleHelper; | |
using ZeroProximity.DeviceDetection; | |
using umbraco; | |
using umbraco.cms.businesslogic.template; | |
[assembly: PreApplicationStartMethod(typeof(MobileRewriteModule), "Start")] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function ($, exports) { | |
'use strict'; | |
exports.Site = function (el) { | |
this.el = el; | |
/* Private Methods */ | |
function initSearch() { | |
el.find("#site-search-form").submit(function (e) { | |
var searchInput = $(this).find("input[type='text']"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class SetListItemDataTemplateState | |
{ | |
public void SelectionChanged(dynamic sender, dynamic args) | |
{ | |
var container = sender.ItemContainerGenerator; | |
foreach (var item in args.AddedItems) | |
{ | |
var listItem = container.ContainerFromItem(item); | |
var layout = FrameworkElementExtensions.FindDescendantByName(listItem, "RootLayout"); | |
ExtendedVisualStateManager.GoToElementState(layout, "ToSelected", true); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
define(['./composition', './system', './viewModel'], | |
function (composition, system, viewModel) { | |
var contexts = {}, | |
modalCount = 0; | |
function ensureModalInstance(objOrModuleId) { | |
return system.defer(function (dfd) { | |
if (typeof objOrModuleId == "string") { | |
system.acquire(objOrModuleId).then(function (module) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections; | |
using System.Collections.Generic; | |
using System.Collections.ObjectModel; | |
using System.Data.Entity; | |
using System.Data.Entity.Infrastructure; | |
using System.Linq; | |
using System.Linq.Expressions; | |
using System.Reflection; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var applicationPath = app.Server.MapPath("~/"); | |
var contentBundleBasePath = app.Server.MapPath("~/Content/bundles"); | |
bundles.CreateRecursiveBundles( | |
contentBundleBasePath, | |
applicationPath, | |
contentBundleBasePath); | |
bundles.CreateRecursiveBundles(app.Server.MapPath("~/Views"), applicationPath, applicationPath); | |
bundles.CreateRecursiveBundles(app.Server.MapPath("~/Areas"), applicationPath, applicationPath); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class JsReferenceBundleOrderer : IBundleOrderer | |
{ | |
readonly Regex _referenceRegex = new Regex(@"///\s*<reference\s+path\s*=\s*""(?<filename>.*?)""\s*(?:/>|>)", RegexOptions.Compiled); | |
public IEnumerable<BundleFile> OrderFiles(BundleContext context, IEnumerable<BundleFile> files) | |
{ | |
var bundleFiles = files as List<BundleFile> ?? files.ToList(); | |
var adjacencyGraph = new AdjacencyGraph<string, Edge<string>>(); | |
var topSort = new TopologicalSortAlgorithm<string, Edge<string>>(adjacencyGraph); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Linq; | |
using System.Linq.Expressions; | |
namespace Extensions | |
{ | |
public class PropertyExtension | |
{ | |
public static string GetFor<T>(Expression<Func<T>> propertyNameLambda) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html class="en-us" lang="en"> | |
<head> | |
<title></title> | |
</head> | |
<body> | |
Crash!! | |
<h3><a id="download" name="download">Improved download experience</a></h3> |
OlderNewer