$('elementnaam')
.closest() > https://developer.mozilla.org/en-US/docs/Web/API/Element/closest
.parent() > https://developer.mozilla.org/nl/docs/Web/API/ParentNode
.addClass, .removeClass, .hasClass
.ajax()
# BEGIN WordPress | |
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteBase / | |
RewriteRule ^index\.php$ - [L] | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteRule . /index.php [L] | |
</IfModule> |
/*! | |
* modernizr v3.9.1 | |
* Build https://modernizr.com/download?-inputtypes-setclasses-dontmin | |
* | |
* Copyright (c) | |
* Faruk Ates | |
* Paul Irish | |
* Alex Sexton | |
* Ryan Seddon | |
* Patrick Kettner |
/* | |
* COOKIE HANDLING FUNCTIONS | |
* Source: http://www.quirksmode.org/js/cookies.html | |
*/ | |
function createCookie(name,value,days) { | |
if (days) { | |
var date = new Date(); | |
date.setTime(date.getTime()+(days*24*60*60*1000)); | |
var expires = "; expires="+date.toGMTString(); |
html::before, | |
html::after { | |
display: none; | |
} | |
html::before { | |
content: to-string($breakpoints); | |
} | |
html::after { |
/** | |
* Source: http://nicolasgallagher.com/micro-clearfix-hack/ | |
* | |
* For modern browsers | |
* 1. The space content is one way to avoid an Opera bug when the | |
* contenteditable attribute is included anywhere else in the document. | |
* Otherwise it causes space to appear at the top and bottom of elements | |
* that are clearfixed. | |
* 2. The use of `table` rather than `block` is only necessary if using | |
* `:before` to contain the top-margins of child elements. |
// JavaScript hasClass, addClass, removeClass | |
//source: http://www.avoid.org/?p=78 | |
function hasClass(el, name) { | |
return new RegExp('(\\s|^)'+name+'(\\s|$)').test(el.className); | |
} | |
function addClass(el, name) | |
{ | |
if (!hasClass(el, name)) { el.className += (el.className ? ' ' : '') +name; } |
self.addEventListener('install', function(event) { | |
event.waitUntil( | |
caches.open('sw-v1').then(function(cache) { | |
return cache.addAll([ | |
'./', | |
'style.css', | |
'main.js' | |
]); | |
}) | |
); |
$('elementnaam')
.closest() > https://developer.mozilla.org/en-US/docs/Web/API/Element/closest
.parent() > https://developer.mozilla.org/nl/docs/Web/API/ParentNode
.addClass, .removeClass, .hasClass
.ajax()
$('elementnaam') .closest() > https://developer.mozilla.org/en-US/docs/Web/API/Element/closest .parent() > https://developer.mozilla.org/nl/docs/Web/API/ParentNode .addClass, .removeClass, .hasClass .ajax() .scrollTop()
<?php the_post(); if(trim($post->post_content) != "") : ?> | |
<div class="main-content"> | |
<?php the_content(); ?> | |
</div> | |
<?php endif; ?> |