Skip to content

Instantly share code, notes, and snippets.

// Generated by CoffeeScript 1.6.2
/*
jQuery Waypoints - v2.0.4
Copyright (c) 2011-2014 Caleb Troughton
Dual licensed under the MIT license and GPL license.
https://github.com/imakewebthings/jquery-waypoints/blob/master/licenses.txt
*/
(function(){var t=[].indexOf||function(t){for(var e=0,n=this.length;e<n;e++){if(e in this&&this[e]===t)return e}return-1},e=[].slice;(function(t,e){if(typeof define==="function"&&define.amd){return define("waypoints",["jquery"],function(n){return e(n,t)})}else{return e(t.jQuery,t)}})(this,function(n,r){var i,o,l,s,f,u,c,a,h,d,p,y,v,w,g,m;i=n(r);a=t.call(r,"ontouchstart")>=0;s={horizontal:{},vertical:{}};f=1;c={};u="waypoints-context-id";p="resize.waypoints";y="scroll.waypoints";v=1;w="waypoints-waypoint-ids";g="waypoint";m="waypoints";o=function(){function t(t){var e=this;this.$element=t;this.element=t[0];this.didResize=false;this.didScroll=false;this.id="context"+f++;this.oldScroll={x:t.scrollLeft(),y:t.scrollTop()};this.waypoints={horizontal:{},vertical:{}};this.element[u]=th
@ABooooo
ABooooo / new_gist_file_0
Created May 28, 2015 06:42
Get image url from resourses
lib.headerimage = IMG_RESOURCE
lib.headerimage {
file {
import.data = levelmedia:-1, slide
treatIdAsReference = 1
import.listNum = 0
}
}
@ABooooo
ABooooo / new_gist_file_0
Created May 28, 2015 06:44
Add custom header tags / style
#header styles
lib.stdheader.10.10 < lib.stdheader.10.1
lib.stdheader.10.10 {
dataWrap = <h1>|</h1>
}
lib.stdheader.10.11 < lib.stdheader.10.1
lib.stdheader.10.11 {
dataWrap = <h2>|</h2>
}
@ABooooo
ABooooo / new_gist_file_0
Created May 28, 2015 06:45
Add page ID to body tag
# bodyTag
page.bodyTag >
page.bodyTagCObject = TEXT
page.bodyTagCObject.field = uid
page.bodyTagCObject.wrap = <body id="page-|">
@ABooooo
ABooooo / new_gist_file_0
Created May 28, 2015 06:47
Add logo through typoscript
lib.logo = IMAGE
lib.logo {
file = fileadmin/templates/verovis/img/verovisLogo.png
stdWrap.typolink.parameter = 2
// stdWrap.typolink.ATagParams = class="home"
stdWrap.typolink.title = zur Startseite
# wrap it all as you like
wrap = <p class="logo pull-right">|</p>
}
@ABooooo
ABooooo / new_gist_file_0
Created May 28, 2015 06:49
Include image from resourses
lib.headerimage = IMAGE
lib.headerimage {
file {
import.data = levelmedia:-1, slide
treatIdAsReference = 1
import.listNum = 0
}
}
#include in html
tmpl.basis = FLUIDTEMPLATE
tmpl.basis {
partialRootPath = fileadmin/templates/verovis/partials
layoutRootPath = fileadmin/templates/verovis/layouts
variables {
siteName = TEXT
siteName.value = verovis
header < styles.content.get
header.select.where = colPos = 0
#disable normal title
config.noPageTitle = 1
page{
# custom titles
headerData = COA
headerData{
5 = TEXT
5.wrap = <title> | &nbsp;-&nbsp;yoursite </title>
5.field = nav_title // title
@ABooooo
ABooooo / drawDoughnutChart.js
Last active November 5, 2016 11:19
drawDoughnutChart
/*!
* jquery.drawDoughnutChart.js
* Version: 0.2(Beta)
* Inspired by Chart.js(http://www.chartjs.org/)
*
* Copyright 2013 hiro
* https://github.com/githiro/drawDoughnutChart
* Released under the MIT license.
*
*/
@ABooooo
ABooooo / new_gist_file_0
Last active November 1, 2018 08:15
install from gist
bower install drawDoughnutChart=https://gist.github.com/ABooooo/1f9d1175fd3d867d039e --save-dev