Skip to content

Instantly share code, notes, and snippets.

Avatar

Samuel Levesque levesquesamuel

View GitHub Profile
View Item_QuiSenOccupe.html
<html xmlns:mso="urn:schemas-microsoft-com:office:office" xmlns:msdt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882">
<head>
<title>Qui s'en occupe?</title>
<!--[if gte mso 9]><xml>
<mso:CustomDocumentProperties>
<mso:TemplateHidden msdt:dt="string">0</mso:TemplateHidden>
<mso:ManagedPropertyMapping msdt:dt="string">'Path':'Path','Title':'Title','Picture':'PublishingImage','Description':''</mso:ManagedPropertyMapping>
<mso:MasterPageDescription msdt:dt="string">Qui s'en occupe?</mso:MasterPageDescription>
<mso:ContentTypeId msdt:dt="string">0x0101002039C03B61C64EC4A04F5361F385106603</mso:ContentTypeId>
View quisenoccupe_lien_fichier_css.txt
<link href="/sites/intranet/Style%20Library/css/quisenoccupe.css" rel="stylesheet" type="text/css"/>​​
<link href="https://static2.sharepointonline.com/files/fabric/office-ui-fabric-core/4.1.0/css/fabric.min.css" rel="stylesheet"/>​ ​<br/>
View quisenoccupe_lettres.txt
<div class="alpha-controls" id="alpha-controls">
<div class="letter" id="see-all" onclick="alpha.search('');">Tous</div>
<div class="letter" id="letter-a" onclick="alpha.search('a');">a</div>
<div class="letter" id="letter-b" onclick="alpha.search('b');">b</div>
<div class="letter" id="letter-c" onclick="alpha.search('c');">c</div>
<div class="letter" id="letter-d" onclick="alpha.search('d');">d</div>
<div class="letter" id="letter-e" onclick="alpha.search('e');">e</div>
<div class="letter" id="letter-f" onclick="alpha.search('f');">f</div>
<div class="letter" id="letter-g" onclick="alpha.search('g');">g</div>
<div class="letter" id="letter-h" onclick="alpha.search('h');">h</div>
View quisenoccupe.css
.alpha-controls {
overflow: hidden;
margin: 10px 0;
}
.alpha-controls .letter {
float: left;
min-width: 16px;
text-align: center;
margin-right: 10px;
View scripts_google_analytics_tracking_without_fqdn.js
<!-- Google Analytics -->
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-YourTrackIngId', {
cookieDomain: 'none',
legacyCookieDomain: 'none'
@levesquesamuel
levesquesamuel / ClientWebPartBlogNews.aspx
Last active Sep 13, 2016
SharePoint Add-In Part to show news with Like button and comments from a blog.
View ClientWebPartBlogNews.aspx
<%@ Page Language="C#" Inherits="Microsoft.SharePoint.WebPartPages.WebPartPage, Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ 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" %>
<%@ Register TagPrefix="WebPartPages" Namespace="Microsoft.SharePoint.WebPartPages" Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<WebPartPages:AllowFraming ID="AllowFraming" runat="server" />
<html>
<head>
View app_filtre.js
(function(module,$j) {
"use strict";
window.pd = window.pd || {};
pd.MeetingsViewModel = function() {
/* observable state */
this.FilterTextIm = ko.observable('');
this.FilterText = ko.computed(this.FilterTextIm)
.extend({ throttle: 400 });
View app_filtre.css
/* Script permettant de filtrer par année */
/* Source : https://platinumdogs.me/2014/07/15/dynamically-filtering-sharepoint-list-views-using-javascript/ */
/* CLEARFIX */
.cdtm-wrapper .row:before,
.cdtm-wrapper .row:after {
content: "";
display: table;
}
View script_actualites_filtre_html.txt
<!-- Script permettant de filtrer par année -->
<!-- Source : https://platinumdogs.me/2014/07/15/dynamically-filtering-sharepoint-list-views-using-javascript/ -->
<!-- Lib CSS -->
<link rel="stylesheet" type="text/css" href="/Style Library/css/app_filtre.css" />
<!-- Lib JS -->
<script type="text/javascript" src="/Style Library/scripts/knockout-3.1.0.js"></script>
<!-- App JS -->
You can’t perform that action at this time.