url-fragment-extender

1.0.2 • Public • Published

url-fragment-extender: Url fragment extender library for browser.

npm-version npm-week-downloads

Url fragment extender library for browser.

Installing

<script src="https://unpkg.com/url-fragment-extender" ></script>

or

<script src="https://cdn.jsdelivr.net/npm/url-fragment-extender" ></script>

Usage example

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="utf-8" />
    <title>Test</title>
    <script src="https://unpkg.com/url-fragment-extender" ></script>
    <script>
        addEventListener("load", function (ev) {
            // add your code here
            UFE.Commands.set_body = function (val) { document.body.innerHTML = val; };
        });
    </script>
</head>
<body>
    Test
</body>
</html>

Navigate to the URL: 'https://example.com/#set_body=body_content' or 'https://example.com/#print'

License

MIT

Copyright (c) 2021 Manuel Lõhmus manuel@hauss.ee

Install

npm i url-fragment-extender

DownloadsWeekly Downloads

4

Version

1.0.2

License

MIT

Unpacked Size

7.63 kB

Total Files

7

Last publish

Collaborators

  • manupro