Skip to content

Commit

Permalink
Merge pull request #54 from creativetimofficial/dev-main
Browse files Browse the repository at this point in the history
refactor: update nepcha scripts
  • Loading branch information
groovemen authored May 8, 2023
2 parents 74e9e6a + d6e04e4 commit 67f79c9
Show file tree
Hide file tree
Showing 18 changed files with 193 additions and 69 deletions.
20 changes: 19 additions & 1 deletion assets/css/soft-ui-dashboard.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions assets/css/soft-ui-dashboard.css.map

Large diffs are not rendered by default.

20 changes: 19 additions & 1 deletion assets/css/soft-ui-dashboard.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

35 changes: 24 additions & 11 deletions assets/js/soft-ui-dashboard.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
// =========================================================
// Soft UI Dashboard - v1.0.7
// =========================================================

// Product Page: https://www.creative-tim.com/product/soft-ui-dashboard
// Copyright 2023 Creative Tim (https://www.creative-tim.com)
// Licensed under MIT (https://github.com/creativetimofficial/soft-ui-dashboard/blob/main/LICENSE)

// Coded by www.creative-tim.com

// =========================================================

// The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

"use strict";
(function() {
var isWindows = navigator.platform.indexOf('Win') > -1 ? true : false;
Expand Down Expand Up @@ -398,24 +412,23 @@ function toggleSidenav() {

// Resize navbar color depends on configurator active type of sidenav

if (document.querySelector('[data-class]')) {
let referenceButtons = document.querySelector('[data-class]');
let referenceButtons = document.querySelector('[data-class]');

window.addEventListener("resize", navbarColorOnResize);
window.addEventListener("resize", navbarColorOnResize);

function navbarColorOnResize() {
if (window.innerWidth > 1200) {
if (referenceButtons.classList.contains('active') && referenceButtons.getAttribute('data-class') === 'bg-transparent') {
sidenav.classList.remove('bg-white');
} else {
sidenav.classList.add('bg-white');
}
function navbarColorOnResize() {
if (window.innerWidth > 1200) {
if (referenceButtons.classList.contains('active') && referenceButtons.getAttribute('data-class') === 'bg-transparent') {
sidenav.classList.remove('bg-white');
} else {
sidenav.classList.add('bg-white');
sidenav.classList.remove('bg-transparent');
}
} else {
sidenav.classList.add('bg-white');
sidenav.classList.remove('bg-transparent');
}
}

// Deactivate sidenav type buttons on resize and small screens
window.addEventListener("resize", sidenavTypeOnResize);
window.addEventListener("load", sidenavTypeOnResize);
Expand Down
2 changes: 1 addition & 1 deletion assets/js/soft-ui-dashboard.js.map

Large diffs are not rendered by default.

15 changes: 14 additions & 1 deletion assets/js/soft-ui-dashboard.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion assets/scss/soft-ui-dashboard.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// =========================================================
//
// * Product Page: https://www.creative-tim.com/product/soft-ui-dashboard
// * Copyright 2022 Creative Tim (https://www.creative-tim.com)
// * Copyright 2023 Creative Tim (https://www.creative-tim.com)
//
// Coded by www.creative-tim.com
//
Expand Down
2 changes: 1 addition & 1 deletion assets/scss/soft-ui-dashboard/theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
=========================================================
* Product Page: https://www.creative-tim.com/product/soft-ui-dashboard
* Copyright 2022 Creative Tim (https://www.creative-tim.com)
* Copyright 2023 Creative Tim (https://www.creative-tim.com)
* Licensed under MIT (site.license)
* Coded by www.creative-tim.com
Expand Down
5 changes: 4 additions & 1 deletion docs/documentation.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@
<link href="../assets/css/nucleo-svg.css" rel="stylesheet" />
<!-- CSS Files -->
<link id="pagestyle" href="../assets/css/soft-ui-dashboard.css?v=1.0.7" rel="stylesheet" />
<!-- Nepcha Analytics (nepcha.com) -->
<!-- Nepcha is a easy-to-use web analytics. No cookies and fully compliant with GDPR, CCPA and PECR. -->
<script defer data-site="YOUR_DOMAIN_HERE" src="https://api.nepcha.com/js/nepcha-analytics.js"></script>
</head>

<body class="offline-doc">
Expand All @@ -41,7 +44,7 @@ <h6 class="font-weight-bolder mb-0">Documentation</h6>
</div>
<ul class="navbar-nav justify-content-end">
<li class="nav-item d-flex align-items-center">
<a class="btn btn-outline-primary btn-sm mb-0 me-3" target="_blank" href="https://www.creative-tim.com/builder/soft-ui?ref=navbar-dashboard">Online Builder</a>
<a class="btn btn-outline-primary btn-sm mb-0 me-3" target="_blank" href="https://www.creative-tim.com/builder?ref=navbar-soft-ui-dashboard">Online Builder</a>
</li>
<li class="nav-item d-flex align-items-center">
<a href="javascript:;" class="nav-link text-body font-weight-bold px-0">
Expand Down
125 changes: 92 additions & 33 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@



<!--
=========================================================
* Soft UI Dashboard - v1.0.7
=========================================================
* Product Page: https://www.creative-tim.com/product/soft-ui-dashboard
* Copyright 2022 Creative Tim (https://www.creative-tim.com)
* Copyright 2023 Creative Tim (https://www.creative-tim.com)
* Licensed under MIT (https://www.creative-tim.com/license)
* Coded by Creative Tim
Expand All @@ -17,39 +20,95 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="apple-touch-icon" sizes="76x76" href="./assets/img/apple-icon.png">
<link rel="icon" type="image/png" href="./assets/img/favicon.png">
<title>
Soft UI Dashboard by Creative Tim
</title>
<!-- Fonts and icons -->
<link href="https://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700" rel="stylesheet" />

<!-- Nucleo Icons -->
<link href="./assets/css/nucleo-icons.css" rel="stylesheet" />
<link href="./assets/css/nucleo-svg.css" rel="stylesheet" />

<!-- Font Awesome Icons -->
<script src="https://kit.fontawesome.com/42d5adcbca.js" crossorigin="anonymous"></script>
<link href="./assets/css/nucleo-svg.css" rel="stylesheet" />

<!-- CSS Files -->
<link id="pagestyle" href="./assets/css/soft-ui-dashboard.css?v=1.0.7" rel="stylesheet" />

<!-- Nepcha Analytics (nepcha.com) -->
<!-- Nepcha is a easy-to-use web analytics. No cookies and fully compliant with GDPR, CCPA and PECR. -->
<script defer data-site="YOUR_DOMAIN_HERE" src="https://api.nepcha.com/js/nepcha-analytics.js"></script>














<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">

<link rel="apple-touch-icon" sizes="76x76" href="./assets/img/apple-icon.png">
<link rel="icon" type="image/png" href="./assets/img/favicon.png">

<title>

Soft UI Dashboard by Creative Tim





</title>



<!-- Fonts and icons -->
<link href="https://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700" rel="stylesheet" />

<!-- Nucleo Icons -->
<link href="./assets/css/nucleo-icons.css" rel="stylesheet" />
<link href="./assets/css/nucleo-svg.css" rel="stylesheet" />

<!-- Font Awesome Icons -->
<script src="https://kit.fontawesome.com/42d5adcbca.js" crossorigin="anonymous"></script>
<link href="./assets/css/nucleo-svg.css" rel="stylesheet" />

<!-- CSS Files -->



<link id="pagestyle" href="./assets/css/soft-ui-dashboard.css?v=1.0.7" rel="stylesheet" />





<!-- Nepcha Analytics (nepcha.com) -->
<!-- Nepcha is a easy-to-use web analytics. No cookies and fully compliant with GDPR, CCPA and PECR. -->
<script defer data-site="YOUR_DOMAIN_HERE" src="https://api.nepcha.com/js/nepcha-analytics.js"></script>


</head>
<body class="vh-100">
<div class="container h-100">
<div class="row h-100">
<div class="col-10 m-auto text-center">
<h6>If you are not redirected automatically, follow <a
href="https://demos.creative-tim.com/soft-ui-dashboard/pages/dashboard.html">this link</a>.</h6>
</div>


<body>
















<body class="vh-100">
<div class="container h-100">
<div class="row h-100">
<div class="col-10 m-auto text-center">
<h6>If you are not redirected automatically, follow <a href="https://demos.creative-tim.com/soft-ui-dashboard/pages/dashboard.html">this link</a>.</h6>
</div>
</div>
</div>
</body>


</body>
</html>

</html>
4 changes: 2 additions & 2 deletions pages/billing.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
=========================================================
* Product Page: https://www.creative-tim.com/product/soft-ui-dashboard
* Copyright 2022 Creative Tim (https://www.creative-tim.com)
* Copyright 2023 Creative Tim (https://www.creative-tim.com)
* Licensed under MIT (https://www.creative-tim.com/license)
* Coded by Creative Tim
Expand Down Expand Up @@ -257,7 +257,7 @@ <h6 class="font-weight-bolder mb-0">Billing</h6>
</div>
<ul class="navbar-nav justify-content-end">
<li class="nav-item d-flex align-items-center">
<a class="btn btn-outline-primary btn-sm mb-0 me-3" target="_blank" href="https://www.creative-tim.com/builder/soft-ui?ref=navbar-dashboard">Online Builder</a>
<a class="btn btn-outline-primary btn-sm mb-0 me-3" target="_blank" href="https://www.creative-tim.com/builder?ref=navbar-soft-ui-dashboard">Online Builder</a>
</li>
<li class="nav-item d-flex align-items-center">
<a href="javascript:;" class="nav-link text-body font-weight-bold px-0">
Expand Down
4 changes: 2 additions & 2 deletions pages/dashboard.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
=========================================================
* Product Page: https://www.creative-tim.com/product/soft-ui-dashboard
* Copyright 2022 Creative Tim (https://www.creative-tim.com)
* Copyright 2023 Creative Tim (https://www.creative-tim.com)
* Licensed under MIT (https://www.creative-tim.com/license)
* Coded by Creative Tim
Expand Down Expand Up @@ -257,7 +257,7 @@ <h6 class="font-weight-bolder mb-0">Dashboard</h6>
</div>
<ul class="navbar-nav justify-content-end">
<li class="nav-item d-flex align-items-center">
<a class="btn btn-outline-primary btn-sm mb-0 me-3" target="_blank" href="https://www.creative-tim.com/builder/soft-ui?ref=navbar-dashboard">Online Builder</a>
<a class="btn btn-outline-primary btn-sm mb-0 me-3" target="_blank" href="https://www.creative-tim.com/builder?ref=navbar-soft-ui-dashboard">Online Builder</a>
</li>
<li class="nav-item d-flex align-items-center">
<a href="javascript:;" class="nav-link text-body font-weight-bold px-0">
Expand Down
4 changes: 2 additions & 2 deletions pages/profile.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
=========================================================
* Product Page: https://www.creative-tim.com/product/soft-ui-dashboard
* Copyright 2022 Creative Tim (https://www.creative-tim.com)
* Copyright 2023 Creative Tim (https://www.creative-tim.com)
* Licensed under MIT (https://www.creative-tim.com/license)
* Coded by Creative Tim
Expand Down Expand Up @@ -257,7 +257,7 @@ <h6 class="text-white font-weight-bolder ms-2">Profile</h6>
</div>
<ul class="navbar-nav justify-content-end">
<li class="nav-item d-flex align-items-center">
<a class="btn btn-outline-white btn-sm mb-0 me-3" target="_blank" href="https://www.creative-tim.com/builder/soft-ui?ref=navbar-dashboard">Online Builder</a>
<a class="btn btn-outline-white btn-sm mb-0 me-3" target="_blank" href="https://www.creative-tim.com/builder?ref=navbar-soft-ui-dashboard">Online Builder</a>
</li>
<li class="nav-item d-flex align-items-center">
<a href="javascript:;" class="nav-link text-white font-weight-bold px-0">
Expand Down
4 changes: 2 additions & 2 deletions pages/rtl.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
=========================================================
* Product Page: https://www.creative-tim.com/product/soft-ui-dashboard
* Copyright 2022 Creative Tim (https://www.creative-tim.com)
* Copyright 2023 Creative Tim (https://www.creative-tim.com)
* Licensed under MIT (https://www.creative-tim.com/license)
* Coded by Creative Tim
Expand Down Expand Up @@ -254,7 +254,7 @@ <h6 class="font-weight-bolder mb-0">RTL</h6>
</div>
<ul class="navbar-nav me-auto ms-0 justify-content-end">
<li class="nav-item d-flex align-items-center">
<a class="btn btn-outline-primary btn-sm mb-0 ms-3" target="_blank" href="https://www.creative-tim.com/builder/soft-ui?ref=navbar-dashboard">منشئ مضمنة</a>
<a class="btn btn-outline-primary btn-sm mb-0 ms-3" target="_blank" href="https://www.creative-tim.com/builder?ref=navbar-soft-ui-dashboard">منشئ مضمنة</a>
</li>
<li class="nav-item d-flex align-items-center">
<a href="javascript:;" class="nav-link text-body font-weight-bold px-0">
Expand Down
4 changes: 2 additions & 2 deletions pages/sign-in.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
=========================================================
* Product Page: https://www.creative-tim.com/product/soft-ui-dashboard
* Copyright 2022 Creative Tim (https://www.creative-tim.com)
* Copyright 2023 Creative Tim (https://www.creative-tim.com)
* Licensed under MIT (https://www.creative-tim.com/license)
* Coded by Creative Tim
Expand Down Expand Up @@ -83,7 +83,7 @@
</li>
</ul>
<li class="nav-item d-flex align-items-center">
<a class="btn btn-round btn-sm mb-0 btn-outline-primary me-2" target="_blank" href="https://www.creative-tim.com/builder/soft-ui?ref=navbar-dashboard">Online Builder</a>
<a class="btn btn-round btn-sm mb-0 btn-outline-primary me-2" target="_blank" href="https://www.creative-tim.com/builder?ref=navbar-soft-ui-dashboard">Online Builder</a>
</li>
<ul class="navbar-nav d-lg-block d-none">
<li class="nav-item">
Expand Down
Loading

0 comments on commit 67f79c9

Please sign in to comment.