Skip to content

Instantly share code, notes, and snippets.

View mneuhaus's full-sized avatar

Marc Neuhaus mneuhaus

View GitHub Profile
@mneuhaus
mneuhaus / RealUrlAutoConfiguration
Last active August 29, 2015 14:23
extbase realurl
<?php
namespace Famelo\MelosRtb\Hooks;
/***************************************************************
*
* Copyright notice
*
* (c) 2014 Marc Neuhaus <mneuhaus@famelo.com>, Famelo
*
* All rights reserved
<?php
namespace Famelo\MelosRtb\ViewHelpers;
/***************************************************************
* Copyright notice
*
* (c) 2014 Marc Neuhaus <mneuhaus@famelo.com>, Famelo
*
* All rights reserved
*
@mneuhaus
mneuhaus / template.ts
Created April 13, 2015 08:59
typoscript
FluidTemplate = FLUIDTEMPLATE
FluidTemplate {
format = html
file = {$templatePath}Private/Templates/Page.html
partialRootPath = {$templatePath}Private/Partials/
layoutRootPath = {$templatePath}Private/Layouts/
# Send backend layout uid to the fluid template
variables{
layout = TEXT
@mneuhaus
mneuhaus / index.html
Last active August 29, 2015 14:16
ScrollClock
<!DOCTYPE html>
<html>
<head>
<title>SCROLLCLOCK BITCH!</title>
<script type="text/javascript"></script>
<style type="text/css">
.clock {
position: fixed;
top: 0;
right: 0;
<!DOCTYPE html>
<html>
<head>
<title>foo</title>
</head>
<body>
<?php
$videoUrl = 'https://fbcdn-video-c-a.akamaihd.net/hvideo-ak-xaf1/v/t42.1790-2/10812569_395357007287163_395851536_n.mp4?rl=721&vabr=401&oh=5a9ff177402a2c3a84b5b0e5fe281d77&oe=54C669F0&__gda__=1422292559_f8027f663520ec309489a4a3130ad394';
$videoId = '395355717287292';
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<script>
function subst() {
var vars={};
var x=document.location.search.substring(1).split('&');
{namespace flux=FluidTYPO3\Flux\ViewHelpers}
{namespace v=FluidTYPO3\Vhs\ViewHelpers}
<f:layout name="Content" />
<f:section name="Configuration">
<flux:form id="textWithImage" label="Text mit Bild">
<flux:field.text name="description" label="Beschreibung" rows="5" enableRichText="TRUE" />
<flux:field.input name="target" label="Verknüpfung">
<flux:wizard.link />
</flux:field.input>
(function($) {
$(document).ready(function() {
window.onresize = function(){
var agent = navigator.userAgent;
var current_width = window.innerWidth;
var html = document.getElementsByTagName('html')[0];
if (agent.match(/Android.*Mobile|BlackBerry|iPhone|iPod|Opera Mini|IEMobile/i)) {
html.className = "mobile";
} else if (agent.match(/Android|iPad/i)) {
<section role="wrapper">
<div id="c1" class="csc-default"><section class="default">
<div class="tx-mflgcregistration container">
<h1>Registration</h1>
<h2>Please complete your registration on the following two pages.</h2>
<div class="tx_mflgcregistration">
<p>Please enter the registration code of your invitation to continue.</p>
<?php
function get_sub*($name) {
return $values[$name];
}
function the_sub*($name) {
echo $values[$name];
// es wird kein wert zurückggegeben