Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 05-30-2018, 06:03 AM   #1
brolny
Connoisseur
brolny began at the beginning.
 
Posts: 64
Karma: 10
Join Date: Sep 2015
Location: Yerevan, Armenia
Device: none
Question Warning before save

Is it possible to show a warning before saving epub,
if code in js-file has changed the text in the xhtml-file?

--------------------
I have a quiz after every chapter
and it is not very usable to have an additional program for such testing.
Sometimes I forget what I should not save file after calling this function in Sigil,
so I have to check userAgent and use an additional program for tests.

Code:
function z(a)
{
 if (navigator.userAgent.search('sigil') > 0) {
  // do nothing;
 } else { 
  // do quiz, something like this 
  // document.getElementById("a").innerHTML = u[a][1];
 }
};
brolny is offline   Reply With Quote
Old 05-30-2018, 06:42 AM   #2
brolny
Connoisseur
brolny began at the beginning.
 
Posts: 64
Karma: 10
Join Date: Sep 2015
Location: Yerevan, Armenia
Device: none
Sorry, I just see what this was solved!
Just in some another way.
Thanks.

Last edited by brolny; 05-30-2018 at 06:49 AM.
brolny is offline   Reply With Quote
Advert
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Save or Save a Copy? EditorOne Editor 35 03-01-2015 07:12 AM
Save (and save as) name issue sergo Sigil 5 03-17-2013 10:59 AM
Save File location and Save As question DougFNJ Calibre 0 09-17-2009 04:56 PM


All times are GMT -4. The time now is 03:34 AM.


MobileRead.com is a privately owned, operated and funded community.