This file contains 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
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title>HTML5 boilerplate – all you really need…</title> | |
<style> | |
section.heroimg { | |
display: flex; | |
align-items: flex-end; | |
margin-bottom: 2rem; |
This file contains 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
javascript: (function () { | |
var h = document.createElement('div'); | |
var t = document.getElementsByTagName('title')[0]; | |
var info = '<p><strong>Title(' + t.innerHTML.length + '):</strong> ' + t.innerHTML + '</p>'; | |
var m = document.getElementsByTagName('meta'); | |
for (var i = 0; i < m.length; i++) { | |
if (null !== m[i].getAttribute('name')) { | |
var c = m[i].getAttribute('content'); | |
info += '<p><strong>' + m[i].getAttribute('name') + '(' + c.length + '):</strong> ' + c + '</p>'; | |
} |
This file contains 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8" /> | |
<title>Reading List</title> | |
<style type="text/css"> | |
.items {display:table;list-style:none;margin:0;padding:0;border-spacing:5px;} | |
.items li {display:table-row;-webkit-border-radius:10px;-moz-border-radius:10px;border-radius:10px;border:1px solid #ccc;padding:5px;margin:0 0 10px 0;} | |
.items li img {display:table-cell;vertical-align:top;height:100px;width:100px;} | |
.items li span.meta {display:table-cell;vertical-align:top;margin:0;padding:0 0 0 5px;} |
This file contains 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
<style type="text/css"> | |
.items {display:table;list-style:none;margin:0;padding:0;border-spacing:5px;} | |
.items li {display:table-row;border-radius:10px;border:1px solid #ccc;padding:5px;margin:0 0 10px 0;} | |
.items li img {display:table-cell;vertical-align:top;} | |
.items li span.meta {display:table-cell;vertical-align:top;margin:0;padding:0 0 0 5px;} | |
.items li {margin:0 0 5px 0;} | |
</style> |
This file contains 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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8" /> | |
<title>Reading List</title> | |
<style type="text/css"> | |
.items {display:table;list-style:none;margin:0;padding:0;border-spacing:5px;} | |
.items li {display:table-row;-webkit-border-radius:10px;-moz-border-radius:10px;border-radius:10px;border:1px solid #ccc;padding:5px;margin:0 0 10px 0;} | |
.items li img {display:table-cell;vertical-align:top;} | |
.items li span.meta {display:table-cell;vertical-align:top;margin:0;padding:0 0 0 5px;} |
This file contains 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
<?php | |
//get and set url protocol | |
$protocol = (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off' || $_SERVER['SERVER_PORT'] == 443) ? 'https://' : 'http://'; | |
//set and sanitize global variables for URL construction | |
$server = isset($_SERVER['SERVER_NAME']) ? htmlentities(strip_tags($_SERVER['SERVER_NAME'])) : null; | |
$path = isset($_SERVER['PHP_SELF']) ? htmlentities(strip_tags(dirname($_SERVER['PHP_SELF']))) : null; | |
$fileName = isset($_SERVER['SCRIPT_NAME']) ? htmlentities(strip_tags(basename($_SERVER['SCRIPT_NAME']))) : null; | |
$fileNameURI = isset($_SERVER['REQUEST_URI']) ? htmlentities(strip_tags($_SERVER['REQUEST_URI'])) : null; | |
$fileExtension = isset($_SERVER['PATH_INFO']) ? pathinfo($fileName, PATHINFO_EXTENSION) : null; |
This file contains 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta name="viewport" content="initial-scale=1.0, user-scalable=no"> | |
<meta charset="utf-8"> | |
<title>Ground Overlays</title> | |
<style> | |
html,body {height:100%;margin:0;padding:0;} | |
#map {height:100%;} |
This file contains 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
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script> | |
<script> | |
$(document).ready(function() { | |
//source Google Sheets file is https://docs.google.com/spreadsheets/d/1rX4_fInsYS7vOGpnXm1UklZgvU27FXl3UYu9lx9RHHU/ | |
$(function listBooks() { | |
$.getJSON( "https://spreadsheets.google.com/feeds/list/1rX4_fInsYS7vOGpnXm1UklZgvU27FXl3UYu9lx9RHHU/1/public/full?alt=json", | |
function (data) { | |
$('div#book-list').append('<ul class="items"></ul>'); | |
$.each(data.feed.entry, function(i,entry) { | |
var item = '<span style="display:none">' + entry.id.$t + '</span>'; |
This file contains 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
<script type="application/ld+json"> | |
{ | |
"@context": "https://schema.org/", | |
"@type": "EducationalOccupationalProgram", | |
"name": "Undergraduate Accounting degree from Montana State University", | |
"description": "Accounting – B.S. in Business, Accounting EmphasisAccounting is designed to help students develop the necessary technical expertise and broad-based business knowledge required for long-term success in careers such as auditing, assurance, tax consulting, corporate or non-profit accounting and finance, financial analysis, venture capital and financial planning." | |
"url": "https://www.montana.edu/academics/accounting/", | |
"provider": { | |
"@type": "CollegeOrUniversity", | |
"name": "Montana State University", |