Skip to content

Instantly share code, notes, and snippets.

@koentjuh1
koentjuh1 / Bootstrap Carousel images as CSS: background-images.css
Last active February 11, 2024 11:27
Bootstrap Carousel images as CSS: background-images:
@koentjuh1
koentjuh1 / jQuery if window width is between.js
Created March 14, 2016 11:26
jQuery if window width is between
$(document).ready(function(){
if ( $(window).width() > 480 && $(window).width() < 768) {
} else{
}
});
@koentjuh1
koentjuh1 / UI date picker - dutch.js
Created May 17, 2019 09:32
UI date picker - dutch.js
/* Dutch (UTF-8) initialisation for the jQuery UI date picker plugin. */
/* Written by Mathias Bynens <http://mathiasbynens.be/> */
( function( factory ) {
if ( typeof define === "function" && define.amd ) {
// AMD. Register as an anonymous module.
define( [ "../widgets/datepicker" ], factory );
} else {
// Browser globals
@koentjuh1
koentjuh1 / Gravityforms Datepicker | jQuery UI min age 18 years.js
Created May 17, 2019 09:31
Gravityforms Datepicker | jQuery UI min age 18 years.js
$('.datepicker').datepicker({
minDate: new Date(1900,1-1,1), maxDate: '-18Y',
dateFormat: 'dd/mm/yy',
defaultDate: new Date(1970,1-1,1),
changeMonth: true,
changeYear: true,
yearRange: '-110:-18'
});
@koentjuh1
koentjuh1 / sf-pro-ajax-events.js
Created May 16, 2019 08:05
sf-pro-ajax-events.js
//detects the start of an ajax request being made
$(document).on("sf:ajaxstart", ".searchandfilter", function(){
console.log("ajax start");
});
//detects when the ajax request has finished and the content has been updated
// - add scripts that apply to your results here
$(document).on("sf:ajaxfinish", ".searchandfilter", function(){
console.log("ajax complete");
//so load your lightbox or JS scripts here again
@koentjuh1
koentjuh1 / Vue js.md
Last active October 30, 2017 19:18
Vue js

v-bind: koppel bijvoorbeeld een link aan een href.

<div id="app">
  <a v-bind:href="link">Google</a>
</div>

new Vue ({
	el: '#app',
  data: {
 link: 'http://www.google.nl'
@koentjuh1
koentjuh1 / Vue js.md
Created October 20, 2017 19:54
Vue js

v-bind: bind to data, like: Click me.

@koentjuh1
koentjuh1 / Vue js.md
Created October 20, 2017 19:52
Vue js

v-bind: bind to data, like: Click me.

@koentjuh1
koentjuh1 / Isotope checkbox filter.md
Created October 10, 2017 13:15
Isotope checkbox filter
@koentjuh1
koentjuh1 / DOIT Online media get second item in loop.php
Created June 22, 2017 12:20
DOIT Online media get second item in loop
if($index != 1) { }