From 2f4513339337bb8aa6c9dfe1191d169b4fc57999 Mon Sep 17 00:00:00 2001 From: Caitlin Potter Date: Fri, 21 Feb 2014 14:31:23 -0500 Subject: chore(examples): remove ancient examples from the tree Let these poor scripts retire, goodness. Closes #6398 Closes #3310 --- example/tweeter/style.css | 98 -------------------------------- example/tweeter/tweeter_addressbook.html | 80 -------------------------- example/tweeter/tweeter_demo.html | 34 ----------- example/tweeter/tweeterclient.js | 36 ------------ 4 files changed, 248 deletions(-) delete mode 100644 example/tweeter/style.css delete mode 100644 example/tweeter/tweeter_addressbook.html delete mode 100644 example/tweeter/tweeter_demo.html delete mode 100644 example/tweeter/tweeterclient.js (limited to 'example/tweeter') diff --git a/example/tweeter/style.css b/example/tweeter/style.css deleted file mode 100644 index e8468b6b..00000000 --- a/example/tweeter/style.css +++ /dev/null @@ -1,98 +0,0 @@ -.loading {display: none;} -.fetching .loading {display: block;} - -a { - color: blue; -} - -h1 { - background-color: black; - margin: 0; - padding: .25em; - color: white; - border-bottom: 5px solid gray; -} - -.box { - border: 2px solid gray; -} - -.tweeter { - margin-right: 360px; -} - -ul { - list-style: none; - margin: 0; - padding: 0; -} - -li { - margin: .25em; - padding: 2px; -} - -li img { - float: left; - margin: 2px; - margin-right: .5em; - max-height: 48px; - min-height: 48px; -} - -li.even { - background-color: lightgray; -} - - -.addressbook { - float: right; - width: 350px; -} - -.addressbook li { - font-size: .9em; -} - -.clrleft { - clear: left; -} - -.notes { - font-size: .8em; - color: gray; -} - -.username, .nickname { - font-weight: bold; -} - -.editor { - padding: 4px; -} - -label { - color: gray; - display: inline-block; - width: 75px; - text-align: right; - padding: 2px; - margin-top: 10px; -} - -.editor input[type=text], -.editor textarea { - width: 230px; - vertical-align: text-top; -} - -.editor TEXTAREA { - height: 50px; -} - -.debug{ - font-size: .7em; - white-space: pre; - padding: 0; - margin: 0; -} \ No newline at end of file diff --git a/example/tweeter/tweeter_addressbook.html b/example/tweeter/tweeter_addressbook.html deleted file mode 100644 index 5ffa6f74..00000000 --- a/example/tweeter/tweeter_addressbook.html +++ /dev/null @@ -1,80 +0,0 @@ - - -
- - - - - - - - -tweets=(TODO: display me!!!)- - diff --git a/example/tweeter/tweeterclient.js b/example/tweeter/tweeterclient.js deleted file mode 100644 index 9ad7eabc..00000000 --- a/example/tweeter/tweeterclient.js +++ /dev/null @@ -1,36 +0,0 @@ -function noop() {} -$(document).ready(function() { - function xhr(method, url, data, callback){ - jQuery.getJSON(url, function() { - callback.apply(this, arguments); - scope.updateView(); - }); - } - - var resourceFactory = new ResourceFactory(xhr); - - var Tweeter = resourceFactory.route("http://twitter.com/statuses/:service:username.json", {}, { - home: {method:'GET', params: {service:'home_timeline'}, isArray:true }, - user: {method:'GET', params: {service:'user_timeline/'}, isArray:true } - }); - - - var scope = window.scope = angular.compile(document, { - location:angular.startUrlWatcher() - }); - - function fetchTweets(username){ - return username ? Tweeter.user({username: username}) : Tweeter.home(); - } - - scope.set('fetchTweets', fetchTweets); - scope.set('users', [ - {screen_name:'mhevery', name:'Mi\u0161ko Hevery', - notes:'Author of