diff --git a/config.yaml b/config.yaml
index 77f5835c..9ead03f6 100644
--- a/config.yaml
+++ b/config.yaml
@@ -107,7 +107,7 @@ demos:
- slug: flying-tweets
title: 'Flying Tweets'
- legend: 'Watch automatically-updated tweets fly onto your screen and fly off again. Great as a screensaver replacement or at conferences with boring speakers. When the page is not visible, animation stops to save precious CPU cycles.'
+ legend: 'Watch automatically-updated tweets fly onto your screen and fly off again. Great as a screensaver replacement or on displays at events. When the page is not visible, animation stops to save precious CPU cycles. Based on Visible Tweets by @themaninblue.'
tags: [css3]
support: [cssanimations, csstransforms, fullscreen, pagevisibility]
diff --git a/demos/flying-tweets/index.html b/demos/flying-tweets/index.html
index c0a9d7cf..3fadb916 100644
--- a/demos/flying-tweets/index.html
+++ b/demos/flying-tweets/index.html
@@ -7,7 +7,7 @@
-
+
-
+
diff --git a/demos/flying-tweets/scripts/script.js b/demos/flying-tweets/scripts/script.js
index 670bd49e..14b7e4ae 100644
--- a/demos/flying-tweets/scripts/script.js
+++ b/demos/flying-tweets/scripts/script.js
@@ -1,8 +1,10 @@
window.addEventListener('DOMContentLoaded', function() {
+ 'use strict';
+
/*
* Configuration
*/
- var query = '#css'; // The initial search term
+ var query = '#css3'; // The initial search term
var updateTime = 2; // The time between updates in minutes
/*
@@ -10,6 +12,7 @@ window.addEventListener('DOMContentLoaded', function() {
*/
// Set some global variables
var container = document.getElementById('container');
+ var content = document.getElementById('content');
var frm_search = document.getElementById('frm_search');
var txt_search = document.getElementById('txt_search');
var btn_search = document.getElementById('btn_search');
@@ -24,18 +27,19 @@ window.addEventListener('DOMContentLoaded', function() {
var text = tweetData.text;
var user = tweetData.user;
var result = '';
- for (var i = 0, len = text.length; i < len; i++) {
+ for (var i = 0, lenText = text.length; i < lenText; i++) {
result += '' + text[i] + '';
}
result += '