Skip to content

Instantly share code, notes, and snippets.

View dannycjones's full-sized avatar

Daniel Carl Jones dannycjones

View GitHub Profile
@dannycjones
dannycjones / hide-smug-footer.css
Last active August 29, 2015 13:56
Hide the new Smugmug Footer
@dannycjones
dannycjones / custom-smug-search.html
Last active August 29, 2015 13:56
A modified search box for SmugMug.
<form action="/search/" method="get" class="sm-search-form" style="text-align:left">
<div>
<input type="hidden" name="c" value="everything" />
<input type="hidden" name="n" value="corinos" />
<input type="hidden" name="scope" value="node" />
<input type="hidden" name="scopeValue" value="0" />
<input type="text" name="q" class="sm-form-field sm-form-field-text-input" placeholder="Search..." />
<button style="width:100%; margin:0;" class="sm-button sm-button-size-small sm-button-skin-accent">
<span class="sm-button-label">Search</span>
</button>
@dannycjones
dannycjones / wufoo-style.css
Last active August 29, 2015 13:56
A CSS File to style a Wufoo Form on Smugmug.
textarea, input {
color:#DEDEDE !important;
background:none !important;
background-color:#080808 !important;
border-color:#1A1A1A !important;
border-width:1px !important;
border-style:solid !important;
outline-width:0;
padding:6px 12px 5px !important;
border-color:#212121 !important;
@dannycjones
dannycjones / detailed-breadcrumb-mod.css
Last active August 29, 2015 13:56
Shorten's breadcrumb to only show current & parent page when on mobile & tablet.
/* Shorten Breadcrumbs on Tablet and Smartphones */
/* Coded by Dan Jones */
@media only screen and (max-width: 1024px) {
ul.sm-breadcrumb > li.sm-breadcrumb-item {
display:none;
}
ul.sm-breadcrumb li:nth-child(1), ul.sm-breadcrumb li:nth-child(2), ul.sm-breadcrumb li:nth-last-child(1), ul.sm-breadcrumb li:nth-last-child(2), ul.sm-breadcrumb li:nth-last-child(3), ul.sm-breadcrumb li:nth-last-child(4) {
display:inline-block;
@dannycjones
dannycjones / code.css
Last active August 29, 2015 13:56
Code Formatting for Smugmug
div.code div pre {
margin: 0;
padding: 6px 12px;
}
div.code > div {
margin: 5px 10px;
background-color: #1A1A1A;
border-color: #212121;
border-style: solid;
@-webkit-keyframes rainbow {
0% {color: #39f;
text-shadow: 0px 0px 6px #39f;}
15% {color: #8bc5d1;
text-shadow: 0px 0px 6px #8bc5d1;}
30% {color: #f8cb4a;
text-shadow: 0px 0px 6px #f8cb4a;}
45% {color: #95b850;
text-shadow: 0px 0px 6px #95b850;}
60% {color: #944893;
<!DOCTYPE html>
<!--[if lt IE 7]><html class="lt-ie10 lt-ie9 lt-ie8 lt-ie7"><![endif]-->
<!--[if IE 7]><html class="lt-ie10 lt-ie9 lt-ie8"><![endif]-->
<!--[if IE 8]><html class="lt-ie10 lt-ie9"> <![endif]-->
<!--[if IE 9]><html class="lt-ie10"> <![endif]-->
<!--[if gt IE 9]><!--> <html> <!--<![endif]-->
<head>
{MobileAppHeaders}
<meta charset="utf-8">
<title>Redirecting...</title>
<!DOCTYPE html>
<html>
<head>
{MobileAppHeaders}
<meta charset="utf-8">
<title>{Title}</title>
{block:Description}
<meta name="description" content="{MetaDescription}"/>
{/block:Description}
console.info("specialRep Javascript Loaded.");
var specialRepUsers = [];
var specialRepInterval;
function UserObj(memberID, repMsg, background, prob) {
this.memberID = memberID;
this.repMessage = repMsg;
this.bgColor = background;
this.prob = prob;