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
/* | |
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: |
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
/**************************************************************************** | |
* | |
* 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
/* | |
* 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
[{"key":"300x400","name":"Very small screen","width":300,"height":400},{"key":"320x480","name":"iPhone 4","width":320,"height":480},{"key":"320x568","name":"iPhone 5","width":320,"height":568},{"key":"360x640","name":"Nexus 4","width":360,"height":640},{"key":"375x667","name":"iPhone 6","width":375,"height":667},{"key":"414x736","name":"iPhone 6 Plus","width":414,"height":736},{"key":"767x1024","name":"@screen-xs-max","width":767,"height":1024},{"key":"768x1024","name":"@screen-sm-min","width":768,"height":1024},{"key":"991x1280","name":"@screen-sm-max","width":991,"height":1280},{"key":"992x1280","name":"@screen-md-min","width":992,"height":1280},{"key":"1199x801","name":"@screen-md-max","width":1199,"height":801},{"key":"1200x801","name":"@screen-lg-min","width":1200,"height":801},{"key":"1280x600","name":"Netbook","width":1280,"height":600}] |
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
function countCSSRules() { | |
var results = '', | |
log = '', | |
slen = document.styleSheets.length; | |
if (!document.styleSheets) { | |
return; | |
} | |
for (var i = 0; i < slen; i++) { | |
countSheet(document.styleSheets[i]); | |
} |
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 in the devtools console on a SharePoint 2010 page when in edit mode, to strip out quite a lot of spurious crap from the HTML. | |
*/ | |
(function($, window, document) { | |
var $editables = $("[contenteditable], input[type='hidden'][id*='hiddenStorage'], input[type='hidden'][id*='hiddenDisplay'], input[type='hidden'][id^='ctl00'][id$='content']"), | |
originalHTML, | |
filterHTML, | |
$el, | |
$filterHTML, |
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 in the devtools console on a SharePoint 2010 page when in edit mode, to strip out some spurious crap from the HTML. | |
*/ | |
(function($, window, document) { | |
var $editables = $("[contenteditable], input[type='hidden'][id*='hiddenStorage'], input[type='hidden'][id*='hiddenDisplay'], input[type='hidden'][id^='ctl00'][id$='content']", ".edit-mode"), | |
originalHTML, | |
filterHTML, | |
$el, | |
$filterHTML, |