Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. JavaScript
  4. Can someone help me reverse engineer this code and get it working as jQuery?

Can someone help me reverse engineer this code and get it working as jQuery?

Scheduled Pinned Locked Moved JavaScript
questionjavascripthtmldockerhelp
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Member 14118745
    wrote on last edited by
    #1

    Hi, I am trying to get a page to work properly offline. It uses EmberJS for rendering, RequireJS for defining modules. Since I have the page fully loaded I don't need any of the app-specific functionality. I just need user interaction on page to work. Here is example of HTML that I am trying to get to behave properly:

    Loading interaction...

    RevealContent

    Some question

    Some answer

    It is just a simple hide/show interaction. Here is the code that the app uses to make this work:

    define("site/mixins/interactions/reveal_content", ["exports", "jquery"], function (exports, _jquery) {

    function RevealContent($el) {
    this.el = $el;

    this.interactionData = $el.find(".interaction\_data");
    this.container = $el.find(".interaction\_content");
    

    }

    RevealContent.prototype = {
    init: function init() {
    var contentToReveal = (0, _jquery["default"])('

    ').append((0, _jquery["default"])(this.interactionData.find('td')[1]).detach());
    var initialContent = (0, _jquery["default"])('

    ').append((0, _jquery["default"])(this.interactionData.find('td')[0]).detach());

      this.container = this.cont
    
    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups