1(function ($) { 2 $(document).ready(function () { 3 4 /* code om een bepaalde velden van het schoolformulier in een cookie te bewaren */ 5 6 if ($("form .cookie").length) { 7 8 var formId = $("form .cookie").closest("form").attr("id"); 9 10 var fields = []; 11 12 $("form .cookie").each(function() { 13 fields.push($(this).attr("id")) ; 14 }); 15 16 //"school", "straat-en-nr-school", "postcode-adres-school", "gemeente-adres-school", "contactpersoon", "e-mail-contactpersoon", "e-mail-leerkracht"]; 17 18 19 var cookieName = formId; 20 21 var cookie = Cookies.get(cookieName); 22 23 if (cookie) { 24 cookie = JSON.parse(cookie); 25 26 $.each(cookie, function (key, val) { 27 28 $("#" + key).val(val); 29 }); 30 } 31 32 33 $("#" + formId).submit(function () { 34 35 var result = new Object(); 36 37 $.each(fields, function (key, val) { 38 39 result[val] = $("#" + val).val(); 40 }); 41 42 Cookies.set(cookieName, JSON.stringify(result)); 43 }); 44 45 } 46 47 48 }) 49}(jQuery, Drupal));
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.