This file contains 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
/* | |
spfDropDowns v.1 by @alirobe - gist: 1312059 | |
To use this, just structure your top-menu bar links by using a leading '-- ' | |
to denote submenu items, e.g. | |
Menu Item | |
-- Submenu Item | |
Menu Item | |
-- Submenu Item | |
-- Submenu Item |
This file contains 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
// in IE only, we must ensure that we don't load the font when the page is loaded in a dialog, because this | |
// breaks the font reference. | |
// Dialogs work by appending ?isDlg=1 to the end of an existing page and loading it into an iFrame. | |
function loadFont(fontName) { | |
var iAmInternetExplorer = navigator.userAgent.indexOf('MSIE') != -1; | |
var iAmNotInADialog = window.location.href.indexOf('IsDlg') == -1; | |
// for other browsers, we load this in a conditional comment. | |
// due to a bug in IE, WOFF fonts can't be loaded twice. | |
if (iAmInternetExplorer && iAmNotInADialog) { |
This file contains 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
// kyleschaeffer.com's Responsive SP2010 (sans HTML5, via @alirobe) | |
// add me to the bottom of v5.js | |
// via gist @ http://github.com/alirobe | |
window.onresize = function(){ | |
var w=800, t=" lt-800 ", cw, h; | |
h = document.getElementsByTagName("html")[0]; | |
cw = window.outerWidth||h.clientWidth; | |
if (cw<=w) {if(h.className.indexOf(t)==-1) {h.className+=t}} | |
else {h.className=h.className.replace(/lt-800/g,'').replace(/[\s]{2,}/g,' ');} |
This file contains 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
//<script src="/hosted/Style%20Library/jquery-1.7.1.min.js" type="text/javascript"></script><script type="text/javascript"> | |
//jQuery.noConflict(); | |
jQuery(function(){ | |
var cfg= { | |
'CRM':['CRM Access'], | |
'SharePoint':['SharePoint Access'], | |
'GP':['GP Security Role','GP Access Level','GP Company Name'], | |
'Replace Existing User':['Existing user email address'] | |
} | |
for(var i in cfg) { |
This file contains 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
<asp:ContentPlaceHolder runat="server" id="html5"> | |
<-- In your .aspx page, use a override this ContentPlaceHolder using "IE=9" to enable HTML5 features - on pages where it's required... --> | |
<meta http-equiv="X-UA-Compatible" content="IE=8"/> | |
</asp:ContentPlaceHolder> |
This file contains 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
//via http://withinsharepoint.com/archives/256 or http://withinsharepoint.com/archives/210 | |
if (jQuery.browser.webkit) { | |
jQuery(document).ready(function () { | |
var interval; | |
function loopCheck() { | |
if (typeof (_spBodyOnLoadWrapper) !== "undefined" && _spBodyOnLoadCalled == false) | |
_spBodyOnLoadWrapper(); | |
else | |
window.clearInterval(interval); |
This file contains 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
<!-- | |
add inside the 'head' element of master page. | |
replace title="Intranet" with the name of your intranet (if branded) | |
--> | |
<link rel="search" title="Intranet" type="application/opensearchdescription+xml" href="/Style%20Library/opensearch.xml" /> |
OlderNewer