Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Primo - JS files/Accessibility Menu - plugin #65

Open
antrez770 opened this issue Nov 22, 2017 · 14 comments
Open

Primo - JS files/Accessibility Menu - plugin #65

antrez770 opened this issue Nov 22, 2017 · 14 comments

Comments

@antrez770
Copy link

Hi, What is the right way to add custom JS - files to Primo?
Is somebody use Accessibility menu / plugin for Primo?
Thank You.

@danmichaelo
Copy link
Contributor

For general questions, please try the #primodev channel: https://igelu-eluna-siwg.slack.com/channels/primodev

Btw. a link to that channel should be added to the README?

@antrez770
Copy link
Author

Hi Now I add to this group, but looking for method How call jQuery function in AngularJS controller?

@cooldudezach
Copy link
Contributor

@antrez770 I copied the contents of the jQuery.js file to the very beginning of custom.js

@antrez770
Copy link
Author

@cooldudezach and it is working? can You give me any example?

@cooldudezach
Copy link
Contributor

cooldudezach commented Jan 23, 2018

@antrez770
Copy link
Author

antrez770 commented Jan 24, 2018

@cooldudezach How can You implement such code?: $('<div id="tools" style="text-align:right;float:right;"><div id="mylink">Click me</a></div>').insertAfter('body'); $("#mylink").click(function() { $('body').css({'background-color':'red'}); });

@cooldudezach
Copy link
Contributor

@antrez770 I fixed the link. Do a search in the file for both $( and jQuery(

@antrez770
Copy link
Author

antrez770 commented Jan 24, 2018

@cooldudezach Can You do with Jquery in custom.js something like in my previous example? Or somethink like any change (color, background) by click on link? Because, as I see the Jquery add something before Angular load, and after the page is uloaded, Jquery stay passive.

@cooldudezach
Copy link
Contributor

@antrez770 If you go through the code in the link I posted, there are a couple examples. In fact, our mobile menu is run on jquery.

Try this code: $('<div id="tools" style="text-align:right;position: absolute;bottom: 0px;"><div id="mylink">Click me</a></div>').insertAfter('body'); $("#mylink").click(function() { $('body').css({'background-color':'red'}); }); (I changed some of the css, it works for me)

@antrez770
Copy link
Author

antrez770 commented Jan 25, 2018

Yes it work thank You. Do You know can I insert this div into body? Is it possible? And did You tried insert "title"/role to any tag in the body?

@antrez770
Copy link
Author

antrez770 commented Feb 14, 2018

Hi @cooldudezach the solution I insert some changes but it is work. but there is one missing step, I can't reach the

"<div>"

with tab focus also if it has tabindex="1" do You know any solution in this specific case?
Thank You.

@antrez770
Copy link
Author

Sorry I solved it

@Maluzzz
Copy link

Maluzzz commented Jul 26, 2018

Hi! How can I join the slack channel :D

@gilax
Copy link
Contributor

gilax commented May 5, 2019

hi @antrez770, can i close this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants