• Home
  • Categories
  • Recent
  • Popular
  • Tags
  • Users
  • Groups
  • Documentation
    • Home
    • Read API
    • Write API
    • Plugin Development
Skins
  • Light
  • Default
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Quartz
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Slate
  • Solar
  • Superhero
  • Vapor
Collapse

Community

    • All categories
    Load new posts
Log in to post
  • phenomlabP

    Using jQuery in widgets

    Scheduled Pinned Locked Moved Unsolved Technical Support jquery widgets
    0 Votes
    11 Posts
    69 Views
    phenomlabP

    @baris @julian found a much simpler way to do this

    <script> if (!window.jQuery) { window.addEventListener('load', function() { $(document).ready(function() { $("#resolved").appendTo('[data-index="1"]:first-of-type'); }) }) } else { $(document).ready(function() { $("#resolved").appendTo('[data-index="1"]:first-of-type'); }) } </script>
  • phenomlabP

    Change orientation of tooltips

    Scheduled Pinned Locked Moved Unsolved Technical Support tooltips jquery
    0 Votes
    4 Posts
    233 Views
    phenomlabP

    @baris Thanks. I might just go for CSS positioning as it's less invasive 🙂

  • dogsD

    How to open composer via clientside script and add category & tags

    Scheduled Pinned Locked Moved Tutorials composer javascript jquery snippet
    2 Votes
    4 Posts
    464 Views
    dogsD

    @dunlix yeah you should! 😂

    what does discord have to do with it? I tried using that link with different values and URL of course on my site, still didn't work. I'm sure it works for you, what am I missing?

    To be honest: Nothing.

    I am building a plugin for Discord integration..So the variable names are just placeholders if you want so.

    The important part is at the end of my main post.

    I hope that you find a slick way to use it for your community maybe. 🙂 👍

  • dogsD

    How can I trigger "page ready" via jQuery?

    Scheduled Pinned Locked Moved Unsolved NodeBB Development jquery script listeners execute
    0 Votes
    4 Posts
    286 Views
    barisB

    That should work I think, you can also try putting your scripts in the ACP at /admin/appearance/customise#custom-js

  • DoppyD

    Is it possible put parameter in html form another javascript?

    Scheduled Pinned Locked Moved NodeBB Plugins plugin javascript html jquery
    0 Votes
    2 Posts
    1777 Views
    yariplusY

    in the client, those values are stored in ajaxify.data

    For your jQuery, you don't append a closing tag, it does that automatically. When you want to insert the element into the div, you need to use appendTo(). Also, unless your label has additional data, I recommend using html() instead of text().

    Here's a fiddle. I also added an ID to the new label so it isn't added more than once.

    Edit fiddle - JSFiddle - Code Playground
  • D

    Vanilla's fade-in

    Scheduled Pinned Locked Moved Technical Support fade vanilla jquery
    0 Votes
    2 Posts
    1717 Views
    julianJ

    Here, application of the ajaxifying class to the #content element

  • sdnycoS

    How to properly include anything.js

    Scheduled Pinned Locked Moved NodeBB Development plugin plugin.json jquery
    0 Votes
    3 Posts
    3531 Views
    sdnycoS

    I'll have to do some more testing. Thank you for your help. 🙂

  • Login

  • Don't have an account? Register

  • Login or register to search.
Powered by NodeBB Contributors
  • First post
    Last post
0
  • Home
  • Categories
  • Recent
  • Popular
  • Tags
  • Users
  • Groups
  • Documentation
    • Home
    • Read API
    • Write API
    • Plugin Development
  • Login

  • Don't have an account? Register

  • Login or register to search.