Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 09-06-2017, 03:01 AM   #1
brolny
Connoisseur
brolny began at the beginning.
 
Posts: 64
Karma: 10
Join Date: Sep 2015
Location: Yerevan, Armenia
Device: none
inequality signs in script section

Is there a way to use the inequality signs like " > < " and like " & && " directly in the <script> section of the XHTML file in the Sigil?
With a very short function and an array of just 50-70 words - it is more easy for me to work directly with each smal xhtml file, not with separate JS file or files.

PS.
Also, you have often to restart the program, after making changes in JS file. Otherwise, the changes do not work even after saving.
brolny is offline   Reply With Quote
Old 09-06-2017, 07:03 AM   #2
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,584
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by brolny View Post
Is there a way to use the inequality signs like " > < " and like " & && " directly in the <script> section of the XHTML file in the Sigil?
Did you escape them as &amp; &lt; and &gt;?
Doitsu is offline   Reply With Quote
Old 09-06-2017, 07:24 AM   #3
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 27,549
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
You should also be able to use CDATA tags if you want to use literal expressions that contain invalid xml characters.

Code:
<script type="text/javascript">
//<![CDATA[
if (hour < 18) {
    greeting = "Good day";
}  
//]]>
</script>
DiapDealer is offline   Reply With Quote
Old 09-09-2017, 05:04 PM   #4
brolny
Connoisseur
brolny began at the beginning.
 
Posts: 64
Karma: 10
Join Date: Sep 2015
Location: Yerevan, Armenia
Device: none
Thanks a lot.
brolny is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Free (ADE-DRM) The Political Origins of Inequality [Globalization & Economic History] ATDrake Deals and Resources (No Self-Promotion or Affiliate Links) 2 06-30-2017 03:22 AM
Signs of conversion Kumabjorn Amazon Kindle 4 09-19-2011 12:15 PM
Unutterably Silly Funny Signs radioflyertoo Lounge 45 09-24-2008 12:05 PM


All times are GMT -4. The time now is 02:06 AM.


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