Skip to content

Commit 7308197

Browse files
demo link correction
1 parent b9ce0c8 commit 7308197

File tree

18 files changed

+202
-36
lines changed

18 files changed

+202
-36
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Add any directories, files, or patterns you don't want to be tracked by version control
2+
3+
/node_modules
4+
/bower_components

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<a href="http://www.bootstrapdash.com/demo/purple-admin-free" target="_blank"><img src="screenshot.jpg"></a>
1+
<a href="http://www.bootstrapdash.com/demo/purple-admin-free/jquery" target="_blank"><img src="screenshot.jpg"></a>
22

33
<h1>PurpleAdmin-Free-Admin-Template</h1>
44
Purple Admin is a free responsive admin template built with Bootstrap 4. The template has colorful, attractive yet simple and elegant design. The template is well crafted, with all the components neatly and carefully designed and arranged within the template.

css/maps/style.css.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

css/style.css

Lines changed: 57 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

index.html

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,9 +267,22 @@ <h6 class="p-3 mb-0 text-center">See all notifications</h6>
267267
</div>
268268
<p>200 Items sold</p>
269269
</div>
270+
<div class="wrapper upgrade-button">
271+
<a href="https://www.bootstrapdash.com/product/purple-bootstrap-4-admin-template/" target="_blank" class="btn btn-lg btn-block purchase-button">Upgrade To Pro</a>
272+
</div>
270273
</nav>
271274
<!-- partial -->
272275
<div class="content-wrapper">
276+
<div class="row purchace-popup">
277+
<div class="col-12">
278+
<span class="d-flex alifn-items-center">
279+
<p>Like what you see? Check out our premium version for more.</p>
280+
<a href="https://github.com/BootstrapDash/PurpleAdmin-Free-Admin-Template" target="_blank" class="btn ml-auto download-button">Download Free Version</a>
281+
<a href="https://www.bootstrapdash.com/product/purple-bootstrap-4-admin-template/" target="_blank" class="btn purchase-button">Upgrade To Pro</a>
282+
<i class="mdi mdi-close popup-dismiss"></i>
283+
</span>
284+
</div>
285+
</div>
273286
<div class="row">
274287
<div class="col-md-4 stretch-card grid-margin">
275288
<div class="card bg-gradient-warning text-white">

js/misc.js

