Skip to content

Instantly share code, notes, and snippets.

<div id="EmployeePhoneField">
<!--#_
var encodedWphone = $htmlEncode(ctx.CurrentItem.Workphone);
var displayWphone = Srch.U.getSingleHHXMLNodeValue(hhProps, "workphone");
console.log(displayWphone);
if ($isEmptyString(displayWphone)) { displayWphone = encodedWphone }
_#-->
<div id="EmployeePhoneValue" class="ms-srch-ellipsis" title="_#= encodedWphone =#_">P: _#= displayWphone =#_ </div>
</div>
<html xmlns:mso="urn:schemas-microsoft-com:office:office" xmlns:msdt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882">
<head>
<title>Newsletter View</title>
<!--[if gte mso 9]><xml>
<mso:CustomDocumentProperties>
<mso:TemplateHidden msdt:dt="string">0</mso:TemplateHidden>
<mso:ManagedPropertyMapping msdt:dt="string">'Link URL'{Link URL}:'Path','Line 1'{Line 1}:'Title','Line 2'{Line 2}:'','Line 3'{Line 3}:'','FileExtension','SecondaryFileExtension'</mso:ManagedPropertyMapping>
<mso:MasterPageDescription msdt:dt="string">This Item Display Template will show a small thumbnail icon next to a hyperlink of the item title, with an additional line that is available for month and year.</mso:MasterPageDescription>
<mso:ContentTypeId msdt:dt="string">0x0101002039C03B61C64EC4A04F5361F385106603</mso:ContentTypeId>
for (var i = 16;i <41 ; i++) {
document.getElementById("ctl00_ctl39_g_e223e6e7_613f_4a25_9890_7e9ab8f57f71_ctl01_ctl00_ctl00").children[0].children[0].children[i].children[1].style.visibility="hidden";
document.getElementById("ctl00_ctl39_g_e223e6e7_613f_4a25_9890_7e9ab8f57f71_ctl01_ctl00_ctl00").children[0].children[0].children[i].children[7].style.visibility="hidden";
};
}
@ceej989
ceej989 / Calendar.html
Last active August 29, 2015 14:04
Calendar-Convert to Work View
<div id="ctl00_ctl39_g_e223e6e7_613f_4a25_9890_7e9ab8f57f71_ctl01_ctl00_ctl00" class="ms-acal-rootdiv" ctxid="WPQ2"><table class="ms-acal-detail" cellpadding="0" cellspacing="0" width="100%" summary="Weekly graphical Calendar View">
<tbody><tr class="ms-acal-week-top">
<th></th>
<td evtid="day" date="7/13/2014" class="">
<div>
<nobr>13 <span style="display: inline;">Sunday</span><span style="display: none;">S</span></nobr>
</div></td>
<td evtid="day" date="7/14/2014" class=""><div>
<nobr>14 <span style="display: inline;">Monday</span><span style="display: none;">M</span></nobr>
</div></td>
<ul>
<li><span class="ms-acal-apanel-item ms-acal-apanel-color"><span>Conference Room Scheduling</span></span></li>
<li><a class="ms-acal-apanel-item ms-acal-apanel-color1" href="/Lists/CRS/17th%20Floor%20Conference%20Room.aspx"><span>17th Floor Conference Room</span></a></li>
<li><a class="ms-acal-apanel-item ms-acal-apanel-color3" href="/Lists/CRS/47th%20Floor%20Conference%20Room.aspx"><span>47th Floor Conference Room</span></a></li>
<li><a class="ms-acal-apanel-item ms-acal-apanel-color5" href="/Lists/CRS/48th%20Floor%20SMALL%20Conference%20Room.aspx"><span>48th Floor SMALL Conference Room</span></a></li>
<li><a class="ms-acal-apanel-item ms-acal-apanel-color6" href="/Lists/CRS/48th%20Floor%20LARGE%20Conference%20Room.aspx"><span>48th Floor LARGE Conference Room</span></a></li>
</ul>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html dir="ltr" lang="en-US">
<head><meta name="GENERATOR" content="Microsoft SharePoint" /><meta http-equiv="Content-type" content="text/html; charset=utf-8" /><meta http-equiv="X-UA-Compatible" content="IE=10" /><meta http-equiv="Expires" content="0" /><meta name="msapplication-TileImage" content="/_layouts/15/images/SharePointMetroAppTile.png" /><meta name="msapplication-TileColor" content="#0072C6" /><title>
Conference Room Scheduling -
Calendar
</title><link rel="shortcut icon" href="/_layouts/15/images/favicon.ico?rev=23" type="image/vnd.microsoft.icon" id="favicon" /><link rel="stylesheet" type="text/css" href="/_layouts/15/1033/styles/Themable/corev15.css?rev=BdxJNFd%2FTPOed3Z8IKEJ9A%3D%3D"/>
<script type="text/javascript" src="/_layouts/15/init.js?rev=zwpf9CD1m7am6imImmQglQ%3D%3D"></script>
@ceej989
ceej989 / cal.js
Last active August 29, 2015 14:03
What'son mycal.aspx PAGE
<%@ Page language="C#" MasterPageFile="~masterurl/default.master" Inherits="Microsoft.SharePoint.WebPartPages.WebPartPage,Microsoft.SharePoint,Version=15.0.0.0,Culture=neutral,PublicKeyToken=71e9bce111e9429c" meta:webpartpageexpansion="full" meta:progid="SharePoint.WebPartPage.Document" %>
<%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> <%@ Register Tagprefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> <%@ Import Namespace="Microsoft.SharePoint" %> <%@ Assembly Name="Microsoft.Web.CommandUI, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> <%@ Register Tagprefix="WebPartPages" Namespace="Microsoft.SharePoint.WebPartPages" Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Ta