moved parseRSS function to index
authorThomas Park <thomas@thomaspark.me>
Sun, 10 Feb 2013 03:36:58 +0000 (22:36 -0500)
committerThomas Park <thomas@thomaspark.me>
Sun, 10 Feb 2013 03:36:58 +0000 (22:36 -0500)
index.html
js/bootswatch.js

index c99a28b..031c8ae 100644 (file)
                !function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");
        </script>
        <script type="text/javascript">
+
                var taglines = [
                        'Free themes for <a target="_blank" href="http://twitter.github.com/bootstrap/">Twitter Bootstrap</a>',
                        'Add color to your <a target="_blank" href="http://twitter.github.com/bootstrap/">Bootstrap</a> site without touching a color picker',
                        }
                        document.getElementById('ticker').innerHTML = h;
                })
+
+               function parseRSS(url, callback) {
+                 $.ajax({
+                   url: 'http://ajax.googleapis.com/ajax/services/feed/load?v=1.0&num=10&callback=?&q=' + encodeURIComponent(url),
+                   dataType: 'json',
+                   success: function(data) {
+                     callback(data.responseData.feed);
+                   }
+                 });
+               }
+               
        </script>
 
 </body>
index 07fba6b..71eba46 100644 (file)
@@ -4,18 +4,6 @@ $('a[rel=tooltip]').tooltip({
        'placement': 'bottom'
 });
 
-// recent news
-
-function parseRSS(url, callback) {
-  $.ajax({
-    url: 'http://ajax.googleapis.com/ajax/services/feed/load?v=1.0&num=10&callback=?&q=' + encodeURIComponent(url),
-    dataType: 'json',
-    success: function(data) {
-      callback(data.responseData.feed);
-    }
-  });
-}
-
 // smooth scroll
 
 $(document).ready(function() {