| 
			
			 | 
		#31 | |
| 
			
			
			
			 Grand Sorcerer 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,763 
				Karma: 24088559 
				Join Date: Dec 2010 
				
				
				
				Device: Kindle PW2 
				
				
				 | 
	
	
	
		
		
		
		
		 Quote: 
	
 For a ready-made example, see this very simple epub3 test file, which uses the following code: Code: 
	  function showinfo() {
      if (navigator && navigator.hasOwnProperty('epubReadingSystem')) {
          var versionInfo = "name: " + navigator.epubReadingSystem.name + " " + navigator.epubReadingSystem.version + "\nplatform: " + navigator.platform + "\nlayoutStyle: " + navigator.epubReadingSystem.layoutStyle + "\n";
          var features = ["dom-manipulation", "layout-changes", "touch-events", "mouse-events", "keyboard-events", "spine-scripting"];
          var featureLog = "";
          for (var i = 0; i < 6; i++) {
              if (navigator.epubReadingSystem.hasFeature(features[i])) {
                  featureLog += features[i] + ": supported\n";
              } else {
                  featureLog += features[i] + ": NOT supported\n";
              }
          }
          alert(versionInfo + featureLog);
      } else {
          alert('epubReadingSystem object not found.' + "\nappName: " + navigator.appName + "\nappVersion: " + navigator.appVersion + "\nplatform: " + navigator.platform);
      }
  }
Last edited by Doitsu; 11-11-2016 at 12:03 PM.  | 
|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#32 | 
| 
			
			
			
			 Fanatic 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 559 
				Karma: 400004 
				Join Date: Feb 2009 
				
				
				
				Device: ONYX M96 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			Yes, your code is cleaner, I used "try" because I was trying to understand why the EPUB3 was not working. Actually I use Lektz because in Gitden reader is impossibile to "turn off" the left and right places that turn the page, so in my interactive ebook everytime someone is touching the lirics in left or right border of the page, Gitden turn the page...
		 
		
	
		
		
		
		
		
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| Advert | |
| 
         | 
    
| 
			
			 | 
		#33 | 
| 
			
			
			
			 Fanatic 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 559 
				Karma: 400004 
				Join Date: Feb 2009 
				
				
				
				Device: ONYX M96 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			btw: the EPUB3 is ready: 
		
	
		
		
		
		
		
		
		
		
		
		
	
	http://www.quintadicopertina.com/ind...orie&Itemid=63 If someone here helped and want to see the ebook send me a message, so I can send a free copy (it is in italian language anyway) Have a nice day Fabrizio  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
![]()  | 
            
        
            
            
  | 
    
			 
			Similar Threads
		 | 
	||||
| Thread | Thread Starter | Forum | Replies | Last Post | 
| EPUB3 and svg files | roger64 | ePub | 20 | 07-12-2022 02:19 PM | 
| ePub3: localStorage/JavaScript/RTL support | Doitsu | ePub | 7 | 06-02-2015 07:55 AM | 
| Is there any android epub reader supporting epub3 with audio/video/javascript? | happycoding | Android Developer's Corner | 10 | 07-29-2014 12:16 PM | 
| Create a javascript quizz for Epub3 in Sigil | BertrandThibaut | Sigil | 3 | 01-26-2014 10:04 AM | 
| JAVASCRIPT support in ePub2/ePub3 | Raja1205 | ePub | 7 | 09-03-2012 07:48 AM |