PHP Classes

File: ui/assets/js/demo/highlightjs.demo.js

Recommend this page to a friend!
  Packages of madi kais   PHP KAI Harness   ui/assets/js/demo/highlightjs.demo.js   Download  
File: ui/assets/js/demo/highlightjs.demo.js
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: PHP KAI Harness
AI Agent framework with telemetry dashboard
Author: By
Last change:
Date: 4 months ago
Size: 592 bytes
 

 

Contents

Class file image Download
var handleInitHighlightJs = function() { $('.hljs-container pre code').each(function(i, block) { var dataUrl = $(this).attr('data-url'); if (dataUrl) { $.ajax({ url: dataUrl, dataType: 'html', success: function(data) { if (data) { $(block).html(data); } hljs.highlightElement(block); }, error: function(data) { hljs.highlightElement(block); } }); } else { hljs.highlightElement(block); } }); }; /* Controller ------------------------------------------------ */ $(document).ready(function() { handleInitHighlightJs(); });