This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//Loading all php files from the functions/ folder | |
//this keeps your wordpress functions file clean | |
//and you can split up your function build up by parsing functionality in different files. | |
$folder = get_template_directory()."/functions/"; | |
$files = glob($folder."*.php"); // return array files | |
foreach($files as $phpFile){ | |
require_once("$phpFile"); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Doemela | PROJECT070 | |
* Clean function to use id as name for form inputs | |
*/ | |
function setNameAttribute(){ | |
var inputs = document.getElementById("deathnotice").elements; | |
// Iterate over the form controls | |
for (let i = 0; i < inputs.length; i++) { | |
// for the current found input collect the input ID | |
let id = inputs[i].id; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* Thanks to http://steindom.com/articles/shortest-php-code-convert-csv-associative-array */ | |
ini_set('auto_detect_line_endings', TRUE); | |
$rows = array_map('str_getcsv', file('myfile.csv')); | |
$header = array_shift($rows); | |
$csv = array(); | |
foreach ($rows as $row) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta description="Lang leve de lol"> | |
<meta keywords="javascript,les,101,"> | |
<title>Title</title> | |
<!-- Latest compiled and minified CSS --> | |
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/3.4.0/css/bootstrap.min.css" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function reloadScrollBars() { | |
document.documentElement.style.overflow = 'auto'; // firefox, chrome | |
document.body.scroll = "yes"; // ie only | |
} | |
function unloadScrollBars() { | |
document.documentElement.style.overflow = 'hidden'; // firefox, chrome | |
document.body.scroll = "no"; // ie only | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div id="header"></div> | |
<style> | |
#header { | |
position: fixed; | |
background: pink; | |
height: 72px; | |
width: 100%; | |
opacity: 0.2; | |
transition: all 300ms ease; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Quick & dirty browser sniff to detect mobile devices. | |
*/ | |
var html = document.getElementsByTagName('html')[0]; | |
var staticClass = 'static-site' | |
var dynamicClass = 'dynamic-site' | |
if ( | |
navigator.userAgent.match(/Android/i) || |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Modify the parts you need to get it working. | |
*/ | |
var should = require('should'); | |
var request = require('../node_modules/request'); | |
var io = require('socket.io-client'); | |
var serverUrl = 'http://localhost'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<noscript> | |
Om deze site optimaal te gebruiken is het noodzakelijk om Javascript aan te zetten. | |
</noscript> |
NewerOlder