Comments (7)
Can I have a sample of your code please?
from firetext.
document.addEventListener("DOMContentLoaded", function(){
document.getElementById("menu").addEventListener("click", function(){
var region = document.getElementById("edit");
if (region.getAttribute("data-state") == "none" ) {
region.setAttribute("data-state", "drawer");
} else {
region.setAttribute("data-state", "none");
}
});
});
from firetext.
Oh, I have a hunch...Can I see your html please?
from firetext.
<!-- sidebar -->
<nav>
<header>
<menu type="toolbar">
<a href="#back"><span class="icon icon-back">back</span></a>
</menu>
<h1>Menu</h1>
</header>
<div class="inner">
<ul>
<li><a href="#">Open a file...</a></li>
<li><a href="#">Create a new file</a></li>
<li><a href="#">Delete this file</a></li>
</ul>
<h2>Backup</h2>
<ul>
<li><a href="#">DropBox</a></li>
<li><a href="#">Google Drive</a></li>
<li><a href="#">Skydrive</a><li>
</ul>
</div>
<div role="toolbar">
<ul class="end">
<li><button class="search">Search</button></li>
<li><button class="pack-icon-share" onClick="nav('share')">Share</button></li>
</ul>
</div>
</nav>
<!-- end sidebar -->
<section role="region" id="edit">
<header>
<a href="#" id="menu"><span class="icon icon-menu">menu</span></a>
<menu type="toolbar">
<button onClick="saveFromEditor()"><span class="icon" style="background-image: url(style/icons/toolbar/save.png);">Save</span></button>
</menu>
from firetext.
Aha! The links are messing this up.
from firetext.
I am going to work on a better region handling script, so could you please land this with the html + js commented out? The css is fine :)
from firetext.
If you add onClick="return false;"
to all the links it should work.
from firetext.
Related Issues (20)
- Add "clear formatting" button
- Handle manual file save errors
- Handle automatic file save errors HOT 2
- Clicking outside dialogs should close them
- Refactor event handler HOT 6
- Open source server-side code HOT 3
- Document sanitization
- Edit code files
- SDCard error should be handled properly
- Simplify document lists
- RTL layout in code editor is broken
- Exclude styles from document preview HOT 2
- Font selector
- Themes HOT 10
- .txt files do not save properly
- Listing dependencies HOT 3
- Firetext 0.5.1 broken in simulator HOT 9
- OS Ticket - Theme not displaying data HOT 1
- Run in electron (or similar) HOT 5
- Porting to Aurelia. HOT 6
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 firetext.