This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* The Sharepoint Rich HTML editor leaves ZERO WIDTH SPACE chracters (​ | |
* or \u200B) all over the place. This trawls through the HTML you pass in and | |
* strips out zero width space characters from text nodes within. | |
* | |
* http://blog.bugrapostaci.com/2014/02/02/publishing-field-encoding-extra-questionmark-charecters-actually-acsii-8203-zero-width-space/ | |
* | |
* This trawls through the HTML you pass in and strips out zero width space | |
* characters from text nodes within. | |
* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/**************************************************************************** | |
* | |
* This LESS file contains fixes to make Bootstrap 3 play nicely with | |
* SharePoint 2010 Publishing pages. It mainly switches SP2010's UI | |
* elements back to the "content-box" box-model. | |
* | |
* It also incorporates the CSS portions of Kyle Schaeffer's fixes for | |
* scrolling on SP2010. The JS part is called from the master page. | |
* | |
****************************************************************************/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Modernizr test for legacy IE Filters and Transitions | |
I haven't tested this with Modernizr! Just adapted my solution to look like | |
https://gist.github.com/farmdawgnation/2636061 | |
Needed because Filters and Transitions can be disabled under IE's security | |
settings ("Binary and Script Behaviors" under the "ActiveX controls and | |
plug-ins" category). This is often done on corporate windows installations | |
"for security reasons". They'll fail silently (or error if you try to access |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Test if this install of IE supports legacy Filters and Transitions | |
Needed because Filters and Transitions can be disabled under IE's security | |
settings ("Binary and Script Behaviors" under the "ActiveX controls and | |
plug-ins" category). This is often done on corporate windows installations | |
"for security reasons". They'll fail silently (or error if you try to access | |
the element's filter collection in js). This setting also disables VML. | |
See: |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Escaping fun!</title> | |
</head> | |
<body> | |
<!-- Renders as 'abcd' --> | |
<p>abcd<efg</p> | |
<!-- Renders as 'abcd<&efg' --> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Box shadow art, CSS transitions, via https://gist.github.com/cahnory | |
*/ | |
.image1 { | |
background: red; | |
font-size: 10px; | |
height: 1em; | |
width: 1em; | |
/* Drawing */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Run this against a content type page to get the HTML for the columns! | |
els = array of elements | |
type = "li"|"td"|"th"|"FieldRef" | |
*/ | |
function create(el, type) { | |
var fieldname, | |
displayname, | |
outputHTML = ''; |