jakiestfu / jakiestfu/Snap.js

Manipulating the browser history - history.pushState()

Open
#63 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
5.9k
Forks
642
PR merge metrics
No merged PRs in 30d

Description

Hello there,

wouldn't it be great to improve the project by HTML5 History API? For example:

URL bar: http://yoursite.com/
snapper.open('left'); -> URL bar: http://yoursite.com/left-drawer-is-open
snapper.expand('right'); -> URL bar: http://yoursite.com/left-drawer-is-expanded-on-the-right
snapper.close(); -> URL bar: http://yoursite.com/

Some project:
- History.js - https://github.com/browserstate/history.js/
- pjax - https://github.com/defunkt/jquery-pjax

Have any of you tried it?

Contributor guide

No contributing guide indexed for this repository

Research direction

The issue proposes integrating the HTML5 History API and history.pushState() so Snap.js drawer actions update the URL. Start by reviewing the linked History.js and pjax projects, then determine the intended URL and browser-history behavior for open, expand, and close actions. The issue does not define a settled implementation scope or completion criteria.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.