{"version":3,"file":"anchors/view.js","mappings":";;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACAA,OAAO,CAACC,GAAG,CAAE,qDAAsD,CAAC;AACpE;AACAC,MAAM,CAACC,QAAQ,CAAC,CAACC,KAAK,CAAC,UAASC,CAAC,EAAC;EAChC;EACD;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAhBC,CAqBA,CAAC,C","sources":["webpack://mhcid-blocks/./src/anchors/view.js"],"sourcesContent":["/**\n * Use this file for JavaScript code that you want to run in the front-end\n * on posts/pages that contain this block.\n *\n * When this file is defined as the value of the `viewScript` property\n * in `block.json` it will be enqueued on the front end of the site.\n *\n * Example:\n *\n * ```js\n * {\n * \"viewScript\": \"file:./view.js\"\n * }\n * ```\n *\n * If you're not making any changes to this file because your project doesn't need any\n * JavaScript running in the front-end, then you should delete this file and remove\n * the `viewScript` property from `block.json`.\n *\n * @see https://developer.wordpress.org/block-editor/reference-guides/block-api/block-metadata/#view-script\n */\n\n/* eslint-disable no-console */\nconsole.log( 'Hello World! (from create-block-mhcid-blocks block)' );\n/* eslint-enable no-console */\njQuery(document).ready(function($){\n // Add smooth scrolling to all links\n /* $(\"a\").on('click', function(event) {\n\n // Make sure this.hash has a value before overriding default behavior\n if ($(this).attr('href').substring(0,1) == \"#\") {\n // Prevent default anchor click behavior\n event.preventDefault();\n\n // Store hash\n var hash = this.hash;\n\n // Using jQuery's animate() method to add smooth page scroll\n // The optional number (800) specifies the number of milliseconds it takes to scroll to the specified area\n $('html, body').animate({\n scrollTop: $(hash).offset().top - (screen.height/2)\n }, 600, function(){\n\n // Add hash (#) to URL when done scrolling (default click behavior)\n window.location.hash = hash;\n });\n } // End if\n }); */\n});"],"names":["console","log","jQuery","document","ready","$"],"sourceRoot":""}