Lines changed: 38 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -10,52 +10,52 @@
1010
//Add active class to nav-link based on url dynamically
1111
//Active class can be hard coded directly in html file also as required
1212
var current = location.pathname.split("/").slice(-1)[0].replace(/^\/|\/$/g, '');
13-
$('.nav li a', sidebar).each(function(){
14-
var $this = $(this);
15-
if(current === "") {
16-
//for root url
17-
if($this.attr('href').indexOf("index.html") !== -1){
18-
$(this).parents('.nav-item').last().addClass('active');
19-
if ($(this).parents('.sub-menu').length) {
20-
$(this).closest('.collapse').addClass('show');
21-
$(this).addClass('active');
22-
}
13+
$('.nav li a', sidebar).each(function() {
14+
var $this = $(this);
15+
if (current === "") {
16+
//for root url
17+
if ($this.attr('href').indexOf("index.html") !== -1) {
18+
$(this).parents('.nav-item').last().addClass('active');
19+
if ($(this).parents('.sub-menu').length) {
20+
$(this).closest('.collapse').addClass('show');
21+
$(this).addClass('active');
2322
}
2423
}
25-
else {
26-
//for other url
27-
if($this.attr('href').indexOf(current) !== -1){
28-
$(this).parents('.nav-item').last().addClass('active');
29-
if ($(this).parents('.sub-menu').length) {
30-
$(this).closest('.collapse').addClass('show');
31-
$(this).addClass('active');
32-
}
24+
} else {
25+
//for other url
26+
if ($this.attr('href').indexOf(current) !== -1) {
27+
$(this).parents('.nav-item').last().addClass('active');
28+
if ($(this).parents('.sub-menu').length) {
29+
$(this).closest('.collapse').addClass('show');
30+
$(this).addClass('active');
3331
}
3432
}
33+
}
3534
})
3635

3736
//Close other submenu in sidebar on opening any
3837

39-
sidebar.on('show.bs.collapse','.collapse', function() {
38+
sidebar.on('show.bs.collapse', '.collapse', function() {
4039
sidebar.find('.collapse.show').collapse('hide');
4140
});
4241

4342

4443
//Change sidebar and content-wrapper height
4544
applyStyles();
45+
4646
function applyStyles() {
4747

4848
//setting content wrapper height
49-
setTimeout(function(){
50-
if(contentWrapper.outerHeight() < (sidebar.outerHeight() - footer.outerHeight())) {
49+
setTimeout(function() {
50+
if (contentWrapper.outerHeight() < (sidebar.outerHeight() - footer.outerHeight())) {
5151
contentWrapper.css({
52-
'min-height':sidebar.outerHeight() - footer.outerHeight()
52+
'min-height': sidebar.outerHeight() - footer.outerHeight()
5353
});
5454
}
5555

56-
if(sidebar.outerHeight() < (contentWrapper.outerHeight() + footer.outerHeight())) {
56+
if (sidebar.outerHeight() < (contentWrapper.outerHeight() + footer.outerHeight())) {
5757
sidebar.css({
58-
'min-height':contentWrapper.outerHeight() + footer.outerHeight()
58+
'min-height': contentWrapper.outerHeight() + footer.outerHeight()
5959
});
6060
}
6161

@@ -70,21 +70,26 @@
7070
//Updating content wrapper height to sidebar height on expanding a menu in sidebar
7171
var clickedItem = $(this);
7272
console.log(clickedItem);
73-
if(clickedItem.attr('aria-expanded') === 'false') {
73+
if (clickedItem.attr('aria-expanded') === 'false') {
7474
var scrollTop = scroller.scrollTop() - 20;
75-
}
76-
else {
75+
} else {
7776
var scrollTop = scroller.scrollTop() - 100;
7877
}
79-
setTimeout(function(){
80-
if(contentWrapper.outerHeight()+ footer.outerHeight()!== sidebar.outerHeight()) {
81-
applyStyles();
82-
scroller.animate({ scrollTop: scrollTop }, 350);
83-
}
78+
setTimeout(function() {
79+
if (contentWrapper.outerHeight() + footer.outerHeight() !== sidebar.outerHeight()) {
80+
applyStyles();
81+
scroller.animate({
82+
scrollTop: scrollTop
83+
}, 350);
84+
}
8485
}, 400);
8586
});
8687

8788
//checkbox and radios
8889
$(".form-check label,.form-radio label").append('<i class="input-helper"></i>');
90+
91+
$(".purchace-popup .popup-dismiss").on("click",function(){
92+
$(".purchace-popup").slideToggle();
93+
});
8994
});
90-
})(jQuery);
95+
})(jQuery);

pages/charts/chartjs.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,9 @@ <h6 class="p-3 mb-0 text-center">See all notifications</h6>
266266
</div>
267267
<p>200 Items sold</p>
268268
</div>
269+
<div class="wrapper upgrade-button">
270+
<a href="https://www.bootstrapdash.com/product/purple-bootstrap-4-admin-template/" target="_blank" class="btn btn-lg btn-block purchase-button">Upgrade To Pro</a>
271+
</div>
269272
</nav>
270273
<!-- partial -->
271274
<div class="content-wrapper">

pages/forms/basic_elements.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,9 @@ <h6 class="p-3 mb-0 text-center">See all notifications</h6>
269269
</div>
270270
<p>200 Items sold</p>
271271
</div>
272+
<div class="wrapper upgrade-button">
273+
<a href="https://www.bootstrapdash.com/product/purple-bootstrap-4-admin-template/" target="_blank" class="btn btn-lg btn-block purchase-button">Upgrade To Pro</a>
274+
</div>
272275
</nav>
273276
<!-- partial -->
274277
<div class="content-wrapper">

pages/icons/font-awesome.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,9 @@ <h6 class="p-3 mb-0 text-center">See all notifications</h6>
267267
</div>
268268
<p>200 Items sold</p>
269269
</div>
270+
<div class="wrapper upgrade-button">
271+
<a href="https://www.bootstrapdash.com/product/purple-bootstrap-4-admin-template/" target="_blank" class="btn btn-lg btn-block purchase-button">Upgrade To Pro</a>
272+
</div>
270273
</nav>
271274
<!-- partial -->
272275
<div class="content-wrapper">

pages/samples/blank-page.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,9 @@ <h6 class="p-3 mb-0 text-center">See all notifications</h6>
265265
</div>
266266
<p>200 Items sold</p>
267267
</div>
268+
<div class="wrapper upgrade-button">
269+
<a href="https://www.bootstrapdash.com/product/purple-bootstrap-4-admin-template/" target="_blank" class="btn btn-lg btn-block purchase-button">Upgrade To Pro</a>
270+
</div>
268271
</nav>
269272
<!-- partial -->
270273
<div class="content-wrapper">

0 commit comments

Comments
 (0)