From 73c3d7f14a783a8ecd7062154b3de4eef0e8e52e Mon Sep 17 00:00:00 2001 From: Victor Westerlund Date: Fri, 28 Feb 2025 17:00:34 +0100 Subject: [PATCH] wip: 2025-02-28T14:52:40+0100 (1740750760) --- public/assets/css/pages/docs/aside.css | 5 ++ public/assets/css/pages/docs/layout.css | 2 +- public/docs/Reference/JavaScript/POSITION.php | 2 +- public/docs/header.php | 9 +-- .../v3.1.4/Reference/JavaScript/EVENTS.php | 48 +++++----------- .../docs/v3.1.4/Reference/JavaScript/MODE.php | 47 ++++------------ .../v3.1.4/Reference/JavaScript/POSITION.php | 53 +++++++----------- .../v3.1.4/Reference/JavaScript/TARGET.php | 55 ++++++++----------- .../Reference/JavaScript/bindElements.php | 4 +- .../Reference/JavaScript/constructor.php | 40 ++------------ .../v3.1.4/Reference/JavaScript/index.php | 4 +- .../v3.1.4/Reference/JavaScript/navigate.php | 4 +- .../v3.1.4/Reference/JavaScript/options.php | 55 ++++++++++--------- public/docs/v3.1.4/Reference/PHP/VV/css.php | 4 +- public/docs/v3.1.4/Reference/PHP/VV/embed.php | 4 +- .../docs/v3.1.4/Reference/PHP/VV/include.php | 4 +- public/docs/v3.1.4/Reference/PHP/VV/init.php | 2 +- public/docs/v3.1.4/Reference/PHP/VV/js.php | 4 +- public/docs/v3.1.4/Reference/PHP/index.php | 23 +------- public/docs/v3.1.4/Reference/aside.php | 27 ++++++++- public/docs/v3.1.4/Reference/index.php | 16 +++++- public/docs/v3.1.4/aside.php | 20 ++++++- public/docs/v3.1.4/get-started.php | 11 +--- public/docs/v3.1.4/index.php | 10 ++++ public/features.php | 17 ++---- public/index.php | 33 +++++------ public/shell.php | 33 +++++------ .../HTMLCodeDemoElement.php | 8 +-- .../JS/constructor/description/syntax.js.php | 1 + .../JS/events/description/syntax.js.php | 1 + .../v3.1.4/JS/mode/description/syntax.js.php | 1 + .../JS/options/description/syntax.js.php | 1 + .../JS/position/description/syntax.js.php | 1 + .../JS/target/description/syntax.js.php | 1 + .../HTMLNavMenuElement/HTMLNavMenuElement.php | 26 ++++----- src/Consts.php | 10 +--- 36 files changed, 249 insertions(+), 337 deletions(-) create mode 100644 snippets/HTMLCodeDemoElement/docs/v3.1.4/JS/constructor/description/syntax.js.php create mode 100644 snippets/HTMLCodeDemoElement/docs/v3.1.4/JS/events/description/syntax.js.php create mode 100644 snippets/HTMLCodeDemoElement/docs/v3.1.4/JS/mode/description/syntax.js.php create mode 100644 snippets/HTMLCodeDemoElement/docs/v3.1.4/JS/options/description/syntax.js.php create mode 100644 snippets/HTMLCodeDemoElement/docs/v3.1.4/JS/position/description/syntax.js.php create mode 100644 snippets/HTMLCodeDemoElement/docs/v3.1.4/JS/target/description/syntax.js.php diff --git a/public/assets/css/pages/docs/aside.css b/public/assets/css/pages/docs/aside.css index 9098dcf..7ede9cf 100644 --- a/public/assets/css/pages/docs/aside.css +++ b/public/assets/css/pages/docs/aside.css @@ -3,6 +3,11 @@ aside { padding: var(--padding); } +aside > p { + text-align: center; + margin: var(--padding) 0; +} + aside nav { display: flex; flex-direction: column; diff --git a/public/assets/css/pages/docs/layout.css b/public/assets/css/pages/docs/layout.css index 5ce738f..a3cd3cb 100644 --- a/public/assets/css/pages/docs/layout.css +++ b/public/assets/css/pages/docs/layout.css @@ -44,7 +44,7 @@ main h3 { /* # Sections */ section.md { - gap: calc(var(--padding) / 2); + gap: 5px; display: flex; align-items: baseline; flex-direction: column; diff --git a/public/docs/Reference/JavaScript/POSITION.php b/public/docs/Reference/JavaScript/POSITION.php index 87387dc..b362cb5 100644 --- a/public/docs/Reference/JavaScript/POSITION.php +++ b/public/docs/Reference/JavaScript/POSITION.php @@ -4,4 +4,4 @@ require_once VV::root("src/Consts.php"); ?> - \ No newline at end of file + \ No newline at end of file diff --git a/public/docs/header.php b/public/docs/header.php index 5f63cb2..3e4211b 100644 --- a/public/docs/header.php +++ b/public/docs/header.php @@ -1,10 +1,3 @@ -
\ No newline at end of file diff --git a/public/docs/v3.1.4/Reference/JavaScript/EVENTS.php b/public/docs/v3.1.4/Reference/JavaScript/EVENTS.php index 88a1507..e782a04 100644 --- a/public/docs/v3.1.4/Reference/JavaScript/EVENTS.php +++ b/public/docs/v3.1.4/Reference/JavaScript/EVENTS.php @@ -1,52 +1,30 @@
-

VV::embed()

-

Inline the contents of any file.

-

This can be very useful for bundling SVGs, plaintext files, HTML, and more for faster page loading.

+

Navigation.EVENTS

+

A set of CustomEvent instances dispatched when various Vegvisir navigations are performed.

- +
-

Parameters

+

Properties

-
-

string

-

$pathname

-

Path to an asset to inline.

+
+

STARTED

+

An event dispatched with the type of "navstarted" on the target element when a navigation has started. This event is also dispatched on document.body.

+

The detail property of this event returns the Navigation instance that initiated the navigation.

-
-

bool

-

$relative

-

Flag which when set to:

-
    -
  1. - true -

    Will make $pathname look for a file relative to root_path.

    -
  2. -
  3. - false -

    Will make $pathname look for a file relative to the root of the whole filesystem.

    -
  4. -
-
-
-

Return value

-
-
-

string

-

Returns the contents of a file passed to $pathname as a string. If a file can not be found at $pathname, an empty string is returned.

+
+

FINISHED

+

An event dispatched with the type of "navfinished" on the target element when a navigation has finished loading completely (content has been injected). This event is also dispatched on document.body.

+

The detail property of this event returns the Navigation instance that initiated the navigation.


Examples

-

Inlining an SVG icon

-

In this example we will be inlining an SVG icon from /public/assets/icon.svg directly into our page as if it were hardcoded.

-
-
- +

No examples available.

\ No newline at end of file diff --git a/public/docs/v3.1.4/Reference/JavaScript/MODE.php b/public/docs/v3.1.4/Reference/JavaScript/MODE.php index 88a1507..f9e0a39 100644 --- a/public/docs/v3.1.4/Reference/JavaScript/MODE.php +++ b/public/docs/v3.1.4/Reference/JavaScript/MODE.php @@ -1,52 +1,29 @@
-

VV::embed()

-

Inline the contents of any file.

-

This can be very useful for bundling SVGs, plaintext files, HTML, and more for faster page loading.

+

Navigation.MODE

+

A static object of Navigation that alters the injection method of the target element of .navigate()

- +
-

Parameters

+

Properties

-
-

string

-

$pathname

-

Path to an asset to inline.

+
+

REPLACE

+

The inner DOM of the target element of .navigate() will be replaced with the contents of href from a Navigation instance.

+

This is the default behavior.

-
-

bool

-

$relative

-

Flag which when set to:

-
    -
  1. - true -

    Will make $pathname look for a file relative to root_path.

    -
  2. -
  3. - false -

    Will make $pathname look for a file relative to the root of the whole filesystem.

    -
  4. -
-
-
-

Return value

-
-
-

string

-

Returns the contents of a file passed to $pathname as a string. If a file can not be found at $pathname, an empty string is returned.

+
+

REPLACE

+

The contents of href from a Navigation instance will be inserted(appended) to the end of the existing DOM of the target element of .navigate()


Examples

-

Inlining an SVG icon

-

In this example we will be inlining an SVG icon from /public/assets/icon.svg directly into our page as if it were hardcoded.

-
-
- +

No examples available.

\ No newline at end of file diff --git a/public/docs/v3.1.4/Reference/JavaScript/POSITION.php b/public/docs/v3.1.4/Reference/JavaScript/POSITION.php index 88a1507..a98de76 100644 --- a/public/docs/v3.1.4/Reference/JavaScript/POSITION.php +++ b/public/docs/v3.1.4/Reference/JavaScript/POSITION.php @@ -1,52 +1,39 @@
-

VV::embed()

-

Inline the contents of any file.

-

This can be very useful for bundling SVGs, plaintext files, HTML, and more for faster page loading.

+

Navigation.POSITION

+

A static object of Navigation that adheres to the same concept as position of .insertAdjacentElement()

- +
-

Parameters

+

Properties

-
-

string

-

$pathname

-

Path to an asset to inline.

+
+

AFTEREND

+

Inserts/replaces the DOM after the target element with the contents of href from a Navigation instance.

-
-

bool

-

$relative

-

Flag which when set to:

-
    -
  1. - true -

    Will make $pathname look for a file relative to root_path.

    -
  2. -
  3. - false -

    Will make $pathname look for a file relative to the root of the whole filesystem.

    -
  4. -
+
+

BEFOREEND

+

This is the default behavior.

+

Inserts/replaces the DOM right before closing the target element with the contents of href from a Navigation instance.

+

Navigation.MODE.REPLACE makes this perform the same operation as AFTERBEGIN.

-
-

Return value

+
+

AFTERBEGIN

+

Inserts/replaces the DOM right after opening the target element with the contents of href from a Navigation instance.

+

Navigation.MODE.REPLACE makes this perform the same operation as BEFOREEND.

-
-

string

-

Returns the contents of a file passed to $pathname as a string. If a file can not be found at $pathname, an empty string is returned.

+
+

BEFOREBEGIN

+

Inserts/replaces the DOM before the target element with the contents of href from a Navigation instance.


Examples

-

Inlining an SVG icon

-

In this example we will be inlining an SVG icon from /public/assets/icon.svg directly into our page as if it were hardcoded.

-
-
- +

No examples available.

\ No newline at end of file diff --git a/public/docs/v3.1.4/Reference/JavaScript/TARGET.php b/public/docs/v3.1.4/Reference/JavaScript/TARGET.php index 88a1507..dd61120 100644 --- a/public/docs/v3.1.4/Reference/JavaScript/TARGET.php +++ b/public/docs/v3.1.4/Reference/JavaScript/TARGET.php @@ -1,52 +1,41 @@
-

VV::embed()

-

Inline the contents of any file.

-

This can be very useful for bundling SVGs, plaintext files, HTML, and more for faster page loading.

+

Navigation.TARGET

+

A static object of Navigation that alters where the contents of a navigation should be placed relative to the target element element for .navigate().

- +
-

Parameters

+

Properties

-
-

string

-

$pathname

-

Path to an asset to inline.

+
+

TOP

+

The inner DOM of the target element will be replaced with the contents of href from a Navigation instance.

+

This is the default behavior when the vv-shell element (top navigation) is navigated.

+

Setting this parameter on a target element that isn't the vv-shell element has the same effect as a normal top navigation. The target is "ignored".

-
-

bool

-

$relative

-

Flag which when set to:

-
    -
  1. - true -

    Will make $pathname look for a file relative to root_path.

    -
  2. -
  3. - false -

    Will make $pathname look for a file relative to the root of the whole filesystem.

    -
  4. -
+
+

SELF

+

The contents of the target element will be navigated.

+

This is the default behavior when an element that isn't the vv-shell is navigated.

+

Setting this parameter on a target element that is the vv-shell (top navigation) has the same effect as TOP.

-
-

Return value

+
+

BLANK

+

Performs the browser-default behavior for opening links in a new window. The target element is ignored.

-
-

string

-

Returns the contents of a file passed to $pathname as a string. If a file can not be found at $pathname, an empty string is returned.

+
+

PARENT

+

The closest HTMLElement to the target element with a vv-page property present will be navigated. If no parent element with that attribute is found, the vv-shell element (top navigation) will be navigated.

+

Setting this parameter on a target element that is the vv-shell (top navigation) has the same effect as TOP.


Examples

-

Inlining an SVG icon

-

In this example we will be inlining an SVG icon from /public/assets/icon.svg directly into our page as if it were hardcoded.

-
-
- +

No examples available.

\ No newline at end of file diff --git a/public/docs/v3.1.4/Reference/JavaScript/bindElements.php b/public/docs/v3.1.4/Reference/JavaScript/bindElements.php index 88a1507..b12d098 100644 --- a/public/docs/v3.1.4/Reference/JavaScript/bindElements.php +++ b/public/docs/v3.1.4/Reference/JavaScript/bindElements.php @@ -11,12 +11,12 @@

Parameters

-
+

string

$pathname

Path to an asset to inline.

-
+

bool

$relative

Flag which when set to:

diff --git a/public/docs/v3.1.4/Reference/JavaScript/constructor.php b/public/docs/v3.1.4/Reference/JavaScript/constructor.php index 88a1507..4aba39b 100644 --- a/public/docs/v3.1.4/Reference/JavaScript/constructor.php +++ b/public/docs/v3.1.4/Reference/JavaScript/constructor.php @@ -1,52 +1,24 @@
-

VV::embed()

-

Inline the contents of any file.

-

This can be very useful for bundling SVGs, plaintext files, HTML, and more for faster page loading.

+

Navigation.constructor

+

Initialize a new Vegvisir soft-navigation programmatically.

- -
-
-

Parameters

-
-
-

string

-

$pathname

-

Path to an asset to inline.

-
-
-

bool

-

$relative

-

Flag which when set to:

-
    -
  1. - true -

    Will make $pathname look for a file relative to root_path.

    -
  2. -
  3. - false -

    Will make $pathname look for a file relative to the root of the whole filesystem.

    -
  4. -
+

Return value

-

string

-

Returns the contents of a file passed to $pathname as a string. If a file can not be found at $pathname, an empty string is returned.

+

Navigation

+

Returns an instance of Navigation which can then be excuted by chaining .navigate().


Examples

-

Inlining an SVG icon

-

In this example we will be inlining an SVG icon from /public/assets/icon.svg directly into our page as if it were hardcoded.

-
-
- +

No examples available.

\ No newline at end of file diff --git a/public/docs/v3.1.4/Reference/JavaScript/index.php b/public/docs/v3.1.4/Reference/JavaScript/index.php index e15cb21..7f786b2 100644 --- a/public/docs/v3.1.4/Reference/JavaScript/index.php +++ b/public/docs/v3.1.4/Reference/JavaScript/index.php @@ -2,8 +2,8 @@
-

JavaScript Cheat Sheet

-

Vegvisir will automatically bind HTMLAnchorElement tags and perform soft-navigation between pages on the same origin.

+

JavaScript Reference

+

Vegvisir will automatically find and bind HTMLAnchorElement tags and perform soft-navigation between pages on the same origin.

The Navigation lets you interact with, and expand Vegvisirs front-end behavior.

diff --git a/public/docs/v3.1.4/Reference/JavaScript/navigate.php b/public/docs/v3.1.4/Reference/JavaScript/navigate.php index 88a1507..b12d098 100644 --- a/public/docs/v3.1.4/Reference/JavaScript/navigate.php +++ b/public/docs/v3.1.4/Reference/JavaScript/navigate.php @@ -11,12 +11,12 @@

Parameters

-
+

string

$pathname

Path to an asset to inline.

-
+

bool

$relative

Flag which when set to:

diff --git a/public/docs/v3.1.4/Reference/JavaScript/options.php b/public/docs/v3.1.4/Reference/JavaScript/options.php index 88a1507..ec8e64c 100644 --- a/public/docs/v3.1.4/Reference/JavaScript/options.php +++ b/public/docs/v3.1.4/Reference/JavaScript/options.php @@ -1,52 +1,55 @@
-

VV::embed()

-

Inline the contents of any file.

-

This can be very useful for bundling SVGs, plaintext files, HTML, and more for faster page loading.

+

Navigation.options

+

An object containing parameters that can be changed to alter the behavior of a Vegvisir Navigation.

- +
-

Parameters

+

Properties

-
-

string

-

$pathname

-

Path to an asset to inline.

-
-
+

bool

-

$relative

+

pushHistory

Flag which when set to:

    -
  1. +
  2. true -

    Will make $pathname look for a file relative to root_path.

    +

    Will cause navigations performed on an instance of Navigation to push to the History stack and update the browser pathname.

  3. false -

    Will make $pathname look for a file relative to the root of the whole filesystem.

    +

    Will cause a "silent" navigation on an instance of Navigation that won't update the broweser History stack and won't change the browser pathname.

+

The default setting for this property is:

+
    +
  • true when the vv-shell (top navigation) is navigated.
  • +
  • false when an element that isn't the vv-shell element is navigated.
  • +
-
-

Return value

-
-
-

string

-

Returns the contents of a file passed to $pathname as a string. If a file can not be found at $pathname, an empty string is returned.

+
+

bool

+

carryRequestOptions

+

Flag which when set to:

+
    +
  1. + true +

    Will cause navigations performed on an instance of Navigation to carry the request method and response body that the initiator page received on load.

    +
  2. +
  3. + false +

    Navigations performed on an instance of Navigation will be sent as GET requests (without a request body).

    +
  4. +

Examples

-

Inlining an SVG icon

-

In this example we will be inlining an SVG icon from /public/assets/icon.svg directly into our page as if it were hardcoded.

-
-
- +

No examples available.

\ No newline at end of file diff --git a/public/docs/v3.1.4/Reference/PHP/VV/css.php b/public/docs/v3.1.4/Reference/PHP/VV/css.php index 80aa6d0..a7530bf 100644 --- a/public/docs/v3.1.4/Reference/PHP/VV/css.php +++ b/public/docs/v3.1.4/Reference/PHP/VV/css.php @@ -10,13 +10,13 @@

Parameters

-
+

string

$pathname

Path to a CSS stylehseet file.

Appending ".css" to the filename is optional. If omitted, the extension is infered.

-
+

bool

$relative

Flag which when set to:

diff --git a/public/docs/v3.1.4/Reference/PHP/VV/embed.php b/public/docs/v3.1.4/Reference/PHP/VV/embed.php index 88a1507..b12d098 100644 --- a/public/docs/v3.1.4/Reference/PHP/VV/embed.php +++ b/public/docs/v3.1.4/Reference/PHP/VV/embed.php @@ -11,12 +11,12 @@

Parameters

-
+

string

$pathname

Path to an asset to inline.

-
+

bool

$relative

Flag which when set to:

diff --git a/public/docs/v3.1.4/Reference/PHP/VV/include.php b/public/docs/v3.1.4/Reference/PHP/VV/include.php index 281fe09..e3906ff 100644 --- a/public/docs/v3.1.4/Reference/PHP/VV/include.php +++ b/public/docs/v3.1.4/Reference/PHP/VV/include.php @@ -10,12 +10,12 @@

Parameters

-
+

string

$pathname

Path to another Vegvisir page or other PHP file.

-
+

bool

$relative

Flag which when set to:

diff --git a/public/docs/v3.1.4/Reference/PHP/VV/init.php b/public/docs/v3.1.4/Reference/PHP/VV/init.php index d0baba2..ce006d6 100644 --- a/public/docs/v3.1.4/Reference/PHP/VV/init.php +++ b/public/docs/v3.1.4/Reference/PHP/VV/init.php @@ -11,7 +11,7 @@

Parameters

-
+

This method takes no parameters.

diff --git a/public/docs/v3.1.4/Reference/PHP/VV/js.php b/public/docs/v3.1.4/Reference/PHP/VV/js.php index 3e50032..5a52029 100644 --- a/public/docs/v3.1.4/Reference/PHP/VV/js.php +++ b/public/docs/v3.1.4/Reference/PHP/VV/js.php @@ -10,13 +10,13 @@

Parameters

-
+

string

$pathname

Path to a JavaScript source file.

Appending ".js" to the filename is optional. If omitted, the extension is infered.

-
+

bool

$relative

Flag which when set to:

diff --git a/public/docs/v3.1.4/Reference/PHP/index.php b/public/docs/v3.1.4/Reference/PHP/index.php index c74caa4..dc79ffe 100644 --- a/public/docs/v3.1.4/Reference/PHP/index.php +++ b/public/docs/v3.1.4/Reference/PHP/index.php @@ -2,26 +2,9 @@
-

PHP Cheat Sheet

-

Vegvisir only has one class you need to worry about. The VV class contains everything needed to interact with Vegvisir functions from project pages.

-
-
-
- -

Useful thoughts

-

Here are some one-liners to help remember what things do.

-
-
-
- -

Difference between VV::include() and VV::shell()

-

VV::include() puts content inside another page.

-

VV::shell() puts a page inside other content.

-
-
-
- -

Manual pages

+

PHP Reference

+

Vegvisir exposes a single global static class VV that can be used in any script/page loaded with Vegvisir.

+

This class contains various methods for importing, inlining assets, and returning pathnames.

\ No newline at end of file diff --git a/public/docs/v3.1.4/Reference/aside.php b/public/docs/v3.1.4/Reference/aside.php index a9671fd..d12775a 100644 --- a/public/docs/v3.1.4/Reference/aside.php +++ b/public/docs/v3.1.4/Reference/aside.php @@ -1,62 +1,85 @@ \ No newline at end of file diff --git a/public/docs/v3.1.4/Reference/index.php b/public/docs/v3.1.4/Reference/index.php index 8ff4bfd..dc69dea 100644 --- a/public/docs/v3.1.4/Reference/index.php +++ b/public/docs/v3.1.4/Reference/index.php @@ -1 +1,15 @@ - \ No newline at end of file + +
+
+

Reference documents

+

Here you'll find cheat sheets for Vegvisir's VV PHP static class, and the vegvisir.Navigation JavaScript class.

+ + +
+
\ No newline at end of file diff --git a/public/docs/v3.1.4/aside.php b/public/docs/v3.1.4/aside.php index dba7eec..0048851 100644 --- a/public/docs/v3.1.4/aside.php +++ b/public/docs/v3.1.4/aside.php @@ -3,15 +3,31 @@
+

Reference guides

\ No newline at end of file diff --git a/public/docs/v3.1.4/get-started.php b/public/docs/v3.1.4/get-started.php index 9163f5b..37a92e6 100644 --- a/public/docs/v3.1.4/get-started.php +++ b/public/docs/v3.1.4/get-started.php @@ -1,10 +1,3 @@ -
@@ -24,7 +17,7 @@

There is a template repository on Codeberg which you can clone or generate from which has a bare-bones website ready for us.

@@ -44,7 +37,7 @@

Feel free to experiment or follow the reference guide for more information about each Vegvisir feature.

\ No newline at end of file diff --git a/public/docs/v3.1.4/index.php b/public/docs/v3.1.4/index.php index 9966f54..16728a5 100644 --- a/public/docs/v3.1.4/index.php +++ b/public/docs/v3.1.4/index.php @@ -4,4 +4,14 @@

Introduction

Vegvisir is a work in progress, based on a framework I developed for a company a few years ago, which in turn was based on a content injector I built for another company. You can read more about the history of this framework on my personal website.

+
+

Work in progress

+

This website (and the framework itself) is a work in progress. I apologize for the rushed, incomplete, confusing documentation on this site. I will make an effort to update these pages as best as I can.

+
+
+

The basics

+

The simple answer to what Vegvisir does is that it will automatically find and bind navigation handlers for all HTMLAnchorElements on a website. If the anchor href points to a page on the same origin; a PHP file (containing HTML and native PHP templating) from the website's public_path will be automatically soft-navigated to.

+

Another thing that Vegvisir lets you do with those soft-navigated pages is to inject and minify assets such as CSS stylesheets, JavaScript source files, and other assets that output text.

+

And the last thing that Vegvisir will offer for you is embeding snippets of PHP code (or another page) into a page.

+
\ No newline at end of file diff --git a/public/features.php b/public/features.php index 14e0b7c..c2ae69a 100644 --- a/public/features.php +++ b/public/features.php @@ -1,19 +1,12 @@ -
- +

This thing there,

That header is present on every page, so it's loaded once and never again.

- +
@@ -22,7 +15,7 @@
@@ -37,7 +30,7 @@ @@ -52,7 +45,7 @@ diff --git a/public/index.php b/public/index.php index 0c54907..0c551c8 100644 --- a/public/index.php +++ b/public/index.php @@ -1,10 +1,3 @@ -
@@ -14,9 +7,9 @@

developed as a hobby project by Victor Westerlund

- - - + + +
@@ -24,13 +17,13 @@

Automatic soft navigation

Load the shell of your website once, and soft-navigate between pages on the same host. That's what Vegvisir will automatically handle for you - without any ugly handle attributes.

@@ -43,13 +36,13 @@

Asset injection

Bundle page-specific CSS and JavaScript from separate files directly with your markdown. Vegvisir will import and minify CSS and JavaScript on the fly and return the result as compiled HTML.

@@ -64,12 +57,12 @@
- +
\ No newline at end of file diff --git a/public/shell.php b/public/shell.php index cacdbac..c629287 100644 --- a/public/shell.php +++ b/public/shell.php @@ -1,10 +1,3 @@ - @@ -53,13 +46,13 @@
- +
@@ -108,19 +101,19 @@ diff --git a/snippets/HTMLCodeDemoElement/HTMLCodeDemoElement.php b/snippets/HTMLCodeDemoElement/HTMLCodeDemoElement.php index f47efe9..04ef310 100644 --- a/snippets/HTMLCodeDemoElement/HTMLCodeDemoElement.php +++ b/snippets/HTMLCodeDemoElement/HTMLCodeDemoElement.php @@ -1,9 +1,5 @@
new Navigation(
    hrefURL|String|null,
    options?: Navigation.options
-> this
\ No newline at end of file diff --git a/snippets/HTMLCodeDemoElement/docs/v3.1.4/JS/events/description/syntax.js.php b/snippets/HTMLCodeDemoElement/docs/v3.1.4/JS/events/description/syntax.js.php new file mode 100644 index 0000000..43ff107 --- /dev/null +++ b/snippets/HTMLCodeDemoElement/docs/v3.1.4/JS/events/description/syntax.js.php @@ -0,0 +1 @@ +
{
    STARTED  = "navstarted",
    FINISHED = "navfinished"
}
\ No newline at end of file diff --git a/snippets/HTMLCodeDemoElement/docs/v3.1.4/JS/mode/description/syntax.js.php b/snippets/HTMLCodeDemoElement/docs/v3.1.4/JS/mode/description/syntax.js.php new file mode 100644 index 0000000..69135b7 --- /dev/null +++ b/snippets/HTMLCodeDemoElement/docs/v3.1.4/JS/mode/description/syntax.js.php @@ -0,0 +1 @@ +
{
    REPLACE = "replace",
    INSERT  = "insert"
}
\ No newline at end of file diff --git a/snippets/HTMLCodeDemoElement/docs/v3.1.4/JS/options/description/syntax.js.php b/snippets/HTMLCodeDemoElement/docs/v3.1.4/JS/options/description/syntax.js.php new file mode 100644 index 0000000..fcb28a8 --- /dev/null +++ b/snippets/HTMLCodeDemoElement/docs/v3.1.4/JS/options/description/syntax.js.php @@ -0,0 +1 @@ +
{
    bool pushHistorytrue,
    bool carryRequestOptionsfalse
}
\ No newline at end of file diff --git a/snippets/HTMLCodeDemoElement/docs/v3.1.4/JS/position/description/syntax.js.php b/snippets/HTMLCodeDemoElement/docs/v3.1.4/JS/position/description/syntax.js.php new file mode 100644 index 0000000..1e298fe --- /dev/null +++ b/snippets/HTMLCodeDemoElement/docs/v3.1.4/JS/position/description/syntax.js.php @@ -0,0 +1 @@ +
{
    AFTEREND    = "afterend",
    BEFOREEND   = "beforeend",
    AFTERBEGIN  = "afterbegin",
    BEFOREBEING = "beforebegin"
}
\ No newline at end of file diff --git a/snippets/HTMLCodeDemoElement/docs/v3.1.4/JS/target/description/syntax.js.php b/snippets/HTMLCodeDemoElement/docs/v3.1.4/JS/target/description/syntax.js.php new file mode 100644 index 0000000..c6c81cf --- /dev/null +++ b/snippets/HTMLCodeDemoElement/docs/v3.1.4/JS/target/description/syntax.js.php @@ -0,0 +1 @@ +
{
    TOP    = "_top",
    SELF   = "_self",
    BLANK  = "_blank",
    PARENT = "_parent"
}
\ No newline at end of file diff --git a/snippets/HTMLNavMenuElement/HTMLNavMenuElement.php b/snippets/HTMLNavMenuElement/HTMLNavMenuElement.php index 2a7a976..5cd805c 100644 --- a/snippets/HTMLNavMenuElement/HTMLNavMenuElement.php +++ b/snippets/HTMLNavMenuElement/HTMLNavMenuElement.php @@ -1,60 +1,56 @@ diff --git a/src/Consts.php b/src/Consts.php index 94ae1e0..55db001 100644 --- a/src/Consts.php +++ b/src/Consts.php @@ -5,12 +5,4 @@ /** * # Docs */ - const VERSION_LATEST = "/public/docs/v3.1.4/"; - - /** - * # Media - * Constants related to media files - */ - const MEDIA_DIR = "/public/assets/media/"; - const ICONS_DIR = MEDIA_DIR . "icons/"; - const DEFAULT_BUTTON_ICON = ICONS_DIR . "chevron.svg"; \ No newline at end of file + const VERSION_LATEST = "/public/docs/v3.1.4/"; \ No newline at end of file