Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

pdfjs customizing viewer.html js event handler

<script>
  // add this script block to viewer.html (pdfjs/web/viewer.html)
  document.addEventListener('DOMContentLoaded', function() {
    console.log('DOMContentLoaded');
  }, true);

  document.addEventListener('webviewerloaded', function(e) {
    console.log('webviewerloaded');
  });
</script>
Comment

pdfjs add custom event handler to viewer.js

// you can put anywhere in viewer.js (pdfjs/web/viewer.js) and listens to it
const event = document.createEvent("CustomEvent");
event.initCustomEvent("your_new_event", true, true, {});
document.dispatchEvent(event);
Comment

PREVIOUS NEXT
Code Example
Javascript :: javascript masking if input matches patter 
Javascript :: how to copy from js the lines of an html 
Javascript :: heroku h10 error aws 
Javascript :: java jsf rendered 
Javascript :: javascript object shallow merge 
Javascript :: jQuery exclude exteranl link for images 
Javascript :: nodemon run more memory 
Javascript :: set in Dynamo DB not properly incrementing nodejs lamnda function 
Javascript :: puppeteer js onblur 
Javascript :: detecting change in animated value react native 
Javascript :: remove state from location on page load in react router dom 
Javascript :: winston exclude routes 
Javascript :: add edit delete from table using jquery 
Javascript :: leaflet draw save event 
Javascript :: alaa 201 exam 
Javascript :: How to get length of string in javascript without using native length method 
Javascript :: cheditor wont open style material ui modal 
Javascript :: passing variable in table row delete button node js express 
Javascript :: how long does razor burn last 
Javascript :: juqey unbind click 
Javascript :: icon api node js to browser 
Javascript :: discord js presence update 
Javascript :: javascript linkify string text 
Javascript :: js run html in blob 
Javascript :: font awesome react share faShare 
Javascript :: mouseover event in angular 11 
Javascript :: website to word array 
Javascript :: javascript got array object by id 
Javascript :: lodash groupby unique array of objects 
Javascript :: How long does it take to learn to code 
ADD CONTENT
Topic
Content
Source link
Name
2+8 =