Skip to content

Commit 43e6cfa

Browse files
committed
Move to npm
1 parent 43567ae commit 43e6cfa

4 files changed

Lines changed: 66 additions & 2 deletions

File tree

‎.gitignore‎

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

‎package-lock.json‎

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

‎package.json‎

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
{
2+
"name": "flapper",
3+
"version": "1.1.4",
4+
"description": "A split-flap (Solari) display for numbers and words using jQuery",
5+
"main": "src/jquery.flapper.js",
6+
"scripts": {
7+
"test": "echo \"Error: no test specified\" && exit 1"
8+
},
9+
"repository": {
10+
"type": "git",
11+
"url": "git+https://github.com/jayKayEss/Flapper.git"
12+
},
13+
"keywords": [
14+
"solari",
15+
"split-flap",
16+
"splitflap",
17+
"display",
18+
"numeric",
19+
"retro",
20+
"jquery-plugin",
21+
"ecosystem:jquery"
22+
],
23+
"author": "Justin Kerr Sheckler",
24+
"license": "MIT",
25+
"bugs": {
26+
"url": "https://github.com/jayKayEss/Flapper/issues"
27+
},
28+
"homepage": "https://github.com/jayKayEss/Flapper#readme",
29+
"dependencies": {
30+
"jquery": "^3.6.0"
31+
}
32+
}

‎test.html‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@
88
<script src="src/jquery.flapper.js"></script>
99
<script language="javascript">
1010
$(document).ready(function() {
11-
$('.flapper.digital').flapper({
11+
$('input.flapper.digital').flapper({
1212
width: 6,
1313
cycleInterval: 1000,
1414
});
1515

16-
$('.flapper.words').flapper({
16+
$('input.flapper.words').flapper({
1717
width: 1,
1818
cycleInterval: 1000,
1919
chars: [' ', 'YES', 'NO', 'MAYBE'],
@@ -23,6 +23,7 @@
2323
</head>
2424
<body>
2525
<div style="display: inline-block; width: 48%;">
26+
<div class="flapper SM">Digital</div>
2627
<input class="flapper XXL digital" />
2728
<input class="flapper XL digital" />
2829
<input class="flapper L digital" />
@@ -31,6 +32,7 @@
3132
<input class="flapper XS digital" />
3233
</div>
3334
<div style="display: inline-block; width: 48%;">
35+
<div class="flapper SM">Words</div>
3436
<input class="flapper XXL words" />
3537
<input class="flapper XL words" />
3638
<input class="flapper L words" />

0 commit comments

Comments
 (0)