Skip to content

Instantly share code, notes, and snippets.

Web Accessibility Specialist, Advocate, and Trainer

Stefany Newman Stefany93

Web Accessibility Specialist, Advocate, and Trainer
View GitHub Profile
Stefany93 / functions.php
Created Jan 5, 2020
functions.php for trucks.php
View functions.php
Function courtesy of Chris McKee -
Get sute URL with protocol (http or https)
function siteURL()
$protocol = (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off'
|| $_SERVER['SERVER_PORT'] == 443) ? "https://" : "http://";
Stefany93 / skip_link.html
Created Dec 12, 2019
Skip link (Bypass blocks) code
View skip_link.html
View furbaby_css.css
a {
text-decoration: none;
.container {
max-width: 1400px;
margin: auto;
#primary-nav .container {
padding: 0 10px;
View furbaby-header.html
<header class="main">
<nav id="primary-nav" aria-label="Main Navigation">
<div class="container">
<a href="/" class="logo-holder">
<img class="logo" src="/assets/template/images/logo/logo.svg" alt="Homepage">
<button id="hamburger" aria-expanded="true">
<span id="expanded">expanded</span>
View buttons.html
<button on="">
<amp-video id="myVideo"
/* amp-video attributes */
View amp-carousel-final-code.html
Stefany93 / carousel-slide.html
Last active Sep 6, 2019
View carousel-slide.html
View trucks.php
require 'scripts/functions.php';
$domain_name = domainName(); //
$siteURL = siteURL(); //
// Message
AMP boilerplate CORS code and setting the content type as JSON
Since all errors / sucess messages will be encoded in JSON
Stefany93 / amp_email.html
Created Jul 4, 2019
AMP Email with a slider
View amp_email.html
<!doctype html>
<html ⚡4email>
<meta charset="utf-8">
<script async src=""></script>
<script async custom-element="amp-carousel" src=""></script>
<style amp4email-boilerplate>body{visibility:hidden}</style>
<style amp-custom>
h1 {
margin: 10px;
View amp-list.html
<template type="amp-mustache">
<a href="{{url}}">{{title}}</a>