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
<style> | |
.skip-link { | |
left: -100%; | |
position: absolute; | |
} | |
.skip-link:focus { | |
left: 50%; | |
} | |
</style> |
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
<head> | |
<meta charset="utf-8"> | |
<title>JS Bin</title> | |
<style> | |
head, style { display: block; } | |
[contenteditable] { -webkit-user-modify: read-write-plaintext-only; } | |
style:first-of-type { display: none; } | |
style:last-of-type { padding: 1em; font-size: 1.5em; white-space: pre; margin: 0 auto; width: 80%; font-family: monospace; } | |
</style> | |
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
(function(d, $) { | |
load(); | |
$('#dropDown').on('change', function(e) { | |
e.preventDefault(); | |
var selectedItem = $(this).find(":selected").val(); | |
if (selectedItem !== null) { | |
d.location.href = selectedItem; |
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
<!-- | |
https://megalytic.com/blog/tracking-youtube-videos-using-google-analytics | |
Key elements in iframe are 'id' & 'enablejsapi' & 'origin' source parameter values | |
--> | |
<iframe allowfullscreen="" data-title="Descriptive title" frameborder="0" height="152" id="youTubePlayer" src="http://www.youtube.com/embed/<YOUTUBEID>?enablejsapi=1&origin=http://www.YOURWEBSITE.com&rel=0&showinfo=0" width="100%"></iframe> | |
<script> | |
// get descriptive title |
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
SELECT [AlertTitle] AS Title | |
,'' AS Summary | |
,[AlertBody] AS Description | |
,[AlertDate] AS Date | |
,[AlertLink] AS AlertLink | |
,[AlertType] AS AlertType | |
,'' AS Location | |
FROM [Claremont_Kentico8_2].[dbo].[View_claremont_Alert_Joined] | |
UNION | |
SELECT [EventName] AS Title |
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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head> | |
<meta charset="utf-8"> | |
<title>Email boilerplate template</title> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"/> | |
<style type="text/css"> | |
body { |
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
USE [master] | |
alter database [databaseName] | |
set single_user with rollback immediate | |
GO | |
RESTORE DATABASE [databaseName] FROM DISK = 'path\to\db\backup.bak' | |
WITH REPLACE | |
GO | |
alter database [databaseName] |
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
/**** definitions ****/ | |
/* font-size units: em, ex, %, px, cm, mm, in, pt, pc, ch, rem, vh, vw, vmin, vmax */ | |
/* em: relative unit based on computed value of font size of parent element. Child elements are always dependent | |
on their parent to set their font-size*/ | |
/* rem: font size is dependent on the value of the root element */ | |
/* box-sizing best practice - easier to change the box-sizing in plugins or other components that leverage other behavior */ | |
html { box-sizing: border-box; } | |
*, *:before, *:after { box-sizing: inherit; } |
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
(function () { | |
var firebaseRoot = 'https://bookmark-app.firebaseio.com/', | |
bookmarkRef = new Firebase(firebaseRoot + 'bookmarks'); | |
bookmarkRef.on('value', function (snapshot) { | |
var snapshotResult = snapshot.val(); | |
keys = Object.keys(snapshotResult); |