diff --git a/__pycache__/dashboard.cpython-310.pyc b/__pycache__/dashboard.cpython-310.pyc new file mode 100644 index 0000000..fa27820 Binary files /dev/null and b/__pycache__/dashboard.cpython-310.pyc differ diff --git a/dashboard_static/js/code.js b/dashboard_static/js/code.js index 7ed572d..24e6fe2 100644 --- a/dashboard_static/js/code.js +++ b/dashboard_static/js/code.js @@ -23,7 +23,6 @@ function getCSSVariable(name) { return getComputedStyle(root).getPropertyValue(name) } - function showFeeds() { if ($(window).width() < 1280) { if (selectedSports.length === 0) { @@ -47,7 +46,7 @@ $(window).on("load", function() { showFeeds() }) -function tweetCell(tweet, parent) { +function tweetCell(tweet) { var cell = document.createElement("div"); cell.innerHTML = `
@@ -74,58 +73,8 @@ function tweetCell(tweet, parent) {
` - parent.append(cell); + return cell } -for (let i = 0; i < 2; i++) { - tweetCell(atweet, $(".leftcol")); -} - - var atweet = { - "created_at": "Sat Nov 16 12:51:41 +0000 2019", - "text": "@BobGreenburg @ONeill_Coffee Congrats to the excellent football program at Wilmington. One classy organization!", - "source": "Twitter for iPhone<\/a>", - "user": { - "name": "Express Youngstown", - "screen_name": "ExpressProsYO", - "url": "http:\/\/apply.expresspros.com\/", - "profile_image_url": "http:\/\/pbs.twimg.com\/profile_images\/775167844921188353\/fWquHsOK_normal.jpg", - }, - "quote_count": 0, - "reply_count": 0, - "retweet_count": 0, - "favorite_count": 0, - "entities": { - "hashtags": [ +$(document).on('tweet', console.log(tweet)); - ], - "urls": [ - - ], - "user_mentions": [ - { - "screen_name": "BobGreenburg", - "name": "Bob Greenburg", - "id": 483881032, - "id_str": "483881032", - "indices": [ - 0, - 13 - ] - }, - { - "screen_name": "ONeill_Coffee", - "name": "O'NeillCoffeeCompany", - "id": 2804543925, - "id_str": "2804543925", - "indices": [ - 14, - 28 - ] - } - ], - "symbols": [ - - ] - }, - } \ No newline at end of file diff --git a/dashboard_static/lib/tweets.js b/dashboard_static/lib/tweets.js index 6cc4642..5fa32a5 100644 --- a/dashboard_static/lib/tweets.js +++ b/dashboard_static/lib/tweets.js @@ -68,26 +68,21 @@ var process_entities = function(message, entities) { block.fn.tweets = function(config) { var options = $.extend({ - memory: 20 + memory: 100 }, config); +<<<<<<< Updated upstream:template_static/lib/tweets.js // create the necessary HTML in the block container - this.$element.append('
    '); + //this.$element.append('
      '); +======= +>>>>>>> Stashed changes:dashboard_static/lib/tweets.js // store list for later - var $list = this.$element.find('ol'); - + var $list = $("div.tweetcontainer"); // register default handler for handling tweet data this.actions(function(e, tweet){ - tweets = window.sessionStorage.getItem('tweets'); - tweets = JSON.parse(tweets); - tweets.push(tweet); - if(tweets.length >= options.memory) { - tweets.shift(); - } - window.sessionStorage.setItem('tweets', JSON.stringify(tweets)); - +<<<<<<< Updated upstream:template_static/lib/tweets.js var $item = $('
    1. '); var $tweet = $('
      '); @@ -123,6 +118,17 @@ block.fn.tweets = function(config) { $item.append($tweet); // place new tweet in front of list +======= + tweets = window.sessionStorage.getItem('tweets'); + tweets = JSON.parse(tweets); + tweets.push(tweet); + if(tweets.length >= options.memory) { + tweets.shift(); + } + window.sessionStorage.setItem('tweets', JSON.stringify(tweets)); + + var $item = tweetCell(tweet) +>>>>>>> Stashed changes:dashboard_static/lib/tweets.js $list.prepend($item); // remove stale tweets diff --git a/eca/__pycache__/arff.cpython-310.pyc b/eca/__pycache__/arff.cpython-310.pyc new file mode 100644 index 0000000..dab7427 Binary files /dev/null and b/eca/__pycache__/arff.cpython-310.pyc differ diff --git a/eca/__pycache__/generators.cpython-310.pyc b/eca/__pycache__/generators.cpython-310.pyc new file mode 100644 index 0000000..01498c6 Binary files /dev/null and b/eca/__pycache__/generators.cpython-310.pyc differ