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 registerHandleFormSubmit = function() { | |
$("#landingPage form").submit(function (e) { | |
e.preventDefault(); | |
var $form = $(this); | |
var $email = $form.find(".email"); | |
var $section = $form.closest("section"); | |
var $thankYou = $section.find(".thank-you"); | |
var $error = $section.find(".error"); |
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 class AboutUsModel : RenderModel | |
{ | |
public IPublishedContent MainImage { get; } | |
public string MainImageUrl { get; } | |
public AboutUsModel(IPublishedContent content) | |
: base(content) | |
{ | |
MainImage = Content.GetHeaderImage("mainImage"); |
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 (Model.Content.HasVortoValue("content")) | |
{ | |
var vortoContent = Model.Content.GetVortoValue("content"); | |
var archetypeModel = vortoContent as ArchetypeModel; | |
if (archetypeModel != null) | |
{ | |
@Html.RenderArchetypePartials(archetypeModel, "~/Views/Partials/Archetype/") | |
} |
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
// the setup function runs once when you press reset or power the board | |
#include <SPI.h> | |
#include <Ethernet.h> | |
//define a constant that maps to pin 6 | |
#define BLUE_PIN 6 | |
//needs a mac address, just needs to be unique to your LAN | |
//you can make this number up | |
byte mac[] = { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED }; |
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
module.exports = function (grunt) { | |
require('load-grunt-tasks')(grunt); | |
grunt.initConfig({ | |
pkg: grunt.file.readJSON('package.json'), | |
//begin vars | |
blog: { | |
assets: { | |
src: 'src/KGLLC.Blog/assets' |
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
{ | |
"name": "Name of your project", | |
"version": "0.0.0", | |
"author": "Your name", | |
"private": true, | |
"repository": { | |
"type": "git", | |
"url": "" | |
}, | |
"devDependencies": { |
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 "%SCM_TRACE_LEVEL%" NEQ "4" @echo off | |
:: ---------------------- | |
:: KUDU Deployment Script | |
:: Version: 1.0.15 | |
:: ---------------------- | |
:: Prerequisites | |
:: ------------- |
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
using System; | |
using Umbraco.Core.Models; | |
using Umbraco.Web; | |
namespace KGLLC.Umbraco.Helpers | |
{ | |
public static class PublishedContentExtensions | |
{ | |
public static string ToPublishedDateLong(this IPublishedContent content) | |
{ |
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
@inherits Umbraco.Web.Mvc.UmbracoTemplatePage | |
@{ | |
Layout = "Base.cshtml"; | |
} | |
@section FooterScripts { | |
<script src="/assets/scripts/jquery.parallax.js"></script> | |
} | |
<section id="main" class="about-me"> |
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
@inherits UmbracoViewPage<Archetype.Models.ArchetypeFieldsetModel> | |
@{ | |
var colorClass = Model.GetValue<string>("color"); | |
if (string.IsNullOrEmpty(colorClass)) | |
{ | |
colorClass = "primary"; //default | |
} | |
} |