1loadScripts = function (script_urls, script_callback) { 2 var scripts_loaded = 0; 3 script_urls.forEach(function(url) { 4 var script = document.createElement('script'); 5 script.onload = function () { 6 scripts_loaded++; 7 if (scripts_loaded == script_urls.length) 8 script_callback(); 9 }; 10 script.src = url; 11 document.head.appendChild(script); 12 }); 13}; 14 15loadScripts([ 16 "../reveal.js/dist/reveal.js", 17 "../reveal.js/plugin/highlight/highlight.js", 18 "../reveal.js/plugin/notes/notes.js", 19 "../reveal.js/plugin/math/math.js", 20 "../reveal.js-menu/menu.js", 21], 22 function () { 23 var revealopts = { 24 //This width and height allows printing to pdf at A4 and is slightly widescreen to give the best all round size 25 width: 1920, 26 height: 1080, 27 hash: true, 28 plugins: [ 29 RevealHighlight, 30 RevealNotes, 31 RevealMath, 32 RevealMenu 33 ], 34 menu: { 35 hideMissingTitles: false, 36 themesPath: false, 37 transitions: false, 38 custom: [ 39 { title: 'Lectures', icon: '<i class="fa fa-graduation-cap"></i>', src: 'toc.html' }, 40 ], 41 sticky: true, 42 titleSelector: '' 43 }, 44 math: { 45 config: "TeX-AMS_SVG-full", 46 tex2jax: { 47 inlineMath: [['$', '$'], ['\\(', '\\)']], 48 skipTags: ['script', 'noscript', 'style', 'textarea', 'pre'] 49 }, 50 TeX: { 51 packages: { '[-]': ['require', 'autoload'] }, 52 extensions: ["cancel.js", "color.js"], 53 Macros: { 54 bm: ["\\boldsymbol{#1}", 1] 55 }, 56 }, 57 }, 58 url: 'https://marcusbannerman.co.uk/HMMT', 59 view: 'scroll', // Make it one long page 60 // Fixes for print-pdf mode 61 pdfSeparateFragments: false, // In print mode, stop fragments doing their thing 62 pdfMaxPagesPerSlide: 1, 63 }; 64 65 Reveal.initialize(revealopts); 66} 67);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.