Skip to content

Commit

Permalink
Release v0.5.1
Browse files Browse the repository at this point in the history
  • Loading branch information
dpilafian committed Jan 14, 2023
1 parent a7f4242 commit c0c57a9
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion LICENSE.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2016-2022 individual contributors to hamburger-menu
Copyright (c) 2016-2023 Individual contributors to hamburger-menu

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ When you do need a hamburger button menu, this solution uses CSS to replace the
with a tappable hamburger icon on mobile devices or any browser with a sufficiently narrow screen.
Tapping the hamburger reveals the navigation menu with smooth CSS animation.

## A) Take it for spin
Try it out:<br>
## A) Try It Out
Interactive example:<br>
https://hamburger-menu.js.org

<kbd><img src=https://raw.githubusercontent.com/center-key/hamburger-menu/main/screenshots/mobile-hamburger.png height=300 alt=screenshot align=left></kbd>
Expand Down Expand Up @@ -95,7 +95,7 @@ nav.hamburger-menu aside ul li >a:hover {
}
```

## E) Highlight menu item for current page
## E) Highlight Menu Item for Current Page
**HamburgerMenu** automatically highlights the selected menu item.

Turn off automatic highlighting by *either*:
Expand All @@ -120,7 +120,7 @@ To support old legacy web browsers, add a polyfill for
[URL](https://www.npmjs.com/package/url-polyfill)
to your website.

## F) Removing jQuery dependency
## F) Removing jQuery Dependency
The `hamburger-menu.js` file depends on jQuery, but you can eliminate **both** jQuery
and the `hamburger-menu.js` file by incorporating this one line of JavaScript in your website:
```javascript
Expand Down
4 changes: 2 additions & 2 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<link rel=preconnect href=https://fonts.gstatic.com crossorigin>
<link rel=stylesheet href=https://cdn.jsdelivr.net/npm/@fortawesome/[email protected]/css/all.min.css>
<link rel=stylesheet href=https://cdn.jsdelivr.net/npm/[email protected]/dist/dna-engine.css>
<link rel=stylesheet href=https://cdn.jsdelivr.net/npm/web-ignition@1.5/dist/reset.min.css>
<link rel=stylesheet href=https://cdn.jsdelivr.net/npm/web-ignition@1.6/dist/reset.min.css>
<style>
body { text-align: center; color: gray; background-color: black; }
body >header { margin-bottom: 40px; }
Expand All @@ -28,7 +28,7 @@
</style>
<script defer src=https://cdn.jsdelivr.net/npm/[email protected]/dist/jquery.min.js></script>
<script defer src=https://cdn.jsdelivr.net/npm/[email protected]/dist/dna-engine.min.js></script>
<script defer src=https://cdn.jsdelivr.net/npm/web-ignition@1.5/dist/lib-x.min.js></script>
<script defer src=https://cdn.jsdelivr.net/npm/web-ignition@1.6/dist/lib-x.min.js></script>
<script defer src=hamburger-menu.js></script>
<script>globalThis.onerror = () => document.body.style.background = 'pink';</script>
<script data-on-load=displayVersion>
Expand Down
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "hamburger-menu",
"version": "0.5.0",
"version": "0.5.1",
"description": "☰ A responsive CSS solution for a hamburger menu ☰",
"license": "MIT",
"type": "module",
Expand Down Expand Up @@ -69,12 +69,12 @@
"csso-cli": "~4.0",
"dna-engine": "~2.2",
"jshint": "~2.13",
"mocha": "~10.1",
"replacer-util": "~0.2",
"rimraf": "~3.0",
"mocha": "~10.2",
"replacer-util": "~0.3",
"rimraf": "~4.0",
"run-scripts-util": "~0.1",
"uglify-js": "~3.17",
"w3c-html-validator": "~1.2",
"web-ignition": "~1.5"
"w3c-html-validator": "~1.3",
"web-ignition": "~1.6"
}
}
2 changes: 1 addition & 1 deletion spec/package.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import { assertDeepStrictEqual } from 'assert-deep-strict-equal';
import fs from 'fs';

////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
describe('The current files', () => {

it('for the "dist" folder are correct', () => {
Expand Down
2 changes: 1 addition & 1 deletion src/hamburger-menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

const hamburgerMenu = {

version: '~~~version~~~',
version: '{{pkg.version}}',

selectItem(event) {
const item = $(event.target).closest('li');
Expand Down
2 changes: 1 addition & 1 deletion task-runner.sh.command
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ setupTools() {
which node || { echo "Need to install Node.js: https://nodejs.org"; exit; }
node --version
npm install --no-fund
npm update
npm update --no-fund
npm outdated
echo
}
Expand Down

0 comments on commit c0c57a9

Please sign in to comment.