javascript - SyntaxError with .js and .css - ASP.NET MVC 5 -


when load page can't show errors when use inspector in google chrome have error:

uncaught syntaxerror: unexpected end of input

file: :65200/js/metro.min.js:1

and first line of metro.min.js all of this:

var metro_auto_reinit, metro_locale, metro_week_start, metro_dialog = !1; (function (c) {     c.metro = function (a) {         c.extend({}, a)     };     c.metro.getdevicesize = function () {         return {             width: 0 < window.innerwidth ? window.innerwidth : screen.width,             height: 0 < window.innerheight ? window.innerheight : screen.height         }     } })(jquery); $(function () {     $("html").on("click", function (c) {         $(".dropdown-menu").each(function (a, b) {             $(b).hasclass("keep-open") || "block" != $(b).css("display") || $(b).hide()         })     }) }); 

the .cshtml file have this:

<link href="~/css/metro-bootstrap.css" rel="stylesheet" type="text/css" /> <link href="~/css/metro-bootstrap-responsive.css" rel="stylesheet" type="text/css" /> <link href="~/css/iconfont.min.css" rel="stylesheet" type="text/css" /> <link href="~/css/custom.css" rel="stylesheet" type="text/css" /> 

and:

<script src="~/scripts/jquery-2.1.0.min.js"></script> <script src="~/scripts/jquery-2.1.0.js"></script> <script src="~/scripts/jquery-ui-1.10.4.js"></script> <script src="~/scripts/jquery-ui-1.10.4.min.js"></script> <script src="~/scripts/modernizr-2.7.2.js"></script> <script src="~/js/metro.min.js"></script> 

why can happening?

i'm using bootstrap css: http://metroui.org.ua/

and installed here package manager console:

https://www.nuget.org/packages/metro.ui.css/

that error means have unclosed } brackets ... though seem ok in fragment have supplied though there may missing ; e.g.

$(function () {     $("html").on("click", function (c) {         $(".dropdown-menu").each(function (a, b) {             $(b).hasclass("keep-open") || "block" != $(b).css("display") || $(b).hide()         }); // here     }); // here }); 

Comments

Popular posts from this blog

windows - Single EXE to Install Python Standalone Executable for Easy Distribution -

c# - Access objects in UserControl from MainWindow in WPF -

javascript - How to name a jQuery function to make a browser's back button work? -