{"mappings":"ACCA,IAAI,EAEJ,EAAE,QAAQ,MAAA,CAAO,WAEZ,AADS,EAAE,QAAQ,SAAvB,IACc,IACb,EAAG,aAAc,QAAA,CAAU,UAG3B,EAAG,aAAc,WAAA,CAAa,SAEhC,GAEA,EAAE,UAAU,KAAA,CAAM,eAsBb,CApBA,CAAA,OAAO,QAAA,CAAS,IAAA,GACnB,EAAE,QAAQ,SAAA,CAAU,GACpB,AA6CF,SAA2B,CAAM,EAEhC,GAAO,EAAW,GAClB,CAEC,IAAI,EAAe,EAAE,WAAW,WAAhC,GACI,EAAe,EAAE,IAAM,GAAQ,MAAA,GAAS,GAAA,CAAM,EAAe,GACjE,WAAW,WACiB,GAAvB,EAAE,IAAI,EAAE,SAAA,IACX,EAAE,aAAa,OAAA,CAAQ,CAAC,UAAW,CAAU,EAAG,IAElD,EAAG,IAEJ,CAGD,EA7DoB,OAAO,QAAA,CAAS,IAAA,CAAK,MAAA,CAAO,KAG/C,EAAG,eAAgB,KAAA,CAAM,SAAS,CAAC,EAClC,EAAE,aAAa,OAAA,CAAQ,CAAE,UAAW,CAAC,EAAG,IACzC,GAGA,OAAO,QAAA,CAAW,WACjB,aAAa,GAEb,EAAgB,WAAW,WAC1B,WACD,EAAG,IACJ,EAKA,EAAE,cAAc,KAAA,CAAM,WACpB,EAAY,EAAE,IAAI,EAAE,IAAA,CAAM,MAC5B,GACA,QAAQ,GAAA,CAAI,GAKZ,EAAE,YAAY,EAAA,CAAG,iBAAkB,SAAU,CAAC,EAG9C,EAAE,UAAU,IAAA,CAAK,MAAM,EAAY,kDAEnC,GAKA,EAAE,YAAY,EAAA,CAAG,gBAAiB,SAAU,CAAC,EAE3C,EAAE,UAAU,IAAA,CAAK,MAAM,EACzB,EAED","sources":["","src/scripts/scripts.js"],"sourcesContent":["var preventClick = false;\nvar resizeTimeout;\n$(window).scroll(function() {\n var scroll = $(window).scrollTop();\n if (scroll >= 500) $(\"#back-top\").addClass(\"active\");\n else $(\"#back-top\").removeClass(\"active\");\n});\n$(document).ready(function() {\n if (window.location.hash) {\n $(window).scrollTop(0);\n scrollDownToPage(window.location.hash.substr(1));\n }\n $(\"#back-top a\").click(function(e) {\n $(\"html,body\").animate({\n scrollTop: 0\n }, 300);\n });\n window.onresize = function() {\n clearTimeout(resizeTimeout);\n // handle normal resize\n resizeTimeout = setTimeout(function() {\n checkMenu();\n }, 250);\n };\n // Gets the video src from the data-src on each button\n var $videoSrc;\n $(\".video-btn\").click(function() {\n $videoSrc = $(this).data(\"src\");\n });\n console.log($videoSrc);\n // when the modal is opened autoplay it\n $(\"#myModal\").on(\"shown.bs.modal\", function(e) {\n // set the video src to autoplay and not to show related video. Youtube related video is like a box of chocolates... you never know what you're gonna get\n $(\"#video\").attr(\"src\", $videoSrc + \"?autoplay=1&modestbranding=1&showinfo=0\");\n });\n // stop playing the youtube video when I close the modal\n $(\"#myModal\").on(\"hide.bs.modal\", function(e) {\n // a poor man's stop video\n $(\"#video\").attr(\"src\", $videoSrc);\n });\n});\nfunction scrollDownToPage(anchor) {\n if (anchor > -1) {\n var headerHeight = $(\"#header\").outerHeight();\n var scrollDown = $(\"#\" + anchor).offset().top - headerHeight - 40;\n setTimeout(function() {\n if ($(this).scrollTop() == 0) $(\"html,body\").animate({\n scrollTop: scrollDown\n }, 800);\n }, 800); // four seconds\n }\n return;\n}\n\n//# sourceMappingURL=directors-report.2823c183.js.map\n","var preventClick = false;\r\nvar resizeTimeout;\r\n\r\n$(window).scroll(function() {\r\n\tvar scroll = $(window).scrollTop();\r\n\tif( scroll >= 500 ) {\r\n\t\t$( \"#back-top\" ).addClass( \"active\" );\r\n\t}\r\n\telse {\r\n\t\t$( \"#back-top\" ).removeClass( \"active\" );\r\n\t}\r\n});\r\n\r\n$(document).ready(function() {\r\n\r\n\tif( window.location.hash ) {\r\n\t\t$(window).scrollTop(0);\r\n\t\tscrollDownToPage( window.location.hash.substr(1) );\r\n\t}\r\n\r\n\t$( '#back-top a' ).click(function(e) {\r\n\t\t$('html,body').animate({ scrollTop: 0}, 300);\r\n\t});\r\n\r\n\r\n\twindow.onresize = function() {\r\n\t\tclearTimeout(resizeTimeout);\r\n\t\t// handle normal resize\r\n\t\tresizeTimeout = setTimeout(function() {\r\n\t\t\tcheckMenu();\r\n\t\t}, 250);\r\n\t};\r\n\r\n\t// Gets the video src from the data-src on each button\r\n\r\n\tvar $videoSrc;\r\n\t$('.video-btn').click(function() {\r\n\t\t\t$videoSrc = $(this).data( \"src\" );\r\n\t});\r\n\tconsole.log($videoSrc);\r\n\r\n\r\n\r\n\t// when the modal is opened autoplay it\r\n\t$('#myModal').on('shown.bs.modal', function (e) {\r\n\r\n\t// set the video src to autoplay and not to show related video. Youtube related video is like a box of chocolates... you never know what you're gonna get\r\n\t$(\"#video\").attr('src',$videoSrc + \"?autoplay=1&modestbranding=1&showinfo=0\");\r\n\r\n\t})\r\n\r\n\r\n\r\n\t// stop playing the youtube video when I close the modal\r\n\t$('#myModal').on('hide.bs.modal', function (e) {\r\n\t\t\t// a poor man's stop video\r\n\t\t\t$(\"#video\").attr('src',$videoSrc);\r\n\t})\r\n\r\n});\r\n\r\n\r\nfunction scrollDownToPage( anchor ) {\r\n\r\n\tif ( ( anchor ) > -1 )\r\n\t{\r\n\r\n\t\tvar headerHeight = $('#header').outerHeight();\r\n\t\tvar scrollDown = ( $('#' + anchor).offset().top - headerHeight - 40 );\r\n\t\tsetTimeout(function () {\r\n\t\t\tif ($(this).scrollTop() == 0) {\r\n\t\t\t\t$('html,body').animate({scrollTop: scrollDown}, 800);\r\n\t\t\t}\r\n\t\t}, 800); // four seconds\r\n\r\n\t}\r\n\r\n\treturn;\r\n}"],"names":["resizeTimeout","$","window","scroll","scrollTop","addClass","removeClass","document","ready","$videoSrc","location","hash","scrollDownToPage","anchor","headerHeight","outerHeight","scrollDown","offset","top","setTimeout","animate","substr","click","e","onresize","clearTimeout","checkMenu","data","console","log","on","attr"],"version":3,"file":"directors-report.2823c183.js.map"}