{"id":1981,"date":"2022-04-15T18:09:36","date_gmt":"2022-04-15T18:09:36","guid":{"rendered":"https:\/\/www.hetjis.nl\/?page_id=1981"},"modified":"2023-05-10T20:10:08","modified_gmt":"2023-05-10T20:10:08","slug":"inschrijving-bs-dyonisius","status":"publish","type":"page","link":"https:\/\/hetjis.nl\/?page_id=1981","title":{"rendered":"Inschrijving bs st Dionysius"},"content":{"rendered":"<p><span style=\"color: #ff0000;\"><strong>De digitale inschrijving via school is gesloten op 21-05-2022 om 00:56 uur. Je bent van harte welkom om deel te nemen via de dagkassa tijdens onze 4-daagse.<\/strong><\/span><\/p>\n<p style=\"text-align: left;\">Dit digitale inschrijfformulier is bedoeld voor de inschrijvingen van de georganiseerde deelname van de basisschool Sint Dionysius te Schinnen aan de Avond 4-daagse van Beekdaelen.<\/p>\n<p style=\"text-align: left;\">Relaties van de school, ouders, kinderen\/leerlingen\/gezinsleden\/teamleden van de basisschool Dionysius te Schinnen kunnen hun inschrijving doen via dit formulier. Andere deelnemers aan de avond 4-daagse zijn uiteraard ook bijzonder welkom, maar verwijzen we graag naar een digitale inschrijving via deze <span style=\"color: #ff0000;\"><a style=\"color: #ff0000;\" href=\"https:\/\/www.hetjis.nl\/?page_id=1493\">link<\/a><\/span>.<\/p>\n<table class=\"recordview\">\n<tbody>\n<tr id=\"recordview_row_fields_shortcode\">\n<td><style type=\"text\/css\">\n\nlabel.error {\n  clear: left;\n  float: left;\n}\n\n.jwin_form input.error {\n  background-color: white;\n  padding: 2px;\n  color: black;\n}\n\n.jwin_products {\n\tmargin-bottom: 0;\n\twidth: 350px;\n}\n\n.jwin_products th {\n  padding: 0;\n}\n.jwin_products td {\n  padding: 0;\n  white-space: nowrap;\n  width: 75px;\n}\n\n.jwin_products td input {\n  width: 40px;\n}\n\n\n.jwin_products .count {\n  width: 100px;\n}\n\n.jwin_form textarea {\nwidth: 350px;\nheight: 100px;\nfont-family: arial;\nfont-size: 9pt;\n}\n<\/style>\n<form action=\"\/index.php?rest_route=%2Fwp%2Fv2%2Fpages%2F1981\" method=\"post\" class=\"jwin_form\" id=\"jwin_form_\">\n<input type=\"hidden\" name=\"jwin_form\" value=\"\" \/> \n<table class=\"jwin_form\">\n<\/table>\n<br \/>\n<br \/><br \/>\n<input type=\"submit\" value=\"\" name=\"button_submit\" \/> <br \/><br \/>\n<input type=\"submit\" value=\"Formulier wissen\" name=\"jwfreset\" id=\"jwfreset\" \/>\n<\/form>\n  <script type=\"text\/javascript\">\n  var admin_url = 'https:\/\/hetjis.nl\/wp-admin\/admin-ajax.php';\n\/\/  var admin_url = admin_url.replace(\/http\/, 'https');\n  \/\/\n\n    jQuery.fn.focusNextInputField = function() {\n        return this.each(function() {\n            var fields = jQuery(this).parents('form:eq(0),body').find('button,input,textarea,select');\n            var index = fields.index( this );\n            if ( index > -1 && ( index + 1 ) < fields.length ) {\n                fields.eq( index + 1 ).focus();\n            }\n            return false;\n        });\n    };\n\n    jQuery(document).ready(function() {\n        jQuery('.jwin_form input[type=text]').keypress(function(e) {\n            if(e.which == 13) {\n                e.preventDefault();\n                jQuery(this).focusNextInputField();\n            }\n        });\n    });\n\n\tvar already_updating = false;\n\tvar get_postcode = function() { \n        if (jQuery('.jwin_postcode').val().length < 6) {\n            return;\n        }\n\t\t\n\t\tconsole.log(\"jwin_postcode is geactiveerd\");\n\t\tconsole.log(jQuery('.jwin_postcode').val().length);\n        \n        \/\/jQuery('.jwin_woonplaats').addClass('jwin_busy').css('color', '#DDD');\n        \/\/jQuery('.jwin_straat').addClass('jwin_busy').css('color', '#DDD');\n        \n\t\tvar data = {\n\t\t\taction: 'get_postcode',\n\t\t\tpostcode: jQuery('.jwin_postcode').val()\n\t\t};\n\t\t\/\/debugger;\n\t\tjQuery.post(admin_url, data, function(response) {\n\t\t\tconsole.log(\"jwin post is geactiveerd\");\n\t\t\tif (response != 'invalid') {\n\t\t\t\t\/\/console.log(\"jwin post is invalid\");\n\t\t\t\t\/\/var objJSON = JSON.parse(response);\n\t\t\t\t\/\/console.log(objJSON);\n\t\t\t\t\/\/console.lop(objJSON.woonplaats);\n\t\t\t\tconsole.log(response);\n\t\t\t\tjQuery('.jwin_woonplaats').val(response); \/\/ stond response.woonplaats\n\t\t\t\t\/\/jQuery('.jwin_straat').val(response.straat);\n\t\t\t}\n\t\t\tconsole.log(\"jwin post is goeddd\");\n\t        jQuery('.jwin_woonplaats').removeClass('jwin_busy').css('color', '#000');\n            jQuery('.jwin_straat').removeClass('jwin_busy').css('color', '#000');\n\n\t\t});\n\t\tconsole.log(data);\n\t\t\n\t\tvar data2 = {\n\t\t\taction: 'get_postcode_straat',\n\t\t\tpostcode: jQuery('.jwin_postcode').val()\n\t\t};\n\t\tjQuery.post(admin_url, data2, function(response) {\n\t\t\tconsole.log(\"jwin post is geactiveerd\");\n\t\t\tif (response != 'invalid') {\n\t\t\t\tconsole.log(response);\n\t\t\t\tjQuery('.jwin_straat').val(response); \/\/ stond response.woonplaats\n\t\t\t\t\/\/jQuery('.jwin_straat').val(response.straat);\n\t\t\t}\n\t\t\tconsole.log(\"jwin post is goeddd\");\n\t        jQuery('.jwin_woonplaats').removeClass('jwin_busy').css('color', '#000');\n            jQuery('.jwin_straat').removeClass('jwin_busy').css('color', '#000');\n\n\t\t});\n\t\tconsole.log(data);\n\t\t\n\t\t\/**$.ajax({\n\t\t  url: admin_url,\n\t\t  data: data,\n\t\t  dataType: 'xml',\n\t\t  type: 'POST',\n\t\t  success: function(response) {\n\t\t\tconsole.log(\"jwin post is geactiveerd\");\n\t\t\t\/\/ Verwerk de XML-respons hier\n\t\t\tvar woonplaats = $(response).find('woonplaats').text();\n\t\t\tvar straat = $(response).find('straat').text();\n\n\t\t\tif (woonplaats !== 'invalid') {\n\t\t\t  console.log(\"jwin post is geldig\");\n\t\t\t  $('.jwin_woonplaats').val(woonplaats);\n\t\t\t  $('.jwin_straat').val(straat);\n\t\t\t}\n\n\t\t\tconsole.log(\"jwin post is goeddd\");\n\t\t\t$('.jwin_woonplaats').removeClass('jwin_busy').css('color', '#000');\n\t\t\t$('.jwin_straat').removeClass('jwin_busy').css('color', '#000');\n\t\t  },\n\t\t  error: function(xhr, status, error) {\n\t\t\tconsole.log(\"Fout bij het ophalen van XML-gegevens.\");\n\t\t\tconsole.log(error);\n\t\t  }\n\t\t});**\/\n\t};\n\t  \n\t  \/\/ Orginiele code\n\t  \/*\n\tvar already_updating = false;\n\tvar get_postcode = function() { \n        if (jQuery('.jwin_postcode').val().length < 6) {\n            return;\n        }\n        \n        jQuery('.jwin_woonplaats').addClass('jwin_busy').css('color', '#DDD');\n        jQuery('.jwin_straat').addClass('jwin_busy').css('color', '#DDD');\n        \n\t\tvar data = {\n\t\t\taction: 'get_postcode',\n\t\t\tpostcode: jQuery('.jwin_postcode').val()\n\t\t};\n\t\t\n\t\tjQuery.post(admin_url, data, function(response) {\n\t\t\tif (response != 'invalid') {\n\t\t\t\tjQuery('.jwin_woonplaats').val(response.woonplaats);\n\t\t\t\tjQuery('.jwin_straat').val(response.straat);\n\t\t\t}\n\t        jQuery('.jwin_woonplaats').removeClass('jwin_busy').css('color', '#000');\n            jQuery('.jwin_straat').removeClass('jwin_busy').css('color', '#000');\n\n\t\t}, \"json\");\n\t};\n\t  *\/\n\t  \n\tvar get_groepen = function() {\n\t\tvar data = {\n\t\t\taction: 'get_groepen',\n\t\t\tschool_id: jQuery('#fields_school').val()\n\t\t};\n\t\t\n\t\tjQuery.post(admin_url, data, function(response) {\n\t\t\tif (response instanceof Array) {\n\t\t\t\tempty_groepen();\n\t\t\t\tpopulate_groepen(response);\n\t\t\t\tempty_leerkrachten();\n\t\t\t}\n\t\t}, \"json\");\n\t};\n\tvar get_leerkrachten = function() {\n\t\tvar data = {\n\t\t\taction: 'get_leerkrachten',\n\t\t\tgroep_id: jQuery('#fields_groep').val()\n\t\t};\n\t\t\n\t\tjQuery.post(admin_url, data, function(response) {\n\t\t\tif (response instanceof Array) {\n\t\t\t\tempty_leerkrachten();\n\t\t\t\tpopulate_leerkrachten(response);\n\t\t\t}\n\t\t}, \"json\");\n\t};\n\t\n\tfunction empty_groepen() {\n\t\tvar options = jQuery('#fields_groep option');\n\t\tfor(var i=0; i<options.length; i++) { if (i>0) { jQuery(options[i]).remove(); }}\n\t}\n\n\tfunction empty_leerkrachten() {\n\t\tvar options = jQuery('#fields_leerkracht option');\n\t\tfor(var i=0; i<options.length; i++) { if (i>0) { jQuery(options[i]).remove(); }}\n\t}\n\t\n\tfunction populate_groepen(options) {\n\t\tfor (var i=0; i<options.length; i++) {\n\t\t\tjQuery('#fields_groep').append(jQuery('<option><\/option').val(options[i].optionID).html(options[i].optionDisplay));\n\t\t}\n\t}\n\n\tfunction populate_leerkrachten(options) {\n\t\tfor (var i=0; i<options.length; i++) {\n\t\t\tjQuery('#fields_leerkracht').append(jQuery('<option><\/option').val(options[i].optionID).html(options[i].optionDisplay));\n\t\t}\n\t}\n\t\n  jQuery(document).ready(function(){\n    jQuery(\"#jwin_form_\").validate({\n\t\terrorPlacement: function(error, element) {\n\t\t\terror.appendTo( element.parent('td').prev('th') ); \/\/ element is an html_input\n\t\t}\n\t});\n\tjQuery('.double_check').each(function(index, element) {\n\t   var compareto = jQuery(element).parent().find('input').attr('id');\n\t   jQuery(element).rules('add', {\n\t       equalTo: '#' + compareto\n\t   });\n\t   \n\t});\n\tjQuery('.jwin_postcode').change(get_postcode);\n\t\/*jQuery('.jwin_postcode_straat').change(get_postcode_straat);*\/\n    jQuery('.hint').hide();\n    jQuery('#fields_school').change(get_groepen);\n    jQuery('#fields_groep').change(get_leerkrachten);\n\/*\n      jQuery('.icon_info').hover(function() {\n          alert(jQuery(this).next('.hint').html());\n      });\n *\/\n\/*jQuery.fn.qtip.styles.mystyle = { \/\/ Last part is the name of the style\n    width: 300,\n    background: '#92C8F7',\n    color: 'black',\n    textAlign: 'left',\n    'fontFamily': 'Arial',\n    border: {\n        width: 7,\n        radius: 5,\n        color: '#92C8F7'\n    }\n};\n      jQuery('.icon_info').each(function(index, elm) {\n        var html_body = jQuery(elm).next('.hint').html();\n        jQuery(elm).qtip({content: html_body,style:'mystyle'});\n    });*\/\n      jQuery('.jwin_form input.capitalize').change(function() {\n          jQuery(this).val(ucwords(jQuery(this).val()));\n      });\n      jQuery('#jwfreset').click(function(e) {\n      \te.preventDefault();\n      \tif (confirm('Wilt u bovenstaande velden \\xE9n inschrijvingen wissen?')) {\n            var qrm = (location.href.indexOf('?') > -1) ? '&' : '?';\n\t    location.href = location.href + qrm + 'jwfreset=1';\n      \t}\n      });\n  });\n\nfunction ucwords (str) {\n    \/\/ discuss at: http:\/\/phpjs.org\/functions\/ucwords\n    return (str + '').replace(\/^([a-z])|\\s+([a-z])\/g, function ($1) {\n            return $1.toUpperCase();\n        });\n}\n  \/\/ \n  <\/script>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n","protected":false},"excerpt":{"rendered":"<p>De digitale inschrijving via school is gesloten op 21-05-2022 om 00:56 uur. Je bent van harte welkom om deel te nemen via de dagkassa tijdens onze 4-daagse. Dit digitale inschrijfformulier is bedoeld voor de inschrijvingen van de georganiseerde deelname van de basisschool Sint Dionysius te Schinnen aan de Avond 4-daagse van Beekdaelen. Relaties van de [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-1981","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/hetjis.nl\/index.php?rest_route=\/wp\/v2\/pages\/1981","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hetjis.nl\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/hetjis.nl\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/hetjis.nl\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/hetjis.nl\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1981"}],"version-history":[{"count":17,"href":"https:\/\/hetjis.nl\/index.php?rest_route=\/wp\/v2\/pages\/1981\/revisions"}],"predecessor-version":[{"id":2174,"href":"https:\/\/hetjis.nl\/index.php?rest_route=\/wp\/v2\/pages\/1981\/revisions\/2174"}],"wp:attachment":[{"href":"https:\/\/hetjis.nl\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1981"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}