Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: 23bad309a8
Fetching contributors…

Cannot retrieve contributors at this time

59 lines (48 sloc) 1.876 kb
using System;
using System.ComponentModel;
using System.Reflection;
using System.Web.UI;
using Juice.Framework;
[assembly: System.Web.PreApplicationStartMethod(typeof(Juice.JuiceApp), "Start")]
namespace Juice {
[EditorBrowsable(EditorBrowsableState.Never)]
public static class JuiceApp {
public static void Start() {
//var assembly = Assembly.GetExecutingAssembly();
ScriptManager.ScriptResourceMapping.AddDefinition("amplify",
new ScriptResourceDefinition {
Path = "~/Scripts/amplify.min.js",
DebugPath = "~/Scripts/amplify.js"
}
);
ScriptManager.ScriptResourceMapping.AddDefinition("jquery",
new ScriptResourceDefinition {
Path = "~/Scripts/jquery-1.8.0.min.js",
DebugPath = "~/Scripts/jquery-1.8.0.js",
CdnPath = "http://ajax.googleapis.com/ajax/libs/jquery/1.8.0/jquery.min.js",
CdnDebugPath = "http://ajax.googleapis.com/ajax/libs/jquery/1.8.0/jquery.js",
CdnSupportsSecureConnection = true
}
);
ScriptManager.ScriptResourceMapping.AddDefinition("jquery-ui",
new ScriptResourceDefinition {
Path = "~/Scripts/jquery-ui-1.8.23.min.js",
DebugPath = "~/Scripts/jquery-ui-1.8.23.js",
CdnPath = "http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.23/jquery-ui.min.js",
CdnDebugPath = "http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.23/jquery-ui.js",
CdnSupportsSecureConnection = true
}
);
ScriptManager.ScriptResourceMapping.AddDefinition("juice",
new ScriptResourceDefinition {
Path = "~/Scripts/juice.min.js",
DebugPath = "~/Scripts/juice.js"
}
);
CssManager.CssResourceMapping.AddDefinition("juice-ui", new CssResourceDefinition {
Path = "~/Content/themes/Fresh-Squeezed/jquery-ui-1.8.18.custom.css",
DebugPath = "~/Content/themes/Fresh-Squeezed/jquery-ui-1.8.18.custom.css"
});
}
}
}
Jump to Line
Something went wrong with that request. Please try again.