Coder Social home page Coder Social logo

Comments (9)

mac81 avatar mac81 commented on September 2, 2024

Hi

You have to trigger a click on the 'pure-toggle-label' or 'pure-toggle' after routing to the new page or when you click on a menu item. This will hide the menu and remove the overlay.

from pure-drawer.

mac81 avatar mac81 commented on September 2, 2024

Where you able to sort it out?

from pure-drawer.

nypraise avatar nypraise commented on September 2, 2024

I'm sorry I missed your reply, Mac81. What do mean trigger a click? How?

from pure-drawer.

mac81 avatar mac81 commented on September 2, 2024

F.ex. with jQuery

$('.pure-toggle').trigger('click');

or native js

document.getElementsByClassName('.pure-toggle').click();

from pure-drawer.

nypraise avatar nypraise commented on September 2, 2024

Thank you! That solved it. :)

from pure-drawer.

LisaBee224 avatar LisaBee224 commented on September 2, 2024

Hi,

I'm having the same issue-- where do you put the trigger click, exactly? Is it just in a script at the end of the page? Sorry, I'm a noob!!

from pure-drawer.

nypraise avatar nypraise commented on September 2, 2024

Are you using Angular as well? If so; just use ng-click to call a function in the controller. Put the code inside the function. :)

from pure-drawer.

LisaBee224 avatar LisaBee224 commented on September 2, 2024

Sorry- I should have mentioned. I am not using Angular!

“Above all, do not lose your desire to walk: every day I walk myself into a
state of well-being and walk away from every illness; I have walked myself
into my best thoughts.” - Søren Kierkegaard

On Thu, Jul 16, 2015 at 1:57 PM, nypraise [email protected] wrote:

Are you using Angular as well? If so; just use ng-click to call a function
in the controller. Put the code inside the function. :)


Reply to this email directly or view it on GitHub
#17 (comment).

from pure-drawer.

mac81 avatar mac81 commented on September 2, 2024

Just before the body tag should work fine. If you have a custom external script already it's best to put it there. If not either add a js file or just add it inline within a script tag.

If your looking to learn some javascript I would suggest looking at some free courses over at codeschool.com or http://code.tutsplus.com/categories/javascript

from pure-drawer.

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.