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
| public static String getContenTypeInfo(ClientContext cnxt,String lstName,String ctName,String flag){ | |
| String ctInfo = ""; | |
| List lst = cnxt.Web.Lists.GetByTitle(lstName); | |
| ContentTypeCollection listContentTypes = lst.ContentTypes; | |
| cnxt.Load(listContentTypes); | |
| cnxt.ExecuteQuery(); | |
| foreach (ContentType ct in listContentTypes) | |
| { | |
| if (ct.Name == ctName) | |
| { |
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() { | |
| // Now | |
| var now = moment(); | |
| // Format string | |
| /* | |
| Month | |
| ----------------------------- | |
| M: 1 2 ... 11 12 | |
| Mo: 1st 2nd ... 11th 12th |
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> | |
| <style> | |
| div { | |
| width: 100px; | |
| height: 100px; | |
| background: red; | |
| position: relative; | |
| -webkit-animation: mymove 10s infinite; /* Chrome, Safari, Opera */ |
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
| Array.prototype.unique1 = function() | |
| { | |
| var n = []; | |
| for(var i = 0; i < this.length; i++) | |
| { | |
| if (n.indexOf(this[i]) == -1) n.push(this[i]); | |
| } | |
| return n; | |
| } |
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
| var waitDialog = null; | |
| ExecuteOrDelayUntilScriptLoaded(ShowWaitDialog, "sp.js"); | |
| function ShowWaitDialog() { | |
| try { | |
| if (waitDialog == null) { | |
| waitDialog = SP.UI.ModalDialog.showWaitScreenWithNoClose('Processing...', 'Please wait while request is in progress...', 76, 330); | |
| } | |
| } catch (ex) { } | |
| }; | |
| //When progress is done |
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 getParameterByName(name) { | |
| var match = RegExp('[?&]' + name + '=([^&]*)').exec(window.location.search); | |
| return match && decodeURIComponent(match[1].replace(/\+/g, ' ')); | |
| } | |
| function removeParameterByName(url, parameter) { | |
| var urlparts= url.split('?'); | |
| if (urlparts.length>=2) { | |
| var prefix= encodeURIComponent(parameter)+'='; | |
| var pars= urlparts[1].split(/[&;]/g); |
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 alertDialog (_msg){ | |
| var htmlElement = document.createElement('div'); | |
| htmlElement.innerHTML = "<div class=\"confirmContainer\"><img src=\"/images/Warning.jpg\" id=\"warninglogo\" alt=\"ConfirmLogo\"><span id=\"confrimtitle\">" + | |
| _msg + "</span><button type=\"button\" id=\"confirminfo\" >OK</button>"; | |
| var options = { | |
| width : 450, | |
| height : 120, | |
| html : htmlElement, | |
| title : "Information", | |
| showClose : close |
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
| if (window.frameElement) { | |
| // in frame | |
| } | |
| else { | |
| // not in frame | |
| } |
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
| <nobr>Don't Break This Text</nobr> | |
| .nobr { white-space:nowrap; } |
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
| /* (320x480) iPhone (Original, 3G, 3GS) */ | |
| @media only screen and (min-device-width: 320px) and (max-device-width: 480px) { | |
| /* insert styles here */ | |
| } | |
| /* (320x480) Smartphone, Portrait */ | |
| @media only screen and (device-width: 320px) and (orientation: portrait) { | |
| /* insert styles here */ | |
| } | |