Skip to content

Commit e0eb613

Browse files
committed
Reorganized logic
1 parent a0b3ba1 commit e0eb613

18 files changed

+1903
-10
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
node_modules/

README.md

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,27 @@ A simple plugin to create scrollable tabs with Bootstrap 5.
66

77
## Usage:
88

9+
### Install:
10+
11+
[Download the latest release](https://github.com/SupernovaIC/scrollable-tabs-bootstrap-5/archive/refs/tags/v1.0.0.1.zip)
12+
13+
- Install with [npm](https://www.npmjs.com/): `npm i scrolling-tabs-bootstrap-5`
14+
15+
[![npm version](https://img.shields.io/npm/v/scrolling-tabs-bootstrap-5)](https://www.npmjs.com/package/scrolling-tabs-bootstrap-5)
16+
917
### Required libraries:
1018

1119
```html
1220
<!--Bootstrap icons-->
13-
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-icons/1.7.2/font/bootstrap-icons.min.css">
21+
<link rel="stylesheet" href="node_modules/bootstrap-icons/1.7.2/font/bootstrap-icons.min.css">
1422

1523
<!--External library-->
16-
<script src="https://raw.githubusercontent.com/SupernovaIC/scrollable-tabs-bootstrap-5/main/move.min.js"></script>
24+
<script src="node_modules/scrollable-tabs-bootstrap-5/dist/move.min.js"></script>
1725
<!--https://visionmedia.github.io/move.js/-->
1826

1927
<!--Scrollable libs-->
20-
<link href="scrollable-tabs.css" rel="stylesheet">
21-
<script src="scrollable-tabs.js"></script>
28+
<link href="node_modules/scrollable-tabs-bootstrap-5/dist/scrollable-tabs.css" rel="stylesheet">
29+
<script src="node_modules/scrollable-tabs-bootstrap-5/dist/scrollable-tabs.js"></script>
2230
```
2331

2432
### HTML example:

move.js renamed to dist/move.js

File renamed without changes.
File renamed without changes.

dist/scrollable-tab.min.css

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

dist/scrollable-tab.min.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
File renamed without changes.
File renamed without changes.

index.html renamed to example/index.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@
77
<meta name="author" content="Federico Navarrete">
88
<meta name="viewport" content="width=device-width, initial-scale=1">
99
<title>Scrollable Tabs Bootstrap 5</title>
10-
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous">
11-
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/js/bootstrap.bundle.min.js" integrity="sha384-MrcW6ZMFYlzcLA8Nl+NtUVF0sA7MsXsP1UyJoMp4YLEuNSfAP+JcXn/tWtIaxVXM" crossorigin="anonymous"></script>
10+
<link href="../node_modules/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet">
11+
<script src="../node_modules/bootstrap/dist/js/bootstrap.bundle.min.js"></script>
1212

13-
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-icons/1.7.2/font/bootstrap-icons.min.css">
13+
<link rel="stylesheet" href="../node_modules/bootstrap-icons/font/bootstrap-icons.css">
1414

15-
<script src="move.min.js"></script>
15+
<script src="../dist/move.min.js"></script>
1616
</head>
1717
<body>
1818
<div class="w-100 pt-3">
@@ -91,7 +91,7 @@
9191
</div>
9292
</div>
9393

94-
<link href="scrollable-tabs.css" rel="stylesheet">
95-
<script src="scrollable-tabs.js"></script>
94+
<link href="../dist/scrollable-tab.min.css" rel="stylesheet">
95+
<script src="../dist/scrollable-tab.min.js"></script>
9696
</body>
9797
</html>
File renamed without changes.

0 commit comments

Comments
 (0)