JSFiddle - React, Tailwind, and code Playground

by dledle2

JavaScript

javascript: try {

    var $ = require('jquery/nyt');

    var anchors2openC = document.querySelectorAll('button.button.comments-button.theme-kicker');


    var anchors3closeC = document.querySelectorAll('button.button.close-panel-button');

    /*  this way WITHOUT query doesn't work for some reason:   anchors2.click();    maybe i need to fire an event or dispatch or emit an event */

    if (!($(anchors2openC).css('top')) === 'auto'){
        
         $(anchors3closeC).click(); 
    }
    /*  ok we have not manually set any CSS attributes only clicked the buttons so far  */
    
    if (!($(anchors2openC).css('top')) === 'auto'){
     {
    $(anchors2openC).click();
  
    }


    /* $(anchors2).mouseleave();  */


    javascript: try {
        alert($commentsButton);
    } catch (myE) {
        alert(myE);
    }

    /* this.broadcast("nyt:community-commentspanel-open", myE);  /*
   
        
        /*  i = t.extend({
        module: "Comments",
        action: "Click",
        eventName: "OpenCommentsPanel"
    }
    
    
    
    javascript:   this.broadcast("nyt:community-commentspanel-open", e), i = t.extend({module: "Comments",action: "Click",eventName: "OpenCommentsPanel"}, 




 this.$story = e("#story"), this.$commentsButton = e(".comments-button"), this.$whiteOverlay = e('<div class="comments-overlay"></div>').appendTo(this.$body).hide(), this.expandIsExplicit = !1, this.pageManager.isDomReady() ? this.render() : this.subscribe("nyt:page-ready", this.render)


   $(this).find('.nyt-button-actions').addClass('highlightButton');
   
    $('#Bar1').mouseleave();
    
    
   loadGoogleAnalytics
   

    */


} catch (myE) {
    alert(myE)
}