Skip to content

Instantly share code, notes, and snippets.

View mrcave's full-sized avatar

Denny Cave mrcave

View GitHub Profile
@mrcave
mrcave / example.html
Created May 4, 2011 03:32
ResizeImage.aspx Paramaters
<img src="/ResizeImage.aspx?img=/Websites/siteslug/Images/image.jpg&w=128" />
@mrcave
mrcave / jquery.read-more-link.js
Last active December 10, 2015 17:29
Add a "Read More" link to your blog post summaries
/* <textEditor> */
img.bordered{
background:#fff;
padding:3px;
margin:10px 20px;
-moz-box-shadow: 0px 0px 8px rgba(0,0,0,0.3);
-webkit-box-shadow: 0px 0px 8px rgba(0,0,0,0.3);
box-shadow: 0px 0px 8px rgba(0,0,0,0.3);
}
p.intro{
@mrcave
mrcave / buttons.html
Last active December 10, 2015 18:49
The ultimate guide to socializing your LightCMS website http://lightignite.com/the-ultimate-guide-to-socializing-your-lightcms-website
<script type="text/javascript">
// <![CDATA[
var switchTo5x=false;
// ]]>
</script>
<script type="text/javascript" src="http://w.sharethis.com/button/buttons.js"></script>
<script type="text/javascript">
// <![CDATA[
@mrcave
mrcave / columns.css
Last active December 10, 2015 18:58
Spruce up your files & links elements http://lightignite.com/spruce-up-your-files-links-elements
.linksModule li{
width: 165px;
float: left;
padding: 0;
}
@mrcave
mrcave / hide-photogallery.css
Created January 7, 2013 22:07
The lcms_AdminView class
.photoGalleryElement{
display:none;
}
@mrcave
mrcave / complete.html
Last active December 10, 2015 19:08
Implementing global regions
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script>
<script type="text/javascript">
$(document).ready(function() {
$('#target_region').load('/assets-for-global-regions #element3535938_1349732 > div');
});
</script>
@mrcave
mrcave / javascript.js
Last active December 10, 2015 19:08
Help your customers fill out web forms with URL query strings
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script>
<script type="text/javascript">
$(function () {
//grab the entire query string
var query = document.location.search.replace('?', '');
//extract each field/value pair
query = query.split('&');
@mrcave
mrcave / information.html
Last active December 10, 2015 19:08
5 secrets for building a powerful members-only area
<a href="/contact?field_92375_1015030=[first]&field_92375_1015031=[last]&field_92375_1015032=[email]">Contact us</a>
@mrcave
mrcave / embed.html
Created January 7, 2013 22:57
Properly using Google Hosted Libraries
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>