Skip to content

Instantly share code, notes, and snippets.

View alex-wilmer's full-sized avatar

Alex Wilmer alex-wilmer

View GitHub Profile
function $web ($http) {
var post = function (method, data) {
$http({
method: 'POST'
, url: '/_layouts/15/CSN.SharePoint/CSNWebMethods.aspx/' + method
, headers: {'X-RequestDigest': $('[name="__REQUESTDIGEST"]').val()}
, data: data
})
.then(function () {
console.log('Post success!');
<%-- Copyright (c) Microsoft Corporation. All rights reserved. --%><%@ Register TagPrefix="GroupBoardMobile" Namespace="Microsoft.SharePoint.Applications.GroupBoard.MobileControls" Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %><%@ Page Language="C#" Debug="true" EnableViewState="false" inherits="Microsoft.SharePoint.Mobile.WebControls.SPMobileWikiPage,Microsoft.SharePoint,Version=15.0.0.0,Culture=neutral,PublicKeyToken=71e9bce111e9429c" %><%@ Assembly Name="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="SPMobileA" Namespace="Microsoft.SharePoint.Mobile.WebControls" Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %><%@ Register TagPrefix="WPMobileA" Namespa
<head>
<title>form-template</title>
</head>
<body>
{{> form}}
</body>
<template name="form">
<style>
.underline {
border-bottom:1px solid #000;
}
</style>
<div class="container">
<div class="row" style="padding:20px;">
<div class="logo col-xs-5">
<img src="http://fc03.deviantart.net/fs71/f/2013/206/1/9/simple_linux_logo_by_dablim-d5k4ghu.png">
<link rel="stylesheet" href="/Apps/EventMap/event-map.css">
<script src="http://code.jquery.com/jquery-migrate-1.2.1.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.96.0/js/materialize.min.js"></script>
<script type="text/javascript">window.PDC_CDN = 'd2mxabrykbl1km.cloudfront.net'; var isWavPlayerActive = false;</script>
<div class="CSN-PDC-map">
<div id="mapContent">
<div id="legend_layers" class="legend" style="height:320px">
<div class="legend_layers_bttns_wrapper">
<a class="bttn_legend" href="javascript:void(0)" rel="legend_content">Legend</a>
<a class="bttn_layers curr" href="javascript:void(0)" rel="layers_content">Layers</a>
var page = require('webpage').create()
, url = 'https://dev.uwsecure.uwatwork.com/UWGT_41/Donation/Web/Pages/Welcome.aspx'
+ '?dguid=974E2203-61B4-44CA-A4A1-DCBAE93C2C16';
page.open(url, function(status) {
if(status === "success") {
// Click Donate Button
page.evaluate(function() {
$('[id$="DonateButton"]').trigger('click');
weather .weatherBox {
font-size: 0.75em;
}
.weather .today {
margin-bottom: -15px;
}
.weather .wi-today {
font-size: 5.5em;
color: #55924d;
float: left;
/*!
* Weather Icons 1.2
* Weather themed icons for Bootstrap
* ------------------------------------------------------------------------------
* Maintained at http://erikflowers.github.io/weather-icons
* http://twitter.com/Erik_UX
*
* License
* ------------------------------------------------------------------------------
* - Fpmt licensed under SIL OFL 1.1 -
{
"codes": {
"condition": [
{
"code": "395",
"description": "Moderate or heavy snow in area with thunder",
"day_icon": "wsymbol_0012_heavy_snow_showers",
"night_icon": "wsymbol_0028_heavy_snow_showers_night"
},
{
<%@ Assembly Name="$SharePoint.Project.AssemblyFullName$" %>
<%@ Assembly Name="Microsoft.Web.CommandUI, 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="asp" Namespace="System.Web.UI" Assembly="System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" %>
<%@ Import Namespace="Microsoft.SharePoint" %>
<%@ Register Tagprefix="WebPartPages" Namespace="Microsoft.SharePoint.WebPartPages" Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="Weather.ascx.cs" Inherits="