Skip to content

Instantly share code, notes, and snippets.

@johnnyreilly
Last active December 17, 2015 23:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save johnnyreilly/5693071 to your computer and use it in GitHub Desktop.
Save johnnyreilly/5693071 to your computer and use it in GitHub Desktop.
Cassette and Asset References
// @reference ~/bundles/core
$(document).ready(function () {
var $body = $("#body");
$body.fadeOut(1000, function() {
$body.html(
'<div style="width: 150px; margin: 0 auto;">'+
'I made it all go away...</div>')
.fadeIn();
});
});
// A bundle of the core scripts that will likely be used on every page of the app
bundles.Add<ScriptBundle>("~/bundles/core",
new[]
{
"~/Scripts/jquery-1.8.2.js",
"~/Scripts/jquery-ui-1.8.24.js"
});
// Validation scripts; only likely necessary on data entry screens
bundles.Add<ScriptBundle>("~/bundles/validate",
new[]
{
"~/Scripts/jquery.validate.js",
"~/Scripts/jquery.validate.unobtrusive.js"
},
bundle => bundle.AddReference("~/bundles/core")
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment