Skip to content

Commit

Permalink
Add Inspinia 1.6.
Browse files Browse the repository at this point in the history
  • Loading branch information
taschetto committed Dec 2, 2014
1 parent 9942a8e commit 492611c
Show file tree
Hide file tree
Showing 1,482 changed files with 459,058 additions and 16,856 deletions.
417 changes: 286 additions & 131 deletions Angular_Seed_Project/css/bootstrap.css

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions Angular_Seed_Project/css/bootstrap.min.css

Large diffs are not rendered by default.

492 changes: 486 additions & 6 deletions Angular_Seed_Project/css/style.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion Angular_Seed_Project/css/style.min.css

Large diffs are not rendered by default.

518 changes: 340 additions & 178 deletions Angular_Seed_Project/js/bootstrap/bootstrap.js

Large diffs are not rendered by default.

5 changes: 3 additions & 2 deletions Angular_Seed_Project/js/bootstrap/bootstrap.min.js

Large diffs are not rendered by default.

107 changes: 91 additions & 16 deletions Angular_Seed_Project/js/plugins/metisMenu/jquery.metisMenu.js
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);
39 changes: 39 additions & 0 deletions Angular_version/404.html
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>
34 changes: 34 additions & 0 deletions Angular_version/500.html
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>
Loading

0 comments on commit 492611c

Please sign in to comment.