Skip to content

Instantly share code, notes, and snippets.

View spdustin's full-sized avatar
💭
I may be slow to respond.

Dustin Miller spdustin

💭
I may be slow to respond.
View GitHub Profile
@spdustin
spdustin / spe.wphelperclasses.js
Created October 31, 2012 20:14
WIP - helper classes for web parts
$('.ms-WPHeaderTd').each(
function() {
var wpClass = "wptitle-" +
$(this).attr('title').split('-')[0].replace(/[\W]/g,'');
$(this).closest('.s4-wpcell').addClass(wpClass);
}
);
@spdustin
spdustin / spe.jquery.SPautocomplete.js
Created October 31, 2012 21:17
WIP - jQuery Autocomplete
var acField = $('input[title="Related Task"]');
var listSvc = _spPageContextInfo.webServerRelativeUrl + "/_vti_bin/listdata.svc/";
var listSvcList = "Tasks";
var listSvcFieldQuery = "Title";
var listSvcFieldReturn = "Title";
acField.autocomplete({
source: function(req, res) {
var reqUrl =
listSvc
@spdustin
spdustin / FAQs.xsl
Created December 3, 2012 17:30
Mega Menus and More
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<!-- This XSL Stylesheet created by SharePoint Experts, Inc. -->
<!-- http://sharepointexperience.com -->
<xsl:output method="html" indent="yes"/>
<!-- This template is the "wrapper" or "container" for the custom view. -->
<xsl:template match="/">
<!-- This is the actual wrapper element that will be emitted -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
@spdustin
spdustin / Test.md
Created December 7, 2012 21:29
Test

#neat

@spdustin
spdustin / 0-Welcome.md
Created December 10, 2012 15:13
Web Snippets
@spdustin
spdustin / 0 - Welcome.md
Created December 17, 2012 17:49
Samples used in the 3rd session for Mega Menus and More!
@spdustin
spdustin / .-What is this about -.md
Last active December 13, 2015 22:59
WebDev 2013-02

What is this about?

If you're not in my SharePoint Web Developer Experience class, you're missing out. This is just some of the sample code we're discussing in the February 2013 delivery. There's another one coming up in May. And you get even more code than is shared here to the public.

Feel free to poke around. Geek out a bit. And if your curiosity is piqued, sign up for the next one.

@spdustin
spdustin / anything_slider_reference.html
Last active December 16, 2015 15:29
Sample snippets from UIUX Seattle
<link rel="stylesheet" type="text/css" href="http://s3.amazonaws.com/classcdn/slider/css/anythingslider.css"/>
<script src="http://s3.amazonaws.com/classcdn/slider/js/jquery.anythingslider.min.js"></script>
@spdustin
spdustin / 01 - !welcome.md
Last active December 17, 2015 02:08
Web Developer Experience - Boo!

Welcome! :)

Stay tuned!

<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<title>JS Bin</title>
</head>
<body>
</body>
</html>