SkillAgentSearch skills...

Workspace.js

workspace.js a jquery plugin for making frameset's and moveable content

Install / Use

/learn @MrSwitch/Workspace.js
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

workspace.js

<button class="toggle-frame-nav">toggle menu</button>
Kicking off web apps with a responsive layout, <b>and then some...</b>

Frames

Place navigation and content within a [class=frameset]

	<section class="frameset">
	  <nav></nav>
	  <nav></nav>
	  <article class="flex"></article>
	</section>

On a large screen; frames are displayed inline with their default widths. Control bars let the user alter their size.

On a small screen (such as mobile) each frame occupies 100% of the parent frameset window.

Controls

Place controls on the page to view the frame navigation on left side

	<button class="toggle-frame-nav">toggle navigation</button>

Demo

Native Dom Events

Navigate to a frame

	frameEl.dispatchEvent(new Event('active'));

Events touch/swipe

Navigating between frames on small screens is simple as a swipe to the left or right with a finger or mouse pointer.

Lazy loading

Defer image loading

	<img data-src='http://www.gravatar.com/avatar/20043d5ade315f3c25d13b18dba95bc4.jpg' />

By setting the URL of an image to the attribute data-src,instead of src. The image shant be loaded until it is visible. Scroll down...

Related Skills

View on GitHub
GitHub Stars6
CategoryContent
Updated2y ago
Forks0

Languages

JavaScript

Security Score

55/100

Audited on Apr 15, 2023

No findings