Skip to content

Instantly share code, notes, and snippets.

View kathangeorg's full-sized avatar

Schorsch kathangeorg

View GitHub Profile
@kathangeorg
kathangeorg / css.css
Created April 19, 2012 13:32
Fullscreen Background (CSS)
img.bg {
/* Set rules to fill background */
min-height: 100%;
min-width: 1024px;
/* Set up proportionate scaling */
width: 100%;
height: auto;
/* Set up positioning */
@kathangeorg
kathangeorg / css.css
Created April 19, 2012 12:27
Back to top jQuery
#back-top {
position: fixed;
bottom: 30px;
margin-left: -150px;
}
#back-top a {
width: 108px;
display: block;
text-align: center;
@kathangeorg
kathangeorg / css.css
Created April 19, 2012 07:28
disable webkit text size ajust
-webkit-text-size-adjust: none
@kathangeorg
kathangeorg / 10_fullscreen_background.html
Created April 13, 2012 06:42
Fullscreen Background (jQuery)
<div class="bgh">
<img src="path/to/image.jpg"/>
</div>
<?php
/*
** @Title: Recaptcha Validation
** @Date Modified: 6/01/09
** Instructions: Place this code in a file called "ajax.recaptcha.php"
*/
//A. Load the Recaptcha Libary
require_once('/location/to/recaptchalib.php');
  • test
@kathangeorg
kathangeorg / gist:2225375
Created March 28, 2012 10:51
Typo3 Multi Domain BASE URL
//TypoScript
# Multi Domain Configuration
[globalString = ENV:HTTP_HOST=example1.de]
config.baseURL = http:// www.example1.de/
[global]
[globalString = ENV:HTTP_HOST=www.example2.de]
config.baseURL = http:// www.example2.de/
[global]
@kathangeorg
kathangeorg / gist:2225287
Created March 28, 2012 10:33
Add Class to Element x
//x=1
jQuery('.block-inner.box.platte_200x280 a.download:eq(1)').addClass("view");
@kathangeorg
kathangeorg / gist:2225283
Created March 28, 2012 10:31
Fancybox title multi-line
//Title Format
function str_replace(search, replace, subject) {
return subject.split(search).join(replace);
}
function formatTitle(title, currentArray, currentIndex, currentOpts) {
return '<div id="ttt">'+str_replace("|", "<br>", title)+'</div>';
}
@kathangeorg
kathangeorg / gist:2203950
Created March 26, 2012 08:41
str_replace Javascript
function str_replace(search, replace, subject) {
return subject.split(search).join(replace);
}