Skip to content

Instantly share code, notes, and snippets.

@koentjuh1
koentjuh1 / UI date picker - dutch.js
Created May 17, 2019
UI date picker - dutch.js
View 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
Gravityforms Datepicker | jQuery UI min age 18 years.js
View 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'
});
View 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
View Vue js.md

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'
View Vue js.md

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

View Vue js.md

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

@koentjuh1
koentjuh1 / Add remove class with different delay.js
Created May 12, 2017
Add remove class with different delay
View Add remove class with different delay.js
$('.mainmenu-toggle').click(function(){
if($(this).hasClass('mainmenu-toggle-open')){
$(this).delay(200).queue(function(reset_delay){
$(this).removeClass('mainmenu-toggle-open');
reset_delay();
});
} else {
$(this).delay(700).queue(function(reset_delay){
$(this).addClass('mainmenu-toggle-open');
reset_delay();
@koentjuh1
koentjuh1 / Javascript checken of script aanwezig is else niet uitvoeren.js
Created May 11, 2017
Javascript checken of script aanwezig is else niet uitvoeren
View Javascript checken of script aanwezig is else niet uitvoeren.js
if (jQuery('#maps-map-container').length > 0)
{
}