Skip to content

Instantly share code, notes, and snippets.

🍍
I’m sweet and fuzzy, like a lollipop on the carpet.

Tim Filler elricco

🍍
I’m sweet and fuzzy, like a lollipop on the carpet.
Block or report user

Report or block elricco

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@elricco
elricco / redaxo-ooops-page.html
Created Nov 3, 2018
Responsive layout for OOOPS Page for REDAXO
View redaxo-ooops-page.html
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>Ooops, something went wrong!</title>
<style type="text/css">
View placeElementsinFullinContainer.js
$(function() {
function fullpageElement($indicator, $selector) {
let indicatorHeight = $indicator.height();
let indicatorWidth = $indicator.width();
let indicator = indicatorHeight;
let $selectedElement = $selector;
if((100 * indicatorHeight) / indicatorWidth < 56.25) {
indicator = indicatorWidth;
$selectedElement.height((indicator/100)*56.25);
View tablesaw-bar-sticky.jquery.js
//this is specific for sonata admin - but can be tweaked for other purposes
//was to lazy to write a class
$(function () {
window.setTimeout(function () {
var elementExists = !!document.getElementsByClassName('.tablesaw-bar');
if(elementExists) {
makeTablesawBarSticky();
}
}, 100);
View images_for_the_web.md

Braucht das Bild eine Transparenz? Ja => PNG / Nein => JPG

Bildgröße dem Verwendungszweck anpassen (optimalstens nur so groß, wie es maximal benötigt wird)

  • Dateinamen IMMER beschreibend und mit Projektname versehen für Google

  • Dateinamen IMMER klein

  • Umlaute ersetzen - also ß = ss, ä = ae, etc.

  • Leerstellen durch _ oder - ersetzen (- "verbinden" _ "trennen")

  • Ich nutze immer NameChanger um Sequenzen von Bildern umzubenennen https://mrrsoftware.com/namechanger/

@elricco
elricco / JS
Last active Mar 30, 2017
AJAX Call in REDAXO 5
View JS
$.post(
location.href,
View Sammeln der JavaScript Ausgabe.js
IM HEAD
############
<script>
var elricco = {};
elricco.funcs = [];
</script>
MODULAUSGABE
############
<?php if (!rex::isBackend()): ?>
@elricco
elricco / Markup.html
Last active Apr 8, 2017
Transform Bookatable Booking Table
View Markup.html
<div class="reservierung-kalender" id="bookingTableWrapper">
<!-- Start Bookatable Code -->
<script type="text/javascript" src="https://bda.bookatable.com/deploy/lbui.direct.min.js"></script>
<script type="text/javascript">
LBDirect_Embed({
connectionid : "BOOKATABLE-CONNECTION-ID",
language: "de-DE",
});
jQuery(function () {
setTimeout(transformLBD, 10);
@elricco
elricco / ckeditor.preview-action.js
Last active Nov 2, 2015
Aktion für den CKEditor - das JavaScript auslagern // Action for the CKEditor - outsource the JavaScript // REDAXO 4.6.1 // Bootstrap Typography Styles
View ckeditor.preview-action.js
<script type="text/javascript">
//Diesen Code als PREVIEW-ACTION ADD+EDIT an Textmodule hängen, die mit dem CK-Texteditor arbeiten:
//This Code as PREVIEW-ACTION ADD+EDIT linked to modules using the CKEDitor
jQuery(document).ready(function($) {
$('.editors').each(function() {
var id = $(this).attr('id');
CKEDITOR.replace(id, {
height: 400,
fillEmptyBlocks: false,
forcePasteAsPlainText: false,
@elricco
elricco / module.rexnames.input-output.php
Last active Nov 2, 2015
REXNames zum erweitern der VALUES von REDAXO // REXNames to enhance the VALUES of REDAXO // REDAXO 4.6.1
View module.rexnames.input-output.php
//Im zu verwenden Modul dann folgenden Code in die Eingabe UND die Ausgabe ganz oben integrieren:
//Put this code on top of the used module - INPUT and OUTPUT
<?php
// REXNames zur Erweiterung der Values - REX_VALUE[20] blockiert
// REXNames to enhance the Values - REX_VALUE[20] blocked
$rexname = unserialize (urldecode ("REX_VALUE[20]"));
?>
You can’t perform that action at this time.