Coder Social home page Coder Social logo

Problems with hash.replace about firetext HOT 7 CLOSED

codexa avatar codexa commented on June 12, 2024
Problems with hash.replace

from firetext.

Comments (7)

ferndot avatar ferndot commented on June 12, 2024

Can I have a sample of your code please?

from firetext.

HR avatar HR commented on June 12, 2024
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.

ferndot avatar ferndot commented on June 12, 2024

Oh, I have a hunch...Can I see your html please?

from firetext.

HR avatar HR commented on June 12, 2024
<!-- 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.

ferndot avatar ferndot commented on June 12, 2024

Aha! The links are messing this up.

from firetext.

ferndot avatar ferndot commented on June 12, 2024

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.

logan-r avatar logan-r commented on June 12, 2024

If you add onClick="return false;" to all the links it should work.

from firetext.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.