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
document.getElementById('someInputID').onkeypress = stopType; |
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
$("#inputID").keypress(function(e){ | |
if (tmrStopType!= undefined) clearTimeout(tmrStopType); | |
tmrStopType= setTimeout(function (){ stopTypeWork() }, 2000); | |
}); | |
function stopTypeWork() { | |
// do work | |
} |
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
(function($) { | |
if (!$.cursor) { | |
$.extend({ | |
cursor: function(elm, command, args) { | |
if (elm) { | |
if (typeof elm === "string") { | |
if ($(elm).length <= 0) { // elm is command string | |
switch(elm.toLowerCase()) { | |
case "clear": | |
document.body.style.cursor = "default"; |
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
if (!window.position) { | |
window.position = function() { | |
return (navigator.appName.toLowerCase().indexOf("explorer") >= 0) ? { x: window.screenLeft, y: window.screenTop } : { x: window.screenX, y: window.screenY }; | |
}; | |
}; |
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
SPSecurity.RunWithElevatedPrivileges(delegate() | |
{ | |
SPFile formFile = workflowProperties.Item.File; | |
MemoryStream ms = new MemoryStream(formFile.OpenBinary()); | |
XmlTextReader rdr = new XmlTextReader(ms); | |
XmlDocument xmlDoc = new XmlDocument(); | |
xmlDoc.Load(rdr); | |
rdr.Close(); | |
ms.Close(); | |
XmlNamespaceManager nsm = new XmlNamespaceManager(xmlDoc.NameTable); |
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
if(typeof jQuery === 'undefined') { | |
// jQuery site src: https://code.jquery.com/jquery-1.9.1.min.js | |
var $script = document.createElement("script"); | |
$script.src = "//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"; | |
$script.type = "text/javascript"; | |
document.getElementsByTagName('head')[0].appendChild($script); | |
} |
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
;(function($) { | |
if (!$.aniAutoHeight) { | |
$.extend({ | |
aniAutoHeight: function(elm, speed) { | |
if (!speed) speed = 200; | |
return elm.each(function(index){ | |
var curHeight = $(this).height(), | |
autoHeight = $(this).css('height', 'auto').height(); | |
$(this).height(curHeight).animate({height: autoHeight}, speed, function() { $(this).height('auto'); }); | |
}); |
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
;(function($) { | |
if (!$.aniAutoHeight) { | |
$.extend({ | |
aniAutoHeight: function(elm, speed) { | |
if (!speed) speed = 200; | |
return elm.each(function(index){ | |
var curHeight = $(this).height(), | |
autoHeight = $(this).css('height', 'auto').height(); | |
$(this).height(curHeight).animate({height: autoHeight}, speed, function() { $(this).height('auto'); }); | |
}); |
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
/* ========================================================================== | |
Globals | |
========================================================================== */ | |
@font-face { | |
font-family: 'GaramondPro'; | |
src: url('fonts/AGaramondPro-Regular.otf'); | |
font-weight: normal; | |
font-style: normal; | |
} |