Last active
December 17, 2015 23:59
-
-
Save johnnyreilly/5693071 to your computer and use it in GitHub Desktop.
Cassette and Asset References
This file contains hidden or 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
// @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(); | |
}); | |
}); |
This file contains hidden or 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
// 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