-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1,482 changed files
with
459,058 additions
and
16,856 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
107 changes: 91 additions & 16 deletions
107
Angular_Seed_Project/js/plugins/metisMenu/jquery.metisMenu.js
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,45 +1,120 @@ | ||
;(function ($, window, document, undefined) { | ||
/* | ||
* metismenu - v1.1.3 | ||
* Easy menu jQuery plugin for Twitter Bootstrap 3 | ||
* https://github.com/onokumus/metisMenu | ||
* | ||
* Made by Osman Nuri Okumus | ||
* Under MIT License | ||
*/ | ||
;(function($, window, document, undefined) { | ||
|
||
var pluginName = "metisMenu", | ||
defaults = { | ||
toggle: true | ||
toggle: true, | ||
doubleTapToGo: false | ||
}; | ||
|
||
function Plugin(element, options) { | ||
this.element = element; | ||
this.element = $(element); | ||
this.settings = $.extend({}, defaults, options); | ||
this._defaults = defaults; | ||
this._name = pluginName; | ||
this.init(); | ||
} | ||
|
||
Plugin.prototype = { | ||
init: function () { | ||
init: function() { | ||
|
||
var $this = $(this.element), | ||
$toggle = this.settings.toggle; | ||
var $this = this.element, | ||
$toggle = this.settings.toggle, | ||
obj = this; | ||
|
||
$this.find('li.active').has('ul').children('ul').addClass('collapse in'); | ||
$this.find('li').not('.active').has('ul').children('ul').addClass('collapse'); | ||
if (this.isIE() <= 9) { | ||
$this.find("li.active").has("ul").children("ul").collapse("show"); | ||
$this.find("li").not(".active").has("ul").children("ul").collapse("hide"); | ||
} else { | ||
$this.find("li.active").has("ul").children("ul").addClass("collapse in"); | ||
$this.find("li").not(".active").has("ul").children("ul").addClass("collapse"); | ||
} | ||
|
||
//add the "doubleTapToGo" class to active items if needed | ||
if (obj.settings.doubleTapToGo) { | ||
$this.find("li.active").has("ul").children("a").addClass("doubleTapToGo"); | ||
} | ||
|
||
$this.find('li').has('ul').children('a').on('click', function (e) { | ||
$this.find("li").has("ul").children("a").on("click" + "." + pluginName, function(e) { | ||
e.preventDefault(); | ||
|
||
$(this).parent('li').toggleClass('active').children('ul').collapse('toggle'); | ||
//Do we need to enable the double tap | ||
if (obj.settings.doubleTapToGo) { | ||
|
||
//if we hit a second time on the link and the href is valid, navigate to that url | ||
if (obj.doubleTapToGo($(this)) && $(this).attr("href") !== "#" && $(this).attr("href") !== "") { | ||
e.stopPropagation(); | ||
document.location = $(this).attr("href"); | ||
return; | ||
} | ||
} | ||
|
||
$(this).parent("li").toggleClass("active").children("ul").collapse("toggle"); | ||
|
||
if ($toggle) { | ||
$(this).parent('li').siblings().removeClass('active').children('ul.in').collapse('hide'); | ||
$(this).parent("li").siblings().removeClass("active").children("ul.in").collapse("hide"); | ||
} | ||
|
||
}); | ||
}, | ||
|
||
isIE: function() { //https://gist.github.com/padolsey/527683 | ||
var undef, | ||
v = 3, | ||
div = document.createElement("div"), | ||
all = div.getElementsByTagName("i"); | ||
|
||
while ( | ||
div.innerHTML = "<!--[if gt IE " + (++v) + "]><i></i><![endif]-->", | ||
all[0] | ||
) { | ||
return v > 4 ? v : undef; | ||
} | ||
}, | ||
|
||
//Enable the link on the second click. | ||
doubleTapToGo: function(elem) { | ||
var $this = this.element; | ||
|
||
//if the class "doubleTapToGo" exists, remove it and return | ||
if (elem.hasClass("doubleTapToGo")) { | ||
elem.removeClass("doubleTapToGo"); | ||
return true; | ||
} | ||
|
||
//does not exists, add a new class and return false | ||
if (elem.parent().children("ul").length) { | ||
//first remove all other class | ||
$this.find(".doubleTapToGo").removeClass("doubleTapToGo"); | ||
//add the class on the current element | ||
elem.addClass("doubleTapToGo"); | ||
return false; | ||
} | ||
}, | ||
|
||
remove: function() { | ||
this.element.off("." + pluginName); | ||
this.element.removeData(pluginName); | ||
} | ||
|
||
}; | ||
|
||
$.fn[ pluginName ] = function (options) { | ||
return this.each(function () { | ||
if (!$.data(this, "plugin_" + pluginName)) { | ||
$.data(this, "plugin_" + pluginName, new Plugin(this, options)); | ||
$.fn[pluginName] = function(options) { | ||
this.each(function () { | ||
var el = $(this); | ||
if (el.data(pluginName)) { | ||
el.data(pluginName).remove(); | ||
} | ||
el.data(pluginName, new Plugin(this, options)); | ||
}); | ||
return this; | ||
}; | ||
|
||
})(jQuery, window, document); | ||
})(jQuery, window, document); |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
|
||
<head> | ||
|
||
<meta charset="utf-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
|
||
<title>INSPINIA | 404 Error</title> | ||
|
||
<link href="css/bootstrap.min.css" rel="stylesheet"> | ||
<link href="font-awesome/css/font-awesome.css" rel="stylesheet"> | ||
|
||
<link href="css/animate.css" rel="stylesheet"> | ||
<link href="css/style.css" rel="stylesheet"> | ||
|
||
</head> | ||
|
||
<body class="gray-bg"> | ||
|
||
|
||
<div class="middle-box text-center animated fadeInDown"> | ||
<h1>404</h1> | ||
<h3 class="font-bold">Page Not Found</h3> | ||
|
||
<div class="error-desc"> | ||
Sorry, but the page you are looking for has note been found. Try checking the URL for error, then hit the refresh button on your browser or try found something else in our app. | ||
<form class="form-inline m-t" role="form"> | ||
<div class="form-group"> | ||
<input type="text" class="form-control" placeholder="Search for page"> | ||
</div> | ||
<button type="submit" class="btn btn-primary">Search</button> | ||
</form> | ||
</div> | ||
</div> | ||
|
||
</body> | ||
|
||
</html> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
|
||
<head> | ||
|
||
<meta charset="utf-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
|
||
<title>INSPINIA | 404 Error</title> | ||
|
||
<link href="css/bootstrap.min.css" rel="stylesheet"> | ||
<link href="font-awesome/css/font-awesome.css" rel="stylesheet"> | ||
|
||
<link href="css/animate.css" rel="stylesheet"> | ||
<link href="css/style.css" rel="stylesheet"> | ||
|
||
</head> | ||
|
||
<body class="gray-bg"> | ||
|
||
|
||
<div class="middle-box text-center animated fadeInDown"> | ||
<h1>500</h1> | ||
<h3 class="font-bold">Internal Server Error</h3> | ||
|
||
<div class="error-desc"> | ||
The server encountered something unexpected that didn't allow it to complete the request. We apologize.<br/> | ||
You can go back to main page: <br/><a href="index.html" class="btn btn-primary m-t">Dashboard</a> | ||
</div> | ||
</div> | ||
|
||
</body> | ||
|
||
</html> |
Oops, something went wrong.