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
M

Member 14118745

@Member 14118745
About
Posts
1
Topics
1
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Can someone help me reverse engineer this code and get it working as jQuery?
    M Member 14118745

    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
    
    JavaScript question javascript html docker help
  • Login

  • Don't have an account? Register

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