{"id":1398,"date":"2021-05-14T11:29:26","date_gmt":"2021-05-14T18:29:26","guid":{"rendered":"https:\/\/deltalearns.ca\/seaquamlib\/?page_id=1398"},"modified":"2021-05-14T11:29:26","modified_gmt":"2021-05-14T18:29:26","slug":"ask-a-teacher-librarian","status":"publish","type":"page","link":"https:\/\/deltalearns.ca\/seaquamlib\/ask-a-teacher-librarian\/","title":{"rendered":"Ask a Teacher-Librarian"},"content":{"rendered":"<script>\n\/\/----------------------------------------------------------\n\/\/------ JAVASCRIPT HOOK FUNCTIONS FOR GRAVITY FORMS -------\n\/\/----------------------------------------------------------\n\nif ( ! gform ) {\n\tdocument.addEventListener( 'gform_main_scripts_loaded', function() { gform.scriptsLoaded = true; } );\n\tdocument.addEventListener( 'gform\/theme\/scripts_loaded', function() { gform.themeScriptsLoaded = true; } );\n\twindow.addEventListener( 'DOMContentLoaded', function() { gform.domLoaded = true; } );\n\n\tvar gform = {\n\t\tdomLoaded: false,\n\t\tscriptsLoaded: false,\n\t\tthemeScriptsLoaded: false,\n\t\tisFormEditor: () => typeof InitializeEditor === 'function',\n\n\t\t\/**\n\t\t * @deprecated 2.9 the use of initializeOnLoaded in the form editor context is deprecated.\n\t\t * @remove-in 4.0 this function will not check for gform.isFormEditor().\n\t\t *\/\n\t\tcallIfLoaded: function ( fn ) {\n\t\t\tif ( gform.domLoaded && gform.scriptsLoaded && ( gform.themeScriptsLoaded || gform.isFormEditor() ) ) {\n\t\t\t\tif ( gform.isFormEditor() ) {\n\t\t\t\t\tconsole.warn( 'The use of gform.initializeOnLoaded() is deprecated in the form editor context and will be removed in Gravity Forms 3.1.' );\n\t\t\t\t}\n\t\t\t\tfn();\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\treturn false;\n\t\t},\n\n\t\t\/**\n\t\t * Call a function when all scripts are loaded\n\t\t *\n\t\t * @param function fn the callback function to call when all scripts are loaded\n\t\t *\n\t\t * @returns void\n\t\t *\/\n\t\tinitializeOnLoaded: function( fn ) {\n\t\t\tif ( ! gform.callIfLoaded( fn ) ) {\n\t\t\t\tdocument.addEventListener( 'gform_main_scripts_loaded', () => { gform.scriptsLoaded = true; gform.callIfLoaded( fn ); } );\n\t\t\t\tdocument.addEventListener( 'gform\/theme\/scripts_loaded', () => { gform.themeScriptsLoaded = true; gform.callIfLoaded( fn ); } );\n\t\t\t\twindow.addEventListener( 'DOMContentLoaded', () => { gform.domLoaded = true; gform.callIfLoaded( fn ); } );\n\t\t\t}\n\t\t},\n\n\t\thooks: { action: {}, filter: {} },\n\t\taddAction: function( action, callable, priority, tag ) {\n\t\t\tgform.addHook( 'action', action, callable, priority, tag );\n\t\t},\n\t\taddFilter: function( action, callable, priority, tag ) {\n\t\t\tgform.addHook( 'filter', action, callable, priority, tag );\n\t\t},\n\t\tdoAction: function( action ) {\n\t\t\tgform.doHook( 'action', action, arguments );\n\t\t},\n\t\tapplyFilters: function( action ) {\n\t\t\treturn gform.doHook( 'filter', action, arguments );\n\t\t},\n\t\tremoveAction: function( action, tag ) {\n\t\t\tgform.removeHook( 'action', action, tag );\n\t\t},\n\t\tremoveFilter: function( action, priority, tag ) {\n\t\t\tgform.removeHook( 'filter', action, priority, tag );\n\t\t},\n\t\taddHook: function( hookType, action, callable, priority, tag ) {\n\t\t\tif ( undefined == gform.hooks[hookType][action] ) {\n\t\t\t\tgform.hooks[hookType][action] = [];\n\t\t\t}\n\t\t\tvar hooks = gform.hooks[hookType][action];\n\t\t\tif ( undefined == tag ) {\n\t\t\t\ttag = action + '_' + hooks.length;\n\t\t\t}\n\t\t\tif( priority == undefined ){\n\t\t\t\tpriority = 10;\n\t\t\t}\n\n\t\t\tgform.hooks[hookType][action].push( { tag:tag, callable:callable, priority:priority } );\n\t\t},\n\t\tdoHook: function( hookType, action, args ) {\n\n\t\t\t\/\/ splice args from object into array and remove first index which is the hook name\n\t\t\targs = Array.prototype.slice.call(args, 1);\n\n\t\t\tif ( undefined != gform.hooks[hookType][action] ) {\n\t\t\t\tvar hooks = gform.hooks[hookType][action], hook;\n\t\t\t\t\/\/sort by priority\n\t\t\t\thooks.sort(function(a,b){return a[\"priority\"]-b[\"priority\"]});\n\n\t\t\t\thooks.forEach( function( hookItem ) {\n\t\t\t\t\thook = hookItem.callable;\n\n\t\t\t\t\tif(typeof hook != 'function')\n\t\t\t\t\t\thook = window[hook];\n\t\t\t\t\tif ( 'action' == hookType ) {\n\t\t\t\t\t\thook.apply(null, args);\n\t\t\t\t\t} else {\n\t\t\t\t\t\targs[0] = hook.apply(null, args);\n\t\t\t\t\t}\n\t\t\t\t} );\n\t\t\t}\n\t\t\tif ( 'filter'==hookType ) {\n\t\t\t\treturn args[0];\n\t\t\t}\n\t\t},\n\t\tremoveHook: function( hookType, action, priority, tag ) {\n\t\t\tif ( undefined != gform.hooks[hookType][action] ) {\n\t\t\t\tvar hooks = gform.hooks[hookType][action];\n\t\t\t\thooks = hooks.filter( function(hook, index, arr) {\n\t\t\t\t\tvar removeHook = (undefined==tag||tag==hook.tag) && (undefined==priority||priority==hook.priority);\n\t\t\t\t\treturn !removeHook;\n\t\t\t\t} );\n\t\t\t\tgform.hooks[hookType][action] = hooks;\n\t\t\t}\n\t\t}\n\t};\n}\n<\/script>\n\n                <div class='gf_browser_gecko gform_wrapper gform_legacy_markup_wrapper gform-theme--no-framework' data-form-theme='legacy' data-form-index='0' id='gform_wrapper_2' >\n                        <div class='gform_heading'>\n                            <h3 class=\"gform_title\">Ask a Teacher-Librarian<\/h3>\n                            <p class='gform_description'><\/p>\n                        <\/div><form method='post' enctype='multipart\/form-data'  id='gform_2'  action='\/seaquamlib\/wp-json\/wp\/v2\/pages\/1398' data-formid='2' novalidate>\n                        <div class='gform-body gform_body'><ul id='gform_fields_2' class='gform_fields top_label form_sublabel_below description_below validation_below'><li id=\"field_2_1\" class=\"gfield gfield--type-text gfield_contains_required field_sublabel_below gfield--no-description field_description_below field_validation_below gfield_visibility_visible\"  ><label class='gfield_label gform-field-label' for='input_2_1'><span class='gform-field-label__text'>First Name:<\/span><span class=\"gfield_required\"><span class=\"gfield_required gfield_required_asterisk\">*<\/span><\/span><\/label><div class='ginput_container ginput_container_text'><input name='input_1' id='input_2_1' type='text' value='' class='medium'     aria-required=\"true\" aria-invalid=\"false\"   \/><\/div><\/li><li id=\"field_2_7\" class=\"gfield gfield--type-text gfield_contains_required field_sublabel_below gfield--no-description field_description_below field_validation_below gfield_visibility_visible\"  ><label class='gfield_label gform-field-label' for='input_2_7'><span class='gform-field-label__text'>Last Name:<\/span><span class=\"gfield_required\"><span class=\"gfield_required gfield_required_asterisk\">*<\/span><\/span><\/label><div class='ginput_container ginput_container_text'><input name='input_7' id='input_2_7' type='text' value='' class='medium'     aria-required=\"true\" aria-invalid=\"false\"   \/><\/div><\/li><li id=\"field_2_2\" class=\"gfield gfield--type-text gfield_contains_required field_sublabel_below gfield--no-description field_description_below field_validation_below gfield_visibility_visible\"  ><label class='gfield_label gform-field-label' for='input_2_2'><span class='gform-field-label__text'>Delta Learn&#039;s E-mail:<\/span><span class=\"gfield_required\"><span class=\"gfield_required gfield_required_asterisk\">*<\/span><\/span><\/label><div class='ginput_container ginput_container_text'><input name='input_2' id='input_2_2' type='text' value='' class='medium'     aria-required=\"true\" aria-invalid=\"false\"   \/><\/div><\/li><li id=\"field_2_6\" class=\"gfield gfield--type-radio gfield--type-choice gfield_contains_required field_sublabel_below gfield--no-description field_description_below field_validation_below gfield_visibility_visible gfield--choice-align-vertical\"  ><label class='gfield_label gform-field-label' ><span class='gform-field-label__text'>Kind of question:<\/span><span class=\"gfield_required\"><span class=\"gfield_required gfield_required_asterisk\">*<\/span><\/span><\/label><div class='ginput_container ginput_container_radio'><ul class='gfield_radio' id='input_2_6'>\n\t\t\t<li class='gchoice gchoice_2_6_0'>\n\t\t\t\t<input name='input_6' type='radio' value='Library Accounts, borrowing, and overdues'  id='choice_2_6_0'    \/>\n\t\t\t\t<label for='choice_2_6_0' id='label_2_6_0' class='gform-field-label gform-field-label--type-inline'>Library Accounts, borrowing, and overdues<\/label>\n\t\t\t<\/li>\n\t\t\t<li class='gchoice gchoice_2_6_1'>\n\t\t\t\t<input name='input_6' type='radio' value='Library research and online databases'  id='choice_2_6_1'    \/>\n\t\t\t\t<label for='choice_2_6_1' id='label_2_6_1' class='gform-field-label gform-field-label--type-inline'>Library research and online databases<\/label>\n\t\t\t<\/li>\n\t\t\t<li class='gchoice gchoice_2_6_2'>\n\t\t\t\t<input name='input_6' type='radio' value='gf_other_choice'  id='choice_2_6_2'   onfocus=\"jQuery(this).next('input').focus();\" \/>\n\t\t\t\t<input class='small' id='input_2_6_other' name='input_6_other' type='text' value='Other' aria-label='Other' onfocus='jQuery(this).prev(\"input\")[0].click(); if(jQuery(this).val() == \"Other\") { jQuery(this).val(\"\"); }' onblur='if(jQuery(this).val().replace(\" \", \"\") == \"\") { jQuery(this).val(\"Other\"); }'   \/>\n\t\t\t<\/li><\/ul><\/div><\/li><li id=\"field_2_5\" class=\"gfield gfield--type-textarea gfield_contains_required field_sublabel_below gfield--has-description field_description_below field_validation_below gfield_visibility_visible\"  ><label class='gfield_label gform-field-label' for='input_2_5'><span class='gform-field-label__text'>Question:<\/span><span class=\"gfield_required\"><span class=\"gfield_required gfield_required_asterisk\">*<\/span><\/span><\/label><div class='ginput_container ginput_container_textarea'><textarea name='input_5' id='input_2_5' class='textarea medium'  aria-describedby=\"gfield_description_2_5\"   aria-required=\"true\" aria-invalid=\"false\"   rows='10' cols='50'><\/textarea><\/div><div class='gfield_description' id='gfield_description_2_5'>Please add as much detail as you can.<\/div><\/li><\/ul><\/div>\n        <div class='gform-footer gform_footer top_label'> <button type='submit' id='gform_submit_button_2' class='gform_button button' onclick='gform.submission.handleButtonClick(this);' data-submission-type='submit' >Submit<\/button> \n            <input type='hidden' class='gform_hidden' name='gform_submission_method' data-js='gform_submission_method_2' value='postback' \/>\n            <input type='hidden' class='gform_hidden' name='gform_theme' data-js='gform_theme_2' id='gform_theme_2' value='legacy' \/>\n            <input type='hidden' class='gform_hidden' name='gform_style_settings' data-js='gform_style_settings_2' id='gform_style_settings_2' value='[]' \/>\n            <input type='hidden' class='gform_hidden' name='is_submit_2' value='1' \/>\n            <input type='hidden' class='gform_hidden' name='gform_submit' value='2' \/>\n            \n            <input type='hidden' class='gform_hidden' name='gform_currency' data-currency='USD' value='EH2aJQeg4++hn\/ParkJzy5KQNVO1uMxCciUvwxcwvpVgkjiUVksI+oM8UkGRqMjNAYn4pP5tm8RaJo2c\/Bx9gNr416WIveksQ3+K7oL6EgWgUiM=' \/>\n            <input type='hidden' class='gform_hidden' name='gform_unique_id' value='' \/>\n            <input type='hidden' class='gform_hidden' name='state_2' value='WyJ7XCJnZm9ybV9zdWJtaXNzaW9uX21ldGhvZFwiOltcIjQ4Y2FmMTdkMDQ4YjM0MWNhN2M1NjZkNTI5YTExZDQ1XCIsXCIwNGMwMTA4MDZjMzkwNWViYTA3NThiZjNiNmYwMmVhOVwiXSxcImdmb3JtX3RoZW1lXCI6XCJhNzdiMmE3YjJkZmZjZjczYTAyZWViYzE5OTkyMTk5ZVwiLFwiZ2Zvcm1fc3R5bGVfc2V0dGluZ3NcIjpcImUwODJhZTRlMzY2YmE4NzM1ZmQ3ZjZkYTRkMGYyNWNkXCIsXCJmb3JtX2lkXCI6XCJjMDVjZmFkNjI3OWEwMjJiN2RlMDI5NmM2ZDBhNmJhOFwiLFwidXJsXCI6XCI4NzRhMzk3MTQ2ZDVhZjE3NTk1ODMyZTNhNTJhZTQxN1wiLFwic3RhdGVfdGltZXN0YW1wXCI6XCI1OTVhZDAzZWVjOGU2MzVhYzUwYTE0ODc3MjQ1MTNkYlwifSIsIjExZmMxMjNkODkwMTJmM2IyY2JiZTc4MjRjZmVlMmVmIiwxNzg4NDk1MjE1XQ==' \/>\n            <input type='hidden' autocomplete='off' class='gform_hidden' name='gform_target_page_number_2' id='gform_target_page_number_2' value='0' \/>\n            <input type='hidden' autocomplete='off' class='gform_hidden' name='gform_source_page_number_2' id='gform_source_page_number_2' value='1' \/>\n            <input type='hidden' name='gform_field_values' value='' \/>\n            \n        <\/div>\n                        <p style=\"display: none !important;\" class=\"akismet-fields-container\" data-prefix=\"ak_\"><label>&#916;<textarea name=\"ak_hp_textarea\" cols=\"45\" rows=\"8\" maxlength=\"100\"><\/textarea><\/label><input type=\"hidden\" id=\"ak_js_1\" name=\"ak_js\" value=\"124\"\/><script>\ndocument.getElementById( \"ak_js_1\" ).setAttribute( \"value\", ( new Date() ).getTime() );\n<\/script>\n<\/p><\/form>\n                        <\/div>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":865,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-1398","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/deltalearns.ca\/seaquamlib\/wp-json\/wp\/v2\/pages\/1398","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/deltalearns.ca\/seaquamlib\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/deltalearns.ca\/seaquamlib\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/deltalearns.ca\/seaquamlib\/wp-json\/wp\/v2\/users\/865"}],"replies":[{"embeddable":true,"href":"https:\/\/deltalearns.ca\/seaquamlib\/wp-json\/wp\/v2\/comments?post=1398"}],"version-history":[{"count":1,"href":"https:\/\/deltalearns.ca\/seaquamlib\/wp-json\/wp\/v2\/pages\/1398\/revisions"}],"predecessor-version":[{"id":1399,"href":"https:\/\/deltalearns.ca\/seaquamlib\/wp-json\/wp\/v2\/pages\/1398\/revisions\/1399"}],"wp:attachment":[{"href":"https:\/\/deltalearns.ca\/seaquamlib\/wp-json\/wp\/v2\/media?parent=1398"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}