This file contains hidden or 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
| <html> | |
| <head> | |
| <title>Form example</title> | |
| <style> | |
| body { | |
| margin: 1em auto; | |
| max-width: 60em; | |
| } | |
| form { | |
| width: 60%; |
This file contains hidden or 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 | |
| /** | |
| * Lookup provincie ahv postcode: | |
| * https://nl.wikipedia.org/wiki/Postcodes_in_Nederland | |
| * | |
| * @param $postcode | |
| * | |
| * @return string | |
| */ | |
| function lookupProvincie($postcode) { |
This file contains hidden or 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 | |
| guesstimate_file_location($boltforms_location, $public_location) { | |
| $tested = false; | |
| $formfilename = $boltforms_location . '/testfile.txt'; | |
| $publicfilename = $public_location . '/testfile.txt'; | |
| $timestamp = microtime(); | |
| if(file_put_contents ( $formfilename , $timestamp )) { |
This file contains hidden or 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
| pages: | |
| name: Pages | |
| singular_name: Page | |
| fields: | |
| title: | |
| type: text | |
| class: large | |
| group: content | |
| slug: | |
| type: slug |
This file contains hidden or 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
| pages: | |
| name: Pages | |
| singular_name: Page | |
| fields: | |
| title: | |
| type: text | |
| class: large | |
| group: content | |
| slug: | |
| type: slug |
This file contains hidden or 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
| // zet huidige maand aan | |
| var todaydate = new Date(); | |
| var current_day = todaydate.getDate(); | |
| var current_year = todaydate.getFullYear(); | |
| var current_month = todaydate.getMonth(); | |
| if(current_month < 10) { | |
| current_month = '0' + current_month; | |
| } | |
| // zet volgende maand aan |
This file contains hidden or 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
| // FAQ | |
| $('.faq .bodytext').hide(); // alle teksten sluiten | |
| $('.faq h4.title').removeClass('open'); // alle "open" classes verwijderen | |
| $('.faq h4.title').click(function() { | |
| if($(this).hasClass('open')!=true) { // kijk of deze title al open is | |
| $('.faq h4.title').removeClass('open'); // sluit alle open title | |
| $('.faq .bodytext').slideUp('fast'); // sluit alle open teksten | |
| $(this).parents('.faq').find('.bodytext').slideDown('fast'); // open deze tekst | |
| $(this).addClass('open'); // voeg open class toe bij deze title |
This file contains hidden or 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
| {% setcontent bgimgrecord = 'headerbeeld/random/1' %} | |
| {% set bgimg = bgimgrecord.image|first %} | |
| <div class="bgimg" style="background-image: url(/files/{{ bgimg.file }});"></div> |
This file contains hidden or 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
| contact: | |
| notification: | |
| enabled: true | |
| debug: false | |
| subject: Your message was submitted | |
| from_name: My Site | |
| from_email: [email protected] | |
| to_name: My Site # Must be valid text | |
| to_email: [email protected] # Must be valid email address | |
| attach_files: false |
This file contains hidden or 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
| // Konami code block | |
| jQuery(function( $ ){ | |
| if ( window.addEventListener ) { | |
| var kkeys = [], konami = "38,38,40,40,37,39,37,39,66,65"; | |
| window.addEventListener("keydown", function(e){ | |
| kkeys.push( e.keyCode ); | |
| if ( kkeys.toString().indexOf( konami ) >= 0 ) { | |
| console.log('> Someone entered Konami Code. Quickly, do something cool!') | |
| console.log('< Do something cool?'); | |
| console.log('> Yes!, Quickly!'); |