Skip to content

A fast and lightweight JavaScript library that detect SharePoint specific sites, pages, modes and adds top-level CSS classes.

Notifications You must be signed in to change notification settings

stevenng/sharepointng

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sharepointng.js
===============

A fast and lightweight JavaScript library that detects SharePoint 2013 specific sites, pages, modes and adds top-level CSS classes for styling.


Getting Started
---------------

This is a self-executing JavaScript file that heavily relies on SharePoint's URL structure, please reference this library at the end of your document just above the closing </body> element.

<html>
	<body>
		...
		<script src="sharepointng.js"></script>
	</body>
</html>


List of CSS Class Names (hooks)
-------------------------------

#### Mode Types
- ng-browse-mode
- ng-edit-mode
- ng-wiki-browse-mode
- ng-wiki-edit-mode

#### Browsers
- ng-chrome
- ng-ie10

#### Devices
- ng-android
- ng-iPhone

#### Sites
- ng-blog
- ng-collaborate
- ng-communityportal
- ng-department
- ng-knowledgecenter
- ng-personal
- ng-search

#### Sections
- ng-lists
- ng-pages
- ng-system

#### Pages
- ng-allitems
- ng-default
- ng-lists
- ng-person
- ng-settings
- ng-404

About

A fast and lightweight JavaScript library that detect SharePoint specific sites, pages, modes and adds top-level CSS classes.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published