Skip to content

MrSwitch/workspace.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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...

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages