Comments (4)
OK, that is possible. I propose that if there is a file Diary/js/entry.js
it gets loaded by all pages, in the same way as styles. I will investigate. Let me know if you meant something different.
from diary.
Yes, this is what I mean.
Instead making Diary/js/entry.js
and load it in all pages, you can make a header.html
file and allow users to write any header, like writing <script>
or <style>
tag.
Of course, there is not much difference. Do what you think is better.
Thanks.
from diary.
I investigated including a HTML file. There is a link type for this, but it is apparently not widely supported. There are several ways of importing JavaScript into JavaScript.
I have implemented this by adding a <script></script>
tag at the beginning of the HTML in the same way as styles. There is also a menu option to edit the file. The file is Diary/js/script.js
, which will be used if present. Script errors get logged by the WebView in the device log file.
This will be in the next release.
from diary.
Yep, It works perfectly. Thank you very much.
from diary.
Related Issues (20)
- Reminder option? HOT 2
- 'Go to date...' feature, quicker way to jump to specific year/month? HOT 2
- Some suggestions HOT 2
- option to save files for basic text compatibilty with rednotebook HOT 5
- White background in dark mode on main note view pages HOT 3
- Hashtag Support? HOT 1
- Backup .md file not showing as i type. Showing question marks. HOT 4
- Sharing links into Diary HOT 6
- Jump to Template page HOT 1
- automatic selection is annoying HOT 2
- feature request: upgrade TargetAPI HOT 1
- How to restore .zip file in diary
- Include misspelled words in search results HOT 2
- Inexistent default backup path HOT 3
- Feature Suggestion: Retrospection HOT 2
- Issue: Wrong icon size HOT 2
- Suggestion: change the page turning operation method HOT 2
- Image and video size problems >_< HOT 2
- Suggestion: Add name of the day in page heading HOT 4
- If no text is in an entry before an HR, the rendered view is empty HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from diary.