- 0
Help needed in Javascript
Asked by
eangulus,
-
Recently Browsing 0 members
- No registered users viewing this page.
-
Posts
-
By Brony · Posted
The same guy who promised AGI in a year, and later he said: yes, but no really. -
By Brony · Posted
Microsoft and security. 🤣 One day, I received a big bill from Microsoft. I checked the log, and the log (not Azure Premium) only lasted a few weeks, so I was unable to find any information about what happened. I checked the bill, and it showed me that somebody (no information) created a big virtual machine for many weeks, then finally deleted it. I contacted support, and they told me that I will get my money back. 8 months later, it never happened. However, the invoices show some weird movements. They indeed did the reverse, but only in the system, but my CC never got the money back. I had a fight with my bank, and my bank finally showed me records that Microsoft never tried to return my money. What happened, who hacked it, and how? Microsoft was unable to answer. My account had a DFA. Conclusion: I should have reported it to my CC. -
-
-
By Aditya Tiwari · Posted
It's not just you, YouTube confirms missing navigation bar on Android by Aditya Tiwari The online video-sharing giant YouTube took to its community support forum to acknowledge a bug in its Android app that has been bothering users for some time. The said bug, which hides the app's bottom navigation bar, affects both free and premium users on the YouTube app for Android. In other words, affected users may not see the Subscriptions, Notifications, and Library navigation buttons at the bottom of the screen. "We're aware some of you are experiencing issues with the navigation bar for the YouTube App. This might also affect YouTube premium users," YouTube said. "Our teams are actively investigating this issue! We'll update this thread as soon as we have new information." The Google-owned platform is currently working to fix the issue and notes that the problem is affecting Android users living in the US. However, unverified user reports in the comments suggest that the issue has plagued other regions, including India, Germany, Poland, Spain, Nigeria, Australia, and others. Among various brands, there are several mentions from users running devices with Xiaomi's HyperOS software. Some users attempted to uninstall and reinstall the YouTube app, clear the cache, and roll back updates, but were unable to achieve success. It has been months since Android users have reported problems with the app's navigation bar, where it may disappear randomly and return after the app is restarted. With the navigation bar gone on the YouTube Android app, some users reported being unable to upload videos or access the profile button. It's hard to say whether YouTube was working to make it auto-disappear, and things went south. For now, all users can do is wait for a fix from the company. Speaking of new changes, a recent YouTube update has killed support for several older iPhone models. Google confirmed that it will bring more ads to the cheaper YouTube Lite plan.
-
-
Recent Achievements
-
Adam Todd earned a badge
Week One Done
-
Ed B went up a rank
Contributor
-
moporcho earned a badge
One Month Later
-
Parotel earned a badge
One Month Later
-
Cryptecks earned a badge
Reacting Well
-
-
Popular Contributors
-
Tell a friend
Question
eangulus
HI all I am having trouble getting a javascript to work as I want it.
The code is as follows:
the oc function is to search for a string in an array I found.
I want to call the script like this:
The call is not restricted to how many items 1 or 10...
What it has to do is toggle the display css for a div to hide/show content. by using multiple names in the onclick I should be able to toggle 2 items at once.
Also to avoid conflict I would like the div id's to have an operating extension as in:
products_toggle == toggle
products_show == force display: ; if it isn;t already
products_hide == force display: none; if it isn;t already
I am going nuts on trying to get this to work. I have had it work half way there but not all features at once. The code above opens and closes the items but doesn't close all others that are open. each div will be a content panel and the reason for the multiple id's is so I can open a page panel and then show the relevant sub content on that page. For example I might call about_open, contact this should force open the about panel and show a contact form. the using about_open, privacy it should open about panel if not already and show the privacy content while closing all other div's.
If needed I can abbreviated each toggled div with a name as in id="about_content", id="contact_content" etc.
Please help me.
Link to comment
https://www.neowin.net/forum/topic/631537-help-needed-in-javascript/Share on other sites
19 answers to this question
Recommended Posts