This is an automated email from the ASF dual-hosted git repository.

simhadrig pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/hive-site.git


The following commit(s) were added to refs/heads/main by this push:
     new 77d896d  Add Javascript file according to the content site policy (#44)
77d896d is described below

commit 77d896daf9ab91d0c27032afad298de70bc91ef7
Author: Simhadri Govindappa <[email protected]>
AuthorDate: Sun Mar 9 00:23:33 2025 +0530

    Add Javascript file according to the content site policy (#44)
---
 themes/hive/layouts/_default/search.html | 5 ++---
 themes/hive/static/js/fuse.min.js        | 9 +++++++++
 themes/hive/static/js/mark.min.js        | 7 +++++++
 3 files changed, 18 insertions(+), 3 deletions(-)

diff --git a/themes/hive/layouts/_default/search.html 
b/themes/hive/layouts/_default/search.html
index 032c74b..d911947 100644
--- a/themes/hive/layouts/_default/search.html
+++ b/themes/hive/layouts/_default/search.html
@@ -16,9 +16,8 @@
         </div>
     </script>
 
-    <script 
src="https://cdnjs.cloudflare.com/ajax/libs/fuse.js/6.6.2/fuse.min.js"; 
integrity="sha512-Nqw1tH3mpavka9cQCc5zWWEZNfIPdOYyQFjlV1NvflEtQ0/XI6ZQ+H/D3YgJdqSUJlMLAPRj/oXlaHCFbFCjoQ=="
 crossorigin="anonymous" referrerpolicy="no-referrer"></script>
-
-    <script 
src="https://cdnjs.cloudflare.com/ajax/libs/mark.js/8.11.1/mark.min.js"; 
integrity="sha512-5CYOlHXGh6QpOFA/TeTylKLWfB3ftPsde7AnmhuitiTX4K5SqCLBeKro6sPS8ilsz1Q4NRx3v8Ko2IBiszzdww=="
 crossorigin="anonymous" referrerpolicy="no-referrer"></script>
+    <script src="{{ .Site.BaseURL }}/js/fuse.min.js"></script>
+    <script src="{{ .Site.BaseURL }}/js/mark.min.js"></script>
     <script  src="{{ .Site.BaseURL }}/js/search.js"></script>
 </main>
 
diff --git a/themes/hive/static/js/fuse.min.js 
b/themes/hive/static/js/fuse.min.js
new file mode 100644
index 0000000..adc2835
--- /dev/null
+++ b/themes/hive/static/js/fuse.min.js
@@ -0,0 +1,9 @@
+/**
+ * Fuse.js v6.6.2 - Lightweight fuzzy-search (http://fusejs.io)
+ *
+ * Copyright (c) 2022 Kiro Risk (http://kiro.me)
+ * All Rights Reserved. Apache Software License 2.0
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ */
+var e,t;e=this,t=function(){"use strict";function e(e,t){var 
n=Object.keys(e);if(Object.getOwnPropertySymbols){var 
r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return 
Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return 
n}function t(t){for(var n=1;n<arguments.length;n++){var 
r=null!=arguments[n]?arguments[n]:{};n%2?e(Object(r),!0).forEach((function(e){c(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDe
 [...]
\ No newline at end of file
diff --git a/themes/hive/static/js/mark.min.js 
b/themes/hive/static/js/mark.min.js
new file mode 100644
index 0000000..ab54095
--- /dev/null
+++ b/themes/hive/static/js/mark.min.js
@@ -0,0 +1,7 @@
+/*!***************************************************
+* mark.js v8.11.1
+* https://markjs.io/
+* Copyright (c) 2014–2018, Julian Kühnel
+* Released under the MIT license https://git.io/vwTVl
+*****************************************************/
+!function(e,t){"object"==typeof exports&&"undefined"!=typeof 
module?module.exports=t():"function"==typeof 
define&&define.amd?define(t):e.Mark=t()}(this,function(){"use strict";var 
e="function"==typeof Symbol&&"symbol"==typeof 
Symbol.iterator?function(e){return typeof e}:function(e){return 
e&&"function"==typeof 
Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof 
e},t=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a 
class as a function")},n=function(){ [...]
\ No newline at end of file

Reply via email to